フィルターのクリア

writing an array to excel

19 ビュー (過去 30 日間)
sri satya ravi
sri satya ravi 2016 年 10 月 19 日
編集済み: dpb 2016 年 10 月 19 日
I have an array of data (5000*1) in matlab.
I want to write the whole array into excel without using a loop.
xlswrite ('DIESEL_DATA_ALLROUTES_ALLANALYZERS',m_co2_g_sec(:),1,'B2:B2')
i wrote that but it is writing only one value.
is there any easy way to do that??

採用された回答

dpb
dpb 2016 年 10 月 19 日
編集済み: dpb 2016 年 10 月 19 日
You only provided a single cell in the range 'B2:B2' so you got what you asked for...use
rnge=num2str(length(m_co2_g_sec)+1,'B2:B%d');
xlswrite ('DIESEL_DATA_ALLROUTES_ALLANALYZERS',m_co2_g_sec(:),1,rnge)

その他の回答 (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