Code covered by the BSD License  

Highlights from
vect2str -- vector to string conversion

5.0

5.0 | 1 rating Rate this file 13 Downloads (last 30 days) File Size: 1.94 KB File ID: #20036

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
display(2), format, string, vector
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
18 Jun 2008 K T

Very useful

Contact us