Digital Signal Processing Reference
In-Depth Information
int2str()
Integer to string conversion
Syntax
str = int2str(N)
Description
str
int2str(N) converts an integer to a string with integer format. The input N can
be a single integer or a vector or matrix of integers. Noninteger inputs are rounded
before conversion.
=
Examples
int2str(2+3) is the string 5 .
One way to label a plot is title([ case number int2str(n)])
For matrix or vector inputs, int2str returns a string matrix: int2str(eye(3))
ans =
100
010
001
conv()
Cell arrays can replace comma-separated lists of MATLAB variables in Function
input lists Function output lists Display operations Array constructions (square
brackets and curly braces)
If you use the colon to index multiple cells in conjunction with the curly brace
notation, MATLAB treats the contents of each cell as a separate variable. For exam-
ple, assume you have a cell array T where each cell contains a separate vector. The
expression T{1:5} is equivalent to a comma-separated list of the vectors in the first
five cells of T.
Consider the cell array C: C(1)
=
{[1 2 3]};
C(2)
=
{[101]};
C(3)
=
{1:10};
C(4)
=
{[987]};
C(5)
=
{3};
Search WWH ::




Custom Search