creating a .txt file with values that the user inputs in Matlab app designer
조회 수: 3 (최근 30일)
이전 댓글 표시
hello,
i am wondering how can i create a brand new .txt file in matlab. I would like create a text file that is unique to input from the user. For example if the user inputs this "4" i would like the text file to be created with this name "4.txt". If the user inputs "helloworld" the new text file would be "helloworld.txt". How am i able to do this?
i am using matlab verison R2019b
thank you
댓글 수: 0
채택된 답변
Geoff Hayes
2021년 6월 11일
Joseph - if your app has a text field that allows the user to enter the name of the file to save to, then you could do something like
filename = [app.FileName.Value '.txt'];
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!