find the point of intersection of one curve with itselfs
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Niklas Deines
le 16 Juin 2022
Modifié(e) : Kevin Holly
le 16 Juin 2022
hey Everyone,
i have:
x = [2 0 0 2 2 -1]';
y = [4 4 0 0 2 2]';
and i have to to find the point, where the function cuts itselfs. I know it should work with cscvn and anonymous function but i dont know how exactly. A picture of the function is attached
0 commentaires
Réponse acceptée
Kevin Holly
le 16 Juin 2022
Modifié(e) : Kevin Holly
le 16 Juin 2022
x = [2 0 0 2 2 -1];
y = [4 4 0 0 2 2];
points = [x;y];
h=fnplt(cscvn(points));
plot(h(1,:),h(2,:));hold on,
plot(points(1,:),points(2,:),'o'), hold off
[yi,xi] = polyxpoly(h(2,1:round(end/2)-1),h(1,1:round(end/2)-1),h(2,round(end/2):end),h(1,round(end/2):end))
hold on
plot(xi,yi,'g*')
xi
yi
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Least Squares dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!