Numerical routines

Root Solving
Integration Functions
Finite Differencing
Utility Functions
Examples

 Home

Root Solving
Newton-Raphson root finding function
[G, iter] = NSolve (SysEq,G)


Integration Functions
Basic Runge-Kutta 4th order ODE solver
[yout, xout] = RK4 (dy, y0, xspan)


Utility Functions
Logical select from arrays (req: MatchSize)
result = iff (test,trueVal,falseVal)
Logical select between functions
result = pick_fun (x,logic,trueFun,falseFun)
Unpack an array function
[varargout] = Unpack (G)
Returns A(j) if A is a vector, otherwise return the scalar A
Aj = Pick (A,j)
Scale vectors up to same dimension
[varargout] = MatchSize (varargin)
Maximum time step for explicit integration
[tauMin tau] = dtMax (dT,Tref,t)
Merge first array into second array at indexed locations
V2 = MergeVec (V1,V2,indx)


Examples
Numerical solution to the pin fin problem

 Home