 Myself, Sanjay Udge, Assistant Professor, Department of Electronics Engineering, Valchand Institute of Technology, Solapur. Today, we are going to discuss Introduction to MATLAB Part 4. Learning outcome. At the end of this session, students will be able to write simple MATLAB programs using loops and branching statements. Students will be able to write simple MATLAB programs using various inbuilt math functions. Let us discuss about this reshape. The given matrix is X 1 space, 2 space, 3, semicolon 4, 5, 6, 7, 8, 9. It means that after 3, there after 3, 6, there is a semicolon. It indicates that it is a 3 by 3 matrix with first row as 1, 2, 3 element, second row 4, 5, 6 and third row 7, 8, 9. Reshape X comma 1 to 9 will reshape the matrix which is 3 by 3 matrix into a matrix of size 1 row and 9 columns. So, the answer is this 1, 4, 7, 2, 5, 6, 3, 6, 9. It means that the first column is treated as a first 3 elements of a row 1, 4, 7, second column 2, 5, 8 treated as a fourth, fifth and sixth element. Then third column which is a 3, 6, 9 is being a last element of a row matrix. Next, reshape X comma bracket 9, 1 means we are going to reshape the matrix which is of size 1 row 9 column. We are reshaping the given matrix into 9 columns and 1 rows, 1 row sorry 9 rows and 1 column. So, it is a column matrix and after execution of this reshape X comma 9, 1 will give a column matrix which is given here. Approximation function, floor it rounds value towards negative infinity. Seal it rounds the value towards positive infinity. Fix rounds value towards 0 around it is a normal approximation. Here is some examples floor 3.4 after execution it is it will be a 4. Floor 3.9 it will answer will be 3. Then shell 3.9 it will be 4, shell 3.1 answer will be 4. Fix 3.4 will give the answer as 3, fix minus 3.4 will give the answer as minus 3. Now, in number system it is possible to convert one number system into another number system. In MATLAB we are having functions like decimal to binary, binary to decimal, hexadecimal to decimal, decimal to binary. Here is the first example decimal to binary of 14, decimal 14 is been converted into binary equivalent of decimal 14 which is 1110. Binary to decimal, binary number 1010 the answer is 10 that is decimal 10. Hexadecimal to decimal it is a 1 a. So, it is a decimal equivalent will be 26. Decimal to hexadecimal of 26 will give the answer 1 a. Base to decimal 15 comma 8 the answer will be 13. Next decimal to base 7 comma 2. So, decimal number 7 is been converted into a number whose base is to that is binary. So, after execution of this will give the answer 111 which is a binary number with a base 2 flow control. MATLAB has several flow control constructs for loop if statement switch and case while continue break. Try catch return MATLAB the for loop. A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times. CENTEX for index is equals to value program statement and example create a script file and type the following code. For a takes the value from 1 to 0 with a difference of minus 0.1 display a and it means that it will go on typing the numbers from 1 decreasing by a step of minus 0.1. So, the answer is 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1. And finally, it is 0 if else if execute statements in condition is true if condition is true. CENTEX if expression statement lcp expression statement else statement end description. If expression statement end evaluates an expression and executes a group of statements when the expression is true an expression is true when it is a result is non empty and contains only non zero elements logical or real numeric. Otherwise the expression is false the else if and else blocks are optional. The statements execute only previous expressions in the if end block are false and if block can include multiple else if blocks switch case otherwise. Execute one of several groups of statements CENTEX switch expression case case expression statement case case expression statements otherwise statement end switch case otherwise. The switch block test each case until one of the case expression is true when a case expression is true MATLAB executes the correct funding statement and exit the switch block. An evaluated switch expression must be a scalar or character vector and evaluated case expression must be a scalar or character vector or a cell array of scalars or character vectors. There otherwise block is optional MATLAB executes the statements only when no case is true. N is equal to input enter a number switch n case 1 display positive 1 case 0 display 0 otherwise display other value means in case 1 if the number is 1 it will display positive 1 in case 0 if the number is 0 it will display 0 and if case 1 and case 2 0 or false it will give the message other value. In this case after entering the number it will give the result as positive 1 if else if else execute statement of condition if condition is true for for loop to repeat specified number of times. This is the factorial n equals to 5 f is equals to 1 for i takes value from 2 to n expression f is equal to f into i and display f. So, it will take value of i as 2 3 4 5 then after execution of this it will give the result 120 question. Which one of the following is not an aspect of for or while loop? A update B internalization C runner D condition answer is runner these are the references. Thank you.