Saving text and data to an excel file

조회 수: 1 (최근 30일)
Jenny
Jenny 2014년 1월 16일
답변: Friedrich 2014년 1월 16일
If I have the following text and data:
a = {'N', 'NE', 'E'};
b=[1 2 3];
How to I save the text and data as a 2 x 3 matrix to an excel file?
N E S
1 2 3

채택된 답변

Friedrich
Friedrich 2014년 1월 16일
Hi,
try
xlswrite('out.xlsx',[a;num2cell(b)])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by