Saving user input and write into .csv file?
古いコメントを表示
Hello, I am wondering whether it would be possible to save the user input and write into .csv?
prompt={'weight','hight','birth date'};
dlgtitle='Input';
dims=[1 35];
definput={'120kg','170cm','1998/5/2'};
answer = inputdlg(prompt,dlgtitle, dims, definput);
Thanks
回答 (1 件)
JESUS DAVID ARIZA ROYETH
2020 年 2 月 7 日
solution:
writecell(answer,'myfilename.csv')
and for get the file after you can use:
readcell('myfilename.csv')
3 件のコメント
Walter Roberson
2020 年 2 月 7 日
This requires r2019b or later.
For earlier versions
https://www.mathworks.com/matlabcentral/answers/503384-xlswrite-overwrites-data-despite-setting-a-specific-range#answer_413819 lists other possibilities
steamrice
2020 年 2 月 9 日
steamrice
2020 年 2 月 10 日
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!