フィルターのクリア

plot a hexagonal figure

1 回表示 (過去 30 日間)
mohammad mortezaie
mohammad mortezaie 2021 年 8 月 3 日
コメント済み: Adam Danz 2021 年 8 月 18 日
I need to plot a hexagonal figure like (a) part of this image.
How can i do that?
  5 件のコメント
mohammad mortezaie
mohammad mortezaie 2021 年 8 月 3 日
it's solved.
Thank you
Adam Danz
Adam Danz 2021 年 8 月 18 日
Please do not ask duplicate questions in the future.

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

採用された回答

Adam Danz
Adam Danz 2021 年 8 月 3 日
th = linspace(0,2*pi,7) + pi/6;
x = sin(th);
y = cos(th);
figure()
tiledlayout(1,2)
nexttile()
plot(x,y,'k-o','markerSize',3,'MarkerFaceColor','k')
axis equal
axis padded
nexttile()
hold on
zDist = .3;
plot3(x(:)*[1,1],y(:)*[1,1],zDist.*[-.5,.5].*ones(numel(x),1),'k-')
plot3([1;1]*x(:)', [1;1]*y(:)',zDist.*[-.5,.5],'k-')
zlim([-1,1])
view(-50,15)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by