Question: one of them case is wrong code is - - - - - % Your Name S = [ 0 , 1 , 1 ,
one of them case is wrong
code is
Your Name
S;;; square in homogeneous coordinates
M;;; translation matrix
MSMS; translated square
plot the translated square in black with linewidth
plotMS:MS:k'LineWidth',;
hold on
enter the reflection matrix
R cospisinpi;sinpicospi;;
apply the reflection matrix to MS
RMS RMS;
plot the reflected square RMS in red with linewidth
plotRMS:RMS:r'LineWidth',;
plot the line y x using the given command
plot;
add a legend like in the reference figure
legendtranslated square','reflected square','line y x'location','southwest';
axis; rescale the axis
axis square; adjust aspect ratio of figure
grid on; creates grid
pls do correct i will upvote otherwise downvote
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
