【发布时间】:2019-07-30 07:32:08
【问题描述】:
我想使用 Matlab 连续读取文件并在专用窗口中显示它。所以我使用uicontrol 命令。它运作良好,但我想在每次更新内容时直接进入内容的末尾。有什么解决办法吗?
MWE:
figHandle = figure('units','pixels',...
'position',[40 40 240 940],...
'menubar','none',...
'resize','off',...
'numbertitle','off',...
'name','window custom')
txHandle = uicontrol('style','edit',...
'units','pix',...
'position',[10 60 220 830],...
'backgroundcolor','w',...
'HorizontalAlign','left',...
'min',0,'max',10,...
'enable','inactive');
txt=repmat('t|',1,100000);
set(txHandle,'string',cat(1,get(txHandle,'string'),{txt}));
【问题讨论】:
标签: matlab user-interface matlab-figure