viewing four signals in scope
1 次查看(过去 30 天)
显示 更早的评论
I have attached a mdl in which the scope should show 3 triangular wave and a sine wave ,but i get one triangular and sine wave.
and code for triangular wave generation is
ts=0.1;tim=2
t=-tim:ts:tim
y=repmat(max(t)-abs(t),1,10)
t=-tim:ts:-tim+length(y)*ts-ts
ty=[t' y']
please help
1 个评论
Walter Roberson
2012-10-9
Please read the guide to tags and retag this question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
回答(1 个)
Ryan G
2012-10-8
The three triangle waves, ty, are all the same and are being plotted on top of eachother. If you want to see all 3 on that plot, you can change the linestyle of the 3rd and 4th triangle wave. Do this by going to the scope parameters->style tab.
5 个评论
Ryan G
2012-10-9
In the scope parameter change the number of axes to 4. This will create 4 inputs to the scope. Remove the mux block and use these inputs instead.
另请参阅
类别
在 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!