当前位置:网站首页>[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,才使得工作正常

不知道这是什么神奇操作可能还是跟他其他模块有关系,但是这就很复杂了
边栏推荐
- After 95, Alibaba P7 published the payroll: it's really fragrant to make up this
- Pytest + allure + Jenkins Environment - - achèvement du remplissage de la fosse
- Button wizard script learning - about tmall grabbing red envelopes
- [performance pressure test] how to do a good job of performance pressure test?
- pytest+allure+jenkins環境--填坑完畢
- [2022 actf] Web Topic recurrence
- idea添加类注释模板和方法模板
- JSON introduction and JS parsing JSON
- 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
- 【斯坦福计网CS144项目】Lab3: TCPSender
猜你喜欢

Technology cloud report: from robot to Cobot, human-computer integration is creating an era

nacos

【斯坦福计网CS144项目】Lab3: TCPSender

Wechat applet data binding multiple data

IPv4 exercises

Visualization Document Feb 12 16:42

Numbers that appear only once

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远程构建项目超时的问题

PHP exports millions of data
随机推荐
Leetcode-543. Diameter of Binary Tree
在线直播系统源码,使用ValueAnimator实现view放大缩小动画效果
【数学笔记】弧度
What are the positions of communication equipment manufacturers?
【经验分享】如何为visio扩展云服务图标
Codeforces Global Round 19
Leanote private cloud note building
微博发布案例
[webrtc] M98 screen and window acquisition
Explore Cassandra's decentralized distributed architecture
[ANSYS] learning experience of APDL finite element analysis
pytest+allure+jenkins環境--填坑完畢
【webrtc】m98 screen和window采集
Write CPU yourself -- Chapter 9 -- learning notes
Six methods of flattening arrays with JS
mysql多列索引(组合索引)特点和使用场景
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远程构建项目超时的问题
开源生态|打造活力开源社区,共建开源新生态!
Few-Shot Learning && Meta Learning:小样本学习原理和Siamese网络结构(一)