Effacer les filtres
Effacer les filtres

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

44 vues (au cours des 30 derniers jours)
Neilabh Banzal
Neilabh Banzal le 6 Avr 2020
Commenté : Tommy le 6 Avr 2020
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.

Réponse acceptée

Tommy
Tommy le 6 Avr 2020
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 commentaires
Neilabh Banzal
Neilabh Banzal le 6 Avr 2020
Thank you so mcuh @Tommy. I somehow missed that while reading the documentation.
Tommy
Tommy le 6 Avr 2020
Happy to help!

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by