## some of my matlab functions, GUI apps and Matlab scripts

June 23, 2013

zip files are build such that each is self contained with all the needed matlab files and .fig file (if applicable) to run each applicationor function from the directory created once the zip file is unziped.

 No. file name depend zip description 1 2 3 Small Matlab GUI untility to change units of a Matlab .fig file. Make sure to save a copy of your fig file before using, just in case.HTML 4 depend Solve Lotka-Volterra 2-ODE system 5 depend conjugate gradient with pre-conditioning solver 6 depend GUI for conjugate gradient solver 7 depend driver function for nma_CG 8 depend another driver for nma_CG.m 9 builds finite difference A matrix for 1-D laplace 10 builds finite difference A matrix for 1-D laplace nuemman boundary conditions 11 depend builds finite difference A matrix for 1-D laplace dirichlet boundary conditions 12 depend builds finite difference A matrix for 1-D laplace 13 depend generate A and f for the $Au=f$, to solve for u on 2D based on 5 points laplacian. 14 depend solves the FitzHugh-Nagumo on unit square 15 depend checks that matrix is SPD 16 depend checks that matrix is symmetrix 17 depend Class implements Lax-Wendroff for 1D advection PDE 18 depend driver tests nma_LaxWendroff class 19 depend lab4 assignment MAE121 dynamics, UC david 20 depend called by GUI to implement the numerical solution for Lab4 UC davis 21 depend script solves 2D Poission PDE on unit square using Jacobian iterative method 22 depend Solve 2D poisson PDE on unit square. Dirichlet B.C 23 depend script solves 2D poisson on unit square, zero boundary conditions, SOR method 24 depend solves parabolic PDE using explicit method 25 depend driver for nma_PDE_parabolic_explicit_rod() 26 solve parabolic PDE using explicit method for changing boundary conditions 27 driver for nma_PDE_parabolic_explicit_rod_with_rate_BC() 28 depend solve 1st order ODE using Runge-Kutta classical 4th order 29 depend function solves $Au=f$ using the method of steepest descent. 30 depend implement multigrid V Cycle 31 depend implement HW3, Math 228B, advection ODE solver 32 depend draws an arrow annotation on figure 33 depend implements coarse to fine grid bilinear interpolation mapping 34 depend GUI main for changing figure unit program 35 depend auxiliary function to validate boundary conditions 36 depend main GUI file for controllor simulation 37 depend main GUI file for 1D diffusion solver 38 depend main GUI file for lab1 MAE121, UC david 39 depend Solve ODE using Euler-Heun (corrector-predictor method) 40 depend Solve ODE using Euler-Heun (corrector-predictor method) 41 depend solve ODE using Euler-mid-point algorithm 42 depend evaluates string as 1D function for boundary conditions 43 depend restriction operator for fine grid to a coarse grid full weight mapping on 2D 44 depend Finds initial inclincatin correction for orbit relative to a larger circular orbit 45 depend helper function for rocket design project 46 depend find the grid norm 47 depend calculates residue 48 depend prints matrix of numerical data with headings in formatted way 49 depend helper function to generate A,b for solver 50 generate the A and B matrices used by the ADI solver. 51 depend This function generates one text file for each m file it finds in the same folder it is running from. For each m file it finds, it generates the text file which contains a list of the m files that the current m file depends on. This uses fdep() function from matlab central by Nasser M. Abbasi feb 13, 2012 52 depend This function generates one text file for each m file it finds in the same folder it is running from. For each m file it finds, it generates the text file which contains a list of the m files that the current m file depends on. This uses fdep() function from matlab central by Nasser M. Abbasi march 1, 2013 clean up more, moved to htlatex Nov 22, 2012 53 depend calculates time of flight for the orbit moving from nu0 to nu. 54 depend flux function for PDE numerical course, UC Davis 55 depend find orbit parameters from the velocity and position vectors 56 depend compute the Universal Variable X for an orbit 57 depend helper function to find index 58 depend read a numeric number from user and keeps trying untill the user types correct value 59 depend main GUI file for lab2 MAE 121 UC Davis 60 depend main GUI file for lab3 MAE 121, UC Davis 61 depend helper function to make sparse matrix 62 depend helper function to make sparse 2D matrix 63 depend generate 3D sparse matrix for poisson 3D 64 depend solve laplace PDE for rectangular region Dirclet BC 65 depend solves laplace PDE for rectangular region Dirclet BC 66 depend solves laplace PDE for rectangular region Nuemann BC 67 depend main GUI file for all my math 228 other GUI apps 68 depend implements the refinement study for HW2, ath 228B UC Davis 69 depend Lax-Wendroff to solve the wave equation 70 depend solves diffusion problem $u\text{_}t+a*u\text{_}x=0$ using finite volume method with flux limiter functions 71 depend solves 3 bars and 2 springs assuming zero IC, using modal based solution allowing one to select which modes to usescreen shot animation movie 72 depend solves 3 bars and 2 springs with IC using modal based solutionscreen shot 73 depend Moves probe in an orbit for deltaTime 74 depend main GUI file for orbit simulator 75 depend script to plot stress diagram, plain stress 76 depend main GUI file for poisson 2D solver 77 depend called by the Matlab GUI to solve equation of motion Lab 1 MAE 121 78 depend class implements the rectangular pulse used in implementation of HW3, Math 228B. 79 depend make an annotation of a rectangle 80 depend class used for doing refinement study for my math 228 numerical PDE class 81 depend does one iteration relaxation, called by V cycle for multigrid solver 82 depend Nasser M. Abbasi 011212 NO ERROR CHECKING DONE ON INPUT. Rescale a matrix or a vector A 83 depend design rocket from earth to GEO 84 depend helper function for rocket design project, UCI 85 depend Solves equation 5.57 in book orbital mechanices page 96, by Prussing and Conway 86 depend design for a multi-stage rocket. 87 depend Solves for Mp (mass of properellent) and Ms (mass of structure) for a given one stage rocket. 88 depend Solves rocket equation for delta V, mass of properellent and mass of structure and payload 89 depend Solves rocket equation for delta V, mass of properellent and mass of structure and payload 90 depend generate the Romberg integration table 91 depend driver to test romberg integration table 92 depend runs simulation of probe starting from some position and velosity vector for some delta time 93 depend utility function, called to create a figure in middle of window 94 depend solves HW problem 4.3 95 depend Solves 2D diffusion PDE $u\text{_}t=D\left(u\text{_}xx+u\text{_}yy\right)$ on unit square Neumann BC using cell centered grid points and ADI schem 96 depend script to solve 2D diffusion 97 depend solves $w\text{_}t=epsilson\left(w-gammaw\right)$ for problem 3, HW 2, Math 228B UC Davis 98 depend solves the reaction ODE part of the FitzHugh-Nagumo equations 99 depend Solve poisson 2D pde on unit square zero BC using multigrid V cycle method 100 depend computes the cubic splines between any number of points. 101 depend driver for cubic splines using the improved method. 102 depend static class to make spring for plotting animations 103 depend simulation of steady state single degree of freedom system with harmonic input 104 depend driver to test findAlphaForMinDeltaV 105 depend integrate a function using trapezoidal rule using specific number of strips. 106 depend 107 depend auxiliary function used by other function to validate input dimensions are consistent. 108 depend auxiliary function validates input dimensions consistent for 1D only 109 depend verifies string represents non negative number 110 depend verfies input string represents a numerical value 111 depend verifies input string represents positive integer 112 depend verifies input string represents positive number 113 depend zoom a gray image by factor and return new image