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,32 @@
function [] = NT_TextToOutputWindow(ListH,Text)
if isempty(Text)
error(' Text for Outputwindow is empty ');
Text = 'error';
end
% FigH = figure('Name',windowname, ...
% 'menubar', 'none', ...
% 'NumberTitle','off');
%
% ListH = uicontrol('Style', 'listbox', ...
% 'Units', 'normalized', ...
% 'Position', [0,0,1,1], ...
% 'String', {}, ...
% 'Min', 0, 'Max', 2, ...
% 'Value', []);
newString = cat(1, get(ListH, 'String'), {Text});
set(ListH, 'String', newString);
drawnow;
end