How to define data array in simulink
90 ビュー (過去 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!