The description about the az of view is wrong.

조회 수: 4 (최근 30일)
Gary Bikini
Gary Bikini 2020년 3월 21일
편집: Gary Bikini 2020년 3월 21일
The decription about the az are as follows:
```
az Azimuth
number
Azimuth, specified as an angle in degrees from the negative y-axis. Increasing this angle corresponds to counterclockwise rotation about the z-axis when viewing the x-y plane from above.
```
I think the word "counterclockwise" is wrong. It should be "clockwise". The code can prove that.
az=45;
[X,Y,Z] = peaks;
figure
surf(X,Y,Z)
xlabel('X')
ylabel('Y')
zlabel('Z')
view(az,45)
az=60;
figure
surf(X,Y,Z)
xlabel('X')
ylabel('Y')
zlabel('Z')
view(az,45)

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 3월 21일
I guess this line in documentation is about the rotation of observer around the +z-axis. If you look at the explanation about the line of sight here: https://www.mathworks.com/help/matlab/ref/view.html#mw_a674278c-855a-4302-98e4-fc13c181cfd8, you can see that when the observer's line of sight rotates counterclockwise, the axis appear to have rotated clockwise.
  댓글 수: 1
Gary Bikini
Gary Bikini 2020년 3월 21일
편집: Gary Bikini 2020년 3월 21일
Good explanation. The subject of counterclockwise rotation about the z-axis is the line of sight, not the x-y plane. Thanks!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by