From: Yi on
Hey my matlab friends:

I have a question about how to output some parameters in a iteration loop.

I have a while loop

while (error > 1e-7 && iter <100)
....
....
(some other parameters)
error
iter = iter + 1

end

because the code is big, it has many similar loops, I can't identify which one is in which loop. Therefore I'm think to export iter, error and some other corresponding parameters in each iteration into a excel sheet?

After I finish running, I should be able to check these parameters in each iteration.

Best Regards

Yi Hu



I searched xlswrite, but I still don't know how to successfully export them.