필터 지우기
필터 지우기

how to solve this error

조회 수: 3 (최근 30일)
ahmad ramadan
ahmad ramadan 2018년 11월 2일
댓글: madhan ravi 2018년 11월 2일
i want to sample the function at fs=10,000
i have this code when i run it i get error
t=0:1/50e3:10e-3;
d=[0:1/1e3:10e-3;0.8.^(0:10)];
x2=pulstran(t,d,'pulse',10e3,0.1);
figure(44)
plot(t,x2);
  댓글 수: 3
Matt J
Matt J 2018년 11월 2일
That doesn't look like a complete error message. No information about what caused it.
madhan ravi
madhan ravi 2018년 11월 2일
Please don’t close question which has answer

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

답변 (1개)

KSSV
KSSV 2018년 11월 2일
You need to transpose d and use as input.
t=0:1/50e3:10e-3;
d=[0:1/1e3:10e-3;0.8.^(0:10)]';
x2=pulstran(t,d,'pulse',10e3,0.1);
figure(44)
plot(t,x2);

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by