MATLAB: Save data in a special folder

save data i a folder

i used this dlmwrite('phase.txt',phase) to save the phase in a txt file.
how could i tell matlab to save this data in a spacial folder. for exemple
C:\A\b\data
thank you!

Best Answer

Instead of 'phase.txt' use the full file-name
dlmwrite('C:\A\b\data\phase.txt',phase)