Array Creation in Simulink
1 回表示 (過去 30 日間)
古いコメントを表示
Hello We need a 2 dimensional Array of like given below in Simulink. int matrix[2][3] = { {1, 4, 2}, {3, 6, 8} };
Can you tell me any block that creates and accesses this type of array?
1 件のコメント
Aquatris
2024 年 3 月 1 日
Do you need it as a cell array to provide it as an input to a matlab function in simulink or what is the purpose of the matrix in simulink?
採用された回答
Fangjun Jiang
2024 年 3 月 1 日
Use a Constant block, specify its value as [1,4,2;3,6,8], connect it to a Display block, run simulation to see the result.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!