当前位置:网站首页>[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 ……
边栏推荐
- Excellent open source fonts for programmers
- UFIDA OA vulnerability learning - ncfindweb directory traversal vulnerability
- Alibaba cloud international ECS cannot log in to the pagoda panel console
- 测试123
- Jdbc driver, c3p0, druid and jdbctemplate dependent jar packages
- Docker installation redis
- 文档编辑之markdown语法(typora)
- Stm32+hc05 serial port Bluetooth design simple Bluetooth speaker
- 小程序在产业互联网中的作用
- Penetration test information collection - WAF identification
猜你喜欢
SQL injection - access injection, access offset injection
裕太微冲刺科创板:拟募资13亿 华为与小米基金是股东
There is a sound prompt when inserting a USB flash disk under win10 system, but the drive letter is not displayed
Self supervised heterogeneous graph neural network with CO comparative learning
From 2022 to 2024, the list of cifar azrieli global scholars was announced, and 18 young scholars joined 6 research projects
On AAE
Splay
同宇新材冲刺深交所:年营收9.47亿 张驰与苏世国为实控人
C#/VB.NET 给PDF文档添加文本/图像水印
用于远程医疗的无创、无袖带血压测量【翻译】
随机推荐
裕太微冲刺科创板:拟募资13亿 华为与小米基金是股东
Estimate blood pressure according to PPG using spectral spectrum time depth neural network [turn]
关于npm install 报错问题 error 1
Introduction and case analysis of Prophet model
Brief description of SQL optimization problems
SQL injection Foundation
解读云原生技术
ORACLE进阶(四)表连接讲解
Some understandings of tree LSTM and DGL code implementation
Excellent open source fonts for programmers
基于ppg和fft神经网络的光学血压估计【翻译】
Docker安装Redis
echart简单组件封装
朗坤智慧冲刺科创板:年营收4亿 拟募资7亿
Bonecp uses data sources
深度循环网络长期血压预测【翻译】
测试123
STM32+HC05串口蓝牙设计简易的蓝牙音箱
图片缩放中心
44所高校入选!分布式智能计算项目名单公示