How to apply conditions to fill an area in 3D space?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hadi Ghahremannezhad
el 28 de Dic. de 2020
Comentada: Hadi Ghahremannezhad
el 4 de En. de 2021
I wanted to fill an area in 3D space using some conditions on a vector.
Suppose the vector is:
x1 = 100;
y1 = 100;
z1 = 100;
v1 = [x1, y1, z1];
now I want to assign conditions for
v2 = [x2, y2, z2];
such as:
x2 < x1;
y2 < y1;
z2 < z1;
x1 - x2 < y1 - y2;
y1 - y2 < z1 - z2;
How can I apply these conditions and fill the area in 3D space for all possible values of v2?
2 comentarios
Prudhvi Peddagoni
el 31 de Dic. de 2020
Hi,
f = @(x,y,z) x<1 & y<1 & z<1;
fimplicit3(f,[-100 100])
Hope this helps.
Respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!