How to find all intersections in a Matlab graph?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have created three graphs: one tangent graph, one negative cotangent graph, and one circle.
Here is what I have so far:
%Functions
f1=@(theta1) tan(theta1)
f2=@(theta1) -cot(theta1)
t=linspace(0,2*pi);
x3=4*cos(t);
y3=4*sin(t);
%Plotting
g1=ezplot(f1,[-(5*pi)/2,(5*pi)/2])
hold on
g2=ezplot(f2,[-3*pi,3*pi])
hold on
plot(x3,y3)
grid on
I am supposed to find all intersections of the three graphs here, and that's where I am stuck. Thanks for any suggestions if you have any.
My output of the graph:
0 Kommentare
Antworten (1)
KSSV
am 21 Okt. 2021
USe this file exchange: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?requestedDomain=
0 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!