How to find radius of curvature?
76 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
KSSV
el 6 de Jul. de 2020
1 comentario
VIGNESH V
el 23 de Dic. de 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'); } }
Ver también
Categorías
Más información sobre Feature Detection and Extraction en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!