MATLAB Answers

John
0

How to save 2 column vectors to an excel file

Asked by John
on 25 Mar 2012

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

Log in to comment.

Tags

1 Answer

Answer by Thomas
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

Log in to comment.


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today