Vectors and scalars are initialized the same way as matrices. (In MATLAB 4, the * operator is not required in complex numbers, as it was in previous versions.) In the example above, the expression 4 + 5i, with the + sign surrounded by blanks, would represent two separate numbers. When entering complex numbers as matrix elements within brackets, it is important to not use blanks. You can also initialize matrices with complex numbers: (Note: You can also use the semicolon after an expression or statement to suppress printing or to separate statements.)
Within the square brackets that are used to form vectors and matrices, you can use a semicolon to end a row. Where each value may be rational or complex numbers. The most straightforward way to initialize a matrix is to type a command of the form: Start the program from Windows or Mac OSX. You need to be on CMU network or VPN to CMU network to use MATLAB. Greatly borrowed from MIT's MATLAB on Athena tutorial ()