compass plot

5 次查看(过去 30 天)
nur
nur 2011-10-12
i would like to know how to rotate the compass so that 0 value is on the top (y-axis).when im plotting compass 0 value is on the right(x-axis).i want to make 0 value on y-axis.

回答(2 个)

Grzegorz Knor
Grzegorz Knor 2011-10-12
  1 个评论
Miguel Gil Mast
Miguel Gil Mast 2016-3-15
编辑:Miguel Gil Mast 2016-3-15
Adding to Grzegorz Knor's comment, I used the following to rotate my compass (see attached pictures)
view([+90 -90]);
This is what Bruce Raine's script does also only that he saves the inputs as az and el first

请先登录,再进行评论。


Bruce Raine
Bruce Raine 2012-2-8
Try this code, the above code has the signs around the wrong way.
az = 90; % azimuth i.e. rotate around z-axis horizontally by 90 degrees
el = -90; % elevation negative, effectively looking beneath plot
view(az, el);

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by