Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
how can i use my function just ones?
조회 수: 1 (최근 30일)
이전 댓글 표시
hello i have a function and a problem :)
function[result] = transform_vertices(v, m)
for i = 1 : size(v,2)
v(:,i) = m * v(:,i); %m * ith coloumn of v
end
result = v;
end
i should use this function(transform_vertices) just ONCE to rotate ,translate but how can i use just once? my code is
image1_vertices = quad;
image1_vertices = transform_vertices(transform_vertices(quad,mrotate(30)),mtranslate(-2,0));
PS: mtranslate and mrotate are also function which calculates rotation,translation
can anyone help ?
댓글 수: 1
Roger Stafford
2016년 4월 11일
Your question is somewhat vague, but I'll hazard an answer. The operation of multiple rotation would presumably require a power, not a multiple, be taken of the single rotation matrix. You appear to be simply taking a scalar multiple in your code.
Please give a lot more details.
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!