Save function doesn't do anything

23 ビュー (過去 30 日間)
Joshua Morey
Joshua Morey 2020 年 6 月 26 日
コメント済み: Joshua Morey 2020 年 6 月 26 日
I am trying to save variables off as a .mat file using the save function, but no matter what I do, the function doesn't do anything. I would include an example of my code, but I have tried it every which way and still nothing. Even copy and pasting examples from the mathworks page doesn't work. It's as if nothing even happens. The command executes almost imediately and there is no file to be found, and trying to load the file back in throws an error saying the file doesn't exist.

回答 (1 件)

Steven Lord
Steven Lord 2020 年 6 月 26 日
Let's make sure you're calling the correct version of the save function. What does this command show?
which -all save
  4 件のコメント
Walter Roberson
Walter Roberson 2020 年 6 月 26 日
You need to delete or rename C:\Users\Josh\Documents\MATLAB\save.m as that is interfering with using the Mathworks save()
Joshua Morey
Joshua Morey 2020 年 6 月 26 日
Oh I see. I can't believe I created a function with the name save! Thank you so much!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by