Project

2d robotic arm challange using MATLAB

stepwise explanation of code:

First we use clear all ,close all and clc to clear the workspace ,close the open tabs and clear the command the window respectively. we then define the length of arm1 and arm2 in l1 and l2 . we then define the angle between arm1 and horizonttal in thetha1 and the angle between arm2 and horizontal in thetha2. we then define the coordinates of origin as (0,0) and coordinates of end of arm1 by x1=l1*cosd(THETHA(i). where i varies from 0 to 90 with gap og 10 by using for loop. similarly we get y1. For calculation pf x2 ,we add x1 and projection of l2 with some angle, x2=x1+l2*cosd(THETHA(i). we then plot the coordinates and define the length of axis. A

fter this we capture the frame using 'getframe (gcf)' command and make the movie of frame P. we then prepare the new uncompressed avi format and write each crame to new filleusinf 'writevideo 'command.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.