How to combine multiple functions/lines/arcs in only one?
Show older comments
I have drawn the following arc (drawn in pink)

Using and putting one next to another the following arcs (each one with different xp,yp,radius and centre values of course)
teta = linspace(rangini,rangfin);
xco = centre(1)+radius*cos(teta);
yco = centre(2)+radius*sin(teta);
plot(xco,yco,'m');
There is any form of uniting those arcs in only one function so I could work with it more easily in further code/programm?
4 Comments
KSSV
on 30 Oct 2020
If you have two set of points (x1, y1) and (x2, y2)..you can join them by
P = [x1 y1; x2 y2]
I am assuming that the data are column vectors.
ErikJon Pérez Mardaras
on 2 Nov 2020
KSSV
on 2 Nov 2020
Why not what error you got?
ErikJon Pérez Mardaras
on 2 Nov 2020
Edited: ErikJon Pérez Mardaras
on 2 Nov 2020
Accepted Answer
More Answers (0)
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!