I want lo graph a interseccion

I dont now how can I graph an interseccion, I try with tutorials but didnt work
the functions are
x= 3 -y^2
y = x -1
The interseccions are
(-1,-2) (2,1)

1 Comment

What exactly does "graph an intersection" mean in this context?
Please specify how it "didn't work".

Sign in to comment.

Answers (1)

% x= 3 -y^2
y1 = (-3:0.02:3);
x1 = 3 - y1.^2;
% y = x -1
x2 = (-2:0.01:3);
y2 = x2 -1;
plot(x1, y1, 'r-', x2, y2, 'b-');

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products

Release

R2023b

Asked:

on 4 Mar 2024

Commented:

on 4 Mar 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!