フィルターのクリア

How to define the Y direction in a GUI axes

3 ビュー (過去 30 日間)
F Z
F Z 2013 年 8 月 19 日
Hello,
Is it possible to rotate a segment of 30°?
In fact, i tried the rotate function :rotate(h,direction,alpha) but i can't figure out which one of my axis corresponds to The Ydirection.
The line to be rotated is : h2=line([-a,a],[wp,wp],'color','k','linewidth',1);
Any ideas please?
Thank you in advance for your help

回答 (1 件)

Image Analyst
Image Analyst 2013 年 8 月 19 日
The y direction/axis is the vertical axis. You can set the direction to be increasing going up or going down. To rotate coordinates, just use the usual 2 by 2 array [cos sin; -sin cos] to get your new coordinates. Then call line() with those.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by