quantising matlab
As a form of introduction, MATLAB is a numerical programming tools for computing matrixes but instead of telling the history behind matlab, I rather prefer to explain the philosophy and the need for matlab.
From the physical point of view everything in life is made up of Atoms and molecules as we all know from elementary science. But all these atoms occupy specific location in space and they can be represented in a matrix form therefore the atoms of a piece of metal can be represented as
matlab =
-- --
|1 2 3 4 |
|5 6 7 8 |
|9 10 1112|
-- -- (1)
where the numbers 1,2,3 … are the location of the atoms which form the lattice of the metal. Now this metal can be molded into another form, can be added to another metal, can be heated to liquefy form and many others. In doing this you are changing the location of the atoms and performing specific task and as an engineer you can simulate these task to cut prototype cost, and other lengthy analysis by using the MATLAB meaning that matlab is engineering software for simulating physical quantities and is easy to use. At all levels you can program a physical quantity, visualize it and simulate it.
let represent the metal in (1) above as M as
M=metal;
M = [1 2 3 4; 5 6 7 8 ; 9 10 11 12] (2)
This is how to represent the matrix in (1) in matlab command window and it will produce (1) as the result. If u don't want to see the matrix printed out as in (1) the use the semicolon at the end of the square bracket this will suppress the output.
Oh sorry guys, I am hoping that u has the matlab software and u know how to open it. If not then get one, but if u can't afford it then download the octave it is a free open source code which works just like MATLAB.
Now you can issue certain commands like:
(1) sum(M) to sum up the matrix,
(2) diag(M) to find the diagonal,
(3) repmat(M,2) to replicate the matrix
(4) fliplr(M) to flip the matrix
and many others to see how you can manipulate the matrices .
folks i hope u know there are certian limitations to HTML so bear with me with the output of the matrix representatin.