0

I am working on simulink and I am using MATLAB 2022a & 2022b. I used in Simulink To_workspace block enter image description here

In order to save data in the workspace of MATLAB. As shown below

enter image description here

I got this info when I clicked on out that is available in the workspace. As shown below

enter image description here

The data that I want to plot is in SIM_OUT, as shown below: enter image description here

When I want to plot the Data column as below,

plot(SIM_OUT.Data)
I get the following error:
Unable to resolve the name 'SIM_OUT.Data'.

May I get assistance, please?

SH_IQ
  • 631
  • 5
  • 14

1 Answers1

1

It should be:

plot(out.SIM_OUT)
Mario Malic
  • 76
  • 1
  • 10