real 函数

来源:互联网 发布:比价软件哪个好用知乎 编辑:程序博客网 时间:2024/04/30 16:18

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

原创粉丝点击