Saving user input and write into .csv file?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
JESUS DAVID ARIZA ROYETH
am 7 Feb. 2020
solution:
writecell(answer,'myfilename.csv')
and for get the file after you can use:
readcell('myfilename.csv')
3 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!