W5 Lesson 3 - Converting To Parallel and Distributed Simulation - Lecture PDF
W5 Lesson 3 - Converting To Parallel and Distributed Simulation - Lecture PDF
There are some handy utility functions to generate commonly used matrices, such as zero
matrices, identity matrices, diagonal matrices, matrix containing randomly generated numbers
etc.
A range requires a start value, an increment and an end value, separated by colons (:). If
only two values are given (separated by only one colon), they are taken to be the start and end
values and the increment is assumed to be 1 (a:b is the short form for a:1:b, where a and b
are numbers). The increment must be negative when the start value is greater than the end value.
You can create an empty matrix with the command:
-->a=[ ]