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 Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by