The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: how to write a cell in excel file
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 25
Registered: 11/26/12
how to write a cell in excel file
Posted: Dec 11, 2012 4:08 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear all,

could you please advise on how I could write cell information in excel file. here is some part of the code.

for i=1:100
xlswrite('P:\....excelfile.xls',out_weight{i}, 'Sheet2','b9');


out_weight{i} represents the cell. The matrices in the cell do not have the same size so unfortunately I cannot convert my cell into a matrix and write it in excel. As you can see in my code I used a loop which I am sure is not the most efficient way to do what I want to do. Any thought on this?
My second problem is regarding the loop, every time it loops the column of the cell changes but I do not manage to change the location in excel file. What I mean is that every time it loops it should change from b9 to c9 to d9 etc unfortunately I do not manage to include that in my code. Any advice is most welcome. Thanks a lot


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.