For loops in simulink
Mostra commenti meno recenti
I have a 36x5 matrix. Each column of this matrix is an input to a simulink block. I need to create a for loop for my simulink model using the matrix. For example, the first column of the matrix generates an output from the simulink block, then the second column should do the same and so on. All the output data should be sent to the workspace. What is the best way to generate this for loop? Thanks.
Risposte (1)
KL
il 4 Ott 2017
data = rand(35,1);
time = 1:35;
simulink_variable = timeseries(data,time)
1 Commento
Juan Nunez
il 11 Ott 2017
Categorie
Scopri di più su Simulink Coder in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!