MATLAB: Saving a file created (.wav , txt … ) to another folder in the current directory

save

Hi, I wanted to ask to see if someone could help me, about how I could save a .wav file for instance created in a specific directory folder , ie is saved in the folder I want. Thanks in advanced!

Best Answer

There are several ways to build file names that include the directory you want to save your file in. The easiest option is to use the fullfile function to create it. Then use the appropriate function (for instance audiowrite for the .wav file) to save it.