gsqrt
(To be removed) Generalized square root
gsqrt will be removed in a future release. For more information,
see Transition Legacy Neural Network Code to dlnetwork Workflows.
For advice on updating your code, see Version History.
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 R2010bSee Also
Time Series
Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork