필터 지우기
필터 지우기

plot simulink signal into matlab

조회 수: 4 (최근 30일)
papan dey
papan dey 2013년 2월 4일
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?

채택된 답변

Ali
Ali 2013년 2월 4일
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
papan dey
papan dey 2013년 2월 5일
thank you.it 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?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Ali
Ali 2013년 2월 4일
plot(sig) use obviously it in command window signal will be present in workspace

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by