How to combine multiple functions/lines/arcs in only one?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
ErikJon Pérez Mardaras
il 30 Ott 2020
Modificato: ErikJon Pérez Mardaras
il 2 Nov 2020
I have drawn the following arc (drawn in pink)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/397224/image.png)
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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!