How to plot a plane using ezmesh?

2 次查看(过去 30 天)
Ramadan M
Ramadan M 2021-9-18
评论: Tahirah 2023-2-19
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 个评论
darova
darova 2021-9-19
Corect your Z values
[x,y] = meshgrid(0:1);
z = 1 - x - y;
surf(x,y,z)
Tahirah
Tahirah 2023-2-19
Hey, were you ever able to solve this problem? I have this exact question and I don't what the code to put.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by