R = realsqrt(X)
| Parameter | Description |
|---|---|
| X | input array. |
| Parameter | Description |
|---|---|
| R | Square root with real-only result. |
realsqrt computes sqrt(X) and returns an error if an input or the result is complex.
x = [1 4 9];
R = realsqrt(x)
| Version | Description |
|---|---|
| 2.0.0 | initial version |