Hi ,please help , I need to plot signals u(t-3),u (t+1), z(-t-3),,z(2t+2),u(-2n-1) and u(3n+2) using subplot and add title ,grid and axis labels
이전 댓글 표시
Its about plotting signals in matlab using subplot.
답변 (2개)
Walter Roberson
2013년 4월 23일
subplot(1,6,1);
plot(u(t-3));
grid on
ylabel('u(t-3)')
subplot(1,6,2);
plot(u(t+1));
grid on
ylabel('u(t+1)');
subplot(1,6,3);
plot(z(-t-3));
grid on
ylabel('z(-t-3)');
and so on.
댓글 수: 4
nickey
2013년 4월 23일
Walter Roberson
2013년 4월 23일
What increment?
If you are referring to the changing number at the end of subplot(), then that number determines which of the 1 x 6 subsection the subplot is to be drawn in. If you were to use the same number each time, the plots would be drawn on top of each other.
Image Analyst
2013년 4월 24일
t and n should be arrays defining your x axis elements, like
t = 3 : 1 : 100; % or whatever.
I don't know of any integer n that will allow you to get integer index numbers for both -2*n-1 and 3*n+2, so I don't see how u can be a list of values of u.
Walter Roberson
2013년 4월 24일
... that would allow you to get positive index numbers ...
But perhaps u and z are functions instead of arrays.
nickey
2013년 4월 28일
편집: Walter Roberson
2013년 4월 28일
카테고리
도움말 센터 및 File Exchange에서 Hilbert and Walsh-Hadamard Transforms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!