All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
clear all close all clc %inputs l1=1; Length of first arm l2=0.5;Length of second arm theta1=linspace(0,90,10);(degree of first arm w.r.t x axis) theta2=linspace(0,90,10);(degree of 2nd arm w.r.t x axis) ct=1; counter for i=1:length(theta1) THETA1=theta1(i); for j=1:length(theta2) THETA2=theta2(j); x0=0; (value of X axis…
Asad Ali Baig Mirza
updated on 01 Mar 2022
clear all
close all
clc
%inputs
l1=1; Length of first arm
l2=0.5;Length of second arm
theta1=linspace(0,90,10);(degree of first arm w.r.t x axis)
theta2=linspace(0,90,10);(degree of 2nd arm w.r.t x axis)
ct=1; counter
for i=1:length(theta1)
THETA1=theta1(i);
for j=1:length(theta2)
THETA2=theta2(j);
x0=0; (value of X axis at 0 Position)
y0=0; (value of y axis at 0 Position)
x1=l1*cosd(THETA1); (value of X axis at 1 Position)
y1=l1*sind(THETA1); (value of y axis at 1 Position)
x2=x1+l2*cosd(THETA2); value of X axis at 2 Position
y2=y1+l2*sind(THETA2); value of y axis at 2 Position
%plotting
Figure(1)
plot([x0 x1],[y0 y1],[x1 x2],[y1 y2],'linewidth',3) Plotting the graph
axis([-0.1 1.5 0 1.5])
M(ct)=getframe(gcf);
ct=ct+1;
end
end
movie(M)
videofile = VideoWriter('forward_kinematics.mp4');
open(videofile)
writeVideo(videofile,M)
close(videofile)
While solving the solution i had faced many difficulties such as
1)forgetting to provide the input values
2)Not typing the same command as provided in the videos
3)i was not able to open the video file as per attached screenshot but i could resolve it with the help of a support engineer
who helped me rectify my commands and small mistakes which i had done
Youtube video animation link:https://youtu.be/UKATjGINYCo
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Radar Mast & Final Assembly of Yacht
Radar mast: Front view Side view Top view Expanded feature tree of Radarmast …
08 Mar 2023 06:59 PM IST
Week - 4
Implement control logic of a “washing machine” using Stateflow as per given sequence: If the power supply is available, the system gets activated If the Water supply is not available, stop the process & indicate through LED Soaking time should be 200s followed by Washing time of 100s. Then rinsing…
06 Apr 2022 07:06 PM IST
Week -2
Aim: 1)Make a Simulink model of Doorbell using solenoid block. 2)Use a thermistor to sense the temperature of a heater & turn on or turn off the fan. Solenoid: A solenoid is a type of electromagnet formed by a helical coil of wire whose length…
06 Apr 2022 04:28 PM IST
Project 1 - Parsing NASA thermodynamic data
Aim: To write a code to parse the thermodynamic data file provided and then calculate the thermodynamic properties of various gas species Objective: 1)Write a function that extracts the 14 co-efficients and calculates the enthalpy, entropy and specific heats for all the species in the data file. 2. Calculate the…
01 Apr 2022 05:25 PM IST
Related Courses
0 Hours of Content
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.