How to display the contents of a file in matlab GUI 2007b?
3 views (last 30 days)
Show older comments
Dhruvh C on 17 Jun 2014
Answered: Dishant Arora on 17 Jun 2014
I have a .m file from where I want to display the contents of the structure aviinfo() to a GUI? Can anybody help? As far as I know as a newbie the figure component can be invoked from the file like : br
% contents of figure
So from here how can I fetch the data of aviinfo() to a figure gui?
Dishant Arora on 17 Jun 2014
Here's a prototype:
imageInfo = imfinfo('pout.tif');
str = evalc('display(imageInfo)');
% Create a figure with static text
h = uicontrol('Style' , 'text' , 'Units' , 'Normalized'...
, 'Position' , [0.1 , 0.1 , 0.8 , 0.8]);
set(h , 'string' , str)
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!