MATLAB software learning

Source: Internet
Author: User

 

What lists the M \ mat and Max files in the current directory or specified directory

... At the end of the statement line, this row is not complete.

! Call operating system commands

Isvarname determines whether the variable name is valid

Add global before declaring the global variable name

Type of whos View data

 

Function handle type:

[Email protected]; fhandle pointer name functionname function name

Celldisp displays the elements of the cellular array

CellplotView the graph display of the cellular array

Num2cell numeric array to cellular array

Cell2mat converts the cellular array to a numerical array

 

Multi-dimensional arrays are generally created using subscript indexes.

Rand random matrix with uniform distribution

Randn follows a random matrix with a normal distribution.

Randperm generates 1 ~ Random arrangement of integers between N

In the input matrix, the same row elements are separated by commas (,) or spaces.

Zeros zero matrix

Eye unit matrix

Ones full 1 Matrix

 

Sparse Matrix

Sparse function-converts full-element storage to sparse matrix Storage

Full function -- convert a sparse matrix to a full matrix

Whether issparse is a sparse matrix

Nnz -- Number of non-zero elements in the Matrix

Spy -- View distribution of non-zero elements in a sparse matrix

Nozeros -- returns the column vector composed of all non-zero elements.

MATLAB software learning

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.