필터 지우기
필터 지우기

how to convert to 3d?

조회 수: 2 (최근 30일)
bsd
bsd 2011년 9월 23일
Hai,
I have plotted a hyperbolic lens in matlab using the equation "y=sqrt((n^2-1)*((x-f)^2))+((2)*(f)*(n-1)*(x-f)))". As you can see the equation is in 2d, but I need the lens in 3d, is it possible in matlab? Do you have any equations for lens in 3d?
BSD
  댓글 수: 4
Image Analyst
Image Analyst 2011년 9월 23일
Maybe if you say x is really r (radius) and so then you have x and y and then the equation would be z. Then you would have a 2D situation. You could then use meshgrid() and surf(). Can you try that and get back to us?
bsd
bsd 2011년 9월 24일
I did not understand your explanation...
BSD

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

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 9월 23일
It's probably not "convert". If you don't have the third dimension, then it is a 2d plot. If you want to view it in 3d, you can use view().
plot(magic(10));
view(3)
Then, click the "rotate 3D" button to rotate and see the effect.
  댓글 수: 3
bsd
bsd 2011년 9월 23일
what is BTW?
BSD
Fangjun Jiang
Fangjun Jiang 2011년 9월 23일
By the way, according to http://en.wikipedia.org/wiki/BTW.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by