Plotting results from to workspace block in simulink model
Show older comments
Plotting data from simulink using to workspace block and getting error in code.
below is an excerpt of the relevant code and the corresponding SIMULINK block diagram. I have provided the out.simX information including variable name below. The out.simU block follows the same structure. I am using version 2020b.


t = simX.Time;
u1 = simU.Data(:,1);
u2 = simU.Data(:,2);
u3 = simU.Data(:,3);
u4 = simU.Data(:,4);
u5 = simU.Data(:,5);
x1 = simX.Data(:,1)
Accepted Answer
More Answers (0)
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!