MATLAB Answers

How can I save a variable to external harddisk

3 views (last 30 days)
Uerm on 28 Oct 2019
Commented: Uerm on 28 Oct 2019
I am trying to save two variables using the save function. However, this function saves the variables in the same folder as the function/code location. Is there a way to save the variables directly to an external harddisk that is connected to the computer?


Sign in to comment.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 28 Oct 2019
save(FileName, Variables). Specify the full path of your file, e.g. 'd:\mydoc\file.mat'

  1 Comment

Sign in to comment.

More Answers (0)

Sign in to answer this question.