how to solve this error

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 件のコメント

ahmad ramadan
ahmad ramadan 2018 年 11 月 2 日
編集済み: Matt J 2018 年 11 月 2 日
the error that i get
Error in test111111 (line 4)
x2=pulstran(t,d,'pulse',10e3,0.1);
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 日

0 投票

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);

製品

タグ

質問済み:

2018 年 11 月 2 日

コメント済み:

2018 年 11 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by