필터 지우기
필터 지우기

Trouble plotting a 3D meshgrid

조회 수: 1 (최근 30일)
Olivia Rose
Olivia Rose 2022년 4월 14일
편집: Olivia Rose 2022년 4월 14일
I need to plot a 3D surface plot using a meshgrid, but it keeps saying not enough input arguements?
x=[-4:1:4]; y=[-3:1:3];
z=sqrt((x.^2/4)+2*sin.^2*(0.7*y));
mesh(x,y,z)

채택된 답변

Dyuman Joshi
Dyuman Joshi 2022년 4월 14일
[x,y]=meshgrid(-4:0.1:4,-3:0.1:3); %Making the difference smaller to get a smoother mesh
z=sqrt((x.^2/4)+2*sin(0.7*y).^2);
mesh(x,y,z)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by