Runge Kutta Order 4 Method-Numerical Analysis-MATLAB Code, Exercises for Numerical Analysis. Biyani Girls College

Numerical Analysis

Description: This is solution to one of problems in Numerical Analysis. This is matlab code. Its helpful to students of Computer Science, Electrical and Mechanical Engineering. This code also help to understand algorithm and logic behind the problem. This code includes: Range, Kutta, Fourth, Order, Method, Algorithm, Differential, Equations, Inline, Functions, Result, Conditional
Showing pages  1  -  1  of  1
The preview of this document ends here! Please or to read the full document or to download it.
Document information
Embed this document:
mayankkohli21 - Maharishi Markandeshwar University


20/10/12 10:31

function [res] = F(I,M,V,s)

% This function is used by Runge-Kutta order 4 method

% (Algorithm 5.7) to define the functions on the right

% hand side in the differential equations.

if M == 2

g = inline(s(I),'t','y1','y2');

res = g(V(1),V(2),V(3));

elseif M == 3

g = inline(s(I),'t','y1','y2','y3');

res = g(V(1),V(2),V(3),V(4));

elseif M == 4

g = inline(s(I),'t','y1','y2','y3','y4');

res = g(V(1),V(2),V(3),V(4),V(5));

elseif M == 5

g = inline(s(I),'t','y1','y2','y3','y4','y5');

res = g(V(1),V(2),V(3),V(4),V(5),V(6));

elseif M == 6

g = inline(s(I),'t','y1','y2','y3','y4','y5','y6');

res = g(V(1),V(2),V(3),V(4),V(5),V(6),V(7));


g = inline(s(I),'t','y1','y2','y3','y4','y5','y6','y7');

res = g(V(1),V(2),V(3),V(4),V(5),V(6),V(7),V(8));


Docsity is not optimized for the browser you're using. In order to have a better experience please switch to Google Chrome, Firefox, Internet Explorer 9+ or Safari! Download Google Chrome