Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with this Matlab assignment. 2x2-3x+7 1 . Plot the equation y = using a function (called cs151spl8exam3a.m) that accepts and the output

I need help with this Matlab assignment.
image text in transcribed
2x2-3x+7 1 . Plot the equation y = using a function (called cs151spl8exam3a.m) that accepts and the output argumen th t. The input argument is a matrix of the x-values t is a matrix of the y-values that are calculated using this equation. Since e denominator contains values that cause the denominator to go to zero, you must check to see if any of the x-values are 3 or -1. If either of these values is in the x-values matrix, then your function should display an error and not do the calculation. 0 Next, create a program (cs151spl8exam31) that creates x as a row vector from -10 to -1.1 (incrementing by 0.1) and calculates the corresponding y row vector using the above function. Plot these values. Then, create (using the same increment) an x vector of values from -0.9 to 2.9 and corresponding y values and plot these values. For your third plot, use x values from 3.1 to 10 (same increment again) and calculate the y values and plot one more time. All these vectors should create a single plot (plot them all on the same graph) and should represent the given equation (with vertical asymptotes at -1 and 3). (14 points) 1

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

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

2. What should an employer do when facing an OSHA inspection?

Answered: 1 week ago