matlab and excel data saving

hi!
how cold i save a data (output of matlab) in a excel sheet!
data :
ATT phi
1 2
2 6
3 3
2 2
5 7
i know it is with xlsxwrite but i dont know how to use it in my data. thx

3 comentarios

Rica
Rica el 12 de Nov. de 2012
i get the solution:
xlswrite('tempdata.xls', [att phi], 'Sheet1', 'A1')
thx
Adnan Ali
Adnan Ali el 14 de Ag. de 2014
I am also find stuff like that. it will save data in one row. what if we want to save it in more than one row?
Adam
Adam el 14 de Ag. de 2014
I've never used it, but the help file suggests the xlRange 4th argument allows you to specify the rectangular portion of the excel spreadsheet to write to as e.g. C1:D15

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 14 de Ag. de 2014

0 votos

Adnan:
You specify the upper left corner and it will put the full 2D array of your data with it's (1,1) element at that upper left cell you specified. You can also specify the full range if you want but it's not necessary for example if you have a 2x2 array and want it to go into cells B3, C3, B4, and C4, you can specify 'B3' or you can specify 'B3..C4' - either way will work.

Etiquetas

Preguntada:

el 12 de Nov. de 2012

Respondida:

el 14 de Ag. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by