Azzera filtri
Azzera filtri

how to preallocate a figure handle?

11 visualizzazioni (ultimi 30 giorni)
zilai si
zilai si il 7 Mag 2019
Risposto: KSSV il 7 Mag 2019
Hello everyone, I wonder how to preallocate the array G whose element is figure handle like this?
for i = 1 : 4
G(k) = plot(a, b);

Risposta accettata

KSSV
KSSV il 7 Mag 2019
h = gobjects(1,10) ;
for i = 1:10
h(i) = plot(rand(1,10)) ;
end

Più risposte (0)

Categorie

Scopri di più su Graphics Object Programming in Help Center e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by