MATLAB: Writematrix: Invalid parameter name: WriteMode.

MATLABr2019bwritematrix

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

Best Answer

WriteMode was not available in r2019a. Here's the documentation for writematrix r2019a.
Related Question