Filter löschen
Filter löschen

problem Save function?

1 Ansicht (letzte 30 Tage)
LuS
LuS am 22 Sep. 2015
Kommentiert: Star Strider am 22 Sep. 2015
Hi,
I have this line in my script and the persisting error is:
save(outname,'d','ml','t','s','SD','aux');
Error using save Argument must contain a string.
Any idea why?
Many thanks!

Akzeptierte Antwort

Star Strider
Star Strider am 22 Sep. 2015
You didn’t tell us what ‘outname’ is, but it should be something like:
outname = 'MyFile.mat';
The filename must itself be a string, and it is best if it is specifically declared as a .mat file with the .mat extension to avoid confusion with workspace variable names.
  4 Kommentare
LuS
LuS am 22 Sep. 2015
Thank you very much :)
Star Strider
Star Strider am 22 Sep. 2015
My pleasure!
The sincerest form of appreciation here on MATLAB Answers is to Accept the Answer that most closely solves your problem.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by