Calculate Beam Width
Estimates the signal width of data input, using definition: rho = cumtrapz(t,x.^2)/trapz(t,x.^2)The integration limits go from mean(t)-w/2 and mean(t)+w/2; w is defined as the signal width, and gives the time at which rho % of the signal iscaptured. It is an informal measure of the localization...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (42): signalwidth.m Download |
Lagrange is a function that calculate equations of motion (Lagrange's equations) d/dt(dL/d(dq))- dL/dq=0. It Uses the Lagrangian that is a function that summarizes thedynamics of the system. Symbolic Math Toolbox is required.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Lagrange's equations Download |
Simulate a time dependent solution of Schrodinger's equation and calculate energy spectrum of a 1D finite square well using split-operator method.Reference: M. D. Feit, J. A. Fleck, Jr., and A. Steiger, "Solution of the Schrodinger Equation by a Spectral Method", Journal of Computational Physics...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Tutorial - 1D finite square well Download |
This is a web application to calculate and plot Black-Scholes option value using MATLAB algorithms. These algorithms are built into Java .jar files using MATLAB Builder for Java. The code shows how to call these algorithms from the Java web application, which runs within Apache's Tomcat servlet...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (48): Black-Scholes Option Value Web Application - Java/Tomcat Download |
The Okada [1985] model allows to calculate analytic solution for surface deformation due to shear and tensile faults in an elastic half-space. This model is widely used to simulate ground deformation produced by local perturbation like tectonic faults (earthquakes) or volcanic dykes. Given...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Okada: Surface deformation due to a finite rectangular source Download |
Here is a simple Simulink file to calculate the stiffness of hydraulic spring.The theory is explained in my book:M Galal Rabie, Fluid power Engineering, McGraw-Hill, NY, 2009, pp 235-237
Platforms: Matlab
License: Freeware | Size: 102.4 KB | Download (53): Hydraulic Spring Download |
This function will calculate the wavelength of a given frequency. By default the program will presume the entered value is in MHZ. However if you want to enter a frequency in another scale you also have the option to enter the scaling parameter as well (khz,mhz, or ghz).function...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): LAMBDA - Wavelength Calculator Download |
This set of simulations make use of the Alternating Direction Implicit method for solving the parabolic wave equation that arises in FD BPM.The zip file includes the following programs:FDBPM3D_free_space.m - Animation and video of the 3D propagation.FDBPM3D_free_space_slice.m - It shows slices of...
Platforms: Matlab
License: Freeware | Size: 92.16 KB | Download (47): Finite Differences Beam Propagation Method in 3-D Download |
Here is a simple Simulink file to calculate the bulk modulus of oil-air mixture.The theory is explained in my book:Bulk Modulus of oilM Galal Rabie, Fluid power Engineering, McGraw-Hill, NY, 2009, pp
Platforms: Matlab
License: Freeware | Size: 61.44 KB | Download (48): Bulk Modulus of oil Download |
Superviewshed will calculate LOS of a referenced terrain matrices given observer and target altitudes. In addition, the standard minimum height observable of the terrain will be output. Runs approximately 16 times faster than viewshed.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): superviewshed : Optimized LOS and Minimum Height Observable Tool Download |
A wrap of lsqnonlin to calculate Jacobian using symbolic math toolbox. This is one of applications of symbolic math toolbox for optimization. Due to limitations of the symbolic math toolbox, the objective function must be supported by the symbolic math toolbox.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): lsqnonlinSym Download |
A wrap of fmincon to calculate gradients using symbolic math toolbox. This is one of applications of symbolic math toolbox for optimization. Due to limitations of the symbolic math toolbox, objective and constraint functions have to be supported by the symbolic math toolbox.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): fminconSym Download |
superlos will calculate mho and whether a target was observed given a terrain and array of observer&targets lats/lons/altitudes. For a single value call the two have similar performance (1x to 2x faster), asymptotes around 40x faster from what I experienced. Gets rid of your for loops!
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): superlos : Optimized LOS and Minimum Height Observable Tool Download |
A script to calculate the saturation vapor pressure (in Pascals) according to equation by Goff & Gratch (1946), as a function of temperature on Kelvin scale.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (53): Saturation Vapor Pressure Download |
This program simulates the interference pattern of two Gaussian beams. The simulation assumes that the beams are combined at a beam combiner which tilt angle (along x-direction) is arbitrary. The distance z from the position of minimal beam waist w0 to the beam combiner is, as well as w0,...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Two-Beam Simulator Download |
Calculate minimum of single variable function using 3-point searchUsage:estimated_min=three_point(sfun,a,b,tolerance) sfun: Symbolic/String function a: Inferior Limit b: Superior Limit tolerance: Tolerance Range
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): Simple three-point minimum estimation Download |
The tool box provides the procedure to calculate all band edge energies and corresponding wavefunctions in single quantum square well using Finite Element Method.
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (45): FEMQWEBS Download |
These functions calculate fractional or complex order derivatives, when the order changes with time. Riemann-Liouville, Caputo and GrdoDsnwald-Letnikoff definitions are provided; the three variations considered by Lorenzo and Hartley are considered. Fuzzy supervised implementations in Simulink,...
Platforms: Matlab
License: Freeware | Size: 143.36 KB | Download (46): Variable Order Derivatives Download |
M-file to calculate the distance between two points on the earth surface, using different ellipsoid parameters.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): geodistance Download |
Here is a simple Simulink file to calculate the stiffness of hydraulic spring.The theory is explained in my book:M Galal Rabie, Fluid power Engineering, McGraw-Hill, NY, 2009, pp 235-237
Platforms: Matlab
License: Freeware | Size: 81.92 KB | Download (45): Hyd_Spring Download |