How to find radius of curvature?

88 views (last 30 days)
Soe Naing
Soe Naing on 6 Jul 2020
Commented: VIGNESH V on 23 Dec 2021
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.

Answers (1)

KSSV
KSSV on 6 Jul 2020
  1 Comment
VIGNESH V
VIGNESH V on 23 Dec 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');
     }
   }

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!