フィルターのクリア

How to display the contents of a file in matlab GUI 2007b?

2 ビュー (過去 30 日間)
Dhruvh C
Dhruvh C 2014 年 6 月 17 日
回答済み: Dishant Arora 2014 年 6 月 17 日
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
if true
% figure,
% contents of figure
end
So from here how can I fetch the data of aviinfo() to a figure gui?

回答 (1 件)

Dishant Arora
Dishant Arora 2014 年 6 月 17 日
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)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by