using uigetfile to read the name of the file

조회 수: 6 (최근 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 CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by