Filling up a matrix using loop
1 view (last 30 days)
Show older comments
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.
Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!