필터 지우기
필터 지우기

x(t) = 2*u((-t/4)+2), |t|<=10

조회 수: 4 (최근 30일)
milton
milton 2020년 11월 5일
답변: Ibrahem Ahmed 2021년 3월 16일
I want to plot the above equation in matlab but i dont know how to plot please help or provide me code

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 11월 5일
편집: Ameer Hamza 2020년 11월 5일
I guess u is the unit-step function. You can try this if you have symbolic toolbox
syms t
x = 2*heaviside(-t/4+2);
fplot(x, [-10 10]);
Without symbolic toolbox
u = @(x) 1*(x>=0);
t = -10:0.01:10;
x = 2*u(-t/4+2);
plot(t, x)
  댓글 수: 2
milton
milton 2020년 11월 5일
thakns a lot! it worked perfectly!
Ameer Hamza
Ameer Hamza 2020년 11월 5일
I am glad to be of help!

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

추가 답변 (1개)

Ibrahem Ahmed
Ibrahem Ahmed 2021년 3월 16일
u = @(x) 1*(x>=0); t = -10:0.01:10; x = 2*u(-t/4+2); plot(t, x)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by