How to plot curvature comb for discrete data
Afficher commentaires plus anciens
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 commentaires
lei
le 30 Déc 2022
Déplacé(e) : Star Strider
le 30 Déc 2022
Star Strider
le 30 Déc 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.
Réponses (0)
Catégories
En savoir plus sur Fit Postprocessing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



