Mahendra Singh
4 Projects
creating of row and column vector in matlab
clear all close all clc %program(1) to calculate drag force on cycle and make plots of that. %inputs %Area m^2 a=.5 %density kg/m^3 rho=1.2 %velocity m/sec (for different velocities) v=1:40; %Drag coefficient c_d=.5 drag_force=.5*a*v.^2*rho*c_d; plot(v,drag_force,\'color\',\'r\') xlabel(\'v(m/sec)\') ylabel(\'Drag Force(N)\')…
21 Jul 2018 09:48 AM IST
forward kinematics
% variables theta_1=linspace(0,90,2) theta_2=linspace(0,90,2) l_1=1 l_2=.5 ct=1 for i=1:length(theta_1) Theta_1=theta_1(i) for j=1:length(theta_2) Theta_2=theta_2(j) x_0=0 y_0=0 x_1=l_1*cosd(Theta_1) y_1=l_1*sind(Theta_1) x_2=x_1+l_2*cosd(Theta_2) y_2=y_1+l_2*sind(Theta_2) %plot plot([x_0 x_1],[y_0 y_1],[x_1 x_2],[y_1…
11 Aug 2018 01:55 AM IST
forward kinematics
% variables theta_1=linspace(0,90,2) theta_2=linspace(0,90,2) l_1=1 l_2=.5 ct=1 for i=1:length(theta_1) Theta_1=theta_1(i) for j=1:length(theta_2) Theta_2=theta_2(j) x_0=0 y_0=0 x_1=l_1*cosd(Theta_1) y_1=l_1*sind(Theta_1) x_2=x_1+l_2*cosd(Theta_2) y_2=y_1+l_2*sind(Theta_2) %plot plot([x_0 x_1],[y_0 y_1],[x_1 x_2],[y_1…
11 Aug 2018 01:55 AM IST
creating of row and column vector in matlab
% command for row vector a=[2 8 7 9 4] %command for column vector a=[1;3;5;8]
21 Jul 2018 07:32 AM IST
Similar Profiles
Ladder of success cannot be climbed with hands in pocket.
The Future in Motion
Give more than what you get you will get more than what you gave
Avid learner