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!