Devide a plotted line

6 Ansichten (letzte 30 Tage)
Tim Schaller
Tim Schaller am 29 Sep. 2022
Kommentiert: Tim Schaller am 29 Sep. 2022
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]
P = 3×2
0 10 0 0 20 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
David Hill
David Hill am 29 Sep. 2022
Did you download the function from the file exchange?
Tim Schaller
Tim Schaller am 29 Sep. 2022
Okey, now I got it. Thank You
Now I need to figure out a way it works for my example.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB 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!

Translated by