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://jp.mathworks.com/matlabcentral/fileexchange/39213-printf), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R2011b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersUse COM Objects in MATLAB についてさらに検索
バージョン 公開済み リリース ノート
1.1.0.0

Just a change in the description.

1.0.0.0