How to write a vector to excel?

60 ビュー (過去 30 日間)
Khanh
Khanh 2014 年 10 月 4 日
コメント済み: Khanh 2014 年 10 月 4 日
Hi,
I have an array like this: a=0:100:500
I want to write its each element to each cell of excel.
I know to do it the array has to become as a'=[0,100,200,300,400,500];
But how I can get the array a' which created by adding comma.
Any help would be greatly appreciated.
Thanks.

採用された回答

Image Analyst
Image Analyst 2014 年 10 月 4 日
I don't understand the comma stuff you said, and don't know why you have an apostrophe like you want to transpose a or something. But to write a vector to Excel and have it look like what you showed, use:
xlswrite(fullFileName, a, 'D23');
  2 件のコメント
Khanh
Khanh 2014 年 10 月 4 日
Thanks. You're right. I'm just a little bit silly.
Khanh
Khanh 2014 年 10 月 4 日
Apostrophe a (a') is just a name I give to a new array. Sorry, I should name it correctly.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by