Implicit plane curve discretization
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Maxim Bogdan
el 16 de Abr. de 2021
Comentada: Maxim Bogdan
el 17 de Abr. de 2021
I want to have a matrix with 2 lines and n columns with the coordinates of points that lie on the implicit curve where is a function. I know that the matlab function fimplicit can plot the curve. So in its subroutines it grabs a set of points from\near that curve. How can I extract those points and use them for future calculations (like the perimeter of the curve)?
Thanks!
0 comentarios
Respuesta aceptada
Matt J
el 16 de Abr. de 2021
Editada: Matt J
el 16 de Abr. de 2021
fp=fimplicit(@(x,y) x.^2 + 2*y.^2 - 1); %Example
Points=[fp.XData;fp.YData]
3 comentarios
Walter Roberson
el 17 de Abr. de 2021
fp = fimplicit(@(x,y) x.^2 + 2*y.^2 - 1, 'visible', 'off'); %Example
Points = [fp.XData;fp.YData]
delete(fp)
However this creates a graphic object -- so for example if you have no existing figure then one will be created with an axes in it (that just will not have any visible content.)
Más respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!