Too many output arguments error

2 ビュー (過去 30 日間)
Samuel Vadovic
Samuel Vadovic 2023 年 11 月 2 日
コメント済み: Voss 2023 年 11 月 2 日
A = magic(5);
B = writematrix(A, 'M.xls');
command window:
Error using writematrix
Too many output arguments.
Error in faf (line 2)
B = writematrix(A, 'M.xls');
  1 件のコメント
Samuel Vadovic
Samuel Vadovic 2023 年 11 月 2 日
I really dont get why this started to happen suddenly...

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

採用された回答

Voss
Voss 2023 年 11 月 2 日
writematrix doesn't return any outputs.
Just say:
writematrix(A, 'M.xls')
What do you intend to be stored in B?
  2 件のコメント
Samuel Vadovic
Samuel Vadovic 2023 年 11 月 2 日
thanks, that solved it
Voss
Voss 2023 年 11 月 2 日
You're welcome!

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

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by