add a simple MatLab example with Output Windows

This commit is contained in:
Christian_x7
2020-10-24 11:47:42 +02:00
parent 9eedf15e9e
commit 258a98f7d5
5 changed files with 300 additions and 0 deletions
@@ -0,0 +1,24 @@
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