2R-ROBOTIC ARM SIMULATION
Objective: clear all close all clc %inputs %l1 is the length of the link 1 %l2 is the length of the link 2 %theta1 and theta2 are the angles made by the links to the horizontal %respectively l1=2; l2=1; theta1=linspace(0,90,20); theta2=linspace(0,90,20); ct=1; for i=1:length(theta1) THETA1=theta1(i); for j=1:length(theta2) THETA2=theta2(j);…