Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab help Home Work 2.1 1. Form the 3 row data-set containing the following data using linspace(), : and Save it as A' 10 550

Matlab help
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases 28th British National Conference On Databases Bncod 28 Manchester Uk July 2011 Revised Selected Papers Lncs 7051

Authors: Alvaro A.A. Fernandes ,Alasdair J.G. Gray ,Khalid Belhajjame

2011th Edition

3642245765, 978-3642245763

More Books

Students also viewed these Databases questions

Question

What factors should be included in the BICS legal standard?

Answered: 1 week ago

Question

4. Describe the factors that influence self-disclosure

Answered: 1 week ago

Question

1. Explain key aspects of interpersonal relationships

Answered: 1 week ago