how to preallocate a figure handle?

8 次查看(过去 30 天)
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);

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by