필터 지우기
필터 지우기

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