- •127 Codes are ascii). The actual characters displayed depends on the
- •String operations
- •In expression, patterns are specified using combinations of metacharacters
- •In expression, patterns are specified using combinations of metacharacters
- •In arrays s1, s2, ..., sn. Inputs can be combinations of single
- •Is the same size as c1 or c2, and contains logical 1 (true) for those
- •Input c is a cell array of strings. The function returns tf, a logical
- •Is the same size as c1 or c2, and contains logical 1 (true) for those
- •Input c is a cell array of strings. The function returns tf, a logical
- •Version of the character array s.
- •Input parameters:
- •Character set conversion
- •Is unspecified or is the empty string (''), matlab's default
- •If you apply an integer or string conversion to a numeric value that
- •Xregtable/sprintf
- •Base number conversion
- •If s is a character array, each row is interpreted as a base b string.
If s is a character array, each row is interpreted as a base b string.
Example
base2dec('212',3) returns 23
See also dec2base, hex2dec, bin2dec.
Reference page in Help browser
doc base2dec
<dec2base> - Convert decimal integer to base B string.
DEC2BASE Convert decimal integer to base B string.
DEC2BASE(D,B) returns the representation of D as a string in
base B. D must be a non-negative integer array smaller than 2^52
and B must be an integer between 2 and 36.
DEC2BASE(D,B,N) produces a representation with at least N digits.
Examples
dec2base(23,3) returns '212'
dec2base(23,3,5) returns '00212'
See also base2dec, dec2hex, dec2bin.
Reference page in Help browser
doc dec2base
<num2hex> - Convert singles and doubles to IEEE hexadecimal strings.
NUM2HEX Convert singles and doubles to IEEE hexadecimal strings.
If X is a single or double precision array with n elements,
NUM2HEX(X) is an n-by-8 or n-by-16 char array of the hexadecimal
floating point representation. The same representation is printed
with FORMAT HEX.
Examples:
num2hex([1 0 0.1 -pi Inf NaN]) is
3ff0000000000000
0000000000000000
3fb999999999999a
c00921fb54442d18
7ff0000000000000
fff8000000000000
num2hex(single([1 0 0.1 -pi Inf NaN])) is
3f800000
00000000
3dcccccd
c0490fdb
7f800000
ffc00000
See also hex2num, dec2hex, format.
Reference page in Help browser
doc num2hex
