How to get rid of this error!! this is my code below for
for i = 18:-1:13
test=ff(i) [B,A] = oct3dsgn(ff(i),Fs,N); if narg y = filter(B,A,x); test=sum(y) P(i) = sum(y.^2)/m;
No products are associated with this question.
If the variable y is not a vector (if it is a matrix with more than 1 row and column), then sum(y.^2) is not a scalar. It looks like you are trying to assign it into a single element of P.