필터 지우기
필터 지우기

2d function in 3d

조회 수: 1 (최근 30일)
felix jose chavez torres
felix jose chavez torres 2018년 1월 25일
댓글: Star Strider 2018년 1월 26일
i need to show this function y = x^2 in 3d in matlab

채택된 답변

Star Strider
Star Strider 2018년 1월 26일
편집: Star Strider 2018년 1월 26일
Try this:
x = [1;1] * linspace(-4, 4, 25) ;
y = x.^2;
figure(1)
surf(x, y, [zeros(size(x(1,:))); 5*ones(size(x(1,:)))], 'EdgeColor','b')
grid on
view(-75, 45)
EDIT Added plot.
  댓글 수: 2
felix jose chavez torres
felix jose chavez torres 2018년 1월 26일
thanks!!
Star Strider
Star Strider 2018년 1월 26일
As always, my pleasure!

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

추가 답변 (1개)

Nicolas Schmit
Nicolas Schmit 2018년 1월 26일

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by