MATLAB Answers

papan dey

plot simulink signal into matlab

Asked by papan dey
on 4 Feb 2013

I have to plot a signals in a MATLAB gui.

With Simulink I make a simulation and I save the signal in the scope. I want to plot that signal in matlab I dont know what I have to do.i have used already plot(ScopeData.time, ScopeData.signals.values)command but it shows Undefined function or variable 'ScopeData'. now how can i solve it?



No products are associated with this question.

2 Answers

Answer by Ali
on 4 Feb 2013
 Accepted answer

save data to workspace as array by choosing the option from the scope giving required label u want let say sig .... then go to matlab workspace ad then try plot(sig )... hope it will work.......

  1 Comment

thank works. Now if i want to take the graph between a time limit such as 0.2s t0 0.5s, which command should i write?

Answer by Ali
on 4 Feb 2013

plot(sig) use obviously it in command window signal will be present in workspace


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!