vect2str -- vector to string conversion

バージョン 1.0.0.0 (1.94 KB) 作成者: Luca Balbi
vect2str prints out a numeric vector into a string. Fully customisable.
ダウンロード: 2.4K
更新 2008/5/27

ライセンスの表示

vect2str accepts a row or column vector as input and yields a formatted string in output. The default formatting is the common "(x1, x2, ... , xn)" format; other customised formats can be created by using the options provided.

Example:
>> x = [pi exp(1)];
>> vect2str(x)
ans =
(3.141593, 2.718282)
>> vect2str(x, 'formatstring', '%5.2f')
ans =
( 3.14, 2.72)

See also the function help

引用

Luca Balbi (2024). vect2str -- vector to string conversion (https://www.mathworks.com/matlabcentral/fileexchange/20036-vect2str-vector-to-string-conversion), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2007b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersCharacters and Strings についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

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