# Recursive HYPOT Function for Multiple Inputs (Scripts) 1.0

Average Rating
User Rating:
Visitors Rating:
My rating:

See full specifications

## Recursive HYPOT Function for Multiple Inputs (Scripts) Publisher's description

### Extension of the built-in MATLAB function hypot for multiple inputs.

Extension of the built-in MATLAB function hypot for multiple inputs.
MATLAB provides a function called hypot to calculate sqrt(abs(A).^2 + abs(B).^2) in a robust way to avoid underflow and overflow (see http://www.mathworks.com/help/techdoc/ref/hypot.html and http://en.wikipedia.org/wiki/Hypot). Frequently, though, I need to make this calculation with more than just two inputs A and B. Say, to compute the magnitude of a vector with three components (x, y, z). So I wrote this function to recursively call MATLAB's hypot function for multiple inputs:

Usage: Y = HYPOTR(X) or Y = HYPOTR(X1, X2, X3, ...)

This function works the same as the built-in MATLAB function hypot but allows for more than two inputs (or a single array) via recurssion. The output Y is:

Y = sqrt(sum(X(:).^2) (for single array X input)
Y = sqrt(X1.^2 + X2.^2 + X3.^2 + ...) (for arrays X1, X2, X3, ... input)

But the computation is done in a more robust way to avoid overflow and underflow (see HYPOT). Note that when multiple arrays are input, they must all be the same size (but any or all of them can also be scalars).

#### System Requirements:

No special requirements.
Program Release Status: New Release
Program Install Support: Install and Uninstall

#### Recursive HYPOT Function for Multiple Inputs (Scripts) Tags:

Click on a tag to find related softwares

## Most Popular

ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
Simulink Communication Labs allows you to learn communication systems in greater depth.
M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.