forward kinematics
Objective: clear all close all clc %inputs l1=1; l2=0.5; theta1=linspace(0,90,4); theta2=linspace(0,90,4); ct=1; for i=1:length(theta1) THETA1=theta1(i); for j=1:length(theta2) THETA2=theta2(j); %coordinates X0=0; Y0=0; X1=l1*cosd(THETA1); Y1=l1*sind(THETA1); X2=X1+l2*cosd(THETA2); Y2=Y1+l2*sind(THETA2); %plotting figure(ct) plot([X0…