viewing four signals in scope

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개)

Ryan G
Ryan G 2012년 10월 8일

0 개 추천

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

kash
kash 2012년 10월 8일
Actually Ryan i need each wave below the other wave
Ryan G
Ryan G 2012년 10월 8일
Do you want to display 4 different axes or all 4 waves on 1 axes each below the next?
kash
kash 2012년 10월 9일
yes Ryan i need each axes for triangular wave as u said and a sine wave aboove it.I need a multicarrierwave
Ryan G
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.
kash
kash 2012년 10월 10일

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

카테고리

도움말 센터File Exchange에서 Schedule Model Components에 대해 자세히 알아보기

태그

질문:

2012년 10월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by