views:

571

answers:

2

This is a really basic question but this is the first time I've used MATLAB and I'm stuck. I need to simulate a simple series RC network using 3 different numerical integration techniques. I think I understand how to use the ode solvers, but I have no idea how to enter the differential equation of the system. Do I need to do it via an m-file?

It's just a simple RC circuit in the form:

RC dy(t)/dt + y(t) = u(t)

with zero initial conditions. I have the values for R, C the step length and the simulation time but I don't know how to use MATLAB particularly well.

Any help is much appreciated!

+1  A: 

The Official Matlab Crash Course (PDF warning) has a section on solving ODEs, as well as a lot of other resources I found useful when starting Matlab.

Dan Vinton
+3  A: 
MatlabDoug