clear allclose allclcb = 0.05g = 9.81l = 1m = 1theta_0 = [0;5]t_span = linspace(0,20,500)[t,results] = ode45( @(t,theta) ode_func1(t,theta,b,g,l,m),t_span, theta_0);subplot(5,4,[13,14,17,18]);plot(t,results(:,1),'color','b');hold onplot(t,results(:,2),'color','r');hold offsubplot(5,4,[15,16,19,20]);plot(results(:,1), results(:,2));xlabel('position-Radions');ylabel('Angular…
Abhishek Mishra
updated on 11 Nov 2018
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 Abhishek Mishra (4)
Genetic Algorithm
clear all close all clc % Defining our search space x = linspace(0,0.6,150); y = linspace(0,0.6,150); [xx yy ] = meshgrid(x,y); % Evaluating the stalagmite function for i = 1:length(xx) for j = 1:length(yy) input_vector(1)=xx(i,j) input_vector(2)=yy(i,j) f(i,j) = stalagmite(input_vector); end end tic % Study1- Statical…
16 Nov 2018 09:16 AM IST
a new title
clear allclose allclcb = 0.05g = 9.81l = 1m = 1theta_0 = [0;5]t_span = linspace(0,20,500)[t,results] = ode45( @(t,theta) ode_func1(t,theta,b,g,l,m),t_span, theta_0);subplot(5,4,[13,14,17,18]);plot(t,results(:,1),'color','b');hold onplot(t,results(:,2),'color','r');hold offsubplot(5,4,[15,16,19,20]);plot(results(:,1), results(:,2));xlabel('position-Radions');ylabel('Angular…
11 Nov 2018 07:03 AM IST
a new title
clear allclose allclcb = 0.05g = 9.81l = 1m = 1theta_0 = [0;5]t_span = linspace(0,20,500)[t,results] = ode45( @(t,theta) ode_func1(t,theta,b,g,l,m),t_span, theta_0);subplot(5,4,[13,14,17,18]);plot(t,results(:,1),'color','b');hold onplot(t,results(:,2),'color','r');hold offsubplot(5,4,[15,16,19,20]);plot(results(:,1), results(:,2));xlabel('position-Radions');ylabel('Angular…
11 Nov 2018 07:03 AM IST
Simple Pendulum Motion
clear all close all clc b = 0.05 g = 9.81 l = 1 m = 1 theta_0 = [0;5] t_span = linspace(0,20,500) [t,results] = ode45( @(t,theta) ode_func1(t,theta,b,g,l,m),t_span, theta_0); subplot(5,4,[13,14,17,18]); plot(t,results(:,1),\'color\',\'b\'); hold on plot(t,results(:,2),\'color\',\'r\'); hold off subplot(5,4,[15,16,19,20]);…
30 Oct 2018 09:12 AM IST