How to find radius of curvature?
23 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
KSSV
am 6 Jul. 2020
1 Kommentar
VIGNESH V
am 23 Dez. 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');
}
}
Siehe auch
Kategorien
Mehr zu Particle & Nuclear Physics finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!