FUNCTION REFERENCE
cotd
Cotangent of argument in degrees.
Cotangent of argument in degrees.
Syntax
y = cotd(X)The angle is first reduced in degrees (rem(X,360) is exact), so multiples of 90 give exact 0, 1, -1 or Inf: sind(180) is exactly 0 and tand(90) is Inf. Inf and NaN give NaN.
Example
cotd([45 90]) % [1 0]Differences from MATLAB: Real double arrays only; complex, character, logical and cell input stop with an error. Single input is not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.