writematrix: Invalid parameter name: WriteMode.
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Erik Taurus
am 22 Apr. 2020
Kommentiert: Sue-Jin Lin
am 13 Aug. 2021
Matlab R2019b
For some reason this doesn't work for me.
I'm following the example here:
M2 = [5 10 15 20 25; 30 35 40 45 50];
writematrix(M2,'M.xls','WriteMode','append');
Result:
Error using writematrix (line 134)
Invalid parameter name: WriteMode.
Using the example with no extra parameters
writematrix(M2,'M.xls');
Works without problem
[Edit]
From the page: Introduced in R2019a
0 Kommentare
Akzeptierte Antwort
Adam Danz
am 22 Apr. 2020
8 Kommentare
Sue-Jin Lin
am 13 Aug. 2021
I had the same issue with WriteMode in the same version of Matlab. Then I created a table using mytable = table(mydata1, mydata2); and then used writetable(mytable,'myresults.txt') to save it.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!