Too many input arguments while saving a struct?

5 ビュー (過去 30 日間)
Collegue
Collegue 2019 年 12 月 10 日
コメント済み: Collegue 2019 年 12 月 10 日
I hace a structs called Cars and I want to load the data.mat struct and after that replace the data.mat with the Cars struct and svae in the same directory as data.mat and replace it with the same name. For example
data. mat --> directory : c:/hello/data.mat
After creating Cars convert to the name data.mat and save in the directory.
save(fullfile(pwd,'data.mat'),'Car')
The problem is this:
Error using dataVisualization>save
Too many input arguments.
  2 件のコメント
Stephen23
Stephen23 2019 年 12 月 10 日
@Collegue: please show the complete output of this command:
which save -all
Collegue
Collegue 2019 年 12 月 10 日
Thank you I got it!

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by