Filling up a matrix using loop
Afficher commentaires plus anciens
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 commentaire
Björn
le 15 Oct 2012
Can you give an example of your code?
Réponses (0)
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!