help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem when writing a cell array( char and numeric data) to excel(.


From: ijourneaux
Subject: Re: Problem when writing a cell array( char and numeric data) to excel(.xlsx) file
Date: Wed, 18 Jun 2014 13:10:02 -0700 (PDT)

It seems to work for me with MXE Octave 3.8.2 and Excel 2007 using the script
proposed by dlsquires

cy1 = ones(1,634); cy2 = ones(1,634)*2; H = 1:634;
mixed{1, 10}="crctd Y1"; 
mixed{1, 11}="crctd Y2"; 
mixed{1, 12}="H"; 
i=0; 
for(i=[1:634]) 
  mixed{i+1, 10}=cy1(i); 
  i=i+1; 
endfor 
i=0; 
for(i=[1:634]) 
  mixed{i+1, 11}=cy2(i); 
  i=i+1; 
endfor 
i=0; 
for(i=[1:634]) 
  mixed{i+1, 12}=H(i); 
  i=i+1; 
endfor 
xlswrite('crctn.xlsx', mixed, 'First_sheet'); 



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Problem-when-writing-a-cell-array-char-and-numeric-data-to-excel-xlsx-file-tp4664851p4664859.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]