How to define data array in simulink
显示 更早的评论
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?
rahut patil
2019-3-28
回答(3 个)
madhan ravi
2019-3-28
0 个投票


2 个评论
rahut patil
2019-3-28
编辑:madhan ravi
2019-3-28
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
0 个投票
2 个评论
rahut patil
2019-3-28
madhan ravi
2019-3-28

% MATLAB Function code
function y = fcn(u,index_number,value_assigned)
y = u;
y(index_number) = value_assigned;
类别
在 帮助中心 和 File Exchange 中查找有关 Subsystems 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!