how to convert .m file to .txt file in matlab

조회 수: 73 (최근 30일)
farha nazneen
farha nazneen 2018년 7월 22일
댓글: Image Analyst 2018년 7월 27일
Hello i generated a sine wave signal in matlab i got some values in workspace,i wanted to convert .m file to a .text file please do let me know how to proceed.The below is the attachment of my file.

채택된 답변

Star Strider
Star Strider 2018년 7월 22일
Your .m-file is a text file. You can open it in the MATLAB Editor, or any text editor, such as ‘notepad’ in Windows.
If you want to save the variables in your workspace, the most efficient way is to use the save (link) function to create a .mat-file containing them. If you want to save it as a text file, use the -ascii flag, as described in the section of the documentation Save Data to ASCII File (link). There are several other ways to save variables as text files as well
  댓글 수: 1
Image Analyst
Image Analyst 2018년 7월 27일
So farha, haven't heard back from you - did you try it?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by