exporting Matlab array to excel file ?

조회 수: 6 (최근 30일)
Abdul
Abdul 2016년 1월 13일
댓글: Image Analyst 2016년 1월 13일
Hi every one #
I'm trying to export an array which been saved to Matlab work-space with the name of IAE_V using the following code. Only the title been saved but not the values of IAE_V array
filename = 'testdata.xlsx';
c=vertcat(IAE_V);
A = {'IAE'; c};
sheet = 1;
xlRange = 'E1';
xlswrite(filename,A,sheet,xlRange)
thanks in advance for you
  댓글 수: 1
Image Analyst
Image Analyst 2016년 1월 13일
vertcat() takes two arguments. What two arrays do you want to concatenate?

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 1월 13일
Replace
c=vertcat(IAE_V);
with
c = num2cell(IAE_V(:));
  댓글 수: 1
Abdul
Abdul 2016년 1월 13일
thanks doesn't help, still no values

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by