![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288208/image.png)
Create a matrix in Simulink
278 ビュー (過去 30 日間)
古いコメントを表示
The diagram below is the block diagram that I have created in order to generate the matrix B.
I want the matrix B to be in the size of [9x6] but what I have done in the simulink give me a warning message as: 'Magnetic/B' generated a [9x6] matrix data. It automatically reshaped the data to a one dimensional vector with 54 elements.
My question is: How to make the matrix B stay in the size of [9x6]?
I have attached the simulink model in the file as well. I am really appreciate your help.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288194/image.png)
0 件のコメント
採用された回答
Ameer Hamza
2020 年 4 月 28 日
編集済み: Ameer Hamza
2020 年 4 月 30 日
Because in the function Interpreted MATLAB function block B, you have set the output dimension to 54. Change it to [9 6].
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288208/image.png)
6 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!