Real

Parent Previous Next

Real


Real part of complex number



Syntax


Real(x)

x is scalar

Return a scalar which is the real part of x

x is matrix

Return a matrix in which the element is the real part of the element in x


Example


Input

Output

real(1 + 2i)

real([1+i, 0, 1-i])

real([i, 1-3i; -2i, 5])


See Also


Created with the Personal Edition of HelpNDoc: Free help authoring tool