How to find radius of curvature?
72 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
KSSV
2020-7-6
1 个评论
VIGNESH V
2021-12-23
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'); } }
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Feature Detection and Extraction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!