当前位置:网站首页>[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 ……
边栏推荐
- Markdown syntax for document editing (typera)
- First, look at K, an ugly number
- MySQL查询请求的执行过程——底层原理
- Solve DoS attack production cases
- 复现Thinkphp 2.x 任意代码执行漏洞
- 当保存参数使用结构体时必备的开发技巧方式
- A wearable arm device for night and sleeveless blood pressure measurement [translation]
- [the 300th weekly match of leetcode]
- 测试1234
- 裕太微冲刺科创板:拟募资13亿 华为与小米基金是股东
猜你喜欢

Introduction to the use of SAP Fiori application index tool and SAP Fiori tools

Nuc11 cheetah Canyon setting U disk startup

287. Find duplicates

Breadth first traversal of graph

Handwritten online chat system (principle part 1)

爬虫玩得好,牢饭吃到饱?这3条底线千万不能碰!

Human bone point detection: top-down (part of the theory)

视频化全链路智能上云?一文详解什么是阿里云视频云「智能媒体生产」

深度循环网络长期血压预测【翻译】

监控界的最强王者,没有之一!
随机推荐
There is a sound prompt when inserting a USB flash disk under win10 system, but the drive letter is not displayed
Excellent open source fonts for programmers
Nuc11 cheetah Canyon setting U disk startup
小程序在产业互联网中的作用
Implementation of AVL tree
首先看K一个难看的数字
Introduction to the use of SAP Fiori application index tool and SAP Fiori tools
Celery best practices
Specify flume introduction, installation and configuration
Self supervised heterogeneous graph neural network with CO comparative learning
This article discusses the memory layout of objects in the JVM, as well as the principle and application of memory alignment and compression pointer
echart简单组件封装
Docker安装Redis
A wearable arm device for night and sleeveless blood pressure measurement [translation]
用于远程医疗的无创、无袖带血压测量【翻译】
Xu Xiang's wife Ying Ying responded to the "stock review": she wrote it!
Some understandings of tree LSTM and DGL code implementation
node の SQLite
Cocos2d Lua smaller and smaller sample memory game
Online notes