Cumulative Distribution Function
This function takes a number (integer or float) and returns a string with the integer portion grouped by thousands and the decimal portion rounded or padded to given number of decimal places.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): Number Format function Download |
This function very efficiently generates a Truth Table matrix of arbitrary, user specified dimension.The order of the Truth Table is limited only by the user's available system memory. The function is highly efficient, written using only three variables in 15 lines of MATLAB code.While this is...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Function To Generate Truth Table Download |
This m-file finds the periodic ACF of all the m-sequences of length 31.In this program m-sequences of length 31 are generated and its periodic Autocorrelation function is plotted.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Autocorrelation function of m-sequence Download |
This m-file finds and plots the autocorrelation and crosscorrelation function(ACF and CCF) of generated Gold codes of length 31.Crosscorrelations are three valued.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (53): Autocorrelation and Crosscorrelation function of gold sequence Download |
I was not able to get the peaks from my experimentally obtained data because of its random nature. As a result the findpeaks() defined in Matlab library was not giving results as expected. Hence I made a code which will help findpeaks() help detect the peaks more accurately.It basically averages...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Function for finding peaks from data array Download |
for entropyH = entropy(S)this command will evaluate the entropy of S, S should be row matrixH = entropy([X;Y;Z])this command will find the joint entropy for the 3 variablesH = entropy([X,Y],[Z,W])this will find H(X,Y/Z,W).. you can use it for any combination of joint entropiesPlease validate this...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): entropy, joint entropy and conditional entropy function for n variables Download |
This function generates Walsh Codes. The difference between this function and other functions available to generate walsh code is :1. you can call this function directly in your script, you will have to pass only the value of 'a' (length of code is 2 ^ a)2. this function can return you both the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (51): Function to generate Walsh Code Download |
This function generates a Timeseries file which can be used for Moore FSM coverage analysis.The file is generated in the working directory and can be opened into the Workspace for use by MATLAB, or read directly into Simulink using the 'Import Data From File' source block.The generated Timeseries...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Function to generate Timeseries file to use for Moore FSM coverage analysis Download |
The different low dimensional embeddings are an orthonormal coordinate system generated from a1. Diffusion process defined on the data2 . Normalized Laplace Beltrami operator3. Normalized Focker Plank operatorThis is a nonlinear dimension reduction technique using the concepts of manifold...
Platforms: Matlab
License: Freeware | Size: 890.88 KB | Download (49): Eigen Function of the Laplacian Download |
Statement: strLetterCounter('string')....where, 'string' is an input string containing alphabet or numbers.Ex: string='aaaaaaaabbbbbbccd'Statement: strLetterCounter(string)Output: '8a,6b,2c,1d'Note: This function is different from the Matlab function called 'unique' because it keeps the order in...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (38): String Letter Counter Function Download |
This simple function will use a system call to run Xfoil. It then loads the results into a data structure which you can then use in your Matlab script.For example to deflect the trailing edge of a NACA0009 by 5deg at 65% chord and run multiple incidence angles...[pol foil] =...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (53): Xfoil Interface Download |
SpinCalc is a consolidated matlab function that will convert any rotation data between the 4 types included. Will also convert between 2 different Euler angle set types.Multiple orientations can be input. For N orientations:DCM ===> 3x3xN multidimensional arrayEA### ===> Nx3 matrixEuler Vectors...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Function to Convert between DCM, Euler angles, Quaternions, and Euler vectors Download |
This program uses an Excel data file "DATA.xls" as an input to the program. the input file consists these worksheets: 1.input load data (active power of each load block and their X-Y cooedinates 2. present transformers and their capacities in kVA 3. candidate points for new transformers 4....
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (46): Optimal Distribution Substations Placement using Genetic Algorithm Download |
MolMass is a function for calculating the molar weight of a substance given in form of a chemical formula.Function call: MM = MolMass(substance)Substance is a string of the chemical formula of a substance.Example: MM = MolMass('Fe2(SO4)3');Substance can also be a vector of substances opened by...
Platforms: Matlab
License: Freeware | Size: 102.4 KB | Download (46): Molecular Weight Calculator Function Download |
This is an application of the Greedy Algorithm and the Local Search for finding a solution for the SC Distribution Network problem.We dealt with one level SC composed of a set of factories and a set of Sales Points, each sales point has a demand at a certain time, each factory has a production...
Platforms: Matlab
License: Freeware | Size: 583.68 KB | Download (52): Applying Greedy Algorithm and Local Search in a Supply Chain distribution problem Download |
In order to optimize any MATLAB function, there are two options: 1) rewrite the function to take only 1 array of inputs, reading all others from a file, perhaps, or from a global variable (undesirable), or 2) write an interface layer that handles this.This function provides an interface layer...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Generalized Objective Function Download |
This modification of fminsearch solves an issue with this simplex implementation when the function to minimize is smooth at a high scale, but rough at a low scale, i.e. when plotted with the parameters axis being (?10,10), there is a clear global extremum, but when zoomed (-0.1,0.1), the function...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): fminsearch modifed for higher scale smooth function Download |
W = mywigner(Ex)W = output Wigner distributionEx = Input electric field (MUST be a column vectorNotes:W = Int(-inf..inf){E(x+y)E(x-y)exp[2ixy]}E(x+y) & E(x-y) are calculated via a FFT (fast Fourier transform) using theshift theorem. The integration is performed via a FFT. Thus it is important for...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Calculate Wigner distribution Download |
For a system having multiple inputs x and outputs y, the partial coherence is the coherence computed between any individual input and the output when the effect of all other inputs is removed from the output by a linear least squares prediction. This coherence obeys the usual inequality, and will...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Multiple Coherence Function Download |
This function generates a Timeseries file which can be used for Moore FSM coverage analysis.The file is generated in the working directory and can be opened into the Workspace for use by MATLAB, or read directly into Simulink using the 'Import Data From File' source block.The generated Timeseries...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (54): Function to generate Timeseries file to use for Moore FSM coverage analysis. Download |