Matlab GUI plot: Refersh input data and update plot
조회 수: 3 (최근 30일)
이전 댓글 표시
I am working with Matlab GUI. I am having problem that the plots are not updated when i change the input data. My code is long but here is the plotting function i am using.
axes(handles.Diagram1) hold all for i=1:6:numel(t) plot(rn,E(i,:)/1000000)
end
The tag of the axis plot is "Diagram1!
Any Help is much appriciated!
댓글 수: 0
답변 (1개)
David Sanchez
2013년 5월 10일
Try to use "drawnow" right after the plot() command. A small pause also helps: pause(0.001)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!