Question regarding impoly restraint to move about a specified path
Mostrar comentarios más antiguos
Lets say I have an implicit equation in x and y f(x,y)=x^2 + y^2 -5*x +12*y +24 which is an example. I construct an impoly with three or n number of vertices over the curve.My question is how can I restrict the movement of vertices of impoly to be restricted to follow the path of the curve.
2 comentarios
darova
el 12 de Jun. de 2020
PLease attach some example or something
Saikat Banerjee
el 12 de Jun. de 2020
Respuesta aceptada
Más respuestas (1)
Ameer Hamza
el 12 de Jun. de 2020
You can use fimplicit() to get the points on the equation and then pass those points to impoly()
f = @(x, y) x.^2 + y.^2 - 5*x + 12*y + 24;
fi = fimplicit(f, [-3 8 -15 0]);
x = fi.XData;
y = fi.YData;
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!