フィルターのクリア

How to combine multiple functions/lines/arcs in only one?

3 ビュー (過去 30 日間)
ErikJon Pérez Mardaras
ErikJon Pérez Mardaras 2020 年 10 月 30 日
編集済み: ErikJon Pérez Mardaras 2020 年 11 月 2 日
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 件のコメント
KSSV
KSSV 2020 年 11 月 2 日
Why not what error you got?
ErikJon Pérez Mardaras
ErikJon Pérez Mardaras 2020 年 11 月 2 日
編集済み: ErikJon Pérez Mardaras 2020 年 11 月 2 日
It draws me a strange figure that has nothing to do with what I want. I have find the solution, however, a lot of thanks for your repply!

サインインしてコメントする。

採用された回答

ErikJon Pérez Mardaras
ErikJon Pérez Mardaras 2020 年 11 月 2 日
The solution in making a matrix like that
arc=[x1 x2 x3 x4 x5 x(n)... ;y1 y2 y3 y4 y5 y(n)...]
Important putting the first coordinates first

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by