CIM4305 Computer Aided Analysis - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

CIM4305 Computer Aided Analysis

Description:

Use Matlab to get numerical solutions to differential equations. Example: ... Runge Kutta method. Using ode45. NEED TO USE TWO M-FILES!!!! Script file to call ode45 ... – PowerPoint PPT presentation

Number of Views:18
Avg rating:3.0/5.0
Slides: 9
Provided by: janete150
Category:

less

Transcript and Presenter's Notes

Title: CIM4305 Computer Aided Analysis


1
CIM4305 - Computer Aided Analysis
  • First Order Differential Equations

2
Differential Equations
  • Use Matlab to get numerical solutions to
    differential equations
  • Example

3
First Order Differential Equations
  • ode45
  • Numeric solution to differential equations
  • Runge Kutta method

4
Using ode45
  • NEED TO USE TWO M-FILES!!!!
  • Script file to call ode45
  • Function file that is called by ode45

5
Required Information
  • Start time
  • Final time
  • Initial value of your variable
  • Name of your function file

6
Example function file
  • function dx exampleFunction(x,t)
  • dx -x2 t2

7
Example script file
  • t0 0
  • tf 2
  • x0 1
  • t,x ode45('exampleFunction ,t0 tf,x0)
  • plot(t,x)

8
This Week
  • Read through notes 5
  • Complete Exercise 8
Write a Comment
User Comments (0)
About PowerShow.com