23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1<br />

Data Structures<br />

The most basic data structure in <strong>MATLAB</strong> ® is the matrix: a two-dimensional,<br />

rectangularly shaped data structure capable of storing multiple elements of<br />

data in an easily accessible format. These data elements can be numbers,<br />

characters, logical states of true or false, or even other <strong>MATLAB</strong> structure<br />

types. <strong>MATLAB</strong> uses these two-dimensional matrices to store single numbers<br />

and linear series of numbers as well. In these cases, the dimensions are 1-by-1<br />

and 1-by-n respectively, where n is the length of the numeric series. <strong>MATLAB</strong><br />

also supports data structures that have more than two dimensions. These<br />

data structures are referred to as arrays in the <strong>MATLAB</strong> documentation.<br />

Creating and Concatenating<br />

Matrices (p. 1-3)<br />

Matrix Indexing (p. 1-18)<br />

Getting Information About a Matrix<br />

(p. 1-24)<br />

Resizing and Reshaping Matrices<br />

(p. 1-27)<br />

Shifting and Sorting Matrices<br />

(p. 1-37)<br />

Operating on Diagonal Matrices<br />

(p. 1-42)<br />

Create a matrix or construct one<br />

from other matrices.<br />

Access or assign to elements of a<br />

matrix using methods of row and<br />

column indexing.<br />

Retrieve information about the<br />

structure or contents of a matrix.<br />

Change the size, shape, or<br />

arrangement of elements in an<br />

existing matrix.<br />

Shift matrix elements along one or<br />

more dimensions, or sort them into<br />

an ascending or descending order.<br />

Construct and manipulate matrices<br />

along a diagonal of the rectangular<br />

shape.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!