How to interpolate an ellipse given data points?
Ältere Kommentare anzeigen
Hi,
I plotted number of concentric ellipses using contour function, where each ellipse represents a flux level which is a function of two currents.
But the matrix which I obatained using contour function contains some x, y coordinates which when plotted gives me an approximate ellipse shape. For example let's say a small ellipse and matlab gives me a diamond shape for it, like in the picure shown

So, my intention is to make all these ellipses more smooth by increasing the number of data points in each ellipse.
I have tried using the code below

and it gives me a weird plots like shown below

I have also removed level,vertices column but still the plot looks weird.
So, is there any way to to get good ellipse shapes, also I should be able to access x and y datapoints after interpolation
Thank you.
2 Kommentare
Cris LaPierre
am 5 Apr. 2019
It is much more preferrable you copy/paste your code rather than include screenshots. Motivation to transcribe code from an image is often pretty low...
You can't interp an ellipse as is because there are 2 y values for most x values. You'd have to reparametize your curves.
John D'Errico
am 5 Apr. 2019
DON'T send me direct e-mail to get me to answer your question. Don't send me multiple e-mails, as you actually did. In fact, you had to send me e-mail through my profile, where you should have seen that explicit statement to not send direct e-mail.
I would have answered your question in depth otherwise, as I would have seen it, and found it to be of some interest.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Interpolation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
