using uigetfile to read the name of the file

1 回表示 (過去 30 日間)
Max
Max 2011 年 10 月 12 日
hello i have an avi file .. i need to read the file name of it by using any function
in simple i have the following codes . i need to plot the audio of the avi file ... i dont want to hard code the line 1 of the program ... is there any way to just read the file name with uiget file option
filename = 'match.avi';
hfmr = signalblks.MultimediaFileReader(filename, 'AudioOutputPort',true,'VideoOutputPort',false);
while ~isDone(hfmr)
audio = step(hfmr);
end
audio;

採用された回答

Image Analyst
Image Analyst 2011 年 10 月 12 日
Yes. There is. Try uigetfile(). Be sure to use both return arguments and combine them with fullfile().
  1 件のコメント
Max
Max 2011 年 10 月 13 日
thanx image analyst ...i tried and it worked

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by