Rotate an array of lines
이전 댓글 표시
I need to rotate a line (and posteriorly an array of lines) on a given alpha from a variable coordinate origin ( x,y ). I need to use the command line() and I already tried command rotate() with no luck.
Can some one please help me out? :)
Thanks in advance
댓글 수: 2
Walter Roberson
2012년 5월 6일
What does it mean to rotate a line "on a given alpha" ?
Xeio De Sono
2012년 5월 6일
답변 (4개)
Jakob Sørensen
2012년 5월 7일
1 개 추천
If you for some reason can't get the built in functions to do as you want, you could always try it the old school way (doing the math yourself)...
bym
2012년 5월 6일
h = line([2,5],[2,2]);
rotate(h,[0,0,1],45)
댓글 수: 2
Xeio De Sono
2012년 5월 6일
Jan
2012년 5월 6일
As long as you describe the problems only by "with no luck" and "without the result I needed", it is hard to guess, what you are looking for. It is much more efficient to invest time in answering question, than in guessing, what the question is. So please post more details - by editing the original question, and not as answer or comment. Thanks.
Xeio De Sono
2012년 5월 7일
Sean de Wolski
2012년 5월 7일
카테고리
도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!