Devide a plotted line
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hey there,
In order to move further with my Bachelorthesis, I need to devide this plotted line into 20 parts. Any part needs to have the exact same distance to the others. The distances need to the same on the plotted line, not just on the x- or y-coordinate.
I hope you understand my question.
Thanks in advance.
n = 3;
n1 = n-1;
a = 20; % Breite des Krummers entlang x
b = 10; % Höhe des Krümmers entlang y
P = [0 b;0 0;a 0]
syms t
B = bernsteinMatrix(n1,t);
bezierCurve = simplify(B*P);
fplot(bezierCurve(1), bezierCurve(2), [0, 1])
hold on
scatter(P(:,1), P(:,2),'filled')
hold off
4 Kommentare
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!