Array Creation in Simulink

2 次查看(过去 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
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
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 个)

类别

Help CenterFile Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息

产品


版本

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by