Filling up a matrix using loop

I have an output matrix that I need to fill. Every time I run the loop a row has to be fixed. I know my coloumn size which is 3. If I give an excess row number and fill the matrix with zeros i.e. R = zeros (1000,3) and run my code, there seems to be an error in the computation process. If I give a lower value, it does compute, but it stops much earlier than when it is supposed to stop. Say I actually have 333.1 rows which I convert to 334. When I give 334 as dimension to rows, I get an error in my computation. When I give 310, my program stops at say 306th iteration. This seems a unique error. Help on this would be appreciated.

Antworten (0)

Kategorien

Gefragt:

am 15 Okt. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by