How to write to an excel sheet in specified columns only.

12 次查看(过去 30 天)
Hi I am using xlswrite(); to write my variable into excel sheet it works perfect but it writes my variable in the first row where as iw ant to write it in my first column and then i have another variable i want to write it in second column. Say for example my first variab is x-axisCordinates i do this xlswrite('testdata',x-axisCordinates) it write all the data in first row where as i wanted it in to be in the first column. Secondly after writing this i have another variable call y-axisCordinates i want to write it in the second column now. Thanks anyways Regards

采纳的回答

Yao Li
Yao Li 2014-5-21
1. xlswrite('testdata',x-axisCordinates') ,"'" to convert to a nx1 array
2. You can specify the range ('C1:C5')
xlswrite(filename,A,range)

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by