Q:
# How does MATLAB handle a square root?

**The square root function in MATLAB is sqrt(a), where a is a numerical scalar, vector or array.** The square root function returns the positive square root b of each element of the argument a, such that b x b = a.

Credit:
Moment Mobile ED
Moment Mobile
Getty Images

The function sqrt() takes positive, negative and complex numbers as arguments. If the argument is negative or complex, sqrt() returns a complex number in the form a + bi, where a and b are real numbers, and i is the square root of -1, an imaginary number. MATLAB also contains the square root function realsqrt(). This function performs the same calculation as sqrt(), but the arguments are limited to arrays of real, non-negative numbers. Another square root function in MATLAB is the matrix square root sqrtm(), which can only be applied to numerical matrices. The square root of a matrix A is another matrix B of the same dimensions such that the matrix product of B with itself is equal to A. Thus, B x B = A. Sqrtm(A) returns the positive, definite matrix square root of A, which is the matrix square root of A with eigenvalues that are non-negative or, for complex eigenvalues, have non-negative, real parts. In general, a matrix has several unique matrix square roots.

Learn more about Exponents-
Q:
## What is a MATLAB 3-D plot?

A: A MATLAB 3-D plot is a three dimensional graphical display of either a function or data points produced by MATLAB. MATLAB is both a programming language an... Full Answer >Filed Under: -
Q:
## What is the square root of 28?

A: The square root of 28 is 5.29, rounded to two decimal places, as 28 is not a perfect square. The square root of a perfect square is a whole number and not ... Full Answer >Filed Under: -
Q:
## How do you find square roots?

A: To calculate the square root of any number, estimate by using the closest perfect square, and divide the number for which you want the square root by the r... Full Answer >Filed Under: -
Q:
## How do you find a number's square root?

A: Find the square root by finding the number that, when multiplied by itself, gives you the root number. For root numbers that are not perfect squares, there... Full Answer >Filed Under: