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

采纳的回答

Walter Roberson
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
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 个)

Farzaneh
Farzaneh 2015-11-8
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?

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by