Convolute ramp signal and step signal
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
RandomChikiBum
am 27 Dez. 2021
Kommentiert: Aditya Goel
am 30 Dez. 2021
I am supposed to convolute a unit ramp signal and a step signal (till t =10 secs) and I am getting an error while running my code
x = 1:1:10 ;
p = 0.1:0.1:1 ;
u = ones(1 , 10);
r = p.*u;
y = conv(r,u);
plot(x,y);
But all the arrays are of the same length i,e 10
0 Kommentare
Akzeptierte Antwort
VBBV
am 27 Dez. 2021
x = 1:1:10 ;
p = linspace(0.1,1,length(x));
u = ones(1 , length(x));
r = p.*u;
y = conv(r,u,'same');
plot(x,y);
Try using additional arguments for conv function
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!