Use MATLAB to determine the intersection point for the sets of equations shown below. Use the backslash when possible. Graph the equations with different colors, and plot the intersection point with a red star marker. If the equations do not intersect, graph them anyway. Include a legend.
cannot use 'ezplot' or 'solve'
b) -4(x1)+(2(x2))^3=10 x1+x2=-8
% define x Axis and evaluate functions x_points = -10:0.1:10; function1 = -4*x1+(2*x2)^3-10; function2 = x1+x2+8; index_intersection = find(function1==function2); x_value_intersection=x_points(index_intersection); y_value_intersection=function1(index_intersection; % plot functions and intersection point: curve1 = plot(x_points, function1); hold on curve2 = plot(x_points, function2); intersection = plot(x_value_intersection,y_value_intersection,... 'Marker', '+', 'MarkerSize', 6, 'Color', 'r');
Get Answers For Free
Most questions answered within 1 hours.