# Exp.sweep and impulse response in matlab

The following Matlab project contains the source code and Matlab examples used for exp.sweep and impulse response. [sweep,invsweep]=expsweep(T,f1,f2,silence,fs) generate sine sweep with exponential frequency dependent energy decay over time and time/frequency inverse for impulse response calculation inputs: T = sweep duration in seconds f1 = start frequency in Hz f2 = end frequency in Hz silence = silence before and after sweep in seconds (default: 0) fs = sampling frequency (default: 44100) [h,h_dist]=sweepIR(rec,Nimp,T,f1,f2,offset,fs)

# Find phase difference between 2 sinusoidal signals in matlab

The following Matlab project contains the source code and Matlab examples used for find phase difference between 2 sinusoidal signals. % Description: Given 2 sinusoidal signals of the % same frequency, the function gives the "phase difference" between the % 2 given signals % The phase difference is in RADIANS!!!!!! % The output is limited to pd={-pi,pi}radians % Time Stamp: 2010 October 19 2043hrs.

# Sinesum estimates a signal as a sum of pure sine waves of known frequency in matlab

The following Matlab project contains the source code and Matlab examples used for sinesum estimates a signal as a sum of pure sine waves of known frequency . function [output m p]= sinesum(signal, freq, Fs) SINESUM Estimates a signal as a sum of pure sine waves of known frequency 'signal' - Input signal you wish to estimate 'freq' - Vector of known frequencies with significant contributions           If no vector is specified, vector is assumed to be a           fundamental (primary freq of signal) plus harmonics (number of

# Two phase medium sound speed calculator in matlab

The following Matlab project contains the source code and Matlab examples used for two phase medium sound speed calculator. Calculate the low-frequency bulk sound speed of a two-phase homogeneous fluid mixture using Wood's model.

# Sine function fit in matlab

The following Matlab project contains the source code and Matlab examples used for sine function fit.   Syntax:         [param]=sine_fit(x,y)           which is the same that         [param]=sine_fit(x,y,[],[],[]) % no fixed_params, automatic initial_params           [param]=sine_fit(x,y,fixed_params) % automatic initial_params         [param]=sine_fit(x,y,[],initial_params) % use it when the estimation is poor         [param]=sine_fit(x,y,fixed_params,initial_params,plot_flag)     param = [offset, amplitude, phaseshift, frequency]

# Histogram fitting probability density, counts, frequency in matlab

The following Matlab project contains the source code and Matlab examples used for histogram fitting probability density, counts, frequency. I modified histfit to output the fit results.

# Frequency measurement in matlab

The following Matlab project contains the source code and Matlab examples used for frequency measurement. The block uses a counter to count the number of cycles per second and then finds the frequency from the count. 