Code covered by the BSD License  

Highlights from
ODE Solver through Galerkin Method

4.0

4.0 | 4 ratings Rate this file 17 Downloads (last 30 days) File Size: 200.32 KB File ID: #20387
image thumbnail

ODE Solver through Galerkin Method

by Marcos Cesar Ruggeri

 

21 Jun 2008 (Updated 15 Jun 2009)

This program solves Ordinary Differential Equations by using the Galerkin method.

| Watch this File

File Information
Description

[APPROX,EXAC,ERR] = ODEGALERKIN(POLY,CC,N) solves Ordinary Differential Equations (ODE)through Galerkin method, by inserting the characteristic polynomial matrix "POLY", boundary conditions "CC" and the finite quantity of approximative base functions "N". Outputs of the program are the approximative solution "APPROX", the analitic solution "EXAC" and the percentage error "ERR" (%). A plot of the approximative and analitic solution is also shown.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
05 Jul 2008 Mitran Costin

I've run the program with "Matlab R2008a" but I've received the next error message:

 ?? Input argument "poly" is undefined.
    Error in ==> odegalerkin at 54
    alpha=poly(1);

   I think the problem is with the poly function. Do you have this poly function or this is the same function from the matlab library ?

   Also please check the email because I sent you some questions/proposal regarding this method.

Best regards,
Costin

31 Oct 2009 Ramin Shamshiri

I received error message trying this program.

20 Jan 2010 Alejandra  
12 Nov 2011 Anie Ekpes

This is the error message I received trying ti Run this program
Error in ==> odegalerkin at 54
alpha=poly(1);
how do I correct this error

Please login to add a comment or rating.
Updates
24 Jun 2008

Script translated into English. Fixed boundary conditions involving derivatives.

16 Oct 2008

Theory of Galerkin Method included.

15 Jun 2009

License included

Tag Activity for this File
Tag Applied By Date/Time
differential equations Marcos Cesar Ruggeri 22 Oct 2008 10:06:41
ode Marcos Cesar Ruggeri 22 Oct 2008 10:06:41
galerkin Marcos Cesar Ruggeri 22 Oct 2008 10:06:41
approximation Marcos Cesar Ruggeri 22 Oct 2008 10:06:41
ordinary Marcos Cesar Ruggeri 22 Oct 2008 10:06:41
differential Marcos Cesar Ruggeri 22 Oct 2008 10:06:41
equation Marcos Cesar Ruggeri 22 Oct 2008 10:06:41

Contact us at files@mathworks.com