Solve the simultaneous equations x – y = 2 and x2 + y = 0 using solve. Plot the corresponding functions, y = x-2 and y = -x2 , on the same graph with an x range from -5 to 5
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:14| Question number:34.14
All Answers
total answers (1)
Ch14Ex34.m
% Solve 2 simultaneous equations using solve, and plot
syms x y
answer = solve('x - y = 2', 'x^2 + y = 0',x,y);
x = answer.x
y = answer.y
ezplot('y = x - 2',[-5,5])
hold on
ezplot('y = -x^2',[-5,5])
need an explanation for this answer? contact us directly to get an explanation for this answer