Understanding the Interactive Matrix Language

Reassigning Values

You can assign new values to elements of a matrix at any time. The following statement creates a 2 x 3 numeric matrix named a:

  
    a={1 2 3, 6 5 4};
 
The following statement redefines the matrix a as a 1 x 3 character matrix:
  
    a={'Sales' 'Marketing' 'Administration'};
 

Previous Page | Next Page | Top of Page