How to show name of current wave file in Matlab GUI
1 view (last 30 days)
Show older comments
Farzaneh
on 6 Oct 2015
Commented: Walter Roberson
on 8 Nov 2015
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 Comments
Accepted Answer
Walter Roberson
on 6 Oct 2015
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 Comments
Walter Roberson
on 6 Oct 2015
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"
More Answers (1)
See Also
Categories
Find more on Migrate GUIDE Apps 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!