필터 지우기
필터 지우기

I'm trying to rotate a plot before graphing it

조회 수: 3 (최근 30일)
Rick Giovanini
Rick Giovanini 2018년 1월 11일
답변: Walter Roberson 2018년 1월 11일
Hello, I'm trying to rotate plot information(I was doing this before with handles) without graphing it. This is because this has to do with animations, and other things being animated on this same plot. I need to get this shape to rotate before plotting it, because running it in time will not work well if it is plotted, even for a short time, and then rotated. I need to do this with handles because I don't want a new figure, nor do I want this shape to be overwritten while I'm graphing it.
  댓글 수: 1
SRT HellKitty
SRT HellKitty 2018년 1월 11일
Can you use camroll()? you can set the plot invisible while you do this;
set(gcf,'Visible','off') %set invisble
camroll(gca,20) %rotate 20*
set(gcf,'visible','on') %set visible

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

답변 (1개)

Walter Roberson
Walter Roberson 2018년 1월 11일
If you want to rotate part of the contents of the plot (rather than wanting to rotate the plotting frame itself) then I suggest parenting the graphic to a hgtransform and use hgmaketform to create the appropriate rotation matrix. See https://www.mathworks.com/help/matlab/ref/hgtransform.html

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by