Too many output arguments error

조회 수: 3 (최근 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