printf

버전 1.0.0.0 (2.35 KB) 작성자: Petter
Multiple file pointers. List printing features. Merged fprintf and sprintf.
다운로드 수: 264
업데이트 날짜: 2012/11/30

라이선스 보기

A wrapper around fprintf and sprintf with the following features:
* Print to multiple file pointers.
* Append directly to files (given file name).
* Return the output as a string.
* Flexible support for printing lists.

Example:
>> s = printf({1,'foo.log'}, 'len(c)=%d, c=[%s].\n', length(c), {'%g', ' ', c});
len(c)=3, c=[3.14 1 15].
>> s2 = printf('<%s>', {[1 3 4 5]})

s2 =

<1, 3, 4, 5>

>>

Also append the printed text to file foo.log, and return it (incl the line break) to s.

인용 양식

Petter (2026). printf (https://kr.mathworks.com/matlabcentral/fileexchange/39213-printf), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Use COM Objects in MATLAB에 대해 자세히 알아보기
버전 게시됨 릴리스 정보
1.1.0.0

Just a change in the description.

1.0.0.0