Select a point in Scope Graph
9 次查看(过去 30 天)
显示 更早的评论
How do I select a point in the graph generated using the scope? I want to know the magnitude of the graph.
0 个评论
采纳的回答
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
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/
更多回答(3 个)
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 :)
Kai Hao Then
2011-3-1
2 个评论
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')
另请参阅
类别
在 Help Center 和 File 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!