atleast

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

Syntax

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

Inputs

ArgumentTypeDescriptionUnit
xscalar or vectorthe input value or arrayn/a
limitscalar or vectorthe limit to impose-

Outputs / Return Value

Notes

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<p>
x.atleast([3.5 10 250]) =
3.5 9 3.5 4
23 10 10 70
250 400 623 300<p>

See Also

Review Status