Software Listing of Author : "Christos Saragiotis"
- Graphical convolution animation
- License: Freeware
- Price: 0.00


Shows graphically the various stages of discrete convolution for any two 1-D signals. This is for educational purposes really so the screens are optimized for signals of a few samples. Between two stages the figure pauses and requires the user to strike a key to continue. This should allow instructors to move on their own pace. Otherwise the user can enter the duration of the pause as an input. The frames are also stored in case the user wants to make a movie or gif animation Instructions for instructors are given at the end of the mfile.
- Publisher: Christos Saragiotis
- Date Released: 03-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Laplace random variables
- License: Freeware
- Price: 0.00


This function generates random numbers distributed according to the Laplace distribution using the Probability integral transformation
- Publisher: Christos Saragiotis
- Date Released: 09-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Lomb normalized periodogram
- License: Freeware
- Price: 0.00


Both functions caculate the Lomb normalized periodogram (aka Lomb-Scargle, Gauss-Vanicek or Least-Squares spectrum) of a vector x with coordinates in t, which is essentially a generalization of the DFT for unevenly sampled data. The codes are transcriptions from Fortran of the subroutines found in Section 13.8 (pp. 569-577) of "Numerical recipes in Fortran 77: the art of scientific computing", 2nd ed., vol. 1, Cambridge University Press, NY, USA, 2001 by WH Press, SA Teukolsky, WT Vetterling and BP Flannery, However, Matlab's characteristics have been taken into account in order to make it fast for Matlab. FASTLOMB is much faster than LOMB (especially when the length of the input increases) but even LOMB is faster than any other implementation I found in FileExchange. Also they both do not suffer from memory problems (I tested them...
- Publisher: Christos Saragiotis
- Date Released: 17-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Peaks picking
- License: Shareware
- Price:


PICKPEAKS is similar to MATLAB's FINDPEAKS; it returns local peaks and their indices for the input X. The main differences are that PICKPEAKS - is faster (much faster for large vectors), - allows X to be a 2D matrix (not just a vector) and the user can specify across which dimension to look for peaks. - picks either peaks or troughs. - does not provide the FINDPEAKS option 'THRESHOLD'. - does not provide the FINDPEAKS' options: 'MINPEAKHEIGHT', 'NPEAKS', 'SORTSTR'. Those can be achieved easily by manipulating the output. E.g. if Vo, Io are the output of PICKPEAKS, the following will yield the same result as setting 'MINPEAKHEIGHT' to 0.5: i = find(Vo<0.5); Vo(i) = []; Io(i) = []; The syntax is [Vo,Io] = PICKPEAKS(X,npts,dim,mode); Examples of usage are: [Vo,Io] = PICKPEAKS(X); [Vo,Io] = PICKPEAKS(X,[],[],'troughs'); [Vo,Io] =...
- Publisher: Christos Saragiotis
- Date Released: 20-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- SAC_Sun2PC_mat
- License: Freeware
- Price: 0.00


Syntax: sac_sun2pc_mat('filename') Reads the SAC binary files from/for SUN platform and creates a .mat file that consists of 1. a structure, H, that contains all the header information and 2. a vector, X, that contains the waveform. The input file 'filename' must be either a sac file with extension .sac or a path. In the latter case all sac files in this path are converted. The path must be the full path, i.e., 'C:Data920611_001538_00_405'. The mat files are saved in the folder, in which the original .sac file exists. The SAC format files and names of variables are based on documentation, I have found in the internet. Some SAC Header variables that are 'not currently used' (according to the documentations, I found) are in comments, whereas others are ommitted. This file has been tested (not thoroughly, though) using Matlab 6.5...
- Publisher: Christos Saragiotis
- Date Released: 24-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts

