フィルターのクリア

Writeing a stings using Matlab 2015

1 回表示 (過去 30 日間)
Hassan Qassim
Hassan Qassim 2019 年 2 月 16 日
コメント済み: Star Strider 2019 年 2 月 17 日
Hello All
i am working on algorithm that has the ability to creat a text file and write on it depending on specific commands.
i am in need to write words using matlab and the results should be showed simultaneously in the text file (no need to re-open the text file again).
i am looking for something like attached photo.
Any suggestions?
regards
Untitled.jpg

採用された回答

Star Strider
Star Strider 2019 年 2 月 16 日
The standard output (The Command Window) has a file identification number = 1.
So:
fprintf(fid, 'Hello\nWorld\n')
will print to the file , and
fprintf(1, 'Hello\nWorld\n')
or in more recent releases:
fprintf('Hello\nWorld\n')
will print to the Command Window.
  4 件のコメント
Hassan Qassim
Hassan Qassim 2019 年 2 月 17 日
I will use the command window for showing up the written words, thanks a lot for your help
really apreciated
Star Strider
Star Strider 2019 年 2 月 17 日
As always, my pleasure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by