writetable command is not working

16 ビュー (過去 30 日間)
Stelios Fanourakis
Stelios Fanourakis 2019 年 5 月 28 日
コメント済み: Stelios Fanourakis 2019 年 5 月 28 日
Hi
I am using this command to export from Matlab to Excel
o = array2table(Pd)
writetable(o,'ManualVsAutomated.xls','Sheet',9,'Range','B2:B824')
I am not getting any error. Supposely it works, but it won't export anything to the specidfied sheet and column I have assigned.
The values I am trying to export are Double where I am converting them to table prior to exporting
Here is a sample of my data if that helps
1.69061699951815
1.68312189837353
1.68095380407105
1.67073607284844
1.6599464457171
1.64856723848689
1.63658043945657
  3 件のコメント
Stelios Fanourakis
Stelios Fanourakis 2019 年 5 月 28 日
Here is the o variable after is converted to table
Stelios Fanourakis
Stelios Fanourakis 2019 年 5 月 28 日
I found the mistake.
Sheet 9 was displaced among the sheets in excel and Matlab couldn't trace as its name to fill the data. So, it took the last sheet which was Sheet8 and filled the data there, since sheet9 had been moved at the beggining of the sheet series. Weird!

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

回答 (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