Challenge

Week 3 - Solving second order ODEs

It is the correct program for pendulum.
Editor Window = 

close all
clear all
clc

%input parameters
b = 0.04;                             %b = damping coefficient 
g = 9.81;                             %g = gravity (m/s^2)
l = 1;                                %l = length (m)
m = 0.1;                              %m = mass (kg)

% initial condition                   %initial displacement of pendulum = 0
theta_0 = [0;5];                      %initial velocity of pendulum = 5 m/s^2

% time points
t_span = linspace(0,20,500);          %t_span = time array

% 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))
hold on
plot(t,results(:,2))
ylabel('plot')
xlabel('time')

%Animation of the pendulum

ct = 1;
figure(2)

for i = 1:length(results(:,1))
    x0 = 0;
    y0 = 0;
    x1 = l*sin(results(i,1));
    y1 = -l*cos(results(i,1));
    
    plot([-1.5 1.5],[0 0])
    hold on
    plot([x0 x1], [y0 y1], 'linewidth',1,'color','b')
    axis([-1.5 1.5 -1.5 1.5])
    plot(x1,y1,'.','markersize',50,'color','r')
    pause(0.0001)
    M(ct) = getframe(gcf)
    hold off
    ct = ct+1
end

% making the video file
movie(M)
videofile = VideoWriter('simple_pendulum.avi')
open(videofile)
writeVideo(videofile,M)
close(videofile)

Command Window = 

M = 

  1×114 struct array with fields:

    cdata
    colormap


ct =

   115


M = 

  1×115 struct array with fields:

    cdata
    colormap


ct =

   116


M = 

  1×116 struct array with fields:

    cdata
    colormap


ct =

   117


M = 

  1×117 struct array with fields:

    cdata
    colormap


ct =

   118


M = 

  1×118 struct array with fields:

    cdata
    colormap


ct =

   119


M = 

  1×119 struct array with fields:

    cdata
    colormap


ct =

   120


M = 

  1×120 struct array with fields:

    cdata
    colormap


ct =

   121


M = 

  1×121 struct array with fields:

    cdata
    colormap


ct =

   122


M = 

  1×122 struct array with fields:

    cdata
    colormap


ct =

   123


M = 

  1×123 struct array with fields:

    cdata
    colormap


ct =

   124


M = 

  1×124 struct array with fields:

    cdata
    colormap


ct =

   125


M = 

  1×125 struct array with fields:

    cdata
    colormap


ct =

   126


M = 

  1×126 struct array with fields:

    cdata
    colormap


ct =

   127


M = 

  1×127 struct array with fields:

    cdata
    colormap


ct =

   128


M = 

  1×128 struct array with fields:

    cdata
    colormap


ct =

   129


M = 

  1×129 struct array with fields:

    cdata
    colormap


ct =

   130


M = 

  1×130 struct array with fields:

    cdata
    colormap


ct =

   131


M = 

  1×131 struct array with fields:

    cdata
    colormap


ct =

   132


M = 

  1×132 struct array with fields:

    cdata
    colormap


ct =

   133


M = 

  1×133 struct array with fields:

    cdata
    colormap


ct =

   134


M = 

  1×134 struct array with fields:

    cdata
    colormap


ct =

   135


M = 

  1×135 struct array with fields:

    cdata
    colormap


ct =

   136


M = 

  1×136 struct array with fields:

    cdata
    colormap


ct =

   137


M = 

  1×137 struct array with fields:

    cdata
    colormap


ct =

   138


M = 

  1×138 struct array with fields:

    cdata
    colormap


ct =

   139


M = 

  1×139 struct array with fields:

    cdata
    colormap


ct =

   140


M = 

  1×140 struct array with fields:

    cdata
    colormap


ct =

   141


M = 

  1×141 struct array with fields:

    cdata
    colormap


ct =

   142


M = 

  1×142 struct array with fields:

    cdata
    colormap


ct =

   143


M = 

  1×143 struct array with fields:

    cdata
    colormap


ct =

   144


M = 

  1×144 struct array with fields:

    cdata
    colormap


ct =

   145


M = 

  1×145 struct array with fields:

    cdata
    colormap


ct =

   146


M = 

  1×146 struct array with fields:

    cdata
    colormap


ct =

   147


M = 

  1×147 struct array with fields:

    cdata
    colormap


ct =

   148


M = 

  1×148 struct array with fields:

    cdata
    colormap


ct =

   149


M = 

  1×149 struct array with fields:

    cdata
    colormap


ct =

   150


M = 

  1×150 struct array with fields:

    cdata
    colormap


ct =

   151


M = 

  1×151 struct array with fields:

    cdata
    colormap


ct =

   152


M = 

  1×152 struct array with fields:

    cdata
    colormap


ct =

   153


M = 

  1×153 struct array with fields:

    cdata
    colormap


ct =

   154


M = 

  1×154 struct array with fields:

    cdata
    colormap


ct =

   155


M = 

  1×155 struct array with fields:

    cdata
    colormap


ct =

   156


M = 

  1×156 struct array with fields:

    cdata
    colormap


ct =

   157


M = 

  1×157 struct array with fields:

    cdata
    colormap


ct =

   158


M = 

  1×158 struct array with fields:

    cdata
    colormap


ct =

   159


M = 

  1×159 struct array with fields:

    cdata
    colormap


ct =

   160


M = 

  1×160 struct array with fields:

    cdata
    colormap


ct =

   161


M = 

  1×161 struct array with fields:

    cdata
    colormap


ct =

   162


M = 

  1×162 struct array with fields:

    cdata
    colormap


ct =

   163


M = 

  1×163 struct array with fields:

    cdata
    colormap


ct =

   164


M = 

  1×164 struct array with fields:

    cdata
    colormap


ct =

   165


M = 

  1×165 struct array with fields:

    cdata
    colormap


ct =

   166


M = 

  1×166 struct array with fields:

    cdata
    colormap


ct =

   167


M = 

  1×167 struct array with fields:

    cdata
    colormap


ct =

   168


M = 

  1×168 struct array with fields:

    cdata
    colormap


ct =

   169


M = 

  1×169 struct array with fields:

    cdata
    colormap


ct =

   170


M = 

  1×170 struct array with fields:

    cdata
    colormap


ct =

   171


M = 

  1×171 struct array with fields:

    cdata
    colormap


ct =

   172


M = 

  1×172 struct array with fields:

    cdata
    colormap


ct =

   173


M = 

  1×173 struct array with fields:

    cdata
    colormap


ct =

   174


M = 

  1×174 struct array with fields:

    cdata
    colormap


ct =

   175


M = 

  1×175 struct array with fields:

    cdata
    colormap


ct =

   176


M = 

  1×176 struct array with fields:

    cdata
    colormap


ct =

   177


M = 

  1×177 struct array with fields:

    cdata
    colormap


ct =

   178


M = 

  1×178 struct array with fields:

    cdata
    colormap


ct =

   179


M = 

  1×179 struct array with fields:

    cdata
    colormap


ct =

   180


M = 

  1×180 struct array with fields:

    cdata
    colormap


ct =

   181


M = 

  1×181 struct array with fields:

    cdata
    colormap


ct =

   182


M = 

  1×182 struct array with fields:

    cdata
    colormap


ct =

   183


M = 

  1×183 struct array with fields:

    cdata
    colormap


ct =

   184


M = 

  1×184 struct array with fields:

    cdata
    colormap


ct =

   185


M = 

  1×185 struct array with fields:

    cdata
    colormap


ct =

   186


M = 

  1×186 struct array with fields:

    cdata
    colormap


ct =

   187


M = 

  1×187 struct array with fields:

    cdata
    colormap


ct =

   188


M = 

  1×188 struct array with fields:

    cdata
    colormap


ct =

   189


M = 

  1×189 struct array with fields:

    cdata
    colormap


ct =

   190


M = 

  1×190 struct array with fields:

    cdata
    colormap


ct =

   191


M = 

  1×191 struct array with fields:

    cdata
    colormap


ct =

   192


M = 

  1×192 struct array with fields:

    cdata
    colormap


ct =

   193


M = 

  1×193 struct array with fields:

    cdata
    colormap


ct =

   194


M = 

  1×194 struct array with fields:

    cdata
    colormap


ct =

   195


M = 

  1×195 struct array with fields:

    cdata
    colormap


ct =

   196


M = 

  1×196 struct array with fields:

    cdata
    colormap


ct =

   197


M = 

  1×197 struct array with fields:

    cdata
    colormap


ct =

   198


M = 

  1×198 struct array with fields:

    cdata
    colormap


ct =

   199


M = 

  1×199 struct array with fields:

    cdata
    colormap


ct =

   200


M = 

  1×200 struct array with fields:

    cdata
    colormap


ct =

   201


M = 

  1×201 struct array with fields:

    cdata
    colormap


ct =

   202


M = 

  1×202 struct array with fields:

    cdata
    colormap


ct =

   203


M = 

  1×203 struct array with fields:

    cdata
    colormap


ct =

   204


M = 

  1×204 struct array with fields:

    cdata
    colormap


ct =

   205


M = 

  1×205 struct array with fields:

    cdata
    colormap


ct =

   206


M = 

  1×206 struct array with fields:

    cdata
    colormap


ct =

   207


M = 

  1×207 struct array with fields:

    cdata
    colormap


ct =

   208


M = 

  1×208 struct array with fields:

    cdata
    colormap


ct =

   209


M = 

  1×209 struct array with fields:

    cdata
    colormap


ct =

   210


M = 

  1×210 struct array with fields:

    cdata
    colormap


ct =

   211


M = 

  1×211 struct array with fields:

    cdata
    colormap


ct =

   212


M = 

  1×212 struct array with fields:

    cdata
    colormap


ct =

   213


M = 

  1×213 struct array with fields:

    cdata
    colormap


ct =

   214


M = 

  1×214 struct array with fields:

    cdata
    colormap


ct =

   215


M = 

  1×215 struct array with fields:

    cdata
    colormap


ct =

   216


M = 

  1×216 struct array with fields:

    cdata
    colormap


ct =

   217


M = 

  1×217 struct array with fields:

    cdata
    colormap


ct =

   218


M = 

  1×218 struct array with fields:

    cdata
    colormap


ct =

   219


M = 

  1×219 struct array with fields:

    cdata
    colormap


ct =

   220


M = 

  1×220 struct array with fields:

    cdata
    colormap


ct =

   221


M = 

  1×221 struct array with fields:

    cdata
    colormap


ct =

   222


M = 

  1×222 struct array with fields:

    cdata
    colormap


ct =

   223


M = 

  1×223 struct array with fields:

    cdata
    colormap


ct =

   224


M = 

  1×224 struct array with fields:

    cdata
    colormap


ct =

   225


M = 

  1×225 struct array with fields:

    cdata
    colormap


ct =

   226


M = 

  1×226 struct array with fields:

    cdata
    colormap


ct =

   227


M = 

  1×227 struct array with fields:

    cdata
    colormap


ct =

   228


M = 

  1×228 struct array with fields:

    cdata
    colormap


ct =

   229


M = 

  1×229 struct array with fields:

    cdata
    colormap


ct =

   230


M = 

  1×230 struct array with fields:

    cdata
    colormap


ct =

   231


M = 

  1×231 struct array with fields:

    cdata
    colormap


ct =

   232


M = 

  1×232 struct array with fields:

    cdata
    colormap


ct =

   233


M = 

  1×233 struct array with fields:

    cdata
    colormap


ct =

   234


M = 

  1×234 struct array with fields:

    cdata
    colormap


ct =

   235


M = 

  1×235 struct array with fields:

    cdata
    colormap


ct =

   236


M = 

  1×236 struct array with fields:

    cdata
    colormap


ct =

   237


M = 

  1×237 struct array with fields:

    cdata
    colormap


ct =

   238


M = 

  1×238 struct array with fields:

    cdata
    colormap


ct =

   239


M = 

  1×239 struct array with fields:

    cdata
    colormap


ct =

   240


M = 

  1×240 struct array with fields:

    cdata
    colormap


ct =

   241


M = 

  1×241 struct array with fields:

    cdata
    colormap


ct =

   242


M = 

  1×242 struct array with fields:

    cdata
    colormap


ct =

   243


M = 

  1×243 struct array with fields:

    cdata
    colormap


ct =

   244


M = 

  1×244 struct array with fields:

    cdata
    colormap


ct =

   245


M = 

  1×245 struct array with fields:

    cdata
    colormap


ct =

   246


M = 

  1×246 struct array with fields:

    cdata
    colormap


ct =

   247


M = 

  1×247 struct array with fields:

    cdata
    colormap


ct =

   248


M = 

  1×248 struct array with fields:

    cdata
    colormap


ct =

   249


M = 

  1×249 struct array with fields:

    cdata
    colormap


ct =

   250


M = 

  1×250 struct array with fields:

    cdata
    colormap


ct =

   251


M = 

  1×251 struct array with fields:

    cdata
    colormap


ct =

   252


M = 

  1×252 struct array with fields:

    cdata
    colormap


ct =

   253


M = 

  1×253 struct array with fields:

    cdata
    colormap


ct =

   254


M = 

  1×254 struct array with fields:

    cdata
    colormap


ct =

   255


M = 

  1×255 struct array with fields:

    cdata
    colormap


ct =

   256


M = 

  1×256 struct array with fields:

    cdata
    colormap


ct =

   257


M = 

  1×257 struct array with fields:

    cdata
    colormap


ct =

   258


M = 

  1×258 struct array with fields:

    cdata
    colormap


ct =

   259


M = 

  1×259 struct array with fields:

    cdata
    colormap


ct =

   260


M = 

  1×260 struct array with fields:

    cdata
    colormap


ct =

   261


M = 

  1×261 struct array with fields:

    cdata
    colormap


ct =

   262


M = 

  1×262 struct array with fields:

    cdata
    colormap


ct =

   263


M = 

  1×263 struct array with fields:

    cdata
    colormap


ct =

   264


M = 

  1×264 struct array with fields:

    cdata
    colormap


ct =

   265


M = 

  1×265 struct array with fields:

    cdata
    colormap


ct =

   266


M = 

  1×266 struct array with fields:

    cdata
    colormap


ct =

   267


M = 

  1×267 struct array with fields:

    cdata
    colormap


ct =

   268


M = 

  1×268 struct array with fields:

    cdata
    colormap


ct =

   269


M = 

  1×269 struct array with fields:

    cdata
    colormap


ct =

   270


M = 

  1×270 struct array with fields:

    cdata
    colormap


ct =

   271


M = 

  1×271 struct array with fields:

    cdata
    colormap


ct =

   272


M = 

  1×272 struct array with fields:

    cdata
    colormap


ct =

   273


M = 

  1×273 struct array with fields:

    cdata
    colormap


ct =

   274


M = 

  1×274 struct array with fields:

    cdata
    colormap


ct =

   275


M = 

  1×275 struct array with fields:

    cdata
    colormap


ct =

   276


M = 

  1×276 struct array with fields:

    cdata
    colormap


ct =

   277


M = 

  1×277 struct array with fields:

    cdata
    colormap


ct =

   278


M = 

  1×278 struct array with fields:

    cdata
    colormap


ct =

   279


M = 

  1×279 struct array with fields:

    cdata
    colormap


ct =

   280


M = 

  1×280 struct array with fields:

    cdata
    colormap


ct =

   281


M = 

  1×281 struct array with fields:

    cdata
    colormap


ct =

   282


M = 

  1×282 struct array with fields:

    cdata
    colormap


ct =

   283


M = 

  1×283 struct array with fields:

    cdata
    colormap


ct =

   284


M = 

  1×284 struct array with fields:

    cdata
    colormap


ct =

   285


M = 

  1×285 struct array with fields:

    cdata
    colormap


ct =

   286


M = 

  1×286 struct array with fields:

    cdata
    colormap


ct =

   287


M = 

  1×287 struct array with fields:

    cdata
    colormap


ct =

   288


M = 

  1×288 struct array with fields:

    cdata
    colormap


ct =

   289


M = 

  1×289 struct array with fields:

    cdata
    colormap


ct =

   290


M = 

  1×290 struct array with fields:

    cdata
    colormap


ct =

   291


M = 

  1×291 struct array with fields:

    cdata
    colormap


ct =

   292


M = 

  1×292 struct array with fields:

    cdata
    colormap


ct =

   293


M = 

  1×293 struct array with fields:

    cdata
    colormap


ct =

   294


M = 

  1×294 struct array with fields:

    cdata
    colormap


ct =

   295


M = 

  1×295 struct array with fields:

    cdata
    colormap


ct =

   296


M = 

  1×296 struct array with fields:

    cdata
    colormap


ct =

   297


M = 

  1×297 struct array with fields:

    cdata
    colormap


ct =

   298


M = 

  1×298 struct array with fields:

    cdata
    colormap


ct =

   299


M = 

  1×299 struct array with fields:

    cdata
    colormap


ct =

   300


M = 

  1×300 struct array with fields:

    cdata
    colormap


ct =

   301


M = 

  1×301 struct array with fields:

    cdata
    colormap


ct =

   302


M = 

  1×302 struct array with fields:

    cdata
    colormap


ct =

   303


M = 

  1×303 struct array with fields:

    cdata
    colormap


ct =

   304


M = 

  1×304 struct array with fields:

    cdata
    colormap


ct =

   305


M = 

  1×305 struct array with fields:

    cdata
    colormap


ct =

   306


M = 

  1×306 struct array with fields:

    cdata
    colormap


ct =

   307


M = 

  1×307 struct array with fields:

    cdata
    colormap


ct =

   308


M = 

  1×308 struct array with fields:

    cdata
    colormap


ct =

   309


M = 

  1×309 struct array with fields:

    cdata
    colormap


ct =

   310


M = 

  1×310 struct array with fields:

    cdata
    colormap


ct =

   311


M = 

  1×311 struct array with fields:

    cdata
    colormap


ct =

   312


M = 

  1×312 struct array with fields:

    cdata
    colormap


ct =

   313


M = 

  1×313 struct array with fields:

    cdata
    colormap


ct =

   314


M = 

  1×314 struct array with fields:

    cdata
    colormap


ct =

   315


M = 

  1×315 struct array with fields:

    cdata
    colormap


ct =

   316


M = 

  1×316 struct array with fields:

    cdata
    colormap


ct =

   317


M = 

  1×317 struct array with fields:

    cdata
    colormap


ct =

   318


M = 

  1×318 struct array with fields:

    cdata
    colormap


ct =

   319


M = 

  1×319 struct array with fields:

    cdata
    colormap


ct =

   320


M = 

  1×320 struct array with fields:

    cdata
    colormap


ct =

   321


M = 

  1×321 struct array with fields:

    cdata
    colormap


ct =

   322


M = 

  1×322 struct array with fields:

    cdata
    colormap


ct =

   323


M = 

  1×323 struct array with fields:

    cdata
    colormap


ct =

   324


M = 

  1×324 struct array with fields:

    cdata
    colormap


ct =

   325


M = 

  1×325 struct array with fields:

    cdata
    colormap


ct =

   326


M = 

  1×326 struct array with fields:

    cdata
    colormap


ct =

   327


M = 

  1×327 struct array with fields:

    cdata
    colormap


ct =

   328


M = 

  1×328 struct array with fields:

    cdata
    colormap


ct =

   329


M = 

  1×329 struct array with fields:

    cdata
    colormap


ct =

   330


M = 

  1×330 struct array with fields:

    cdata
    colormap


ct =

   331


M = 

  1×331 struct array with fields:

    cdata
    colormap


ct =

   332


M = 

  1×332 struct array with fields:

    cdata
    colormap


ct =

   333


M = 

  1×333 struct array with fields:

    cdata
    colormap


ct =

   334


M = 

  1×334 struct array with fields:

    cdata
    colormap


ct =

   335


M = 

  1×335 struct array with fields:

    cdata
    colormap


ct =

   336


M = 

  1×336 struct array with fields:

    cdata
    colormap


ct =

   337


M = 

  1×337 struct array with fields:

    cdata
    colormap


ct =

   338


M = 

  1×338 struct array with fields:

    cdata
    colormap


ct =

   339


M = 

  1×339 struct array with fields:

    cdata
    colormap


ct =

   340


M = 

  1×340 struct array with fields:

    cdata
    colormap


ct =

   341


M = 

  1×341 struct array with fields:

    cdata
    colormap


ct =

   342


M = 

  1×342 struct array with fields:

    cdata
    colormap


ct =

   343


M = 

  1×343 struct array with fields:

    cdata
    colormap


ct =

   344


M = 

  1×344 struct array with fields:

    cdata
    colormap


ct =

   345


M = 

  1×345 struct array with fields:

    cdata
    colormap


ct =

   346


M = 

  1×346 struct array with fields:

    cdata
    colormap


ct =

   347


M = 

  1×347 struct array with fields:

    cdata
    colormap


ct =

   348


M = 

  1×348 struct array with fields:

    cdata
    colormap


ct =

   349


M = 

  1×349 struct array with fields:

    cdata
    colormap


ct =

   350


M = 

  1×350 struct array with fields:

    cdata
    colormap


ct =

   351


M = 

  1×351 struct array with fields:

    cdata
    colormap


ct =

   352


M = 

  1×352 struct array with fields:

    cdata
    colormap


ct =

   353


M = 

  1×353 struct array with fields:

    cdata
    colormap


ct =

   354


M = 

  1×354 struct array with fields:

    cdata
    colormap


ct =

   355


M = 

  1×355 struct array with fields:

    cdata
    colormap


ct =

   356


M = 

  1×356 struct array with fields:

    cdata
    colormap


ct =

   357


M = 

  1×357 struct array with fields:

    cdata
    colormap


ct =

   358


M = 

  1×358 struct array with fields:

    cdata
    colormap


ct =

   359


M = 

  1×359 struct array with fields:

    cdata
    colormap


ct =

   360


M = 

  1×360 struct array with fields:

    cdata
    colormap


ct =

   361


M = 

  1×361 struct array with fields:

    cdata
    colormap


ct =

   362


M = 

  1×362 struct array with fields:

    cdata
    colormap


ct =

   363


M = 

  1×363 struct array with fields:

    cdata
    colormap


ct =

   364


M = 

  1×364 struct array with fields:

    cdata
    colormap


ct =

   365


M = 

  1×365 struct array with fields:

    cdata
    colormap


ct =

   366


M = 

  1×366 struct array with fields:

    cdata
    colormap


ct =

   367


M = 

  1×367 struct array with fields:

    cdata
    colormap


ct =

   368


M = 

  1×368 struct array with fields:

    cdata
    colormap


ct =

   369


M = 

  1×369 struct array with fields:

    cdata
    colormap


ct =

   370


M = 

  1×370 struct array with fields:

    cdata
    colormap


ct =

   371


M = 

  1×371 struct array with fields:

    cdata
    colormap


ct =

   372


M = 

  1×372 struct array with fields:

    cdata
    colormap


ct =

   373


M = 

  1×373 struct array with fields:

    cdata
    colormap


ct =

   374


M = 

  1×374 struct array with fields:

    cdata
    colormap


ct =

   375


M = 

  1×375 struct array with fields:

    cdata
    colormap


ct =

   376


M = 

  1×376 struct array with fields:

    cdata
    colormap


ct =

   377


M = 

  1×377 struct array with fields:

    cdata
    colormap


ct =

   378


M = 

  1×378 struct array with fields:

    cdata
    colormap


ct =

   379


M = 

  1×379 struct array with fields:

    cdata
    colormap


ct =

   380


M = 

  1×380 struct array with fields:

    cdata
    colormap


ct =

   381


M = 

  1×381 struct array with fields:

    cdata
    colormap


ct =

   382


M = 

  1×382 struct array with fields:

    cdata
    colormap


ct =

   383


M = 

  1×383 struct array with fields:

    cdata
    colormap


ct =

   384


M = 

  1×384 struct array with fields:

    cdata
    colormap


ct =

   385


M = 

  1×385 struct array with fields:

    cdata
    colormap


ct =

   386


M = 

  1×386 struct array with fields:

    cdata
    colormap


ct =

   387


M = 

  1×387 struct array with fields:

    cdata
    colormap


ct =

   388


M = 

  1×388 struct array with fields:

    cdata
    colormap


ct =

   389


M = 

  1×389 struct array with fields:

    cdata
    colormap


ct =

   390


M = 

  1×390 struct array with fields:

    cdata
    colormap


ct =

   391


M = 

  1×391 struct array with fields:

    cdata
    colormap


ct =

   392


M = 

  1×392 struct array with fields:

    cdata
    colormap


ct =

   393


M = 

  1×393 struct array with fields:

    cdata
    colormap


ct =

   394


M = 

  1×394 struct array with fields:

    cdata
    colormap


ct =

   395


M = 

  1×395 struct array with fields:

    cdata
    colormap


ct =

   396


M = 

  1×396 struct array with fields:

    cdata
    colormap


ct =

   397


M = 

  1×397 struct array with fields:

    cdata
    colormap


ct =

   398


M = 

  1×398 struct array with fields:

    cdata
    colormap


ct =

   399


M = 

  1×399 struct array with fields:

    cdata
    colormap


ct =

   400


M = 

  1×400 struct array with fields:

    cdata
    colormap


ct =

   401


M = 

  1×401 struct array with fields:

    cdata
    colormap


ct =

   402


M = 

  1×402 struct array with fields:

    cdata
    colormap


ct =

   403


M = 

  1×403 struct array with fields:

    cdata
    colormap


ct =

   404


M = 

  1×404 struct array with fields:

    cdata
    colormap


ct =

   405


M = 

  1×405 struct array with fields:

    cdata
    colormap


ct =

   406


M = 

  1×406 struct array with fields:

    cdata
    colormap


ct =

   407


M = 

  1×407 struct array with fields:

    cdata
    colormap


ct =

   408


M = 

  1×408 struct array with fields:

    cdata
    colormap


ct =

   409


M = 

  1×409 struct array with fields:

    cdata
    colormap


ct =

   410


M = 

  1×410 struct array with fields:

    cdata
    colormap


ct =

   411


M = 

  1×411 struct array with fields:

    cdata
    colormap


ct =

   412


M = 

  1×412 struct array with fields:

    cdata
    colormap


ct =

   413


M = 

  1×413 struct array with fields:

    cdata
    colormap


ct =

   414


M = 

  1×414 struct array with fields:

    cdata
    colormap


ct =

   415


M = 

  1×415 struct array with fields:

    cdata
    colormap


ct =

   416


M = 

  1×416 struct array with fields:

    cdata
    colormap


ct =

   417


M = 

  1×417 struct array with fields:

    cdata
    colormap


ct =

   418


M = 

  1×418 struct array with fields:

    cdata
    colormap


ct =

   419


M = 

  1×419 struct array with fields:

    cdata
    colormap


ct =

   420


M = 

  1×420 struct array with fields:

    cdata
    colormap


ct =

   421


M = 

  1×421 struct array with fields:

    cdata
    colormap


ct =

   422


M = 

  1×422 struct array with fields:

    cdata
    colormap


ct =

   423


M = 

  1×423 struct array with fields:

    cdata
    colormap


ct =

   424


M = 

  1×424 struct array with fields:

    cdata
    colormap


ct =

   425


M = 

  1×425 struct array with fields:

    cdata
    colormap


ct =

   426


M = 

  1×426 struct array with fields:

    cdata
    colormap


ct =

   427


M = 

  1×427 struct array with fields:

    cdata
    colormap


ct =

   428


M = 

  1×428 struct array with fields:

    cdata
    colormap


ct =

   429


M = 

  1×429 struct array with fields:

    cdata
    colormap


ct =

   430


M = 

  1×430 struct array with fields:

    cdata
    colormap


ct =

   431


M = 

  1×431 struct array with fields:

    cdata
    colormap


ct =

   432


M = 

  1×432 struct array with fields:

    cdata
    colormap


ct =

   433


M = 

  1×433 struct array with fields:

    cdata
    colormap


ct =

   434


M = 

  1×434 struct array with fields:

    cdata
    colormap


ct =

   435


M = 

  1×435 struct array with fields:

    cdata
    colormap


ct =

   436


M = 

  1×436 struct array with fields:

    cdata
    colormap


ct =

   437


M = 

  1×437 struct array with fields:

    cdata
    colormap


ct =

   438


M = 

  1×438 struct array with fields:

    cdata
    colormap


ct =

   439


M = 

  1×439 struct array with fields:

    cdata
    colormap


ct =

   440


M = 

  1×440 struct array with fields:

    cdata
    colormap


ct =

   441


M = 

  1×441 struct array with fields:

    cdata
    colormap


ct =

   442


M = 

  1×442 struct array with fields:

    cdata
    colormap


ct =

   443


M = 

  1×443 struct array with fields:

    cdata
    colormap


ct =

   444


M = 

  1×444 struct array with fields:

    cdata
    colormap


ct =

   445


M = 

  1×445 struct array with fields:

    cdata
    colormap


ct =

   446


M = 

  1×446 struct array with fields:

    cdata
    colormap


ct =

   447


M = 

  1×447 struct array with fields:

    cdata
    colormap


ct =

   448


M = 

  1×448 struct array with fields:

    cdata
    colormap


ct =

   449


M = 

  1×449 struct array with fields:

    cdata
    colormap


ct =

   450


M = 

  1×450 struct array with fields:

    cdata
    colormap


ct =

   451


M = 

  1×451 struct array with fields:

    cdata
    colormap


ct =

   452


M = 

  1×452 struct array with fields:

    cdata
    colormap


ct =

   453


M = 

  1×453 struct array with fields:

    cdata
    colormap


ct =

   454


M = 

  1×454 struct array with fields:

    cdata
    colormap


ct =

   455


M = 

  1×455 struct array with fields:

    cdata
    colormap


ct =

   456


M = 

  1×456 struct array with fields:

    cdata
    colormap


ct =

   457


M = 

  1×457 struct array with fields:

    cdata
    colormap


ct =

   458


M = 

  1×458 struct array with fields:

    cdata
    colormap


ct =

   459


M = 

  1×459 struct array with fields:

    cdata
    colormap


ct =

   460


M = 

  1×460 struct array with fields:

    cdata
    colormap


ct =

   461


M = 

  1×461 struct array with fields:

    cdata
    colormap


ct =

   462


M = 

  1×462 struct array with fields:

    cdata
    colormap


ct =

   463


M = 

  1×463 struct array with fields:

    cdata
    colormap


ct =

   464


M = 

  1×464 struct array with fields:

    cdata
    colormap


ct =

   465


M = 

  1×465 struct array with fields:

    cdata
    colormap


ct =

   466


M = 

  1×466 struct array with fields:

    cdata
    colormap


ct =

   467


M = 

  1×467 struct array with fields:

    cdata
    colormap


ct =

   468


M = 

  1×468 struct array with fields:

    cdata
    colormap


ct =

   469


M = 

  1×469 struct array with fields:

    cdata
    colormap


ct =

   470


M = 

  1×470 struct array with fields:

    cdata
    colormap


ct =

   471


M = 

  1×471 struct array with fields:

    cdata
    colormap


ct =

   472


M = 

  1×472 struct array with fields:

    cdata
    colormap


ct =

   473


M = 

  1×473 struct array with fields:

    cdata
    colormap


ct =

   474


M = 

  1×474 struct array with fields:

    cdata
    colormap


ct =

   475


M = 

  1×475 struct array with fields:

    cdata
    colormap


ct =

   476


M = 

  1×476 struct array with fields:

    cdata
    colormap


ct =

   477


M = 

  1×477 struct array with fields:

    cdata
    colormap


ct =

   478


M = 

  1×478 struct array with fields:

    cdata
    colormap


ct =

   479


M = 

  1×479 struct array with fields:

    cdata
    colormap


ct =

   480


M = 

  1×480 struct array with fields:

    cdata
    colormap


ct =

   481


M = 

  1×481 struct array with fields:

    cdata
    colormap


ct =

   482


M = 

  1×482 struct array with fields:

    cdata
    colormap


ct =

   483


M = 

  1×483 struct array with fields:

    cdata
    colormap


ct =

   484


M = 

  1×484 struct array with fields:

    cdata
    colormap


ct =

   485


M = 

  1×485 struct array with fields:

    cdata
    colormap


ct =

   486


M = 

  1×486 struct array with fields:

    cdata
    colormap


ct =

   487


M = 

  1×487 struct array with fields:

    cdata
    colormap


ct =

   488


M = 

  1×488 struct array with fields:

    cdata
    colormap


ct =

   489


M = 

  1×489 struct array with fields:

    cdata
    colormap


ct =

   490


M = 

  1×490 struct array with fields:

    cdata
    colormap


ct =

   491


M = 

  1×491 struct array with fields:

    cdata
    colormap


ct =

   492


M = 

  1×492 struct array with fields:

    cdata
    colormap


ct =

   493


M = 

  1×493 struct array with fields:

    cdata
    colormap


ct =

   494


M = 

  1×494 struct array with fields:

    cdata
    colormap


ct =

   495


M = 

  1×495 struct array with fields:

    cdata
    colormap


ct =

   496


M = 

  1×496 struct array with fields:

    cdata
    colormap


ct =

   497


M = 

  1×497 struct array with fields:

    cdata
    colormap


ct =

   498


M = 

  1×498 struct array with fields:

    cdata
    colormap


ct =

   499


M = 

  1×499 struct array with fields:

    cdata
    colormap


ct =

   500


M = 

  1×500 struct array with fields:

    cdata
    colormap


ct =

   501


videofile = 

  VideoWriter

    General Properties:

       Filename:                 'simple_pendulum.avi'
       Path:                     'C:\Users\Kamlesh\Desktop'
       FileFormat:               'avi'
       Duration:                 0

    Video Properties:

       ColorChannels:            3
       Height:                   []
       Width:                    []
       FrameCount:               0
       FrameRate:                30
       VideoBitsPerPixel:        24
       VideoFormat:              'RGB24'
       VideoCompressionMethod:   'Motion JPEG'
       Quality:                  75

  Methods
Explaination of ODE = 

'ode45' is in-built solver in MATLAB so which first type that name. It's main inputs is 't & theta'.
 
't & theta' is dependent & independent variables of our ode system.

ode_func is (t, theta, b, g, l, m) are input parameters at we will be passing.

ode_func is nothing but it is a separate MATLAB program that we have written it is called  ode_func same name given as program name.


theta is solutin array.
theta1 & theta2 is 'theta'.

dtheta1_dt is first ode.
dtheta2_dt is second ode.

In dtheta_dt after dtheta1_dt (;)semicolon is represents column matrix.
If we tap on the 'results' there will be two columns first column refers to "Displacement" and second column refers to "velocity".



function [dtheta_dt] = ode_func(t,theta,b,g,l,m)

theta1 = theta(1)
theta2 = theta(2)
dtheta1_dt = theta2;
dtheta2_dt = -(b/m)*theta2 - (g/l)*sin(theta1);
dtheta_dt = [dtheta1_dt; dtheta2_dt];
end
Srcond order ODE's
Editor window =

close all
clear all
clc

b = 0.04;                             %b = damping coefficient 
g = 9.81;                             %g = gravity (m/s^2)
l = 1;                                %l = length (m)
m = 0.1;                              %m = mass (kg)

% initial condition                   %initial displacement of pendulum = 0
theta_0 = [0;5];                      %initial velocity of pendulum = 5 m/s^2

% time points
t_span = linspace(0,10,500);          %t_span = time array

% solve ODE
[t, results] = ode45(@(t,theta) ode_func(t, theta, b,g,l,m),t_span, theta_0);

plot(t,results(:,1))
hold on
plot(t,results(:,2))
ylabel('plot')
xlabel('time')


Command window = 

theta1 =

     0


theta2 =

     5


theta1 =

   4.0190e-05


theta2 =

    5.0000


theta1 =

   6.0285e-05


theta2 =

    5.0000


theta1 =

   1.6076e-04


theta2 =

    4.9999


theta1 =

   1.7862e-04


theta2 =

    4.9999


theta1 =

   2.0095e-04


theta2 =

    4.9999


theta1 =

   2.0095e-04


theta2 =

    4.9999


theta1 =

   4.0190e-04


theta2 =

    4.9998


theta1 =

   5.0237e-04


theta2 =

    4.9998


theta1 =

    0.0010


theta2 =

    4.9996


theta1 =

    0.0011


theta2 =

    4.9996


theta1 =

    0.0012


theta2 =

    4.9995


theta1 =

    0.0012


theta2 =

    4.9995


theta1 =

    0.0022


theta2 =

    4.9991


theta1 =

    0.0027


theta2 =

    4.9989


theta1 =

    0.0052


theta2 =

    4.9979


theta1 =

    0.0057


theta2 =

    4.9977


theta1 =

    0.0062


theta2 =

    4.9975


theta1 =

    0.0062


theta2 =

    4.9975


theta1 =

    0.0112


theta2 =

    4.9954


theta1 =

    0.0138


theta2 =

    4.9943


theta1 =

    0.0263


theta2 =

    4.9888


theta1 =

    0.0285


theta2 =

    4.9878


theta1 =

    0.0313


theta2 =

    4.9865


theta1 =

    0.0313


theta2 =

    4.9865


theta1 =

    0.0564


theta2 =

    4.9750


theta1 =

    0.0688


theta2 =

    4.9678


theta1 =

    0.1309


theta2 =

    4.9307


theta1 =

    0.1418


theta2 =

    4.9234


theta1 =

    0.1555


theta2 =

    4.9138


theta1 =

    0.1557


theta2 =

    4.9137


theta1 =

    0.2791


theta2 =

    4.8261


theta1 =

    0.3384


theta2 =

    4.7499


theta1 =

    0.6174


theta2 =

    4.3554


theta1 =

    0.6502


theta2 =

    4.2781


theta1 =

    0.7103


theta2 =

    4.1627


theta1 =

    0.7313


theta2 =

    4.1532


theta1 =

    0.9282


theta2 =

    3.7639


theta1 =

    1.0059


theta2 =

    3.5082


theta1 =

    1.3196


theta2 =

    2.3662


theta1 =

    1.2976


theta2 =

    2.2900


theta1 =

    1.3495


theta2 =

    2.0044


theta1 =

    1.4469


theta2 =

    1.8020


theta1 =

    1.5585


theta2 =

    1.1544


theta1 =

    1.5691


theta2 =

    0.8435


theta1 =

    1.5866


theta2 =

   -0.6622


theta1 =

    1.5745


theta2 =

   -0.8833


theta1 =

    1.5336


theta2 =

   -1.2065


theta1 =

    1.5208


theta2 =

   -1.2627


theta1 =

    1.3796


theta2 =

   -2.3021


theta1 =

    1.1782


theta2 =

   -2.7486


theta1 =

    0.1715


theta2 =

   -3.9943


theta1 =

   -0.0846


theta2 =

   -3.8590


theta1 =

   -0.3612


theta2 =

   -3.6949


theta1 =

   -0.2633


theta2 =

   -3.8306


theta1 =

   -0.6453


theta2 =

   -3.4233


theta1 =

   -0.7905


theta2 =

   -2.8625


theta1 =

   -0.8332


theta2 =

   -0.9798


theta1 =

    0.0120


theta2 =

   -1.1973


theta1 =

   -0.0224


theta2 =

    0.0372


theta1 =

   -1.2016


theta2 =

    0.6120


theta1 =

   -0.4669


theta2 =

   -3.6136


theta1 =

   -0.5556


theta2 =

   -3.3989


theta1 =

   -0.8850


theta2 =

   -2.4099


theta1 =

   -0.8198


theta2 =

   -2.2895


theta1 =

   -0.8868


theta2 =

   -1.9846


theta1 =

   -1.0515


theta2 =

   -1.8725


theta1 =

   -1.1510


theta2 =

   -1.3802


theta1 =

   -1.1713


theta2 =

   -1.1194


theta1 =

   -1.2264


theta2 =

    0.0617


theta1 =

   -1.1945


theta2 =

    0.1397


theta1 =

   -1.1772


theta2 =

    0.4201


theta1 =

   -1.2171


theta2 =

    0.6095


theta1 =

   -1.1784


theta2 =

    1.1787


theta1 =

   -1.1184


theta2 =

    1.4372


theta1 =

   -0.8024


theta2 =

    2.5176


theta1 =

   -0.7354


theta2 =

    2.5385


theta1 =

   -0.6259


theta2 =

    2.7325


theta1 =

   -0.6200


theta2 =

    2.9203


theta1 =

   -0.4145


theta2 =

    3.2392


theta1 =

   -0.2865


theta2 =

    3.2500


theta1 =

    0.1957


theta2 =

    2.8335


theta1 =

    0.1409


theta2 =

    2.1951


theta1 =

    0.2952


theta2 =

    1.9420


theta1 =

    0.4769


theta2 =

    2.6904


theta1 =

   -0.4719


theta2 =

    3.1501


theta1 =

   -0.3847


theta2 =

    3.1890


theta1 =

   -0.0030


theta2 =

    3.1846


theta1 =

    0.0122


theta2 =

    2.9914


theta1 =

    0.1141


theta2 =

    2.9017


theta1 =

    0.1882


theta2 =

    3.1256


theta1 =

    0.3467


theta2 =

    2.9691


theta1 =

    0.4170


theta2 =

    2.8090


theta1 =

    0.6849


theta2 =

    2.0452


theta1 =

    0.6439


theta2 =

    1.9313


theta1 =

    0.6991


theta2 =

    1.6863


theta1 =

    0.8161


theta2 =

    1.6268


theta1 =

    0.9056


theta2 =

    1.1980


theta1 =

    0.9238


theta2 =

    0.9589


theta1 =

    0.9611


theta2 =

   -0.0818


theta1 =

    0.9134


theta2 =

   -0.1026


theta1 =

    0.8953


theta2 =

   -0.3676


theta1 =

    0.9565


theta2 =

   -0.6024


theta1 =

    0.9228


theta2 =

   -1.0380


theta1 =

    0.8785


theta2 =

   -1.2325


theta1 =

    0.6495


theta2 =

   -2.0168


theta1 =

    0.6029


theta2 =

   -1.9806


theta1 =

    0.5237


theta2 =

   -2.1279


theta1 =

    0.5190


theta2 =

   -2.3420


theta1 =

    0.3768


theta2 =

   -2.5807


theta1 =

    0.2893


theta2 =

   -2.6076


theta1 =

   -0.0662


theta2 =

   -2.4829


theta1 =

   -0.0526


theta2 =

   -2.1730


theta1 =

   -0.1569


theta2 =

   -2.0446


theta1 =

   -0.2612


theta2 =

   -2.4077


theta1 =

   -0.3824


theta2 =

   -2.2316


theta1 =

   -0.4331


theta2 =

   -2.0836


theta1 =

   -0.6216


theta2 =

   -1.3952


theta1 =

   -0.5869


theta2 =

   -1.3184


theta1 =

   -0.6218


theta2 =

   -1.1050


theta1 =

   -0.7103


theta2 =

   -1.0200


theta1 =

   -0.7672


theta2 =

   -0.6406


theta1 =

   -0.7718


theta2 =

   -0.4346


theta1 =

   -0.7524


theta2 =

    0.4353


theta1 =

   -0.7043


theta2 =

    0.4235


theta1 =

   -0.6760


theta2 =

    0.6450


theta1 =

   -0.7262


theta2 =

    0.8755


theta1 =

   -0.6828


theta2 =

    1.1807


theta1 =

   -0.6441


theta2 =

    1.3085


theta1 =

   -0.4537


theta2 =

    1.8078


theta1 =

   -0.4239


theta2 =

    1.7628


theta1 =

   -0.3634


theta2 =

    1.8478


theta1 =

   -0.3503


theta2 =

    2.0114


theta1 =

   -0.2339


theta2 =

    2.1597


theta1 =

   -0.1661


theta2 =

    2.1588


theta1 =

    0.1067


theta2 =

    1.9932


theta1 =

    0.0900


theta2 =

    1.7794


theta1 =

    0.1669


theta2 =

    1.6642


theta1 =

    0.2558


theta2 =

    1.8922


theta1 =

    0.3456


theta2 =

    1.7384


theta1 =

    0.3823


theta2 =

    1.6200


theta1 =

    0.5215


theta2 =

    1.0664


theta1 =

    0.5004


theta2 =

    1.0066


theta1 =

    0.5249


theta2 =

    0.8397


theta1 =

    0.5833


theta2 =

    0.7697


theta1 =

    0.6257


theta2 =

    0.4545


theta1 =

    0.6274


theta2 =

    0.2834


theta1 =

    0.6008


theta2 =

   -0.4264


theta1 =

    0.5585


theta2 =

   -0.4026


theta1 =

    0.5328


theta2 =

   -0.5850


theta1 =

    0.5758


theta2 =

   -0.7912


theta1 =

    0.5384


theta2 =

   -1.0289


theta1 =

    0.5070


theta2 =

   -1.1261


theta1 =

    0.3544


theta2 =

   -1.5022


theta1 =

    0.3323


theta2 =

   -1.4614


theta1 =

    0.2846


theta2 =

   -1.5240


theta1 =

    0.2721


theta2 =

   -1.6564


theta1 =

    0.1791


theta2 =

   -1.7672


theta1 =

    0.1256


theta2 =

   -1.7637


theta1 =

   -0.0908


theta2 =

   -1.6301


theta1 =

   -0.0785


theta2 =

   -1.4743


theta1 =

   -0.1384


theta2 =

   -1.3837


theta1 =

   -0.2079


theta2 =

   -1.5442


theta1 =

   -0.2801


theta2 =

   -1.4206


theta1 =

   -0.3097


theta2 =

   -1.3252


theta1 =

   -0.4226


theta2 =

   -0.8770


theta1 =

   -0.4065


theta2 =

   -0.8265


theta1 =

   -0.4264


theta2 =

   -0.6905


theta1 =

   -0.4724


theta2 =

   -0.6367


theta1 =

   -0.5068


theta2 =

   -0.3814


theta1 =

   -0.5085


theta2 =

   -0.2418


theta1 =

   -0.4882


theta2 =

    0.3353


theta1 =

   -0.4535


theta2 =

    0.3137


theta1 =

   -0.4333


theta2 =

    0.4634


theta1 =

   -0.4694


theta2 =

    0.6342


theta1 =

   -0.4401


theta2 =

    0.8276


theta1 =

   -0.4153


theta2 =

    0.9068


theta1 =

   -0.2949


theta2 =

    1.2142


theta1 =

   -0.2774


theta2 =

    1.1806


theta1 =

   -0.2397


theta2 =

    1.2330


theta1 =

   -0.2298


theta2 =

    1.3422


theta1 =

   -0.1562


theta2 =

    1.4353


theta1 =

   -0.1137


theta2 =

    1.4359


theta1 =

    0.0605


theta2 =

    1.3478


theta1 =

    0.0530


theta2 =

    1.2302


theta1 =

    0.1010


theta2 =

    1.1634


theta1 =

    0.1541


theta2 =

    1.2861


theta1 =

    0.2147


theta2 =

    1.1910


theta1 =

    0.2399


theta2 =

    1.1144


theta1 =

    0.3363


theta2 =

    0.7518


theta1 =

    0.3226


theta2 =

    0.7076


theta1 =

    0.3402


theta2 =

    0.5952


theta1 =

    0.3796


theta2 =

    0.5556


theta1 =

    0.4090


theta2 =

    0.3511


theta1 =

    0.4115


theta2 =

    0.2379


theta1 =

    0.4003


theta2 =

   -0.2323


theta1 =

    0.3724


theta2 =

   -0.2174


theta1 =

    0.3577


theta2 =

   -0.3406


theta1 =

    0.3880


theta2 =

   -0.4767


theta1 =

    0.3659


theta2 =

   -0.6398


theta1 =

    0.3463


theta2 =

   -0.7075


theta1 =

    0.2506


theta2 =

   -0.9698


theta1 =

    0.2361


theta2 =

   -0.9401


theta1 =

    0.2055


theta2 =

   -0.9864


theta1 =

    0.1983


theta2 =

   -1.0820


theta1 =

    0.1402


theta2 =

   -1.1626


theta1 =

    0.1063


theta2 =

   -1.1669


theta1 =

   -0.0344


theta2 =

   -1.1157


theta1 =

   -0.0305


theta2 =

   -1.0257


theta1 =

   -0.0693


theta2 =

   -0.9778


theta1 =

   -0.1095


theta2 =

   -1.0747


theta1 =

   -0.1608


theta2 =

   -1.0030


theta1 =

   -0.1826


theta2 =

   -0.9419


theta1 =

   -0.2660


theta2 =

   -0.6496


theta1 =

   -0.2541


theta2 =

   -0.6107


theta1 =

   -0.2699


theta2 =

   -0.5177


theta1 =

   -0.3041


theta2 =

   -0.4897


theta1 =

   -0.3296


theta2 =

   -0.3263


theta1 =

   -0.3328


theta2 =

   -0.2345


theta1 =

   -0.3287


theta2 =

    0.1491


theta1 =

   -0.3064


theta2 =

    0.1401


theta1 =

   -0.2960


theta2 =

    0.2416


theta1 =

   -0.3214


theta2 =

    0.3488


theta1 =

   -0.3051


theta2 =

    0.4872


theta1 =

   -0.2897


theta2 =

    0.5455


theta1 =

   -0.2134


theta2 =

    0.7713


theta1 =

   -0.2011


theta2 =

    0.7448


theta1 =

   -0.1762


theta2 =

    0.7861


theta1 =

   -0.1713


theta2 =

    0.8705


theta1 =

   -0.1254


theta2 =

    0.9404


theta1 =

   -0.0982


theta2 =

    0.9472


theta1 =

    0.0156


theta2 =

    0.9216


theta1 =

    0.0140


theta2 =

    0.8518


theta1 =

    0.0454


theta2 =

    0.8178


theta1 =

    0.0761


theta2 =

    0.8958


theta1 =

    0.1195


theta2 =

    0.8423


theta1 =

    0.1383


theta2 =

    0.7936


theta1 =

    0.2101


theta2 =

    0.5585


theta1 =

    0.1999


theta2 =

    0.5244


theta1 =

    0.2139


theta2 =

    0.4477


theta1 =

    0.2436


theta2 =

    0.4286


theta1 =

    0.2656


theta2 =

    0.2980


theta1 =

    0.2691


theta2 =

    0.2236


theta1 =

    0.2697


theta2 =

   -0.0894


theta1 =

    0.2519


theta2 =

   -0.0847


theta1 =

    0.2446


theta2 =

   -0.1683


theta1 =

    0.2659


theta2 =

   -0.2525


theta1 =

    0.2539


theta2 =

   -0.3696


theta1 =

    0.2417


theta2 =

   -0.4197


theta1 =

    0.1809


theta2 =

   -0.6133


theta1 =

    0.1704


theta2 =

   -0.5899


theta1 =

    0.1501


theta2 =

   -0.6264


theta1 =

    0.1470


theta2 =

   -0.7003


theta1 =

    0.1105


theta2 =

   -0.7606


theta1 =

    0.0887


theta2 =

   -0.7685


theta1 =

   -0.0035


theta2 =

   -0.7591


theta1 =

   -0.0031


theta2 =

   -0.7045


theta1 =

   -0.0287


theta2 =

   -0.6802


theta1 =

   -0.0523


theta2 =

   -0.7436


theta1 =

   -0.0888


theta2 =

   -0.7038


theta1 =

   -0.1049


theta2 =

   -0.6651


theta1 =

   -0.1663


theta2 =

   -0.4761


theta1 =

   -0.1576


theta2 =

   -0.4464


theta1 =

   -0.1699


theta2 =

   -0.3834


theta1 =

   -0.1954


theta2 =

   -0.3708


theta1 =

   -0.2083


theta2 =

   -0.2990


theta1 =

   -0.2120


theta2 =

   -0.2594


theta1 =

   -0.2248


theta2 =

   -0.0747


theta1 =

   -0.2222


theta2 =

   -0.0568


theta1 =

   -0.2223


theta2 =

   -0.0113


theta1 =

   -0.2272


theta2 =

    0.0110
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.