hi,
in idwt, there was an error while
y1=idwt(ca3+cd3);
y2=idwt(y1+cd2);
y3=idwt(y2+cd1);
the error was plus Matrix dimensions must agree. the size of y2 and cd1 differs by one. that is y2 size 252 and cd1 size 251.
how can eliminate that error. suppose if we want increase the size of 251 to 252. then what procedure i have to follow.
thank u in advance

 Réponse acceptée

Walter Roberson
Walter Roberson le 30 Oct 2011

0 votes

Well, you could do
cd1(252) = NaN
and then the sizes would agree. The final element of the result would then be NaN as well, which is probably a good reminder that it is not well defined to add two vectors of different sizes.

1 commentaire

thangam
thangam le 30 Oct 2011
thanks for ur help sir.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by