Borrar filtros
Borrar filtros

how to preallocate a figure handle?

12 visualizaciones (últimos 30 días)
zilai si
zilai si el 7 de Mayo de 2019
Respondida: KSSV el 7 de Mayo de 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);

Respuesta aceptada

KSSV
KSSV el 7 de Mayo de 2019
h = gobjects(1,10) ;
for i = 1:10
h(i) = plot(rand(1,10)) ;
end

Más respuestas (0)

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by