2012年11月9日 星期五

Scilab fundamentals 6 - Other matrix operations

We have learned the methods to create matrices and the elementary operations in previous two sections (Scilab fundamentals 4 and 5). The other common matrix operations are introduced in this section.

²  Read the dimension of a matrix

 
²  Create a row vector
   
    Using the colon symbol, :, we can create a row vector with specified boundary values and step. For example, we create a row vector starts from 1 to 10 with a step of 1. Because 1 is the default step, it needs not to define this vale when we use colon symbol to create a row vector.

 
²  Read element values
 
 


²  Empty matrix
 
The symbol [] denotes a empty matrix which is a matrix in zero dimension. We can use the empty matrix to delete the content of a matrix to release memory.
 

沒有留言:

張貼留言