home
PDF (letter size)
PDF (legal size)

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

May 20, 2020   Compiled on May 20, 2020 at 6:06pm

zip ﬁles are build such that each is self contained with all the needed matlab ﬁles and .ﬁg ﬁle (if applicable) to run each application or function from the directory created once the zip ﬁle is unzipped

 No. ﬁle name depend zip description 1  2 3 Small Matlab GUI untility to change units of a Matlab .ﬁg ﬁle. Make sure to save a copy of your ﬁg ﬁle 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 depend builds ﬁnite diﬀerence A matrix for 1-D laplace 10 depend builds ﬁnite diﬀerence A matrix for 1-D laplace nuemman boundary conditions 11 depend builds ﬁnite diﬀerence A matrix for 1-D laplace dirichlet boundary conditions 12 depend builds ﬁnite diﬀerence 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-Wendroﬀ for 1D advection PDE 18 depend driver tests nma_LaxWendroﬀ 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 depend solve parabolic PDE using explicit method for changing boundary conditions 27 depend 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 ﬁgure 33 depend implements coarse to ﬁne grid bilinear interpolation mapping 34 depend GUI main for changing ﬁgure unit program 35 depend auxiliary function to validate boundary conditions 36 depend main GUI ﬁle for controllor simulation 37 depend main GUI ﬁle for 1D diﬀusion solver 38 depend main GUI ﬁle for lab1 MAE121, UC davis  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 ﬁne 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 ﬁnd 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 depend generate the A and B matrices used by the ADI solver. 51 depend This function generates one text ﬁle for each m ﬁle it ﬁnds in the same folder it is running from. For each m ﬁle it ﬁnds, it generates the text ﬁle which contains a list of the m ﬁles that the current m ﬁle depends on. This uses fdep() function from matlab central feb 13, 2012 52 depend This function generates one text ﬁle for each m ﬁle it ﬁnds in the same folder it is running from. For each m ﬁle it ﬁnds, it generates the text ﬁle which contains a list of the m ﬁles that the current m ﬁle depends on. This uses fdep() function from matlab central march 1, 2013 clean up more, moved to htlatex Nov 22, 2012 53 depend calculates time of ﬂight for the orbit moving from nu0 to nu. 54 depend ﬂux function for PDE numerical course, UC Davis 55 depend ﬁnd orbit parameters from the velocity and position vectors 56 depend compute the Universal Variable X for an orbit 57 depend helper function to ﬁnd index 58 depend read a numeric number from user and keeps trying untill the user types correct value 59 depend main GUI ﬁle for lab2 MAE 121 UC Davis 60 depend main GUI ﬁle 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 ﬁle for all my math 228 other GUI apps 68 depend implements the reﬁnement study for HW2, ath 228B UC Davis 69 depend Lax-Wendroﬀ to solve the wave equation  70 depend solves diﬀusion problem $$u\_t + a * u\_x = 0$$ using ﬁnite volume method with ﬂux limiter functions 72 depend solves 3 bars and 2 springs with IC using modal analysis based solution 73 depend Moves probe in an orbit for deltaTime 74 depend main GUI ﬁle for orbit simulator 75 depend script to plot stress diagram, plain stress 76 depend main GUI ﬁle 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 reﬁnement 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 ﬁgure in middle of window 94 depend solves HW problem 4.3 95 depend Solves 2D diﬀusion PDE $$u\_t = D (u\_xx+u\_yy)$$ on unit square Neumann BC using cell centered grid points and ADI schem 96 depend script to solve 2D diﬀusion 97 depend solves $$w\_t = epsilson(w-gamma w)$$ 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 ﬁndAlphaForMinDeltaV 105 depend integrate a function using trapezoidal rule using speciﬁc 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 nma_verify_valid_non_negative_numeric.m depend veriﬁes string represents non negative number 110 depend verﬁes input string represents a numerical value 111 depend veriﬁes input string represents positive integer 112 depend veriﬁes input string represents positive number 113 depend zoom a gray image by factor and return new image 114 source ﬁle implement steepest descent 