What is a good way to check if a array had expanded?
Mostra commenti meno recenti
Hi All,
I have a expanding array that add in the current temperature value everytime my temperature sensor detect the current temperature to be 10°C and below. I would like to ask what is a good way to check if my array had expanded, example from 33 to 34 element?
Thank You!
Risposte (1)
the cyclist
il 20 Mar 2017
Modificato: the cyclist
il 20 Mar 2017
1 voto
Be aware, though, that organically "growing" an array like that, especially if it is large, will lead to poor memory usage, and slow execution time.
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!