convert this ploygon from 2d to 3d graph

조회 수: 1 (최근 30일)
mangood UK
mangood UK 2013년 1월 19일
hi
i have this graph
xv = [1,2,3,4.8,8,10,10,5];
yv = [0,4,7.5,7.9,9,4,0,0];
patch(xv,yv,'b');
ylim([-5, 15]);
xlim([0, 15]);
i want to convert this to 3d with z=2 for all point of x-y coordinate
thank in advance regards
  댓글 수: 1
Image Analyst
Image Analyst 2013년 1월 19일
What do you want it to look like? Like just a flat slab?

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
Matt J 2013년 1월 19일
zv(1:length(xv))=2;
patch(xv,yv,zv,'b');
  댓글 수: 1
mangood UK
mangood UK 2013년 1월 19일
hi matt
the graph still 2d !!
is their any change must i do in properties

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by