how can I do this in mat lab

조회 수: 2 (최근 30일)
Shouq A
Shouq A 2020년 4월 6일
댓글: Shouq A 2020년 4월 6일
how can i type this equation in matlab x(t)= cos(πt)[u(t) − u(t − 1)] and h(t) = 1.5[u(t) − u(t − 1.5)] ???

채택된 답변

Birdman
Birdman 2020년 4월 6일
syms u(t) x(t) h(t)
u(t)=piecewise(t>=0,1,0);
x(t)=cos(pi*t)*(u(t)-u(t-1));
h(t)=1.5*(u(t)-u(t-1.5));
%%plot
t=0:0.001:5;
plot(t,x(t),t,h(t));legend('x(t)','h(t)')
  댓글 수: 1
Shouq A
Shouq A 2020년 4월 6일
thank you so much

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

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

Community Treasure Hunt

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

Start Hunting!

Translated by