How to show name of current wave file in Matlab GUI

1 view (last 30 days)
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

Accepted Answer

Walter Roberson
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
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"

Sign in to comment.

More Answers (1)

Farzaneh
Farzaneh on 8 Nov 2015
I need ur help again! currently i can show and play 1 file, how can i play 1000 files, play one , select ok or nok and then go the next file?

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!