Select a point in Scope Graph

조회 수: 9 (최근 30일)
Kai Hao Then
Kai Hao Then 2011년 2월 28일
답변: Angelina 2024년 8월 28일
How do I select a point in the graph generated using the scope? I want to know the magnitude of the graph.

채택된 답변

Paulo Silva
Paulo Silva 2011년 2월 28일
For what I can see you can't do it directly in the scope (matlab 2008b), some options:
#1 Export the signals to matlab and analyse them in there, you can save the scope data in a scope option or use the To Worspace block.
#2 Using the MinMax Running Resettable you can see the magnitude max and min of your signal, send the output of that block to one display block.
  댓글 수: 8
Paulo Silva
Paulo Silva 2011년 2월 28일
Here's another of Doug's excellent video tutorials, he must have special powers to know what tutorials do we need http://blogs.mathworks.com/videos/2011/02/25/creating-a-custom-data-cursor/
Kai Hao Then
Kai Hao Then 2011년 3월 1일
Thanks!

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

추가 답변 (3개)

Paulo Silva
Paulo Silva 2011년 3월 1일
Here's one way I just learned using the simplot function, example
vdp
set_param(gcs, 'SaveOutput', 'on')
set_param(gcs, 'SaveFormat', 'StructureWithTime')
sim(gcs)
simplot(yout)
I'm sorry for discovering this only now but it works great :)
  댓글 수: 1
Kai Hao Then
Kai Hao Then 2011년 3월 1일
Hey no problem. Everyone learns. =)

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


Kai Hao Then
Kai Hao Then 2011년 3월 1일
I have tried this command:
plot(simout.time,simout.signals.values)
It works great.
Now let's say I have 3 simout(s) i.e.
(a) simout
(b) simout1
(c) simout2
How do I type the command to show these 3 graphs?
  댓글 수: 2
Paulo Silva
Paulo Silva 2011년 3월 1일
%in diferent axes
subplot(311)
plot(simout.time,simout.signals.values)
subplot(312)
plot(simout1.time,simout1.signals.values)
subplot(313)
plot(simout2.time,simout2.signals.values)
%in the same axes
hold on
plot(simout.time,simout.signals.values)
plot(simout1.time,simout1.signals.values)
plot(simout2.time,simout2.signals.values)
legend('simout','simout1','simout2')
Kai Hao Then
Kai Hao Then 2011년 3월 2일
Thanks!

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


Angelina
Angelina 2024년 8월 28일
bagaimana cara mengembalikan workspace pada matlab

카테고리

Help CenterFile Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by