Effacer les filtres
Effacer les filtres

how to preallocate a figure handle?

11 vues (au cours des 30 derniers jours)
zilai si
zilai si le 7 Mai 2019
Réponse apportée : KSSV le 7 Mai 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);

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Object Programming dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by