xlswrite function

??? Error using ==> xlswrite at 213 Invoke Error, Dispatch Exception: Source: Microsoft Excel Description: SaveAs method of Workbook class failed Help File: xlmain11.chm Help Context ID: 0
The above error message is what im receiving when im trying to use xls write function.
Can anyone help me in solving this

4 Commenti

Walter Roberson
Walter Roberson il 6 Giu 2011
Does it happen even if you try to save something very simple like a scalar value?
Kaustubha Govind
Kaustubha Govind il 6 Giu 2011
Also, does the error occur only when saving to a particular file? For example, try:
xlswrite('test.xlsx', 1)
Ken Atwell
Ken Atwell il 6 Giu 2011
Can you also tell us:
1. Version of MATLAB, and whether its 32-bit or 64-bit
2. Version of Office, and whether (in the case of 2010) its 64-bit
3. Version of Windows (XP, Vista, 7), and whether it is 32-bit or 64-bit
Karla Rodríguez
Karla Rodríguez il 6 Set 2017
You should put the path where you want to write the Excel file, something like that: xlswrite('C:\Users\KARLI\Desktop\karla.xls', a); Usually Works in Desktop

Accedi per commentare.

Risposte (2)

Matthew Worker
Matthew Worker il 8 Giu 2011

0 voti

Does the name have a "/" in it or other special chars? I can generate the same error you get if I try that.
vijay sabawat
vijay sabawat il 8 Giu 2011

0 voti

I found the bug..
The bug was in my code i was changing the file path. I mean asking it to save the file in a nonexistent location. Thanks for the answers though.

1 Commento

Noam Handler
Noam Handler il 20 Feb 2024
I had a similar error.
My bug was that the name was too long.

Accedi per commentare.

Tag

Richiesto:

il 6 Giu 2011

Commentato:

il 20 Feb 2024

Community Treasure Hunt

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

Start Hunting!

Translated by