clear all close all clc %inputs l1= 1; l2= 0.5; theta1 = linspace(0,90,10); theta2 = linspace(0,90,10); ct = 1; for i= 1:length(theta1) THETA1 = theta1(i) for j = 1:length(theta2) THETA2 = theta2(j); x0=0; y0=0; x1=l1*cosd(THETA1); y1=l1*sind(THETA1); x2=x1+l2*cosd(THETA2); y2=y1+l2*sind(THETA2); %plotting plot([x0 x1],[y0…
Meshack Immanuel
updated on 11 Feb 2020
Project Details
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...
Read more Projects by Meshack Immanuel (8)
USING GENETIC ALGORITHM TO OPTIMISE STALAGMITE FUNCTION AND TO FIND GLOBAL MAXIMA
https://projects.skill-lync.com/projects/USING-GENETIC-ALGORITHM-TO-OPTIMISE-STALAGMITE-FUNCTION-AND-TO-FIND-GLOBAL-MAXIMA-05363
20 Feb 2020 01:34 AM IST
USING GENETIC ALGORITHM TO OPTIMISE STALAGMITE FUNCTION AND TO FIND GLOBAL MAXIMA.
AIM: To optimise the stalagmite function and to find the global maxima of the function using MATLAB. SYNTAX: x = ga(fun,nvars) finds a local unconstrained minimum, x, to the objective function, fun. nvars is the dimension (number of design variables) of fun. x = ga(fun,nvars,A,b,Aeq,beq,lb,ub) defines…
20 Feb 2020 01:32 AM IST
curve fit for temperature and specific heat of oxygen using the inbuilt polynomial function polyfit and polyval using MATLAB
AIM: To construct a curve fit for temperature and specific heat of oxygen using the inbuilt polynomial command in MATLAB. Curve fitting: is the process of constructing a curve, or mathematical function, that has the best fit to a series of data points, possibly subject to constraints.curve fitting , also known as…
17 Feb 2020 04:38 AM IST
Solving second order derivative ODE function for simple oscillating pendulum using MATLAB.
%input b=0.5; g=9.81; l=1; m=1; %initial condition theta_0 = [0;3]; %time points t_span = linspace(0,20,500); %solve ODE [t, results]= ode45(@(t,theta)ode_func(t,theta,b,g,l,m),t_span,theta_0); figure(1) plot(t,results(:,1),'color','b'); hold on plot (t,results(:,2),'color','r'); hold off xlabel('position'); ylabel('angular…
14 Feb 2020 01:23 AM IST
Using MATLAB to calculate the thermal efficiency and visualizing the PV diagram.
%inputs gamma = 1.4 t3 = 2300 %state variables p1 = 101325 t1 = 500 % engine geometric parameters bore = 0.1; stroke = 0.1; con_rod = 0.15; cr = 12; %calculating the swapt volume and the clearance volume v_swept = (pi/4)*bore^2*stroke; v_clearance = v_swept/(cr-1); v1 = v_swept + v_clearance v2 = v_clearance %state variables…
13 Feb 2020 01:25 AM IST
forward kinetics of robotic arm using MATLAB
clear all close all clc %inputs l1= 1; l2= 0.5; theta1 = linspace(0,90,10); theta2 = linspace(0,90,10); ct = 1; for i= 1:length(theta1) THETA1 = theta1(i) for j = 1:length(theta2) THETA2 = theta2(j); x0=0; y0=0; x1=l1*cosd(THETA1); y1=l1*sind(THETA1); x2=x1+l2*cosd(THETA2); y2=y1+l2*sind(THETA2); %plotting plot([x0 x1],[y0…
11 Feb 2020 07:09 AM IST
FLOW OVER BICYCLE
FLOW OVER BICYCLE IN FLOW OVER BICYCLE The first step includes giving the required inputs for drag coefficient (c_d) Then the value of the frontal area (A) that experiences drag is given as an input Then the values for density rho is entered Like wise, the values for velocity (V) is also given as an input Then, with the…
11 Feb 2020 03:34 AM IST