How to show name of current wave file in Matlab GUI
1 次查看(过去 30 天)
显示 更早的评论
Hello
I am programming a very simple program. I have 1000 wave files. My program open a folder, select a sound and play and at the end this sound should be judge. I would like to show the name of the sound which is playing, how should i?with uicontrol or static text or what?
Thanks
0 个评论
采纳的回答
Walter Roberson
2015-10-6
If you have a graphics drawing window then you can text() it into place or you can title() it into place. If you do not have a graphics drawing window then you can set the String property of a uicontrol('Style', 'text') to be the file name.
3 个评论
Walter Roberson
2015-10-6
Right after the line
file_name=uigetfile({'*.wav'},'Select the Wave File','MultiSelect','on');
add
set(handles.pushbutton2, 'String', file_name);
After that, read
and re-write your program to eliminate the use of "global"
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!