Matlab Arrays

From Sutherland_wiki
Revision as of 17:23, 2 July 2008 by 00033394 (talk | contribs) (Array Basics)
Jump to: navigation, search

Array Basics

An array is an n-dimensional collection of numbers. Matrices are 2-dimensional arrays, and vectors are 1-dimensional arrays.

Creating Vectors

Manually Creating Vectors

Using the ":" operator to create arrays

Linspace and Logspace

Accessing Arrays

Indexing arrays

Slicing arrays using the ":" operator