Excel XLSWRITE problem (help)

14 ビュー (過去 30 日間)
zhixuan hong
zhixuan hong 2018 年 2 月 28 日
コメント済み: zhixuan hong 2018 年 3 月 1 日
Hi guys , I have some variables which need to get copied in an excel sheet. The variables gets changed every time I run the GUI program. Now when I try it with the XLSWRITE it overwrites the previous value, but I need to collect all the data. How to do that? I try to search answer online but doesn't work... It will be much helpful if we are able to store the variables in a specific columns of an excel sheet. Let say for variable A ,it should be able to store it in A1, B in B1 etc... Thanks.

採用された回答

Walter Roberson
Walter Roberson 2018 年 2 月 28 日
Pass the sheet reference to xlswrite as the third parameter and pass the range as the fourth parameter.
To check: are you using Windows with excel installed? Are you writing to xls or xlsx or are you writing to csv?
  3 件のコメント
Walter Roberson
Walter Roberson 2018 年 3 月 1 日
When you use readtable() pass the option 'readvariablenames', false
zhixuan hong
zhixuan hong 2018 年 3 月 1 日
Thank you so much ! BUT for xls or xlsx file, is it possible separate the data into 3 columns like csv form? or I can convert csv file to xls/xlsx file?

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

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