Calculate a curve out of points and the curvature radius
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jon Bilbao
am 13 Apr. 2023
Beantwortet: Jon Bilbao
am 13 Apr. 2023
I have a curve with a variable curvature radius and i want to calculate a function tha defines that radius.
x and y are the coordinates of some points in the x an y axis, and with that ponts i want to calculate a curve fitting them with splines and the calculate de curvature radius of that curve.
I dont know why theres is an error in this function.
Does anyone know how to solve it?
Thanks
function [r] = rtrans2(x,y)
%UNTITLED3 Summary of this function goes here
% Detailed explanation goes here
s=csapi(x,y);
r=((diff(s,2)).^2)/(1+diff(s,1).^2);
end
9 Kommentare
Sam Chak
am 13 Apr. 2023
@Jon Bilbao, good to see that you've found the solution. I'd advise you to move your solution in the comment to the Answer section.
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spline Postprocessing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!