printf, stdout, stderr

版本 1.0.0.0 (814 字节) 作者: 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 CenterMATLAB Answers 中查找有关 Testing Frameworks 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0