vect2str -- vector to string conversion
Versione 1.0.0.0 (1,94 KB) da
Luca Balbi
vect2str prints out a numeric vector into a string. Fully customisable.
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
Cita come
Luca Balbi (2026). vect2str -- vector to string conversion (https://it.mathworks.com/matlabcentral/fileexchange/20036-vect2str-vector-to-string-conversion), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2007b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Characters and Strings in Help Center e MATLAB Answers
Tag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
