当前位置:网站首页>[matlab] Simulink the input and output variables of the same module cannot have the same name
[matlab] Simulink the input and output variables of the same module cannot have the same name
2022-07-06 18:46:00 【Cheap meow】
For a simple example :
Can run through :
Test1
function y = fcn(u)
y = ones(3,4);
Test2
function y = fcn(u)
y = ones(4,3)*u;
Will report a mistake :
Test1
function y = fcn(u)
y = ones(3,4);
Test2
function u = fcn(u)
u = ones(4,3)*u;
The fault of this times is Test2 Medium u Dimension mismatch
But it's strange , It's reasonable to say this u It should be directly covered , The original dimension should not be considered
Therefore, the input and output variables of the same module cannot have the same name , Probably Simulink The module in is so retarded
Of course, the result of the same name is more than that , This problem comes from my friend , He set the input and output with the same name , There is no error in that module , But the output will go wrong , I don't know how to engrave it again for a moment ……
边栏推荐
- Medical image segmentation
- Method of accessing mobile phone storage location permission under non root condition
- Brief description of SQL optimization problems
- Some recruitment markets in Shanghai refuse to recruit patients with covid-19 positive
- wx小程序学习笔记day01
- Introduction and case analysis of Prophet model
- Solve DoS attack production cases
- Some understandings of tree LSTM and DGL code implementation
- 当保存参数使用结构体时必备的开发技巧方式
- ORACLE进阶(四)表连接讲解
猜你喜欢
MySQL查询请求的执行过程——底层原理
Xu Xiang's wife Ying Ying responded to the "stock review": she wrote it!
Nuc11 cheetah Canyon setting U disk startup
测试行业的小伙伴,有问题可以找我哈。菜鸟一枚~
2022-2024年CIFAR Azrieli全球学者名单公布,18位青年学者加入6个研究项目
Medical image segmentation
徐翔妻子应莹回应“股评”:自己写的!
使用cpolar建立一个商业网站(1)
巨杉数据库首批入选金融信创解决方案!
From 2022 to 2024, the list of cifar azrieli global scholars was announced, and 18 young scholars joined 6 research projects
随机推荐
人体骨骼点检测:自顶向下(部分理论)
DOM Brief
2022/02/12
Summary of performance knowledge points
重磅硬核 | 一文聊透对象在 JVM 中的内存布局,以及内存对齐和压缩指针的原理及应用
朗坤智慧冲刺科创板:年营收4亿 拟募资7亿
Huawei 0 foundation - image sorting
徐翔妻子应莹回应“股评”:自己写的!
Mathematics in machine learning -- common probability distribution (XIII): Logistic Distribution
Cobra 快速入门 - 专为命令行程序而生
Numerical analysis: least squares and ridge regression (pytoch Implementation)
Noninvasive and cuff free blood pressure measurement for telemedicine [translation]
Jushan database was among the first batch of financial information innovation solutions!
Easy to use PDF to SVG program
二叉搜索树
Test 123
Cocos2d Lua 越来越小样本 内存游戏
Maixll dock camera usage
[sword finger offer] 60 Points of N dice
用友OA漏洞学习——NCFindWeb 目录遍历漏洞