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 Kommentar

Samuel Vadovic
Samuel Vadovic am 2 Nov. 2023
I really dont get why this started to happen suddenly...

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Voss
Voss am 2 Nov. 2023

0 Stimmen

writematrix doesn't return any outputs.
Just say:
writematrix(A, 'M.xls')
What do you intend to be stored in B?

2 Kommentare

Samuel Vadovic
Samuel Vadovic am 2 Nov. 2023
thanks, that solved it
Voss
Voss am 2 Nov. 2023
You're welcome!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Gefragt:

am 2 Nov. 2023

Kommentiert:

am 2 Nov. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by