Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Matlab&Excell

Asked by Salvatore Turino

Salvatore Turino

on 17 Nov 2011

Hello i want to save one or more matrix from matlab to excel. i've tried the command:

xlswrite('Data.xls', Hscorr)

where Hscorr is the matrix that i want to save but i've got this error:

Warning: Could not start Excel server for export. XLSWRITE will attempt to write file in CSV format.

why?

0 Comments

Salvatore Turino

Salvatore Turino

Products

No products are associated with this question.

1 Answer

Answer by Fangjun Jiang

Fangjun Jiang

on 17 Nov 2011

xlswrite() requires the Excel COM server. It might be either you don't have MS Excel installed, or you are using a non-PC computer.

3 Comments

Salvatore Turino

Salvatore Turino

on 17 Nov 2011

uhm i'm on Mac-laptop. is it possibile to save it on txt then?

Fangjun Jiang

Fangjun Jiang

on 17 Nov 2011

Yes. save() with the -ASCII option. Or, dlmwrite(), csvwrite() or fprintf().

Walter Roberson

Walter Roberson

on 17 Nov 2011

And note that it is just a warning: like the warning says, it will write it as text as a CSV file. There are some restrictions, though: you can only write a pure numeric array doing that.

Fangjun Jiang

Fangjun Jiang

Contact us