当前位置:网站首页>[Matlab] Simulink 自定义函数中的矩阵乘法工作不正常时可以使用模块库中的矩阵乘法模块代替
[Matlab] Simulink 自定义函数中的矩阵乘法工作不正常时可以使用模块库中的矩阵乘法模块代替
2022-07-07 04:38:00 【廉价喵】
一般来说,自定义函数中的矩阵乘法都会是正常的……
Test1
function y = fcn(u)
A = rand(4,3);
y = A*u;
但是我朋友在写的时候就确确实实出现了这个问题,如下图,输入的是一个 31 的矩阵,在自定义函数里面与一个 43 的矩阵相乘,得到还是一个 4*3 的矩阵
后面实在不行,把自定义函数由接受 x 计算 Ax 变成输出 A,使用矩阵乘法的模块计算 Ax,才使得工作正常
不知道这是什么神奇操作可能还是跟他其他模块有关系,但是这就很复杂了
边栏推荐
- Common validation comments
- 【数学笔记】弧度
- Six methods of flattening arrays with JS
- Operation suggestions for today's spot Silver
- LeetCode 90:子集 II
- Is the test cycle compressed? Teach you 9 ways to deal with it
- 科技云报道:从Robot到Cobot,人机共融正在开创一个时代
- Rxjs - observable doesn't complete when an error occurs - rxjs - observable doesn't complete when an error occurs
- 【obs】win-capture需要winrt
- What is the interval in gatk4??
猜你喜欢
What are the positions of communication equipment manufacturers?
[CV] Wu Enda machine learning course notes | Chapter 8
Use and analysis of dot function in numpy
开源生态|打造活力开源社区,共建开源新生态!
图解GPT3的工作原理
[ANSYS] learning experience of APDL finite element analysis
Jenkins remote build project timeout problem
Resource create package method
即刻报名|飞桨黑客马拉松第三期等你挑战
2022焊工(初级)判断题及在线模拟考试
随机推荐
buuctf misc USB
Technology cloud report: from robot to Cobot, human-computer integration is creating an era
Is the test cycle compressed? Teach you 9 ways to deal with it
【p2p】本地抓包
Codeforces Global Round 19
科技云报道:从Robot到Cobot,人机共融正在开创一个时代
Sign up now | oar hacker marathon phase III, waiting for your challenge
[webrtc] m98 Screen and Window Collection
Cnopendata list data of Chinese colleges and Universities
[UVM basics] summary of important knowledge points of "UVM practice" (continuous update...)
nacos
2022制冷与空调设备运行操作复训题库及答案
Leetcode sword finger offer brush questions - day 20
解决:Could NOT find KF5 (missing: CoreAddons DBusAddons DocTools XmlGui)
Zhilian + AV, AITO asked M7 to do more than ideal one
CentOS7下安装PostgreSQL11数据库
[SUCTF 2019]Game
Button wizard collection learning - mineral medicine collection and running map
Visualization Document Feb 12 16:42
vus.SSR在asynData函数中请求数据的注意事项