Array Creation in Simulink

2 visualizzazioni (ultimi 30 giorni)
Abhijeet Kate
Abhijeet Kate il 1 Mar 2024
Commentato: Aquatris il 1 Mar 2024
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 Commento
Aquatris
Aquatris il 1 Mar 2024
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?

Accedi per commentare.

Risposta accettata

Fangjun Jiang
Fangjun Jiang il 1 Mar 2024
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.

Più risposte (0)

Categorie

Scopri di più su Deployment, Integration, and Supported Hardware in Help Center e File Exchange

Prodotti


Release

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by