MATLAB: Save variables in a new directory (not current directory)

savevariables

Hi. I'd save variables from the workspace into a file putting it into a new directory (not the curr dir). I use the command 'save' but it doesn't it! Thanking you for your attention, I'm looking forward for your answers.

Best Answer

you have to use save with the entire path..
save('C:\My folder\filename','varname')
You could also look at the FULLFILE comamnd
doc fullfile