Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
How to rectify errors while using 'xlswrite' function?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello everyone,
I am using 'xlswrite' function for writing data to an excel-sheet. My code is something like this -
values = {1, 2, 3 ; 4, 5, 'x' ; 7, 8, 9};
headers = {'First', 'Second', 'Third'};
xlswrite('myExample.xls', [headers; values]);
I am getting following error message:
"Error using xlswrite (line 220)
Invoke Error, Dispatch Exception:
Source: Microsoft Office Excel
Description: 'C:\Users\Admin\Documents\MATLAB\myExample.xls' could not be
found. Check the spelling of the file name, and verify that the file
location is correct.
If you are trying to open the file from your list of most recently used
files, make sure that the file has not been renamed, moved, or deleted.
Help File: C:\Program Files\Microsoft Office\Office12\1033\XLMAIN11.CHM
Help Context ID: 0"
Now, kindly suggest how to rectify above mentioned error. Thanks!
2 comentarios
Walter Roberson
el 3 de Sept. de 2016
Make sure that C:\Users\Admin\Documents\MATLAB\myExample.xls does not already exist as a link to somewhere else, and make sure that you have write access to C:\Users\Admin\Documents\MATLAB\
Respuestas (1)
Sindhuja Parimalarangan
el 6 de Sept. de 2016
This error is generated directly by Excel upon opening the file from MATLAB. You can find more information about this issue on Microsoft's website:
1 comentario
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!