writematrix: Invalid parameter name: WriteMode.

조회 수: 14 (최근 30일)
Erik Taurus
Erik Taurus 2020년 4월 22일
댓글: Sue-Jin Lin 2021년 8월 13일
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

채택된 답변

Adam Danz
Adam Danz 2020년 4월 22일
WriteMode was not available in r2019a. Here's the documentation for writematrix r2019a.
  댓글 수: 8
Erik Taurus
Erik Taurus 2020년 4월 27일
Thanks again ^^
Sue-Jin Lin
Sue-Jin Lin 2021년 8월 13일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Structured Data and XML Documents에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by