MATLAB: How can I draw a line knowing just the midpoint and the angle
MATLABplotting
how can I draw a line knowing just the midpoint and the angle?
Best Answer
You can do this
midpoint=[a,b]; % This defines the midpoint. You should give a and b some value. lineangle=c; % This defines the angle. Use this if your angle is in radians. lineangle=c*pi/180; % This defines the angle. Use this if your angle is in degrees.
Best Answer