Why this code does not save .txt file as .text file inside the matlab?

I am using appdesinger to design app that improt .txt files and save it but the code save it inside matlab in form of matlab.mat as showen in the figure but I want it to be save as .txt file.
[filename,pathname] = uigetfile({'*.txt'},'File Selector');
app.WordFileEditField.Value = strcat(pathname,filename);
save();

댓글 수: 4

It sounds like you need to read the documentation for save. Also, if you want it in a .mat, why would you confuse everyone by have the extention be .txt?
Hi ,
thank you for your comment.
No I want it to be save in .txt form because this is the real form for the import it file.And how I do read to the documentation for save?could you write the code for me please?
You can open the documentation of a function like this:
doc save
Or just find a link.
thank you so much Rik.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

태그

질문:

2019년 5월 26일

댓글:

2019년 5월 26일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by