Before starting this software you all should be aware of our youtube channel : Reality Expo .
On this channel I am sharing complete tutorial series for beginners to advance level starting from very basics. So, anyone can start this series as there are no special requirements to start this MATLAB prerequisite, and after completing this tutorial you may start using MATLAB software as a beginner.
So, I will create 2-3 parts of this prerequisite post this part being the very first part I will share very basic details of the mathematics and physics terms which you all will encounter in day to day use of this software.
So without wasting any time lets get started ..!!!
Some mathematics terms :
Constant:
- They have some pre-defined universal values.
- Its values can never be changed.
- Example : 1, 4567, 234 , any integer.
Variable:
- They can be given any desired value or magnitude.
- Values of variables can be changed according to our needs.
- Example: x, y , z (lets suppose x=4 for certain case and for the very next case we can change its value to lets say x=5 or anything).
Scalar quantity:
- It is 1 dimensional value (magnitude).
- Example : Distance from point A to point B is a scalar quantity(as it only tells us about magnitude of space between A and B) .
- Other examples could be : mass, volume, speed, etc
Vector quantity:
- It is a multi- dimensional quantity with both magnitude as well as direction
- Example : John is driving at the speed of 40 km/h in North direction (as the given statement is telling us about both magnitude and direction).
- Other examples could be : Force, acceleration, momentum, etc
Array:
- As now we know about variables array is quite advanced version of variables as it contains fixed number of values of similar kind. For instance we want to store 10 values to a same variable "A", to do so we would require an "array A" that can store 10 values and its basic representation is "A[10]" which represent "A" can store "10" values. Now you may wonder how these values are stored.
A[10]=[ A1, A2, A3, A4, A5, A6, A7, A8, A9, A10 ]
The values in array are stored in the exact same manner as represented above.
As A1 will store 1st value, A2 will store 2nd value and so on.
"But the only condition of array is that they require the data to be of similar type."
Matrix:
- Matrix can be defined as a multi dimensional array ( here we will discuss only 2-D ).
- It is nearly same as an array but we can store relatively high amount of data in matrices and in more organised way.
- In matrices we have to deal with rows and columns. It would be easy to understand matrix as a building and each component in that matrix is addressed by the row and column linking with that component.
-Basic representation of matrix is like:
A= |1 2 3|
A= |1 2 3|
|4 5 6|
|7 8 9|
The above shown matrix is of the order 3*3 , which means it has 3 rows and 3 column.
Matrices are recognized by there m*n order. In above example as m*n is 3*3 so value of m=3 and that of n=3 , m represent number of rows in matrix whereas n represents number of column.
Total, no. of element that a matrix may store depends upon product of m and n, like if it is order 3*3 matrix than simply multiply m and n ,i. e. 9.
Same for 2*3 matrix = 6 elements
4*4 matrix =16 elements
Now, the question may arise how can we identify a particular element in a matrix. It is very simple like an array elements.
We usually use A(i,j) concept to identify an element here "i" represents row and "j" represents column.
Now scroll back to Matrix A represented above if we want to address each and every element we can simply do it by identifying row and column number where these element are present.
For illustration lets know what is row and column:
4*4 matrix =16 elements
Now, the question may arise how can we identify a particular element in a matrix. It is very simple like an array elements.
We usually use A(i,j) concept to identify an element here "i" represents row and "j" represents column.
Now scroll back to Matrix A represented above if we want to address each and every element we can simply do it by identifying row and column number where these element are present.
For illustration lets know what is row and column:
Row1 ->Column-1
|
Row1 ->Column-2
|
Row1 -> Column-3
|
Row1 -> Column-4
|
Row2-> Column-1
|
Row2 -> Column-2
|
Row2 -> Column-3
|
Row2 -> Column-4
|
Row3-> Column-1
|
Row3 -> Column-2
|
Row3 -> Column-3
|
Row3 -> Column-4
|
Row4-> Column-1
|
Row4-> Column-2
|
Row4-> Column-3
|
Row4-> Column-4
|
Row5-> Column-1
|
Row5-> Column-2
|
Row5-> Column-3
|
Row5-> Column-4
|
Now in the same manner identify each element of Matrix A
A(1,1)=1
A(1,2)=2
A(1,3)=3
A(2,1)=4
A(2,2)=5
A(2,3)=6
A(3,1)=7
A(3,2)=8
A(3,3)=9
Matrix addition:
-For ease of illustration we will use two 2*2 matrices (i.e matrix A and matrix B)
A= | 1 2 | and B= | 3 4 |
| 3 4 | | 5 6 |
A+B = |1+3 2+4| = | 4 6|
|3+5 4+6| | 7 10|
Matrix addition is very simple operation we just add the corresponding elements of matrix A and matrix B . i.e A(i,j) + B(i,j) = |A(1,1)+B(1,1) A(1,2)+B(1,2)|
|A(2,1)+B(2,1) A(2,2)+B(2,2)|
Matrix Subtraction:
- Again for the understanding purpose we will use two 2*2 matrices (i.e matrix A and matrix B)
A= | 1 2 | and B= | 3 4 |
| 3 4 | | 5 6 |
A- B = |1-3 2-4| = | -2 -2|
|3-5 4-6| | -2 -2|
Matrix subtraction is as simple operation as addition, here also we just subtract the corresponding elements of matrix B from matrix A . i.e A(i,j) - B(i,j) = |A(1,1)-B(1,1) A(1,2)-B(1,2)|
|A(2,1)-B(2,1) A(2,2)-B(2,2)|
So, I hope you understand exactly what is a Matrix. That would be enough for the very first tutorial.
Next tutorial is here..!!
Bye Bye

Comments
Post a Comment