mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 11:07:48 +00:00
25 lines
669 B
Matlab
25 lines
669 B
Matlab
|
|
function [FigH,ListH] = NT_CreateOutputWindow(windowname,position)
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
FigH = figure('Name',windowname, ...
|
||
|
|
'menubar', 'none', ...
|
||
|
|
'Position', position,...
|
||
|
|
'NumberTitle','off');
|
||
|
|
|
||
|
|
ListH = uicontrol('Style', 'listbox', ...
|
||
|
|
'Units', 'normalized', ...
|
||
|
|
'Position', [0,0,1,1], ...
|
||
|
|
'String', {}, ...
|
||
|
|
'Min', 0, 'Max', 2, ...
|
||
|
|
'Value', []);
|
||
|
|
end
|
||
|
|
|
||
|
|
% for i = 1:10
|
||
|
|
% pause(0.5);
|
||
|
|
% Str = datestr(now, 0);
|
||
|
|
% newString = cat(1, get(ListH, 'String'), {Str});
|
||
|
|
% set(ListH, 'String', newString);
|
||
|
|
% drawnow;
|
||
|
|
% end
|