vect2str -- vector to string conversion
by Luca Balbi
23 May 2008
(Updated 27 May 2008)
vect2str prints out a numeric vector into a string. Fully customisable.
|
Watch this File
|
| File Information |
| Description |
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 |
| MATLAB release |
MATLAB 7.5 (R2007b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (1) |
| 18 Jun 2008 |
K T
|
|
|
|
Contact us