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
领取专属 10元无门槛券
私享最新 技术干货