Refine by Content Type

Refine by Product

Refine by Time Frame

image thumbnail

updated 1 year ago

LOADFIXNAMES loads a mat file, fixing invalid names by James Tursa

Loads a mat file into the caller's workspace, fixing invalid variable and field names. (load, mat, invalid)

loadfixnames(varargin)

savebadnames(varargin)

image thumbnail

updated 1 year ago

Brewing Calculators by Travis Wiens

A number of functions for brewers. (beer, wine, brewing)

ABW=alcohol_by_weight_fix(OSG,FSG )

OG=brix_to_og( B )

P=SG_to_Plato( SG )

image thumbnail

updated 1 year ago

mexPutVariableSharedDataCopy by James Tursa

This C routine puts a shared data copy of a variable into a workspace from a mex routine (mex, mexputvariable, mexputvariablesharedd...)

mexPutVariableSDCtest(varargin)

image thumbnail

updated 1 year ago

Graph Picker by Travis Wiens

Helps digitize graph data from an image. (gui, digitizing, data import)

[X, Y, axis_data, im]=graph_picker( im )

overplot_example.m

image thumbnail

updated 1 year ago

Hydraulic System Comparison Gui by Travis Wiens

Visualizes power losses and utilization for four common types of fluid power systems. (mechanical, engineering, gui)

hydSysCompareGui

image thumbnail

updated 1 year ago

SPARSECLEAN - Efficiently cleans a sparse matrix of small values or nan by James Tursa

SPARSECLEAN cleans a double sparse matrix of small or nan values or values within a range. (sparse, clean, nan)

sparseclean(varargin)

image thumbnail

updated almost 3 years ago

Fortran 95 Interface to MATLAB API with extras! by James Tursa

This is the one you have been waiting for, a clean interface using assumed shape Fortran pointers. (fortran 95, fortran, 95)

MatlabAPI_build_cvf61.m

MatlabAPI_build_cvf66.m

MatlabAPI_build_intelf10msvs2005.m

image thumbnail

updated 3 years ago

UNINIT - Create an uninitialized variable (like ZEROS but faster) by James Tursa

UNINIT is similar to ZEROS, except UNINIT returns uninitialized values instead of zero values. (uninit, zeros, ones)

uninit(varargin)

image thumbnail

updated 3 years ago

typecast and typecastx C-mex functions by James Tursa

typecast and typecastx are mex functions that mimic the MATLAB typecast function with extensions (external interface, typecast, cast)

typecast(varargin)

typecastx(varargin)

image thumbnail

updated 3 years ago

mxGetPropertyPtr C-mex function by James Tursa

Fast memory efficient alternative to the API function mxGetProperty. (mxgetproperty, mxgetpropertyptr, object)

GetPropertyPtrx(varargin)

GetPropertyPtr(obj,ix,propname)

mxGetPropertyPtr_class

image thumbnail

updated almost 4 years ago

MTIMESX - Fast Matrix Multiply with Multi-Dimensional Support by James Tursa

Beats MATLAB 300% - 400% in some cases ... really! (mtimes, multiply, speed)

mtimesx.m

mtimesx_build(x)

mtimesx_sparse(a,transa,b,transb)

image thumbnail

updated almost 5 years ago

Radial Basis Function Network by Travis Wiens

Simulates and trains Gaussian and polyharmonic spline radial basis function networks. (radial basis function, radial basis function..., rbf)

Phi_int=rbf_integral(Xc,X1,X2,k_i,basisfunction)

[W phi]=train_rbf(X,Y,Xc,k_i,basisfunction)

[Y_int Phi_int]=rbfn_integral(Xc,X1,X2,W,k_i,basisfunction)

image thumbnail

updated almost 5 years ago

Linear Regression with Errors in X and Y by Travis Wiens

Calculates slope and intercept for linear regression of data with errors in X and Y. (mathematics, measurement, statistics)

ellipse(Xc,Yc,dX,dY,N_p)

york_fit(X,Y,sigma_X,sigma_Y, r)

demo_york.m

image thumbnail

updated 5 years ago

mpower2 - A faster matrix power function. by James Tursa

mpower2 evaluates matrix to an integer power faster than the MATLAB built-in function mpower. (mpower, matrix, power)

mpower2(X,p)

image thumbnail

updated 5 years ago

polyvalm2 - A faster matrix polynomial evaluator by James Tursa

polyvalm2 evaluates a polynomial with a matrix argument faster than the MATLAB function polyvalm. (polyvalm, mpower, polynomial)

polyvalm2(p,X)

image thumbnail

updated 5 years ago

num2vpi - Converts input exactly into vpi by James Tursa

Converts double inputs larger than 2^53-1, or char inputs with exponents, exactly into vpi. (vpi, variable, precision)

num2vpi(x)

image thumbnail

updated 5 years ago

Complex Method of Optimization by Travis Wiens

Implements the Complex Method of Constrained Optimization (optimization, nonlinear, constrained)

[fitness x]=fitness_function(x, opts)

[x_best, fit_best, x_pop, fit_pop stats]=complexmethod(fc...

example.m

image thumbnail

updated 5 years ago

Fortran mex routine mxGetClassName by James Tursa

A drop-in replacement for the TMW Fortran API function mxGetClassName routine that does not work. (mex, mxgetclassname, fortran)

image thumbnail

updated 5 years ago

Subsample Delay Estimation by Travis Wiens

Demonstrates a number of methods of estimating the delay between two signals to subsample accuracy. (dsp, delay estimation, radar)

[e f_e G P]=zzb(s,n1,n2, f_s, D, N_calc)

[x_max y_max A]=crit_interp_p(y,x)

delay=delayest_3point(u2,u1,method,estimator,parameter);

image thumbnail

updated 5 years ago

num2strexact (exact version of num2str) by James Tursa

num2strexact does exact conversion of number to string based on IEEE floating point bit pattern (num2strexact, num2str, str2num)

num2strexact(varargin)

image thumbnail

updated 5 years ago

swapbytes C-mex function by James Tursa

swapbytes(X1,X2,...) reverses byte ordering of each element, little-endian values to/from big-endian (external interface, swapbytes, reverse byte ordering)

swapbytes(varargin)

image thumbnail

updated 5 years ago

Moon Position by James Tursa

moonpos calculates moon position accurate to 10 arcsec. Based on Astronomical Algorithms, Meeus (aerospace, moon, lunar)

moonpos(varargin)

moonpos_examples.m

image thumbnail

updated 5 years ago

IEEE 754r Half Precision floating point converter by James Tursa

Converts MATLAB or C variables to/from IEEE 754r Half Precision floating point bit pattern. (half precision, ieee 754r, ieee 754)

halfprecision(varargin)

halfprecisionmax

halfprecisionmin

image thumbnail

updated 5 years ago

Kasami Sequences, m-sequences, Linear Feedback Shift Registers by Travis Wiens

LFSRs are used to generate sequences, including MLS and sets of Kasami sequences. (maximal length sequen..., mls, msequence)

kasami(m, feedback)

lfsr( feedback, start, N_points, f_decimate )

xc=xcorr_fft(x1,x2)

image thumbnail

updated 5 years ago

RBF Acoustic Tomography by Travis Wiens

Recreate temperature and flow fields from acoustic time-of-flight data. (measurement, radial basis function, rbf)

Omegapsi=Omegapsi_rbf(Xc,X1,X2,k_i,c0,basisfunction)

Phi_int=rbf_integral(Xc,X1,X2,k_i,basisfunction)

[W phi]=train_rbf(X,Y,Xc,k_i,basisfunction)

image thumbnail

updated 5 years ago

Complex Optimization of a Recurrent Neural Network by Travis Wiens

Shows how to use the complex method to optimize a black-box neural network model of a load-sensing h (fuzzy logic, neural networks, complex)

P=W_to_param(W,N_in);

W=params_to_W(P,N_in);

[W]=initializegnn_static(m,n,N_h,overlapfactor)

image thumbnail

updated 5 years ago

Thin Plate Spline Network with Radiohead Example by Travis Wiens

Thin plate splines can be used to interpolate nonuniform data, such as the Radiohead dataset, which (approximation, interpolation, thin plate spline)

[a, xc]=train_thin_plate_spline(x,y)

y_hat=sim_thin_plate_spline(x,x_c,a);

tps_radiohead_example.m

image thumbnail

updated 5 years ago

Day Length by Travis Wiens

Calculates the length of daylight for any day and latitude (sun, day, length)

[hours b]=day_length(Day,Latitude)

day_length_example.m

image thumbnail

updated 5 years ago

Peak Interpolation by Travis Wiens

Estimates the location and magnitude of the peak of a continuous function between samples. (communications, mathematics, measurement)

[x_max y_max A]=crit_interp_g(y,x);

[x_max y_max A]=crit_interp_p(y,x)

example1.m

image thumbnail

updated 5 years ago

Fast Circular (Periodic) Cross Correlation by Travis Wiens

A fast circular cross correlation algorithm for periodic signals, using the FFT. (correlation, cross correlation, dsp)

fcxcorr(u1,u2)

fcxcorr_example.m

fcxcorr_speed.m

image thumbnail

updated 6 years ago

Count "on", "off", or calculate simple "parity" bits of input by James Tursa

Three functions to calculate the number of "on", "off", or simple "parity" bits of input (coding theory, information theory, onbits)

offbits(varargin)

onbits(varargin)

paritybits(varargin)

image thumbnail

updated 6 years ago

Fortran mex: mxCopyCharacterToPtr and mxCopyPtrToCharacter by James Tursa

Drop in replacements for the Mathworks supplied functions of the same names that do not work. (external interface, mxcopycharactertoptr, mxcopyptrtocharacter)

image thumbnail

updated 6 years ago

Forest Reverb Generator by Travis Wiens

Generates acoustic impulse response of a forest. (audio processing, video processing, forest)

[Y y]=mpf(Y_abs)

[gain_P gamma psi_m]=scatter_cyl(a, phi, f, N_m, c)

[y Y]=scatter_impulse(a,phi,F_s,N_fft,N_m,f_f, minphase,c)

image thumbnail

updated 6 years ago

Fortran mxCreateLogicalSparseMatrix by James Tursa

The Fortran version of the mxCreateSparseLogicalMatrix function for mex and engine apps (external interface, mex, logical)

image thumbnail

updated 6 years ago

bwmorph c-mex example by James Tursa

This file is the c-mex equivalent of the example given in the bwmorph.m file comments. (tutorial, example, bwmorph)

bwmorph_example.m

image thumbnail

updated almost 7 years ago

fulltosparse (Fortran version) by James Tursa

This is a Fortran version of The Mathworks supplied fulltosparse.c, with realloc capability. (external interface, fulltosparse, sparse)

image thumbnail

updated almost 7 years ago

bsxarg by James Tursa

bsxarg returns the physically expanded arrays associated with bsxfun (matrices, bsxarg, bsxfun)

image thumbnail

updated almost 7 years ago

bsxfun by James Tursa

bsxfun is a functional substitute for MATLAB intrinsic of the same name (matrices, bsxfun, bsxarg)

image thumbnail

updated almost 7 years ago

reshape0, reshaping with padding or truncating by James Tursa

A c-mex routine for reshaping with padding or truncating (external interface, reshape0 reshape copy)

image thumbnail

updated almost 7 years ago

Fortran Logical mex functions by James Tursa

Fortran mex routines for converting logicals to/from MATLAB mxArray variables (external interface, mxcopyptrtological, mxcopylogicaltoptr)

image thumbnail

updated 7 years ago

engCallMATLAB (Fortran version) by James Tursa

engCallMATLAB is a Fortran routine giving engine equivalent of mexCallMATLAB function (external interface, engcallmatlab, mexcallmatlab)

compile_intel91(name)

engCallMATLAB.m

image thumbnail

updated 7 years ago

intbitcopy and uintbitcopy by James Tursa

Exact bit copy of variable into signed int__ or unsigned uint__ of same element size (external interface, integer, bit)

intbitcopy.m

uintbitcopy.m

image thumbnail

updated 7 years ago

engCallMATLAB by James Tursa

engCallMATLAB is a c routine giving engine equivalent of mexCallMATLAB function (external interface, engcallmatlab, mexcallmatlab)

compile_lcc(name)

engCallMATLAB.m

Contact us