How to define data array in simulink
조회 수: 109 (최근 30일)
이전 댓글 표시
Hello all,
I want to define the array in simulink which consist of 'n' elements in it.
Can I read and write the array elements individually? If yes. How.?
please tell me as early as possible.
Thanks and Regards,
Rahut Patil.
댓글 수: 2
madhan ravi
2019년 3월 28일
Use constant block, what do you mean by read and write the array individually?
답변 (3개)
madhan ravi
2019년 3월 28일


댓글 수: 2
madhan ravi
2019년 3월 28일
편집: madhan ravi
2019년 3월 28일
Share the picture of your model/upload your model by clicking the paper clip button.
rahut patil
2019년 3월 28일
댓글 수: 2
madhan ravi
2019년 3월 28일

% MATLAB Function code
function y = fcn(u,index_number,value_assigned)
y = u;
y(index_number) = value_assigned;
참고 항목
카테고리
Help Center 및 File Exchange에서 Subsystems에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!