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?

How to save 2 column vectors to an excel file

Asked by John

John (view profile)

on 25 Mar 2012
Accepted Answer by Thomas

Thomas (view profile)

Hi,

What is the correct syntax to save to vectors x and y to an excel file in columns A and B?

Is it

xlswrite(C:\Folder\name.xls, [x y])

0 Comments

John

John (view profile)

Tags

Products

No products are associated with this question.

1 Answer

Answer by Thomas

Thomas (view profile)

on 25 Mar 2012
Accepted answer

Yes that is the correct syntax..only if both x and y are column vectors..

xlswrite(C:\Folder\name.xls, [x y])

0 Comments

Thomas

Thomas (view profile)

Contact us