FUNCTION REFERENCE

hypot

Length from two perpendicular components.

Length from two perpendicular components.

Syntax

hypot(X, Y)

Computes sqrt(X.^2 + Y.^2) without forming the squares directly. Inputs must have the same size, or one must be scalar. Real numeric and logical inputs are accepted; complex input is rejected.

Example

hypot(3,4)   % 5

Differences from MATLAB: none known.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.