Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Is it possible to set all data(n).x = []; without a for cycle?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Is it possible to do the following withot a for cycle? for n = 1:N, data(n).x = []; end
0 Commenti
Risposte (1)
madhan ravi
il 30 Ott 2018
Modificato: madhan ravi
il 30 Ott 2018
data(1:N).x = []; %edited after Stephens comment
2 Commenti
Stephen23
il 30 Ott 2018
The square brackets are not required and just hinder JIT optimization.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!