Borrar filtros
Borrar filtros

How to plot a plane using ezmesh?

2 visualizaciones (últimos 30 días)
Ramadan M
Ramadan M el 18 de Sept. de 2021
Comentada: Tahirah el 19 de Feb. de 2023
I'm stuck on this question, and we have to use ezmesh for it, and i'm just getting a whole lot of errors
P = [1, 1, 1];
C = -2/3
Q = [C, C, C]
N = [1, 1, 1]
[x, y] = meshgrid(0:1);
z = ones(size(x, 1));
figure(4)
ezmesh(x, y, z, [0,1]);
hold on
quiver3(Q-P);
axis equal
hold off
  2 comentarios
darova
darova el 19 de Sept. de 2021
Corect your Z values
[x,y] = meshgrid(0:1);
z = 1 - x - y;
surf(x,y,z)
Tahirah
Tahirah el 19 de Feb. de 2023
Hey, were you ever able to solve this problem? I have this exact question and I don't what the code to put.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by