How it is applied in real life ?
Although it may not seems to be apparent in our life but it is there, lets say, we had 2 friends named Mr Sci and Mr Lab, one of them is purely vegetarians and one of them is erm.. carnivore (who likes to eat meat with bit of homemade tomato ketchup). So Mr Sci bought 4 kg of tomatoes and absolutely no meat meanwhile Mr Lab bought 1 kg of tomato with 3 kg of meats. Hence, how you can draft in in matrices ? Below is one of the examples. We first draft it into a table such as follows ...
Tomato | Meat | |
Sci | 4 | 0 |
Lab | 1 | 3 |
and then draft it as followings
This whole things included brackets is known as matrix, but if you want to be more specifics, it is two by two matrices.
So, in Scilab, you just need to do this ...
//Displaying matrices in Scilab //If you need to add extra column, just add //semicolon ";" to separate between columns //So if your matrix is like this M = [4,0;3,1] //It will shows // 4 0 // 3 1
That is all for today. :]
(P.S: I don't know what is happened with Blogger . Suddenly , I can't post snippets today!)