Home Work 2.1 1. Form the 3 row data-set containing the following data using linspace(), ":" and Save it as A' 10 550 19 150 450 15 100 200 300 350 400 13 500 17 250 2. Extract all the three rows and save them in variables "A1, A2 and 'A3' as column vectors 3. Combine column vectors "A2' and "A3 into a new matrix 'B 4. Plot both the columns of "B' versus 'A1', first using hold function and then again in a separate figure window using subplot) 5. Using one single plot command, plot "B' v/s 'Al'. Add labels, title, legend and properties 6. Create a new matrix 'C, combining 'A1' and Save this matrixin a *.*txt file of your choice Hints for HW2.1 .Use linspace(m,n,a), m:step size:n and combine it with usual matrix creation methods using and ';" Separately extract the three rows, transpose the content and then store them in A1, A2 and A3 . Form a new two columned matrix with first column as A2 and second column as A3 .Create graphs for A2(located in 1t column of B) v/s A1 and A3(located in 2dcolumnof B) v/s A1 using plot), hold on and making use of subplot(NRefer to the Lecture 3 slide for more details on subplot()) . Create same graphs using one single plot command: plot pair1 pair2) Now combine A1 and B similar to problem 3. Use save to create a new text file containing all the data in C Home Work 2.2 1. Convert the following polynomials into form in MATLAB 2. Perform the following arithmetic operations and save the output to C Q=(p1 + p2) * p3 3. Evaluate Q, the result of the operation in problem 2 at x-20.45, 3 and 17.S 4. Find the roots of the polynomial Q. What is the degree of polynomial Q and how many roots did you get? 5. Now using these roots construct polynomial Qr. Are Qr and Q the same polynomials? Hints for HW2.2: .Pay close attention to the degree of each polynomial and form vectors consisting of their .Get the addition of p1 and p2 and then convolve/multiply it with p3 using conv Use polyvall) to evaluate Q at different values of x .Use roots) to find the roots of Q . Use polyl) to get Qr from the roots from problem 4