The programs on this page are original M-files, that I wrote for my own use. They may contain bugs and all standard disclaimers apply. If you find any of these files useful, I'd be happy to hear from you. If you improve them in any way, I'd be even happier to hear from you.
The programs on this page are copyrighted by the author. This means that you can do anything with them as long you do not redistribute them and do not claim that you wrote them. If these programs help you accomplish something, it should be properly acknowledged. If you wish to redistribute the original programs or modified versions you must obtain prior premission from the author.
To be honest, I have yet to see anyone wanting to incorporate my programs in another open source or commercial application, but if the need arises I am ready to consider appropriate licenses.
Finally, after all this legalese, here are the files. Enjoy!
bsXLComm - Communicate with Excel using ActiveX.
Its main difference from other
functions on Matlab Central is that it allows the user to keeps the
connection to Excel open and add data as many times as needed,
until the Excel object is released. bsXLComm contains these functions:
STARTXL - Starts Excel and returns an ActiveX Excel Object
PUSHXL - Pushes data from Matlab to Excel
RELEASEXL - Releases an Excel ActiveX object
bsAcoustics - Contains the following functions for acoustic data processing:
AVGDB - average of decibel levels
CORRECT4BG - removes the background effect from combined 'source+bg' measurement
GEO_MEAN - Geomentric mean.
Lw2Lp - Sound Pressure Levels to Sound Power Levels conversion
Lw2Lp - Sound Power Levels to Sound Pressure Levels conversion
PSD2OCT10 - Converts psd to octave spectrum with 10 octave bands
PSD2OCT3 - Converts psd to 1/3 octave spectrum
SIMPLEPRS2PWR - Convert (RMS sound pressure)^2 to sound power for a simple source
SIMPLERADEFF - Radiation efficiency of a simple source.
SUBTRACDB - Subtracts dB Levels
SUMDB - Sum of elements, which are in dB
bsContact - Contact Mechanics functions:
HERTZPOINT - Hertzian circular point contact maximum pressure and contact area for given load
IHERTZPOINT - Calculates load for given Pmax or contact area of a circular point Hertz contact
bsRoughness - Surface roughness functions
AUTOFILTERPROFILE - Get surface profile's waviness and roughness and auto-adjust cut-off length (maybe STILL BUGGY!!!)
GAUSSFILTSURF - Returns Gauss-filtered surface profile (roughness) and waviness
GETROUGH - returns surface roughness from profile data. Curvature and waviness can be removed.
MAKESIGFILE - makes a file to be processed with SigmaSurf (Surface analysis Freeware)
READSURFCOM - Reads roughness data from (zipped) ASCII text files created by SURFCOM 1400D Profiler
ROUGHEST - Surface roughness estimate from profile data. Curvature and waviness can be removed.
VERIFYCUTOFF - Verify cutoff for surface profile if satisfies the selection conditions.
bsJunctionSim - A collection of M-files for simulation
of adhesion excited micro-vibrations (see the paper here.)
The programs in this collection are provided for the curious individual,
who would like to repeat my simulations and improve on them.
<License:> GPL ver.2. If you use the files, please, cite my paper in your own publications.
FLDVALS2XL - Puts UI-selected structure field values to Excel (needs XLComm and UICELLSELECT).
MIXEDSORTROWS - Allows sorting of rows in some columns in ascending, while others in descending order.
READFILENAMES - Reads the filenames of selected DIR into a cell array
READFULLFILENAMES - Reads the full filenames of selected DIR into a cell array
UICELLSELECT - Select only a subset of a cell array by using a listbox.
ISODD(N) returns logical true (1) for the odd elements of N and (0) for the even.
NUMSIMPS - Cumulative numerical integration of sampled data using the Simpson's rule. (Implemented as a digital filter and very FAST).
ROUND2 - rounds to the desired number of decimal places
TOLLEVELCROSS - index of all points closest to a specified level within specified tolerance.
MATLAB (the MathWorks say) is the language of technical computing... I wonder then what FORTRAN is...