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

96 ビュー (過去 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 Center および File ExchangeWorkspace 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