while working in GUI, I wanna create txt file which include a numeric matrix(a) but I want that user could choose directory and file name when user wants to save.
Info
This question is closed. Reopen it to edit or answer.
Show older comments
for example, a=[1,02 2,54 3,8 ;4,5 5,5 6,7 ;7,7 8,7 9,1]
when user press the button in GUI I wanna open a window to allow users to choose file name and directory to creating a txt file for the matrix a. Also I wanna see the numbers without "e-notation".
1 Comment
Matt Kindig
on 16 May 2013
For the choose filename/directory, use uiputfile()
doc uiputfile
You can adjust the printing of decimals (including the "e-notation" by changing the precision in your dlmwrite() call.
doc dlmwrite
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!