exporting from matlab to excel

조회 수: 1 (최근 30일)
joseph Frank
joseph Frank 2013년 7월 14일
I have 236 vectors and arrays named A, B, C.....etc... Some of them are cell arrays and some of them are double vectors. How can I export the data to excel in one sheet where the order of variables is alphabetical? mixing arrays and vectors are a challenge to me as well as exporting them alphabetically in one sheet.
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2013년 7월 14일
What is the size of these cell arrays ?
joseph Frank
joseph Frank 2013년 7월 24일
Each vector or array is 140 rows

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

채택된 답변

Narges M
Narges M 2013년 7월 24일
편집: Narges M 2013년 7월 24일
use this example:
A = {1;2;3;4};
B = [9;8;7;6];
C = {5;6;7;8};
D = [5;4;3;2];
for i='A':'D'
eval(sprintf('last = length(%s);', i));
eval(sprintf('xlswrite(''C:\\test.xls'',%s,1,''%s1: %s%d'');',i,i,i,last));
end

추가 답변 (1개)

Darin McCoy
Darin McCoy 2013년 7월 15일
I recommend creating sample data so users can mess with what you're working with

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by