![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/337465/image.png)
Excelの1つのセルに「char型の文字列」を格納する方法について
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Shouhei Ookouchi
il 27 Lug 2020
Commentato: Shouhei Ookouchi
il 27 Lug 2020
添付したファイル「Excelwritetest.m」を実行しましたが、質問資料.pdfの図1の様な実行結果となりました。
質問資料.pdfの図2の様に「MATLABを用いて、Excelの1つのセルにchar型の文字を複数個格納すること」は可能でしょうか。
初歩的な質問で申し訳ございませんが、よろしくお願いします。
0 Commenti
Risposta accettata
michio
il 27 Lug 2020
R2020a で添付のスクリプト試したのですが、図2のように保存されておりました。
A = 12345;
B = dec2hex(A);
C = mat2cell(B,ones(size(B,1),1));
writecell(C,'mfilewrite.csv')
キャプチャー画像は以下。
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/337465/image.png)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Import from MATLAB in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!