realmax

Returns a matrix whose elements are all the largest floating point number that is representable.

Syntax

R = realmax() returns a scalar.

R = realmax(n) returns an n by n matrix.

R = realmax(m, n) returns an m by n matrix.

R = realmax(d1, d2, ... dN) returns an N dimensional matrix.

Inputs

n, m, d1, d2, dN, etc.
Dimensions of matrix to be returned.
Type: integer
Dimension: scalar

Outputs

R
The returned matrix.

Examples

One input example:
realmax(4)
ans = [Matrix] 4 x 4
1.79769e+308  1.79769e+308  1.79769e+308  1.79769e+308
1.79769e+308  1.79769e+308  1.79769e+308  1.79769e+308
1.79769e+308  1.79769e+308  1.79769e+308  1.79769e+308
1.79769e+308  1.79769e+308  1.79769e+308  1.79769e+308
Two input example:
realmax(2,3)
ans = [Matrix] 4 x 2 
1.79769e+308 1.79769e+308 1.79769e+308 1.79769e+308 
1.79769e+308 1.79769e+308 1.79769e+308 1.79769e+308