image thumbnail

updated 14 hours ago

Wigner3j symbol by Kobi

Wigner3j( J123, M123) calculates the Wigner 3j symbol. (clebschgordan, wigner3j, wigner)

Wigner3j( j123, m123 )

image thumbnail

updated 14 hours ago

Pink, Red, Blue and Violet Noise Generation with Matlab Implementation by Hristo Zhivomirov

Pink, red, blue and violet noise generation via spectral processing of white noise. (noise, communications, signal processing)

bluenoise(N)

pinknoise(N)

rednoise(N)

image thumbnail

updated 14 hours ago

Numerical methods vs analytical methods for Differential equations by Praveen Ranganath

This code compares the analytical solution with the numerical solutions of a simple first order ODE (numerical methods, eulers method, differential equation)

f1(a,b)

Numerical_methods.m

image thumbnail

updated 7 days ago

unique mean and error of a vector with repetitions by Omri Bahat Treidel

input: vec x with repetitions and F(x). return: mean and error of F(unique(x)) (mathematics, signal processing, statistics)

unique_err_BS(x,Fx,bootFactor)

image thumbnail

updated 7 days ago

Reflect Through a Cylindrical Mirror by Paul Kassebaum

Reflect points p through a cylinder of radius R with respect to a viewpoint v = [v_x, v_y, v_z] (3d printing, physics, art)

reflectThroughCylinder(R, v, p)

image thumbnail

updated 9 days ago

Defining Cartesian Reference Frames based on Point Positions by Paolo de Leva

Defining 3-D Cartesian reference frames based on the positions of at least 3 non-collinear points (mechanical modeling, cartesian coordinate ..., reference frame)

ARF(P, segname, side, varargin)

footBAF(HEEL, MET1, MET5, MET2, side, varargin)

frame.m

image thumbnail

updated 9 days ago

1-D random number generation with any analytical expression probability density function by Hu

Generate random numbers according to given analytical expression for the PDF (statistics, physics)

rand_generator(myfun,xmin,xmax,number,mode_switch)

image thumbnail

updated 10 days ago

Computing Electric field of a double dipole by solving Poisson's Equation by Praveen Ranganath

This code computes the E-fields due to 2-dipoles in a 2-D plane using Finite difference method. (aerospace, cartesian coordinates, dipole)

Poisson2d_dipole.m

image thumbnail

updated 14 days ago

Inverse Fourier transform for XMDS by Omri Bahat Treidel

Inverse Fourier transform a grid symmetric around 0 (physics)

IFT_xmds(fk,dx)

image thumbnail

updated 14 days ago

Fourier transform for XMDS by Omri Bahat Treidel

Calculate the FT for a grid symmetric around 0 (physics)

FT_xmds(fx,dx)

image thumbnail

updated 15 days ago

SpinEchoMLE by Lee Potter

Maximum likelihood estimator for spin echo time decay constant. (signal processing, chemistry, physics)

SpinEchoMLE(Y,two_tau,Avg,x,opt)

SpinEchoPeakEst(Y,loc,two_tau,opt)

ExampleSpinEchoMLE.m

image thumbnail

updated 16 days ago

3D Visualization of SUN, EARTH and Moon by Ashish Meshram (Meet)

3D Visualization of SUN, EARTH and Moon (mathematics, simulation, physics)

SSEM(show)

image thumbnail

updated 20 days ago

Finite Difference Method to solve Heat Diffusion Equation in Two Dimensions. by Sathyanarayan Rao

Heat diffusion equation of the form Ut=a(Uxx+Uyy) is solved numerically. All units are arbitrary. (aerospace, automotive, diffusion)

heat_2d.m

image thumbnail

updated 21 days ago

Huygens-Fresnel integral approximation, free-form apertures and rough surfaces by Dominik Hofer

Simulate wave propagation through free-form apertures, or off rough surfaces. (simulation, physics, optics)

addSurface(obj)

byteSize(in, fid)

checkBasics(obj)

image thumbnail

updated 21 days ago

circtriolap.m by Chris

Computes overlap area of generally placed triangle and circle. (aerospace, measurement, physics)

circtriolap(rc,v1,v2,v3)

image thumbnail

updated 23 days ago

Radiation Treatment Planning Optimization Toy Example by Haitham Hindi

This program is a stand-alone toy example of radiation treatment planning(RTP) optimization (optimization, distributed, biotech)

Main()

image thumbnail

updated 24 days ago

Three masses connected by springs by Jeffrey Chasnov

A simulation and animation of three masses connected by springs. Can use to illustrate normal modes. (oscillation, springs, hookes law)

gui_spring3mass3(varargin)

gui_spring4mass3(varargin)

spring.m

image thumbnail

updated 24 days ago

Induced Electric Field Calculator by Ligong Han

Calculate the induced electric field using the integral expression. (physics, engineering)

CurlPoly(polychain,x,y)

E=CurlRightTri(pt,sidelength)

E=CurlTri(tri,pt)

image thumbnail

updated 24 days ago

Elementary 1-D Cellular automata by 2 neigbors (r=2). by ehsan tahami

CA2 Displays evolution of a famous 1-D Cellular Automata by 2 neigbors (r=2). (mathematics, statistics, modeling)

pattern_highrule=CA2(wolfrule, initialstate, nrows)

image thumbnail

updated 24 days ago

Sphere Collider by Ligong Han

This is a simple physics engine for simulating sphere collision. (simulation, demo, physics)

SphereCollider(balls,ball_pos,ball_v,varargin)

image thumbnail

updated 25 days ago

solving Diophantine equation by davood shaghaghi

This function is written to solve Diopantine equation.this equation should be in the form of C = A*F (control design, optimization, simulation)

dioph_SISO(A,C,n)

image thumbnail

updated 25 days ago

PhotonAttenuation 2 by Jaroslaw Tuszynski

Provides the attenuation and energy absorption of x-ray and gamma-ray photons in various materials. (chemistry, physics, photon attenuation)

Tutorial for PhotonAttenuation2 Package

ParseChemicalFormula(Name)

PhotonAttenuation(Material, Energy, Options, Thickness)

image thumbnail

updated 1 month ago

Easy Sensitivity (Tornado) Plot Function by Richard McCulloch

This function makes a tornado sensitivity plot and returns the sensitivity values. (aerospace, biotech, data export)

TorPlot(data,names,sensitivity,save,fh)

image thumbnail

updated 1 month ago

Applications of Chaos and Nonlinear Dynamics in Engineering - Vol. 1 by Stephen Lynch

Lynch files to accompany the book. (modeling, simulink, mathematics)

sys=Hopf_System(~,x)

xdot=Chem(~,x)

xdot=Duffing(t,x)

image thumbnail

updated 1 month ago

Zernike Package by Yasushi Iwasaki

This package provides Zernike utilities. (zernike, polynomial, optics)

DisplayFringeOrder0(kMax)

DisplayFringeOrder1(kMax)

DisplayParityOrder0(kMax)

image thumbnail

updated 1 month ago

Calculating Electric field of a dipole using Coulomb's law by Praveen Ranganath

This code computes the Electric Field distribution due to a dipole in a 2-D plane. (electric field, electrostatics, coulombs law)

ElectricFields.m

image thumbnail

updated 1 month ago

Peak finding and measurement by Tom O'Haver

Function to locate and measure the positive peaks and valleys in noisy data sets. (peak detection, analytical chemistry, chemistry)

P=findpeaks(x,y,SlopeThreshold,AmpThreshold,smoothwidth,p...

P=findpeaksGSS(x,y,SlopeThreshold,AmpThreshold,smoothwidt...

P=findpeaksL(x,y,SlopeThreshold,AmpThreshold,smoothwidth,...

image thumbnail

updated 1 month ago

HybridVel by Pratik Chhatbar

Improved blood velocity measurements with a hybrid image filtering and iterative Radon transform (red blood cells, rbc, radon transform)

hybridvel(inputimg,showimg,saveimg,delx,delt,hi,lineskip,...

image thumbnail

updated 2 months ago

Zernike Moments by Amir Tahmasbi

MATLAB Code for the Fast Calculation of Zernike Moments of order n and repetition m on NxN images. (image processing, physics, mathematics)

Zernikmoment(p,n,m)

radialpoly(r,n,m)

Zernike_main.m

image thumbnail

updated 3 months ago

iSignal 2.8 by Tom O'Haver

Interactive smoothing, differentiation, peak sharpening and measurement of time-series signals. (signal processing, data import, chemistry)

pY=isignal(DataMatrix,xcenter,xrange,sm,sw,em,dm,rm,s1,s2...

image thumbnail

updated 3 months ago

cofficients of fourier series by davood shaghaghi

This function is written to calculate the cofficients of fourier series. (control design, mathematics, image processing)

[]=fs(x,T0,n,type)

image thumbnail

updated 3 months ago

Grid of points within a polygon by Sulimon Sattari

This function generates an array of points that lie within a given polygon (polygon, points, point)

polygrid( xv, yv, ppa)

image thumbnail

updated 3 months ago

Center of Mass by Jered Wells

CENTEROFMASS finds the center of mass of the N-dimensional input array (physics, center of mass)

centerOfMass(A,varargin)

image thumbnail

updated 3 months ago

iPeak: Interactive Peak Detector (Version 5.3) by Tom O'Haver

Keypress operated interactive peak detector function. (analytical chemistry, peak detection, instrumental analysis)

P=findpeaks(x,y,SlopeThreshold,AmpThreshold,smoothwidth,p...

P=findpeaksnr(x,y,SlopeThreshold,AmpThreshold,smoothwidth...

P=findpeaksplot(x,y,SlopeThreshold,AmpThreshold,smoothwid...

image thumbnail

updated 3 months ago

Calculation of CT MTF and NPS using the ACR accreditation phantom by Saul

This code enables measurements of CT MTF and NPS from images of an ACR accreditation phantom. (computed tomography, ct, modulation transfer f...)

SliceBrowser(varargin)

mtfcalc.m

npscalc.m

image thumbnail

updated 4 months ago

DC Motor open and closed loop analysis by Rakesh Mandal

Used for design analysis of DC Motor (automotive, simulation, control design)

brushless_dc_motor(varargin)

image thumbnail

updated 4 months ago

LVPermute by Ahmed A. Selman

A simple (Line Vector Permutation) function. (permutation, mathematics, physics)

[C,D,j]=lvpermute(varargin)

image thumbnail

updated 4 months ago

Natural Log Binning of data with errors by LPS

Bins raw data in naturally logged bins, and calculates error on each bin. (statistics, natural log, log)

NaturalLogBin(path_name, input_file, ....

image thumbnail

updated 4 months ago

Ideal Gas Simulation by Ligong Han

This function simulates the behavior of ideal gas (including pressure, temperature and momentum). (physics, game, simulation)

IdealGasSimulation

SphereCollider(balls,ball_pos,ball_v,varargin)

fermats_room

image thumbnail

updated 4 months ago

Four parameters logistic regression - There and back again by Giuseppe Cardillo

Fit data points with a four points logistic regression or interpolate data. (statistics, chemistry, pharmaceutical)

L4Pinv(cf,y)

[cf G]=L4P(x,y,varargin)

image thumbnail

updated 4 months ago

Polar Onion Peeling by natan

Apply polar onion peeling method for analyzing velocity map imaging (VMI) data. (onion peeling, physics, chemistry)

s=POP(im,RT)

image thumbnail

updated 4 months ago

International Reference Ionosphere (IRI) Model by Drew Compston

Get the International Reference Ionosphere (IRI) output parameters. (iri, international referen..., geophysics)

[Ne Ne_NmF2 Tn Ti Te Op Hp Hep O2p NOp cluster Np TEC TEC...

ecef2geod(x, y, z, tol)

iritest.m

image thumbnail

updated 4 months ago

modified cumsum for partial accumulated sums by Stephan Koehler

Determine the accumulated sum of series of non-zero values of vectors, resetting at zero entries (mathematics, physics, matrix)

cumsum_restart0( varargin )

image thumbnail

updated 4 months ago

Dynamical Systems with Applications using MATLAB by Stephen Lynch

Companion Software. (chaos, nonlinear, mathematics)

Program_5c(~)

Programs_17a

Programs_17b

image thumbnail

updated 4 months ago

Buckinghams Pi-Theorem in MATLAB by Thomas Tresch

Calculation of the dimensionless quantities (pi-groups) for given dimensional variables (pitheorem, dimensional analysis, physics)

PI_Groups_Calculation.m

image thumbnail

updated 5 months ago

Interactive Peak Fitter (Version 9.2) by Tom O'Haver

Keyboard operated peak fitting function for time-series signals. (chemistry, curve fitting, peak fitting)

ipf(arg1,arg2,arg3,arg4)

image thumbnail

updated 5 months ago

Rigid Body Project by Ferat Bulatov

The project demonstrates a rotation of a rigid body about a fixed point. Author: Ferat Talat oglu (mathematics, simulation, modeling)

About(varargin)

RBAnimation(varargin)

RBInputData(varargin)

image thumbnail

updated 5 months ago

BER of M-QAM over Rayleigh channel by Sourav Mondal

This program gives simulated results of BER over Rayleigh fading channel. (communications, data import, data export)

QAM_rayleigh(M, EbNodB)

qam_run.m

image thumbnail

updated 5 months ago

Mean square displacement analysis of particles trajectories by Jean-Yves Tinevez

A MATLAB class for the mean square displacement analysis of particle trajectories, with a tutorial. (measurement, simulation, statistics)

msdanalyzer.m

image thumbnail

updated 5 months ago

Physics Problem Anywhere! by Nathan Lorah

This simple problem can be solved on any planet in out universe or in empty space (physics, simulation, mathematics)

InClassWork_2_28_13.m

Contact us