Difference between revisions of "Matlab Arrays"

From Sutherland_wiki
Jump to: navigation, search
(New page: == 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 Cr...)
 
(Array Basics)
Line 1: Line 1:
 
== Array Basics ==
 
== Array Basics ==
An array is an ''n''-dimensional collection of numbers.  Matrices are 2-dimensional arrays, and vectors are 1-dimensional arrays.
+
An array is an ''n''-dimensional collection of numbers.  [[LinearAlgebra#Basics: Matrices & Vectors|Matrices]] are 2-dimensional arrays, and [[LinearAlgebra#Basics: Matrices & Vectors|vectors]] are 1-dimensional arrays.
  
 
== Creating Vectors ==
 
== Creating Vectors ==

Revision as of 18:23, 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

Accessing Arrays

Indexing arrays

Slicing arrays using the ":" operator