当前位置:网站首页>[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 ……
边栏推荐
- First, look at K, an ugly number
- Test 1234
- Handwritten online chat system (principle part 1)
- Binary search tree
- Shangsilicon Valley JUC high concurrency programming learning notes (3) multi thread lock
- Execution process of MySQL query request - underlying principle
- [.Net core] solution to error reporting due to too long request length
- 2022/02/12
- Noninvasive and cuff free blood pressure measurement for telemedicine [translation]
- Some understandings of tree LSTM and DGL code implementation
猜你喜欢
Video based full link Intelligent Cloud? This article explains in detail what Alibaba cloud video cloud "intelligent media production" is
Nuc11 cheetah Canyon setting U disk startup
Maixll dock camera usage
手写一个的在线聊天系统(原理篇1)
二叉搜索树
Some understandings of tree LSTM and DGL code implementation
wx小程序学习笔记day01
Summary of performance knowledge points
Introduction and case analysis of Prophet model
Coco2017 dataset usage (brief introduction)
随机推荐
Splay
With the implementation of MapReduce job de emphasis, a variety of output folders
Blue Bridge Cup real question: one question with clear code, master three codes
MySQL查询请求的执行过程——底层原理
Epoll () whether it involves wait queue analysis
Numerical analysis: least squares and ridge regression (pytoch Implementation)
朗坤智慧冲刺科创板:年营收4亿 拟募资7亿
Crawling data encounters single point login problem
A method of sequentially loading Unity Resources
About NPM install error 1
Stm32+esp8266+mqtt protocol connects onenet IOT platform
Splay
Unity资源顺序加载的一个方法
C language college laboratory reservation registration system
How does crmeb mall system help marketing?
2022-2024年CIFAR Azrieli全球学者名单公布,18位青年学者加入6个研究项目
[the 300th weekly match of leetcode]
AFNetworking框架_上传文件或图像server
Penetration test information collection - App information
wx小程序学习笔记day01