atleast

Parent Previous Next

atleast

y = atleast ( x,limit )
y = x.atleast ( limit )

Apply a lower limit to the input; make it "at least" this value

arg

type

Description

Unit or Value scale

x

SCAL or VCT

the input value or array


limit

SCAL or VCT

the limit to impose


Outputs

  • y is the matrix, vector, or scalar of the same size as x

Notes

  • For a matrix input, a row-wise operation is applied. That is, if limit is a scalar, it is applied to all rows; if it is a vector, each value in the limit vector is applied to each row until it is no longer available.

Examples

  • x=[2 9 3 4; 23 8 1 70; 201 400 623 300];
  • x.atleast(10) =
    10 10 10 10
    23 10 10 70
    201 400 623 300
  • x.atleast([3.5 10 250]) =
    3.5 9 3.5 4
    23 10 10 70
    250 400 623 300

See Also

atmost | max | min

Created with the Personal Edition of HelpNDoc: Free HTML Help documentation generator