real 函数

  • Post author:
  • Post category:其他


real 函数

Real part of complex number

复数的实部数值

Syntax

语法

X = real(Z)

Description

描述

X = real(Z) returns the real part of the elements of the complex array Z.

X=real(Z)

返回复数阵列


Z


每个元素的实部。

Examples

例如:

real(2+3*i) is 2.

Real(2+3*i)

的结果是


2