当前位置:网站首页>[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,才使得工作正常
不知道这是什么神奇操作可能还是跟他其他模块有关系,但是这就很复杂了
边栏推荐
- What is the difference between TCP and UDP?
- Weibo publishing cases
- [UTCTF2020]file header
- [webrtc] m98 Screen and Window Collection
- Iterable、Collection、List 的常见方法签名以及含义
- [advanced digital IC Verification] command query method and common command interpretation of VCs tool
- Leetcode sword finger offer brush questions - day 20
- UWB learning 1
- JS get all date or time stamps between two time stamps
- Leanote private cloud note building
猜你喜欢
LeetCode 40:组合总和 II
2022年茶艺师(中级)考试试题及模拟考试
mysql多列索引(组合索引)特点和使用场景
1142_ SiCp learning notes_ Functions and processes created by functions_ Linear recursion and iteration
[2022 actf] Web Topic recurrence
Leetcode-206. Reverse Linked List
Detailed explanation of uboot image generation process of Hisilicon chip (hi3516dv300)
Write CPU yourself -- Chapter 9 -- learning notes
resource 创建包方式
今日现货白银操作建议
随机推荐
Common method signatures and meanings of Iterable, collection and list
A bit of knowledge - about Apple Certified MFI
[SUCTF 2019]Game
KBU1510-ASEMI电源专用15A整流桥KBU1510
测试周期被压缩?教你9个方法去应对
Common validation comments
Leetcode 43 String multiplication (2022.02.12)
pytest+allure+jenkins環境--填坑完畢
2022焊工(初级)判断题及在线模拟考试
Is the test cycle compressed? Teach you 9 ways to deal with it
Few-Shot Learning && Meta Learning:小样本学习原理和Siamese网络结构(一)
ASEMI整流桥RS210参数,RS210规格,RS210封装
Button wizard script learning - about tmall grabbing red envelopes
[webrtc] M98 screen and window acquisition
【数学笔记】弧度
Visualization Document Feb 12 16:42
242. Bipartite graph determination
【VHDL 并行语句执行】
You Li takes you to talk about C language 6 (common keywords)
在线直播系统源码,使用ValueAnimator实现view放大缩小动画效果