In an assignment A(I) = B, the number of elements in B and I must be the same.
Ältere Kommentare anzeigen
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;
Antworten (1)
Tom Lane
am 11 Jul. 2013
1 Stimme
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.
1 Kommentar
Satya Narayaan Rao
am 11 Jul. 2013
Kategorien
Mehr zu Octave finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!