Clear Filters
Clear Filters

Xlswrite, problem. How to resolve

1 view (last 30 days)
Marcelo Costa
Marcelo Costa on 16 Nov 2013
Commented: Marcelo Costa on 16 Nov 2013
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 Comments
Azzi Abdelmalek
Azzi Abdelmalek on 16 Nov 2013
What are your variables? their sizes?
the cyclist
the cyclist on 16 Nov 2013
Do you get any warning or error message?

Sign in to comment.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 16 Nov 2013
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)

Tags

Community Treasure Hunt

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

Start Hunting!