필터 지우기
필터 지우기

Xlswrite, problem. How to resolve

조회 수: 1 (최근 30일)
Marcelo Costa
Marcelo Costa 2013년 11월 16일
댓글: Marcelo Costa 2013년 11월 16일
I Have 12 variables
vq1 ... vq12
This is my command.
A={vq1;vq2;vq3;vq4;vq5;vq6;vq7;vq8;vq9;vq10;vq11;vq12;}
xlswrite('quadril.xlsx',A)
But this command do not save variables vq2 until vq12, only vq1.
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2013년 11월 16일
What are your variables? their sizes?
the cyclist
the cyclist 2013년 11월 16일
Do you get any warning or error message?

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

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 11월 16일
Look at this example
a=rand(4,2);
b=rand(10,5);
% a and b should have, at least the same number of columns
aa=cell(4,5)
aa(1:4,1:2)=num2cell(a)
bb=num2cell(b);
A=[aa;bb]
xlswrite('quadril.xlsx',A)

카테고리

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