how to solve this error

1 Ansicht (letzte 30 Tage)
ahmad ramadan
ahmad ramadan am 2 Nov. 2018
Kommentiert: madhan ravi am 2 Nov. 2018
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 Kommentare
Matt J
Matt J am 2 Nov. 2018
That doesn't look like a complete error message. No information about what caused it.
madhan ravi
madhan ravi am 2 Nov. 2018
Please don’t close question which has answer

Melden Sie sich an, um zu kommentieren.

Antworten (1)

KSSV
KSSV am 2 Nov. 2018
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);

Kategorien

Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by