printf, stdout, stderr

バージョン 1.0.0.0 (814 Bytes) 作成者: Gerald Dalley
Convenience functions for text output (printf, stdout, and stderr).
ダウンロード: 4.4K
更新 2004/5/10

ライセンスがありません

I find that I often want to either print control characters or print out prettier output than can easily be done with just the built-in disp function. I've written a wrapper around fprintf that outputs to stdout and included stdout and stderr functions. What this allows you to do is replace code like:
fprintf(1, 'My result is: %d', foo);
with cleaner code like
printf('My result is: %d', foo);

The code has been tested on MATLAB 12.1 and 13, but I'd have a hard time believing it doesn't work on much older versions.

引用

Gerald Dalley (2024). printf, stdout, stderr (https://www.mathworks.com/matlabcentral/fileexchange/4871-printf-stdout-stderr), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R12.1
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersTesting Frameworks についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0