save a matrix in a loop.

Asked by madhuri sachane on 16 May 2012
Latest activity Commented on by afaf on 11 Mar 2013

I have the output in matrix form in a for loop And i want to store it in a file.

>>for i=1:3 >>input_image=['input1\1\',num2str(i),'.bmp'];

>>[C] =demowithwavwletmaxcomp(input_image);

>>end

I need to save matrix C for each iteration with incrementing name. And I also want to access these matrices for the matching purpose. for hamming distance. I need help..please suggest me..

0 Comments

madhuri sachane

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 16 May 2012
Accepted answer
   C{i} = ....

Then the matrices would be C{1}, C{2} and so on.

2 Comments

afaf on 10 Mar 2013

I got this error:

??? Cell contents assignment to a non-cell array object.

Why?!

afaf on 11 Mar 2013

That was because I used the same variable "C{i}" before !

Sorry..

Walter Roberson

Contact us