How to define data array in simulink
89 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
madhan ravi
am 28 Mär. 2019
Use constant block, what do you mean by read and write the array individually?
Antworten (3)
madhan ravi
am 28 Mär. 2019


2 Kommentare
madhan ravi
am 28 Mär. 2019
Bearbeitet: madhan ravi
am 28 Mär. 2019
Share the picture of your model/upload your model by clicking the paper clip button.
rahut patil
am 28 Mär. 2019
2 Kommentare
madhan ravi
am 28 Mär. 2019

% MATLAB Function code
function y = fcn(u,index_number,value_assigned)
y = u;
y(index_number) = value_assigned;
Siehe auch
Kategorien
Mehr zu Subsystems finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!