How can I plot my simulink data from the command window or script?
When I do i get:
>> sim('HW1_number10')
ans =
Simulink.SimulationOutput:
ScopeData: [53×3 double]
tout: [53×1 double]
yout: [1×1 Simulink.SimulationData.Dataset]
SimulationMetadata: [1×1 Simulink.SimulationMetadata]
ErrorMessage: [0x0 char]
>> plot(tout,ScopeData)
Undefined function or variable 'tout'.
Best Answer