User:Eml4500.f08.delta 6.guzman/MATLAB Sections 10 & 11

Section 10: Command Line Editing and Recall
MATLAB's line editing and recall are extremely helpful when the related commands are needed repeatedly. These commands are activated by using the arrow keys. Therefore an earlier command can be recalled, edited, and then executed as follows:

Rather than creating an M-file, this convenient feature allows recalling the same command and modifying it before it is executed. In this case the command was modified to generate 9 random numbers instead of the original 3.

Section 11: Submatrices and Colon Notation
In order to manipulate fairly complex data, vectors and submatrices are often use. The effective use of these diminishes the time length, the number of loops and the quantity of code.

Colon notation can be used to retrieve submatrices from the main matrix. By using x(1:7,1) the first 7 elements of the matrix will be obtained.