Saving user input and write into .csv file?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (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')
참고 항목
카테고리
Help Center 및 File Exchange에서 Downloads에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!