Error using save, Unable to write file: Invalid argument.

33 views (last 30 days)
Hey y'all,
I've never had this problem with other scripts I've run but all of a sudden when I try and finish off and save my results, I'm getting this error:
>> if duration==1; save result_param1 xx yy vv xyloc EEPss ChanLoc xqs yqs vqs vs im ;end
Error using save
Unable to write file result_param1: Invalid argument.
I'm using R2018b if that helps!
  2 Comments
Adam
Adam on 16 Apr 2019
Seems to work fine for me when I tested with an example of my own, although why you would use that syntax rather than the much more readable function syntax I don't know! e.g.
save( 'myFilename.mat', 'myParam1', 'myParam2', ... )
Alexandra Rowan O'Donnell
Alexandra Rowan O'Donnell on 16 Apr 2019
The only reason I'm using that syntax is because it's not actually my code, it's my postdoc's, and I've changed so much of it already I'm trying not to rewrite the whole thing haha

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB 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!