image thumbnail

Parallel Computing test (Ordinary Differential Equation)

by

 

21 Jan 2011 (Updated )

Describes how to use Parallel Computing Toolbox to speed up computing with multi core computer.

ode1000.m
function xdot=ode1000(t,x); % called from ode23
  %% Ordinary differential equation / Rwnanie rozniczkowe zwyczajne 
        % use e.g. ode23 solver, uyj np. ode23
        % y''= -1001y' -1000y
        % Bjorck & Dalquist "Numerical Methods, 1974"                   
xdot=zeros(2,1);    % zerowy wektor 2-elementowy
xdot(1)=x(2);  
xdot(2)=-1001*x(2) -1000*x(1);

Contact us