Question: ATLAB plotting problem Clearly plot the function f (X) = x^2 - 4x - 5/x - 2 for -4 lessthanorequalto x lessthanorequalto 8. Notice that
Clearly plot the function f (X) = x^2 - 4x - 5/x - 2 for -4 lessthanorequalto x lessthanorequalto 8. Notice that the function has a vertical asymptote at x=2. Avoid plotting the asymptote itself: Create two vectors for the domain of x (x1 for before the asymptote and x2 for after). Calculate the corresponding y arrays. Now appropriately plot oil 4 arrays in the same plot: y1 vs x1 and y2 vs x2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
