Undefined function or variable 'sigshift'. how can i shift the signal?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ahmed allaheani
am 19 Feb. 2016
Kommentiert: Masudur Rahman
am 24 Jul. 2022
i got this code
nx = [-3:3]; x = [-4 5 1 -2 -3 0 2];
subplot(2,2,1);
stem(nx,x);
axis([-4 8 -5 9]);
ny = [-1:5];
y = [6 -3 -1 0 8 7 -2];
subplot(2,2,2);
stem(ny,y);
axis([-4 8 -5 9]);
[c,nc]=sigshift(y,ny,2);
subplot(2,2,3);
stem(nc,c);
axis([-4 8 -5 9]);
[u,nu] = sigadd(x,nx,c,nc);
subplot(2,2,4);
stem(nu,u);
axis([-4 8 -5 9])
and i got =>
Undefined function or variable 'sigshift'.
Error in hw2a (line 9)
[c,nc]=sigshift(y,ny,2);
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 19 Feb. 2016
sigshift() is a minor function that can be found in http://www.mathworks.com/matlabcentral/fileexchange/2189-digital-signal-processing-using-matlab
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Subplots 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!