# getODEderivatives() (Scripts) 1.0

Average Rating
User Rating:
Visitors Rating:
My rating:

See full specifications

## getODEderivatives() (Scripts) Publisher's description

### Syntax: dydt=getODEderivatives(t,y,odehandler)

Syntax: dydt=getODEderivatives(t,y,odehandler)

This function is used to get the time course derivatives
evaluated to solve an ode system using Matlab solvers
(ode45,ode23,ode23s and so on).

Example:

Want to solve the system and plot the solution as well as how the derivatives change:
dudt=w;
dwdt=-u;

u(0)=0;
w(0)=1;

odehandler=@(t,y) [y(2);-y(1)];
[t,y]=ode45(odehandler,[0 4*pi],[0 1]);
u=y(:,1);
w=y(:,2);

(select the code below and press F9 to run it).

dydt=getODEderivatives(t,y,odehandler);
dudt=dydt(:,1);
dwdt=dydt(:,2);

%Check that dudt=w;
sum(dudt==w)==length(t)
plot(t,dudt,'r--',t,w,'g-.')
legend('dudt','w')

%Check that dwdt=-u;
sum(dwdt==-u)==length(t)
figure
plot(t,dwdt,'r--',t,-u,'g-.')
legend('dwdt','-u')

#### System Requirements:

MATLAB 7.9 (2009b)
Program Release Status: New Release
Program Install Support: Install and Uninstall

#### getODEderivatives() (Scripts) Tags:

Click on a tag to find related softwares

## Most Popular

ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.