Main Content
gsqrt
Generalized square root
Syntax
gsqrt(x)
Description
gsqrt(x)
takes a matrix or cell array of matrices, and generates the
element-wise square root of the matrices.
Examples
Compute Element-Wise Square Root
This example shows how to get the element-wise square root of a cell array:
gsqrt({1 2; 3 4})
ans=2×2 cell array
{[ 1]} {[1.4142]}
{[1.7321]} {[ 2]}
Version History
Introduced in R2010b