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

不知道这是什么神奇操作可能还是跟他其他模块有关系,但是这就很复杂了
边栏推荐
- Live broadcast platform source code, foldable menu bar
- Leetcode 43 String multiplication (2022.02.12)
- Solution: could not find kf5 (missing: coreaddons dbusaddons doctools xmlgui)
- [performance pressure test] how to do a good job of performance pressure test?
- [UVM practice] Chapter 1: configuring the UVM environment (taking VCs as an example), run through the examples in the book
- PHP exports millions of data
- 通信设备商,到底有哪些岗位?
- Linux server development, SQL statements, indexes, views, stored procedures, triggers
- [Stanford Jiwang cs144 project] lab3: tcpsender
- 面试结束后,被面试官在朋友圈吐槽了......
猜你喜欢

You Li takes you to talk about C language 6 (common keywords)

Cnopendata list data of Chinese colleges and Universities
![[2022 CISCN]初赛 web题目复现](/img/1c/4297379fccde28f76ebe04d085c5a4.png)
[2022 CISCN]初赛 web题目复现

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

IPv4 exercises
![[Stanford Jiwang cs144 project] lab3: tcpsender](/img/82/5f99296764937e7d119b8ab22828fd.png)
[Stanford Jiwang cs144 project] lab3: tcpsender

Operation suggestions for today's spot Silver

@component(““)

@component(““)

PHP exports millions of data
随机推荐
Explore Cassandra's decentralized distributed architecture
2022茶艺师(初级)考试题模拟考试题库及在线模拟考试
Kbu1510-asemi power supply special 15A rectifier bridge kbu1510
Detailed explanation of uboot image generation process of Hisilicon chip (hi3516dv300)
C语言航班订票系统
Determining the full type of a variable
Use and analysis of dot function in numpy
CentOS7下安装PostgreSQL11数据库
微信小程序中的路由跳转
idea添加类注释模板和方法模板
Technology cloud report: from robot to Cobot, human-computer integration is creating an era
numpy中dot函数使用与解析
[Stanford Jiwang cs144 project] lab4: tcpconnection
科技云报道:从Robot到Cobot,人机共融正在开创一个时代
Jenkins remote build project timeout problem
buuctf misc USB
Leetcode sword finger offer brush questions - day 20
Info | webrtc M97 update
[2022 actf] Web Topic recurrence
pytest+allure+jenkins環境--填坑完畢