필터 지우기
필터 지우기

performing shear on lines

조회 수: 1 (최근 30일)
Paul Jackson
Paul Jackson 2021년 2월 12일
I have a shear matrix smat=[1 (0.2);0 1]
I used this to shear a couple of circles on a plot but when i tried to use the same method for the lines that attaches to the circles, i get a weird result.heres the code for that.
h1 and h2 are the lines and outputnew should be the line with the shear performed.
h1=output(1:2,:)';
h2=output(3:4,:)';
outputnew(1:2,:)=(h1*smat)';
outputnew(3:4,:)=(h2*smat)';

답변 (0개)

카테고리

Help CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by