Difference between revisions of "Matlab Arrays"

From Sutherland_wiki
Jump to: navigation, search
(Array Basics)
Line 6: Line 6:
 
=== Using the ":" operator to create arrays ===
 
=== Using the ":" operator to create arrays ===
 
=== Linspace and Logspace ===
 
=== Linspace and Logspace ===
 +
 +
 +
== Creating Matrices ==
 +
=== Manually Creating Matrices ===
 +
=== Sparse Matrices ===
  
  

Revision as of 17:28, 2 July 2008

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

Creating Matrices

Manually Creating Matrices

Sparse Matrices

Accessing Arrays

Indexing arrays

Slicing arrays using the ":" operator