I solved the problem, solution can be seen on here,
How to plot circular arc passes through 3 points ?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Atakan Zeybek
el 21 de Jul. de 2020
Editada: Bruno Luong
el 22 de Jul. de 2020
Hello All,
I am trying to write a program which generates arc passes through 3 given points. To do that, I have written the code which finds the circle passes through 3 points, and calculated the angle of these points. I am making program plot between first and last points' angle values. However, linspace function creates a problem because it always takes the CCW. depending on middle point it can be CW. Is there any function or program which creates an arc given 3 points ? or is there any method like linspace which can wrap values around 2pi ?
0 comentarios
Respuesta aceptada
Más respuestas (1)
Bruno Luong
el 21 de Jul. de 2020
Editada: Bruno Luong
el 22 de Jul. de 2020
Assuming you have angle vector in radian. Change
anglevectorCCW = linspace(angle1, angle2)
to
anglevectorCW = linspace(min(angle1,angle2),max(angle1,angle2)-2*pi);
for plot the other part of the circle.
2 comentarios
Bruno Luong
el 22 de Jul. de 2020
Editada: Bruno Luong
el 22 de Jul. de 2020
Show us your corresponding angle values, input arguments of LINSPACE and the command of plot the arc.
Don't care about the "points", which I have no clue why it's 3 x 1 array, doesn't make any sense since you seem to describe 3 points in the plane.
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!