How to plot curvature comb for discrete data
Show older comments
Hello,
everyone! I want to plot the curvature comb from some discrete data, which lie in circle. I only get a graph of curvature curve, actually to better observe I want to get a graph of curvature comb, like Fig(a). So could you give me some suggestions? Thank you very much!

(a)
clc;clear all;
i=1:45;
x0=sin(pi*i/20);
y0=cos(pi*i/20);
h1 = abs(diff([x0])) ;
h = [h1 h1(end)];
ht = h;
yapp1 = gradient(y0)./ht;
yapp2 = del2(y0)./ht;
k2 = abs(yapp2)./(1+yapp1.^2).^(3/2);
figure
plot(k2,'color','r')
title('Curvature curve')
figure
plot(x0,y0,'.-');
2 Comments
Star Strider
on 30 Dec 2022
O.K. I’m still not sure I understand what you want to do, however at least this solves the mystery of a ‘curvature comb’.
I moved this because it belongs here.
Answers (0)
Categories
Find more on Fit Postprocessing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


