How to Model For loop as Simulink Model?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Upendran muni
am 8 Feb. 2020
Kommentiert: Upendran muni
am 12 Feb. 2020
Hello All,
Suppose I want to model the folowing logic or code in Simulink.
for i=1:10
A(i)=i
end
% ^ How to model the above logic
% This Example hoe to model in simulink
for i=1:10
if i==1
a(i)=24;
else
a(i)=1+i;
end
end
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Subsystems finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!