FORWARD KINEMATICS OF 2R ROBOTIC ARM
Objective: %forward kinematics of a 2 r robotic arm clear all close all clc %inputs l1=1 l2=2 theta1=1inspace(0,180,18) theta2=1inspace(0,360,18) % coordinates x0=0; y0=0; x1=l1*cosd(theta1); y1=l1*sind(theta1); x2=x1+l2*cosd(theta2); y2=x2+l2*sind(theta2); %plotting plot([x0 x1],[y0 y1],[x1 x2],[y1 y2],\'linewidth\',4) axis(0.1…