All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
https://youtu.be/4RFEUCitk30 (Youtube link of Robotic arm video) %% Challange on Robotic Arm Movement one time. clear all close all clc l1 = 1; l2 = 0.5; thetha1 = linspace(10,90,10); thetha2 = linspace(10,90,10); ct = 1 for i = 1:length(thetha1); THETHA1 = thetha1(i); …
Harsh Sharma
updated on 17 Oct 2022
(Youtube link of Robotic arm video)
%% Challange on Robotic Arm Movement one time.
clear all
close all
clc
l1 = 1;
l2 = 0.5;
thetha1 = linspace(10,90,10);
thetha2 = linspace(10,90,10);
ct = 1
for i = 1:length(thetha1);
THETHA1 = thetha1(i);
for j = 1:length(thetha2);
THETHA2 = thetha2(j);
x0 = 0;
y0 = 0;
x1 = l1*cosd(thetha1);
y1 = l1*sind(thetha1);
we have used cosd here instead of cos. Because I have taken the thetha in degree.
Because matlab understand that, if cosd is written, then it will take the value of any trigonometry function in degree. Rather than it will take the value in radian.
x2 = x1 + l2*cosd(thetha2);
y2 = y1 + l2*sind(thetha2);
plot([x0,x1],[y0,y1],[x1,x2],[y1,y2],'linewidth',3)
axis([-0.1 1.5 0 1.5])
Determine the axis for movie creation. And to look plot much systematic.
pause(0.2)
To manage to speed of the movie.
M(ct) = getframe(gcf);
It is a helping function of movie creation.
ct = ct+1;
end
end
movie(M)
This is a inbuilt function for creating movie of any array for one single time.
videofile = VideoWriter('Robotic_arm.avi','Uncompressed AVI');
Videofile is a variable. And VideoWriter is a function. Which creates a VideoWriter object to write video data to an AVI file with motion. We also applied some additional properties, such as Uncompressed AVI.
open(videofile)
Open command to open the movie in variable videofile.
writeVideo(videofile,M)
Write video from an array to a video file.
close(videofile)
Close command to open the video file.
NOTE :-
Error report is also attached.
It contains error screenshots which came in the command window. And the corrective action taken.
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...
Week 3.5 - Deriving 4th order approximation of a 2nd order derivative using Taylor Table method
Deriving 4th order approximation of a 2nd order derivative using Taylor Table Method. Taylor series formula is a representation of any function as an infinite sum of terms. These terms are calculated from the values of function’s derivatives at a single point. The derivative of a function f at the point x is defined…
03 Sep 2024 02:20 PM IST
Week 7 - CHT Analysis on a Graphics card
Challenge No-6 Graphics Card Simulation. Aim – Perform a steady state conjugate heat transfer analysis on a model of a graphics card. Challenge Objective – 01. Run the simulation by varying the velocity from 1m/sec to 5m/sec for at least 3 velocities and discuss the results. 02. …
18 Mar 2024 05:10 PM IST
Week 5 - Rayleigh Taylor Instability
Challenge no- 5 Rayleigh Taylor Instability Aim – The Aim is to understand the Rayleigh Taylor instability phenomena and how it takes place. Objectives – 1. What are some practical CFD models that have been based on the mathematical analysis of Rayleigh Taylor waves? In…
10 Mar 2024 11:39 AM IST
Week 4 - CHT Analysis on Exhaust port
Challenge – CHT Analysis on Exhaust Port. Objective 1 – Conjugate heat transfer refers to the combined analysis of both fluid flow and heat transfer in systems where there are solid structure interacting with the fluid flow, leading to heat transfer between the solid structure and the surrounding fluid. In…
29 Feb 2024 06:13 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.