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

不知道这是什么神奇操作可能还是跟他其他模块有关系,但是这就很复杂了
边栏推荐
- buuctf misc USB
- Gslx680 touch screen driver source code analysis (gslx680. C)
- IO流 file
- Asemi rectifier bridge rs210 parameters, rs210 specifications, rs210 package
- 今日现货白银操作建议
- Cnopendata list data of Chinese colleges and Universities
- 【Unity】物体做圆周运动的几个思路
- Numbers that appear only once
- Why should we understand the trend of spot gold?
- JS plot flot application - simple curve
猜你喜欢

Detailed explanation of Kalman filter for motion state estimation

Visualization Document Feb 12 16:42

Resource create package method

【数学笔记】弧度

探索Cassandra的去中心化分布式架构

2022茶艺师(初级)考试题模拟考试题库及在线模拟考试

开源生态|打造活力开源社区,共建开源新生态!

SQL优化的魅力!从 30248s 到 0.001s

After 95, Alibaba P7 published the payroll: it's really fragrant to make up this

UWB learning 1
随机推荐
Leetcode 43 String multiplication (2022.02.12)
Sign up now | oar hacker marathon phase III, waiting for your challenge
[2022 ciscn] replay of preliminary web topics
图解GPT3的工作原理
Hands on deep learning (IV) -- convolutional neural network CNN
Cnopendata American Golden Globe Award winning data
[UVM practice] Chapter 1: configuring the UVM environment (taking VCs as an example), run through the examples in the book
ASEMI整流桥RS210参数,RS210规格,RS210封装
LeetCode 90:子集 II
vus.SSR在asynData函数中请求数据的注意事项
PHP exports millions of data
SQL优化的魅力!从 30248s 到 0.001s
Value sequence (subsequence contribution problem)
Jenkins远程构建项目超时的问题
【斯坦福计网CS144项目】Lab3: TCPSender
Explore Cassandra's decentralized distributed architecture
Ansible
dash plotly
php导出百万数据
Leetcode-226. Invert Binary Tree