2R Robotic Arm
Objective: clc clear all close all %inputs l1 = 1; l2 = 0.5; thetha1 = linspace(0,90,10); thetha2 = linspace(0,90,10); ct = 1; %positions of both links at fifferent values of thetha1 and thetha2 for i=1:length(thetha1) THETHA1 = thetha1(i); %one value of thetha at a time for j=1:length(thetha2) THETHA2 = thetha2(j); x0=0; y0=0; x1=l1*cosd(THETHA1);…