Community Profile

Stephan Koehler

SEAS, Harvard

Active since 2009

All

Content Feed

View by

Extract numbers from mixed string
Here is a one-line answer str2num( regexprep( Str, {'\D*([\d\.]+\d)[^\d]*', '[^\d\.]*'}, {'\$1 ', ' '} ) )

7 years ago | 6

Submitted

circle_finder
image analysis for finding circles in a BW image, returns radii, locations and line thicknesses

Submitted

dir_crawler.m
crawls through a directory tree and returns sub-directories and files with ability to search by name

Submitted

running average and standard deviation of vectors
computes the running average and standard deviation of vectors or matrices for a given window size.

Submitted

TA_txt2MAT
converts text datafile from TA rheometer to a .mat datafile.

Submitted

Error Propagation
Numerically calculates uncertainties of a function using random numbers to simulate function inputs

Submitted

binning a point cloud, 3D scattered data, in the X-Y plane
Take a set of XYZ points, and returns average Z values for corresponding bins in X & Y planes.

Submitted

modified cumsum for partial accumulated sums
Determine the accumulated sum of series of non-zero values of vectors, resetting at zero entries

Submitted

fitting sum of two decaying exponentials (over damped oscillator)
five-parameter fit to the equation A*exp(-t/T1) + B*exp( -t/T2 ) + offset

Submitted

fitting critically damped simple harmonic oscillator
Four-parameter fit to the equation A*(1 + t/T2).*exp(-t/T1) + offset

Submitted

fitting decaying oscillations
From inputs t, y the best fit to the decaying oscillation is determined.

Submitted

Convenience function for plotting spreadsheets specifying several variables and also conditions

Submitted

plotting contents of a csv spreadsheet
convenience function for plotting columns of a spreadsheet

Average data from multiple tsv files to graph
I wrote a script just for this, which is on MATLAB central file exchange: look for tsvread.m

12 years ago | 0

Submitted

Similar to csvread, but has a lot more user-friendly options and can deal with non-numeric data.

Submitted

new_dir.m
This is an enhancement to MATLAB's dir function, for dealing with sequentially numbered files.