How do we allocate equidistant points on a sinusoidal curve?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Satyajit Ghosh
le 19 Oct 2021
Commenté : Satyajit Ghosh
le 20 Oct 2021
The analytic equation is given below.
y=-25*sin((2*pi/50)*x);
Graph of above equation is given below.

What I exactly want is to allocate discrete equidistant points on this sinusoid curve. The step distance is 0.004. Basically, I have to solve the below equation starting from initial (x,y)=(0,0) point and use next point to calculate further point one by one.
(x-x_p).^2+(y-y_p).^2=(0.004)^2
=> (x-x_p).^2+(-25*sin(2*pi/50)*x)+25*sin(2*pi/50)*x_p)).^2=(0.004)^2
Here (x_p,y_p) is the previous point. But above equation is a trancendental equation. I am unable to solve it.
Thanks in advance!
0 commentaires
Réponse acceptée
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Quadratic Programming and Cone Programming 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!