Generalized square root
gsqrt(x)
gsqrt(x)
takes a matrix or cell array of matrices, and generates the
element-wise square root of the matrices.
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]}