Listdlg: Only display .wav files and how get filename from s?
Show older comments
Hey all,
With the following code taken (and adapted) from a search on here, I want to only display .wav files in the list. How is this possible?
Also, although i can check which file is chosen by its index in the list (using s), how do i get the string (filename and path etc) of the chosen list member?
d = dir;
str = {d.name};
[s,v] = listdlg('PromptString','Select a wav file:',...
'SelectionMode','single',...
'ListSize', [160 160],...
'Name', 'Choose Audio File..',...
'ListString',str)
Thanks,
Paul..
Accepted Answer
More Answers (0)
Categories
Find more on Scope Variables and Generate Names in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!