MATLAB Answers


write data to excel sheet column

Hi, I have certain data. I want to write this data into excel sheet columns into incremental order.. like first data will be written in 'A' column, second data to 'B' column.. third data to 'C' column.. and so on.. so how can i do this... please suggest code or method..


Log in to comment.

1 Answer

Answer by Azzi Abdelmalek
on 3 Oct 2012
Edited by Azzi Abdelmalek
on 3 Oct 2012
 Accepted Answer

A = {1,2,3,4}; B = {1,3,4}; C = {2,5,3,7,6} 


Thank you sir... This is the thing what i want... But in future i also need the same thing for upto more than z columns... so is there any code or logic to use 'for' loop to make code short...

I think there is a way, just ask your question. If it's not me who can answer, someone else can do.

Whether you can create a loop to make the code short depends on the representation of the data you want to store.

Log in to comment.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today