フィルターのクリア

how do i create a surface around two circles of different diameters located a specific position???

3 ビュー (過去 30 日間)
can anyone please help me with generation of mesh or surface around circles.... shall remain thankful. please see the code below... i want to create surface around 3 circles of different radius.... i tried using mesh and surf but not been able to do it.
  7 件のコメント
Dr Sohaib Khan
Dr Sohaib Khan 2020 年 11 月 1 日
sure sir will do that. thankyou :)

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

採用された回答

Star Strider
Star Strider 2020 年 6 月 2 日
You are close. You need to concatenate the vectors into matrices, then use surf to plot them.
Try this:
xm = [x1; x2; x3];
ym = [y1; y2; y3];
zm = [z1; z2; z3];
figure
surf(zm, ym, xm)
grid on
shading('interp') % Optional (Smooth Surface Interpolation)
axis('equal')
producing:
I equalised the axis scales so as not to distort the circles.
  2 件のコメント
Dr Sohaib Khan
Dr Sohaib Khan 2020 年 6 月 2 日
THANKYOU SO MUCH Star Strider ... !!!! u solved my problem. god bless :)
Star Strider
Star Strider 2020 年 6 月 2 日
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by