Something along these lines?
h = uicontrol('Style','edit',...
'Units','normalized',...
'Position',[0.1 0.1 0.8 0.5],...
'String','Hello World',...
'Callback',[],...
'Max',10);
S = imaqhwinfo;
fn = fieldnames(S);
str = '';
for ii = 1:numel(fn)
str = [str,fn{ii},S(1,1).(fn{ii}),sprintf('\n')];
end
set(h,'String',str)
You'll need to tune the string to your specific size/style etc.
