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일

0 개 추천

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개)

제품

릴리스

R2023b

질문:

2024년 3월 1일

댓글:

2024년 3월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by