how to preallocate a figure handle?

10 ビュー (過去 30 日間)
zilai si
zilai si 2019 年 5 月 7 日
回答済み: KSSV 2019 年 5 月 7 日
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 Center および File ExchangeGraphics Object Programming についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by