필터 지우기
필터 지우기

How do I make a Hexagonal Shaped Mesh?

조회 수: 7 (최근 30일)
mattyice
mattyice 2016년 4월 18일
편집: mattyice 2016년 4월 19일
Hi,
I would like to make a hexagonal shaped mesh from this square mesh
x=linspace(-10,10,100);
y=linspace(-10,10,100);
[X,Y] = meshgrid(x,y);
I would like the hexagon bounded by the lines
y=-x(3^(1/2))-10(3^(1/2));
y=x(3^(1/2))+10(3^(1/2));
y=-x(3^(1/2))+10(3^(1/2));
y=x(3^(1/2))-10(3^(1/2));
y=5(3^(1/2));
y=-5(3^(1/2));
Not sure how to do this.
Thanks!

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by