Is it possible to load an array to the simulink workspace and call it in a matlab function?

조회 수: 20 (최근 30일)
I have made and array in 3 dimensions initialize with zeros. I would like to import it in the simulink workspace and call it from a matlab function. Is that possible?

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 5월 14일
If it is a numeric array, then there are several possible ways. The easiest one is to use a constant block, write the name of the 3D variable as the value of the constant block, and then attach that constant block as input to the MATLAB function block.
  댓글 수: 19
Ameer Hamza
Ameer Hamza 2020년 5월 14일
Yes, If you have Simulink code, you can generate C/C++ code from your Simulink model.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by