3D Plot- How to do it
조회 수: 5 (최근 30일)
이전 댓글 표시
I want to plot a 3D surface with the following:
y=4x-1/2
z=(14x-1)(113*x-31)/100
I know that these are each in xOy and zOy .
댓글 수: 0
답변 (1개)
Azzi Abdelmalek
2013년 6월 16일
편집: Azzi Abdelmalek
2013년 6월 16일
x=-100:0.1:100;
y=4*x-1/2;
z=(14*x-1).*(113*x-31)/100;
plot3(x,y,z)
%or
x=-100:0.1:100;
y=4*x-1/2;
[x1,y1]=meshgrid(x,y);
z1=(14*x1-1).*(113*x1-31)/100;
mesh(x1,y1,z1)
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!