From: Walter Roberson on 23 May 2010 22:58 paul erasto wrote: > however, i think svd(cA2....) is different from svd(ca2....). Yes, and I would never name variables with such similar names. (Well, not unless I was deliberately hiding what was going on.) > i get the following errors: > ??? Index exceeds matrix dimensions. > > Error in ==> trialcum at 112 > [cA2u cA2s cA2v]=svd(cA2(y:y+blocksize-1,x:x+blocksize-1)); That hints that you are running off of the end of the matrix, that y+blocksize or x+blocksize is past the end of the matrix. > Am also still new to matlab, got this code from somewhere on the net. If > possible could u please debug it for me.....I'll be so greatful. Sorry, I do not have the appropriate toolbox to run the code. In your command window, type these two commands: dbstop if error dbstop if warning and then run the code again. When it stops, figure out what is going on.
First
|
Prev
|
Pages: 1 2 Prev: Save image as tif by using imwrite Next: Trying To Understand The kstest2() Script |