assassin2811
Newbie level 1
- Joined
- Jan 30, 2013
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,289
Hello everyone, i have a problem
my problem is :
∑(m=0 to m=10) (m+1)[δ(n-2m)- δ(n-2m-1)]; (0<= n <=25)
and my matlab code :
n = [0:25];
m = 0:1:10;
x = (m+1)*[impseq(2*m,0,25) - impseq(1-2*m,0,25)];
??? Error using ==> minus
Matrix dimensions must agree.
Error in ==> impseq at 21
x = [(n-n0) == 0];
note : i already add this impseq function to my matlab
i add from this webpage : https://www.mathworks.com/matlabcen...using-matlab/content/proakis/PWS_DSP/impseq.m
Nealy finish and i have this error, don't know what this error mean, anyone explain this error for me, and if u can fix this error(u can show me the way to fix instead of code) so thank you very much
my problem is :
∑(m=0 to m=10) (m+1)[δ(n-2m)- δ(n-2m-1)]; (0<= n <=25)
and my matlab code :
n = [0:25];
m = 0:1:10;
x = (m+1)*[impseq(2*m,0,25) - impseq(1-2*m,0,25)];
??? Error using ==> minus
Matrix dimensions must agree.
Error in ==> impseq at 21
x = [(n-n0) == 0];
note : i already add this impseq function to my matlab
i add from this webpage : https://www.mathworks.com/matlabcen...using-matlab/content/proakis/PWS_DSP/impseq.m
Nealy finish and i have this error, don't know what this error mean, anyone explain this error for me, and if u can fix this error(u can show me the way to fix instead of code) so thank you very much