How to plot curvature comb for discrete data
Ältere Kommentare anzeigen
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 Kommentare
lei
am 30 Dez. 2022
Verschoben: Star Strider
am 30 Dez. 2022
Star Strider
am 30 Dez. 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.
Antworten (0)
Kategorien
Mehr zu Profile and Improve Performance finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



