Error using writematrix (line 134) Invalid parameter name: Range.

I am getting the error:
Error using writematrix (line 134)
Invalid parameter name: Range.
for running the following function:
writematrix([1],'se_inputs.csv','Range','B2')
Despite this implementation being given in the documentation.
I am using R2019a in Windows.

 採用された回答

Tommy
Tommy 2020 年 4 月 6 日

1 投票

The parameter 'Range' is only valid when writing to a spreadsheet file. Per the documentation:
"The following standard file extensions are recognized by the writing function:
  • .txt, .dat, or .csv for delimited text files
  • .xls, .xlsm, or .xlsx for Excel spreadsheet files
  • .xlsb for Excel spreadsheet files supported on systems with Excel for Windows"

2 件のコメント

Neilabh Banzal
Neilabh Banzal 2020 年 4 月 6 日
Thank you so mcuh @Tommy. I somehow missed that while reading the documentation.
Tommy
Tommy 2020 年 4 月 6 日
Happy to help!

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

2020 年 4 月 6 日

コメント済み:

2020 年 4 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by