Variable lamb1 appears to change size on every loop iteration
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
maximag=max(imag(ee));
lamb1(i1,j1)=maximag;
hello sir i m getting warning as lamb1 changes the size in every loop,because of this warning my program became very slow,can you please help me out.
2 commentaires
Smitesh Patil
le 19 Juil 2021
Are you appending maximag to lamb1 inside a loop? Its not very clear from the example here.
Réponses (2)
Smitesh Patil
le 19 Juil 2021
This article on Preallocation of arrays should be helpful
0 commentaires
Voir également
Catégories
En savoir plus sur Text Analytics Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!