 Myself, Sanjay Udge, Assistant Professor, Department of Electronics Engineering, Walchand Institute of Technology, SolarPool. Today, we are going to discuss Introduction to MATLAB Part 2. Learning outcome. At the end of this session, students will be able to solve simple arithmetic problems based on complex functions in MATLAB. These are the some complex functions real, real part of complex number, a is equal to 3 plus 4 j, x is equal to real of a will give the result x equals to 3. Imaginary part of x, imaginary part of a complex number, a is equal to 3 plus 4 j, x is equals to imaginary of a will give the result as x is equals to 4. Then magnitude of a complex number will give absolute value, x is equals to 5. Then angle of a complex number in radiance, said it comes out to be 53. Then conjugate complex conjugate of a complex number will be a is equal to 3.00 minus 4 i. So, these are some examples which is shown over here, z is equal to 3 plus 4 i, absolute number conjugate and answers. That will give imaginary number and real number, relational and logical functions, MATLAB provides additional relational and logic functions, any of x, all of x, find x, finite x etcetera. Then relational and logical functions, x or of x and y that will perform the logical operation x or between variables x and y. Any x true if any element is non-zero, so any x will be equals to 1 if all if any element is non-zero. All of x will give result equals to 1 that is true if all elements are non-zero is equals x y true if arrays are numerical, equal is float point true for a float point number is prime true for a prime number. The number is given x is equals to into square bracket 1, 2, 3, semicolon 4, 5, 6, semicolon 7, 8, 9. If you enter it will give the result x is equals to 1, 2, 3, 4, 5, 6, z that will display a rectangular matrix. Any of x will give 1, 1, 1, any means any element of x is 0, then the condition is 1, 1, 1. Number of x will give 1, 1, 0 because in the third column the last element is 0. So, this is the information about the system computer then PC win this is the date clock and calendar this is again the calendar June 2009 information about the system license versions bench system and file commands CLC that will clear the command window clear comma clear all remove variables from the memory DOC dock display documentation exit checks for existence of file or variable global declares variable to be global. Then display help text in the command window help in display help text in the help browser look for search searches help entire for keyboard Twitter exit stops MATLAB who list current variables whose list current variables long display mathematical function factor of 40 will results in answer is equal to 2, 2, 2, 5 then prime numbers between 20 will give the numbers as 2, 3, 5, 7, 11, 13, 17 and 19 then factorial 5 will results answer equals to 1, 2, 0 that is 120 this is the example is a prime number 200 answer is 0 then gamma then beta system and file commands CD change current directory date display current date DIR list all fines in the current directory MK DIR used to make new directory PWD present work directory what list all MATLAB files. So, command exponential of 4 will give the answer 54.155 and 82 log of 100 to the base 10 can be written LOG 10 into bracket 100 means it is a log of 100 to the base 10 answer is 2 then log of 4 to the base 2 next is the nth root of 100 comma 2 the answer is 10 then SQRT it is the square root square root of 4 answer will be 2 then power POW power of 2 that is 4 answer is 16 that is 2 raise to 4 will give the answer 16 here is the example the given equation is x raise to 4 plus 2 x plus 4 x plus 5 is equals to 0. Now, by writing the command in the in the following fashion as MATLAB from followed by R O O T S into the parenthesis then rectangular bracket 12045 will give the answer as shown in the current slide is the polynomial of 2 minus 2 answer 1 0 minus 4 this is the vector value of vector is given x is given then y is given y is equal to x dash will convert the row matrix into a column matrix x is equals to 1 as to 10 once double column 10 will display the numbers between 1 to 10 next one is x is equal to 1 column to column 10 will display the elements of x as between 1 to 10 with a difference of 2. So, it will be 1 3 5 7 9 next y is equals to 10 semicolon minus 1 semicolon 1 that means it will the result of this command will give the value from 10 to 1 that is 10 9 8 7 6 5 4 2 1 because the difference mentioned is minus 1. Now, z is equal to 0 semicolon 0.5 colon 5 will display the numbers between 0 to 5 with a difference of 0.5. So, the elements of this z will be equal 0.5 1 1.5 so on till 5.0 array addressing the elements of the array are written into a rectangular bracket with a space or a comma a which is given 3 4 6 8 10 3 next command is a of 3 answer is 3 because the third element of the a is 3 then a 3 5 will give the elements between 1 and 1. Third to fifth position 6 5 8 a of 2 colon end will display the numbers from the second position to the end position. Similarly, a 2 2 6 will display the elements from second position to 6 position with a difference of 2. This is again the array addressing this will give the length size of the array. We can add the element to a given vector for example, a of 7 is equals to 8 will add the element at the seventh position as a number 8. Similarly, a of 10 is equals to 5 will add the 10th number as 5 9th and 8 are not mentioned they will be treated as 0s. What will be a precedence for the following operator? The operator shown over here are multiplication then power and then or not and parenthesis. You have to answer this question. The answers are first of all you have to solve a parenthesis then the power then not operation then multiplication or division then and operation then or operation. These are the references. Thank you.