当前位置:网站首页>[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,才使得工作正常
不知道这是什么神奇操作可能还是跟他其他模块有关系,但是这就很复杂了
边栏推荐
- C语言通信行程卡后台系统
- 1142_ SiCp learning notes_ Functions and processes created by functions_ Linear recursion and iteration
- 开源生态|打造活力开源社区,共建开源新生态!
- Weibo publishing cases
- 2022-07-06:以下go语言代码是否会panic?A:会;B:不会。 package main import “C“ func main() { var ch chan struct
- What is the difference between TCP and UDP?
- [unity] several ideas about circular motion of objects
- Use and analysis of dot function in numpy
- Why should we understand the trend of spot gold?
- pytest+allure+jenkins环境--填坑完毕
猜你喜欢
3D reconstruction - stereo correction
[experience sharing] how to expand the cloud service icon for Visio
2022年茶艺师(中级)考试试题及模拟考试
[UTCTF2020]file header
Problem solving: unable to connect to redis
Leetcode-206. Reverse Linked List
Operation suggestions for today's spot Silver
A bit of knowledge - about Apple Certified MFI
JSON introduction and JS parsing JSON
2022制冷与空调设备运行操作复训题库及答案
随机推荐
242. Bipartite graph determination
leetcode:105. Constructing binary trees from preorder and inorder traversal sequences
知识点滴 - 关于苹果认证MFI
[SUCTF 2019]Game
CentOS7下安装PostgreSQL11数据库
pytorch 参数初始化
[unity] several ideas about circular motion of objects
Pytest+allure+jenkins installation problem: pytest: error: unrecognized arguments: --alluredir
After the interview, the interviewer roast in the circle of friends
Sign up now | oar hacker marathon phase III, waiting for your challenge
Route jump in wechat applet
Ansible
Installing postgresql11 database under centos7
Regular e-commerce problems part1
Cnopendata American Golden Globe Award winning data
vus.SSR在asynData函数中请求数据的注意事项
Info | webrtc M97 update
2022茶艺师(初级)考试题模拟考试题库及在线模拟考试
2022-07-06: will the following go language codes be panic? A: Meeting; B: No. package main import “C“ func main() { var ch chan struct
Jenkins remote build project timeout problem