matlab gui弹出figure,GUI 动态画图总是弹出新figure

我用定时器每隔2秒采集一次数据,并且处理之后画图显示在坐标轴里,可是从第二次处理开始总是弹出新figure,我试了论坛里的各种方法,比如设置坐标轴HandleVisibility 为‘on’, NextPlot为‘Replace’,plot时指定坐标轴等等,都不行,还是会弹出新figure,可是我debug单步运行时却没有问题,哪位大神帮忙解决一下啊!

定时器循环执行函数代码如下:

% --- Execute on timer function

function DataAnalyze(hObject,eventdata,handles)

% hObject    handle to target_wavelength (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

a = 'A';

b = 'B';

% timer_count is the number of TimerFcn executions that have occurred

% timer_count = get(handles.timer,'TasksExecuted')-1;

timer_count = getappdata(gcf,'Timer_count');

% start_cell is the begin range for xlsread

start_cell = strcat(char

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值