필터 지우기
필터 지우기

how to preallocate a figure handle?

조회 수: 11 (최근 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 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