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

 Accepted Answer

Walter Roberson
Walter Roberson on 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 Comment

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

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!