Python:from Matlab

FromMatlab to Python

NumPy forMATLAB users

Ref: https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html

Arithmetic operators

Relational operators

Logical operators

root and logarithm

Round off

Mathematical constants

Missing values; IEEE-754 floating pointstatus flags

Generate random numbers

Vectors

Sequences

Concatenation (vectors)

Repeating

Miss those elements out

Maximum and minimum

Vector multiplication

Matrices

Concatenation (matrices); rbind and cbind

Array creation

Reshape and flatten matrices

Shared data (slicing)

Indexing and accessing elements (Python:slicing)

Assignment

Transpose and inverse

Sum

Sorting

Maximum and minimum

Matrix manipulation

Equivalents to "size"

Matrix- and elementwise- multiplication

Find; conditional indexing

Dataanalysis

Set membership operators

Statistics

Interpolation and regression

Non-linearmethods

Polynomials, root finding

Programming

Loops

Conditionals

  • 发表于:
  • 原文链接https://kuaibao.qq.com/s/20181028B1BPAK00?refer=cp_1026
  • 腾讯「云+社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。
  • 如有侵权,请联系 yunjia_community@tencent.com 删除。

扫码关注云+社区

领取腾讯云代金券