How to find radius of curvature?
33 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, I have points coordinates of 2D curve in excel. I would like to find radius of curvature using matlab. Anyone can help me how to write matlab program finding radius of curvature.
0 commentaires
Réponses (1)
KSSV
le 6 Juil 2020
1 commentaire
VIGNESH V
le 23 Déc 2021
Maciej Los Comments CPallini 5-Aug-13 9:36am
5. Maciej Los 5-Aug-13 15:34pm
Thank you, Carlo ;)
Solution 4 try: C# Expand ▼ Copy Code class Program { const int N = 20; static void Main() { char [, ] circle = new char[2*N+1, 2*N+1]; double phi, dphi = 0.5 / N;
phi = 0.0;
for (int y = 0; y < 2*N+1; y++)
for (int x = 0; x < 2*N+1; x++)
circle[y, x] = '0'; while (phi <= 2*Math.PI)
{
int x = (int) Math.Round( N + N * Math.Cos(phi));
int y = (int)Math.Round(N + N * Math.Sin(phi));
circle[y, x] = '1';
phi += dphi;
} for (int y = 0; y < 2*N+1; y++)
{
for (int x = 0; x < 2*N+1; x++)
Console.Write(circle[y, x]);
Console.Write('\n');
}
}
Voir également
Catégories
En savoir plus sur Particle & Nuclear Physics 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!