Permission denied when I write an audio file
Show older comments
I created a variable 'z' and I flipped an variable containing an audio and I assigned that flipped data to the variable 'z'.
When I tried to write that variable 'z' as an audio file I am getting this error
"Permission denied".
This is what I did-
wavwrite(z,'audio.wav');
2 Comments
Daniel Shub
on 29 Feb 2012
Do you have write permission in the current directory?
Walter Roberson
on 29 Feb 2012
Windows 7? If so then what directory name are you trying to write into?
Answers (2)
Wayne King
on 29 Feb 2012
0 votes
Do you have write permission in the directory you are trying to write the .wav file?
Is a .wav file by that name and in that directory already open in some other program?
If the above are not true, please show the size and class of z.
gdb
on 11 Aug 2012
0 votes
right click on the matlab icon and run as administrator
1 Comment
Mogahed Sharafuden
on 30 Jan 2021
Thank you a lot
you saved me in 2021 ^^^^^^
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!