当前位置:网站首页>[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 ……
边栏推荐
- CSRF vulnerability analysis
- STM32+MFRC522完成IC卡号读取、密码修改、数据读写
- 关于npm install 报错问题 error 1
- Cobra quick start - designed for command line programs
- Example of implementing web server with stm32+enc28j60+uip protocol stack
- Hongke shares | plate by plate ar application in Beijing Winter Olympics
- MySQL查询请求的执行过程——底层原理
- POJ 2208 已知边四面体六个长度,计算体积
- Medical image segmentation
- DOM简要
猜你喜欢
This article discusses the memory layout of objects in the JVM, as well as the principle and application of memory alignment and compression pointer
From 2022 to 2024, the list of cifar azrieli global scholars was announced, and 18 young scholars joined 6 research projects
C#/VB. Net to add text / image watermarks to PDF documents
Use cpolar to build a business website (1)
Nuc11 cheetah Canyon setting U disk startup
Some understandings of tree LSTM and DGL code implementation
重磅硬核 | 一文聊透对象在 JVM 中的内存布局,以及内存对齐和压缩指针的原理及应用
一种用于夜间和无袖测量血压手臂可穿戴设备【翻译】
测试行业的小伙伴,有问题可以找我哈。菜鸟一枚~
Splay
随机推荐
Handwritten online chat system (principle part 1)
celery最佳实践
Epoll () whether it involves wait queue analysis
Use cpolar to build a business website (1)
使用block实现两个页面之间的传统价值观
A method of sequentially loading Unity Resources
Self supervised heterogeneous graph neural network with CO comparative learning
Jushan database was among the first batch of financial information innovation solutions!
JDBC驱动器、C3P0、Druid和JDBCTemplate相关依赖jar包
AcWing 3537. Tree lookup complete binary tree
Xu Xiang's wife Ying Ying responded to the "stock review": she wrote it!
SAP Fiori 应用索引大全工具和 SAP Fiori Tools 的使用介绍
十、进程管理
44所高校入选!分布式智能计算项目名单公示
测试123
Execution process of MySQL query request - underlying principle
文档编辑之markdown语法(typora)
Brief description of SQL optimization problems
Penetration test information collection - App information
Shangsilicon Valley JUC high concurrency programming learning notes (3) multi thread lock