Project

Pendulum simulation

Objective: Main function: clc clear all close all L=1; timespan = linspace(0,20,30); yo = [0 3]; [theta,t] = lsode (\"pendulum_equation\", yo, timespan); a=theta(:,1); for i= 1:length(a) x(i)= L*sin(a(i)); y(i)= -L*cos(a(i)); x(1)=0;y(1)=0; plot([x(1) x(i)],[y(1) y(i)]) hold on plot (x(i),y(i),\'k.\',\'MarkerSize\',16); grid on axis([-1.5…

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.