interpolate curve to some blob
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
hi i have x,y point of curve i want to create some interpolation that will add x,y points . i want that line will pass in the direction of the blob and even in the center of the mass . it should be smooth. here is example figure : the black curve below is given and i want to continue it to the blob above(as the dotted).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/228585/image.jpeg)
2 Commenti
Kevin Phung
il 11 Lug 2019
to interpolate, you need to provide two endpoints. Do you have in mind exactly the path within the blob the line will travel? Or at least, its entry and exit points?
Guillaume
il 11 Lug 2019
This is not interpolation, this is extrapolation, and in my opinion considering the sharp bend in the known shape of the black curve, it is actually making up data unless more is known about the desired shape.
it should be smooth. A wiidly oscillating sine curve is smooth. I'm sure that's not what you want.
Risposta accettata
darova
il 11 Lug 2019
Find center of a circle and radius
![Untitled.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/228612/Untitled.png)
A - start point (
- direction vector )
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/228613/image.png)
B - End point (mass center?)
M - middle point between A and B
AO - perdpendicular to
in point A
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/228614/image.png)
MO - perpdendicular to AB in point M
O - intersection of perpendiculars (center of a circle)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Interpolation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!