please i need the matlab code for this question

1) Plot the signal x(t)=cost(ω_0 t) for 0≤t≤10 and ω_0=-2π,-π,π,2π
2) Assume x(t)=t,for 0≤t≤2. Plot x(t-1),x(-t+1),and-x(-t).

답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 12월 27일

1 개 추천

Use plot function
doc plot

댓글 수: 1

Example
t=0:0.1:10
y=sin(t)
plot(t,y)
For more details look at
doc plot
help plot

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

Sean de Wolski
Sean de Wolski 2013년 12월 27일
편집: Sean de Wolski 2013년 12월 27일

0 개 추천

t = (0:0.1:10).';
w_0 = linspace(-2*pi,2*pi,100);
surf(t*ones(size(w_0)),ones(size(t))*w_0,cos(t*w_0))

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

질문:

2013년 12월 27일

편집:

2013년 12월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by