Plot Animation in GUI

조회 수: 3 (최근 30일)
Christian Runkel
Christian Runkel 2018년 3월 8일
답변: Jan 2018년 3월 8일
Hi, I try to animate a 3DPLot in GUI with a PushButton. The Animation itself works, but it won't stay in the axes-box and switches to a figure. How can I force it to stay in the axes-box?
function pushbutton8_Callback(hObject, eventdata, handles)
az = 45;
tmr = timer('ExecutionMode', 'FixedRate','Period', 0.03,'TasksToExecute', 360, 'TimerFcn', {@timerCallback});
start(tmr);
function timerCallback(hObj, eventdata)
az = az + 1;
view(az,22.5);
end
end
  댓글 수: 1
Jan
Jan 2018년 3월 8일
In which axes?

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2018년 3월 8일
Maybe you mean:
function timerCallback(hObj, eventdata)
az = az + 1;
view(handles.axes1, az, 22.5);
end
if handles.axes1 is the the handle of the wanted axes object.

카테고리

Help CenterFile Exchange에서 Animation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by