Filling up a matrix using loop
Mostrar comentarios más antiguos
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.
1 comentario
Björn
el 15 de Oct. de 2012
Can you give an example of your code?
Respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!