Borrar filtros
Borrar filtros

How do I make a Hexagonal Shaped Mesh?

7 visualizaciones (últimos 30 días)
mattyice
mattyice el 18 de Abr. de 2016
Editada: mattyice el 19 de Abr. de 2016
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!

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by