필터 지우기
필터 지우기

Error in audiowrite command

조회 수: 23 (최근 30일)
Peyman Ghasemi
Peyman Ghasemi 2015년 10월 1일
댓글: Izadora Mustaffa 2021년 9월 19일
I am working on audio processing. I have a audio vector and I want to save it as a audio file. I tried this code, but it has the coming error:
audiowrite('Output.wav',o,fs)
_ Error using audiowrite>validateFilename (line 323) Cannot create file Output.wav. Permission Denied.
Error in audiowrite (line 105) [props.filename, fileExisted] = validateFilename( props.filename );_

채택된 답변

Walter Roberson
Walter Roberson 2015년 10월 1일
If Output.wav already exists in your current directory then it is either not owned by you or you do not have permission to write to it.
If Output.wav does not already exist in your current directory then you do not have permission to write in your current directory.
The most common cause for a problem like this is that you have your current directory set to one where MATLAB is installed instead of being set to one of your own directories.
  댓글 수: 5
Tjeerd Bakker
Tjeerd Bakker 2019년 9월 19일
In the command line, execute "cd .." as often as needed to get to the root of your PC. Then use "cd FOLDERNAME" to navigate to location where you have your .m script.
Izadora Mustaffa
Izadora Mustaffa 2021년 9월 19일
I changed the directory, but I still have the same problem.

댓글을 달려면 로그인하십시오.

추가 답변 (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