Introduction to MATLAB
Elementary Math Intrinsic Functions
>> abs(x) % absolute value of x
>> exp(x) % e to the x-th power
>> fix(x) % rounds x to integer towards 0
>> log10(x) % common logarithm of x to the base 10
>> rem(x,y) % remainder of x/y
>> sqrt(x) % square root of x
>> sin(x) % sine of x; x in radians
>> acoth(x) % inversion hyperbolic cotangent of x
>> help elfun % get a list of all available elementary functions
|