 Hello everyone, myself, Sanjay Udge, Assistant Professor, Department of Electronics Engineering, Valchand Institute of Technologies, Solapur. Today we are going to discuss Introduction to MATLAB Part 3. Learning outcome. At the end of this session, students will be able to understand the MATLAB environment along with basic programming constructs. All simple matrix manipulation problems by writing functions in MATLAB. Sum of A, the answer will be equals to 27 that will it means that it will add the all the elements in the given matrix of A. Next command is PROD A means product of all the elements in a array. So, the result is 1 4 4 0 then mean of A will take the mean of the all the elements then median of A is equals to 3. Here is a A is equals to 9 colon minus 1 1 this command will give the output as 9 8 7 6 5 4 3 2 1. So, total number total equals to 3 plus 3 plus 3 total 9 numbers with a step of minus 1. So, the first number will be 9 and last will be 1. Maximum max of A will give the result as 9 minimum A it is 1 then i j is equal to max A is 9 and 1. This is about the standard of A then variables and mode line space and lock space let x is equals to 0 colon 0.15 colon 1 that will display numbers from 0 to 1 with a step of 0.15. So, it will have x after executing this command it will give the elements as x is equal to 0.15 0.30 0.40 0.50 and so on. So, line space 0 55 will give the result 1.25 2.5 then 3.75 5. So, the semicolon will move the elements in the next row then C is equals to AB 101. This after executing this C is equals to AB 101 will combine the elements of A and B after writing all the elements after including all the elements it will further add 3 elements at the end as 101. So, this is again A 1 has to 5 will display numbers 1 has to 5 1 to 5 B 1 to 9 with a difference of 2 will give the odd numbers then C A 2 and B 1 colon 3 1 3 4 will add the number will create a matrix of C that will initially contains the elements of A matrix starting from the second position to the end followed by B matrix from the element number 1 2 3 and lastly the numbers 1 3 4 array orientation. If you type a command C is equal to into the rectangular bracket 1 semicolon 2 semicolon 3 semicolon 4 will give a column matrix because by entering a semicolon between the two elements will move every element to the next row. Then transpose of C will convert a column matrix to a row matrix. So, initially C what we got C is equals to C is equals to 1 2 3 4 it is a column matrix whereas, transpose of C will convert this into a row matrix array orientation then S is equal to 1 plus 2 j minus 5 i plus 3 plus 4 i will result in S is equal to 1 plus 2 j 3 minus 5 j 3 plus 4 j f of S star will change their sign as 1 plus 2 i will change to 1 minus 2 i then 3 minus 5 i will change to 3 plus 5 i then 3 minus 4 3 plus 4 i will change to 3 minus 4 i. Next in the earlier slide we discussed transpose of matrix now we are going to use a dot transpose operator dot transpose operator will change the given number complex number as G is equal to S dash S dot will give is equal to 1 plus 2 j 3 plus minus 5 i and 3 plus 4 i this is a matrix having numbers 1 2 semicolon 3 4 will give a rectangular matrix of the order of 2 by 2 then B is equals to 4 5 6 7. So, after 5 there is a semicolon. So, we will give a 2 by 2 matrix as elements 4 5 6 7 followed by A plus B will add the elements of A with elements of B. Similarly, A minus B will subtract elements of A and B this is the mathematical operation A and B is given multiplication of A and B and then multiplication of B and A again A and B is given A dot star B the exit after executing this this command will multiply each and every element of A with each and every element of B. A again similarly division A divided by B this is the mean A is equal to 5 2 3 4 mean 2 of A it is answer is 3.5 this is determined then inverse and diagonal commands find the location of the of an element. So, this will find the location of the elements as 3 by 3 matrix determine matrix elements D is equal to 1 2 4 5 3 2. So, if I write a command D into round packet 1 comma colon will display will display rows 1 and all columns 1 comma colon it means that this is the 1 stands for row number 1 then comma column comma semicolon double colon indicates that in the first row you have to consider all the values all the values from columns. Similarly, D 1 comma 2 will select row 1 and column 2 element. So, row 1 is 1 2 and column 2 which is so answer is 2 similar D into round bracket colon comma 2 will select all the values in or of the row from the column number 2. So, it will be 2 5 2 determine matrix element D is equal to 1 2 4 5 3 2 D 2 colon 3 comma colon. So, colon it will be all columns from the second and third row. So, it is 4 5 3 2. So, this is the addition of the matrices then we can remove the elements by tapping A 1 4 is equal to empty. So, this is we can add the elements this special matrix this special matrix v is 0 2 3 will put all the elements as 0 2 rows and 3 columns matrix h 3 star 1 this is the special matrix true or false this is the example matrix mathematics 2 into g minus h 2 into bracket g minus h this is the example what is the difference between following two expressions g the slash h and another is g dot dot backslash h the answer is g dot backslash h here every element of g will be divided by h. So, g is simply g divided by h, but g dot backslash h means it is simply h divided by g these are the references. Thank you.