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 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