Quadratic Function Examples
This script contains a function to use the timeit module from a script, creating a nice overview of the runtimes of one or more code snippets. All command line flags that the timeit module accepts can be used. The output can easily be customized.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (49): Timeit function Download |
This function makes it easier to use the timeit module from the interactive interpreter. You should just specify function with (optional) arguments to run, optional number of runs, and optional name of module (which if not specified defaults to the name of the function).
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Convenience 'timeit' function Download |
This script allows a user to place debug messages, error messages and standard messages throughout a program. The function name and line number will be added to each debug and error message before it is printed out. In addition, each of these messages can be passed to multiple handler objects...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): Debug statements include function name Download |
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 |
Quadratic-O-Matic is about the simplest program imaginable to set up and to use. You simply call the program up in your web browser, type in the numbers to get your quadratic equation, and click "Solve that puppy."You will then be given the roots of the equation.If "b2 - 4ac" is negative, you'll...
Platforms: CGI and Perl
License: Freeware | Size: 10 KB | Download (42): Quadratic-O-Matic 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 file contains MATLAB functions, m-files, that do Huffman coding and arithmetic coding of integer (symbol) sequences. Complete coding may be done by calling an easy to use main program (or main function), where input argument is the sequences you want to compress and the output is the...
Platforms: Matlab
License: Freeware | Size: 51.2 KB | Download (45): Huffman Coding and Arithmetic Coding 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 code takes an expression for a normalized AF in spherical coordinates and creates a 3D plot in cartesian coordinates. Examples are specific to Antenna Theory and Design (2nd Ed) by Stutzman and Thiele.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): 3D Plots of Normalized Array Factor Examples Download |
This function calculates the probability under the normal distribution curve, plots the graph and the area calculated.Normaldistribution calculating the area under a normal distribution curve from -ve infinity upto point x. Input: x : point on the normal distribution curve mean : mean of the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): probability distribution function (normal distribution) 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 |
Given adjacent matrix (transmat) and starting/ending node (pathS, pathE), this function finds the shortest-path (path) that connecting pathS and pathE, and returns the cost (cost):[path, cost]=dijkstra(pathS, pathE, transmat);NOTE: Except for the simple interface, the pathS and pathE can be the...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (43): Dijkstra Algorithm Consistent with Cyclic Paths Download |
[coef, RSquared]=plotfit(x,y,polyorder)A simple function that accepts x,y data pairs in in the vectors "x" and "y", fits it to a polynomial of order "polyorder", plots the data and the fit, and displays the fit coefficients and the goodness-of-fit measure R-squared in the upper left corner of the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): plotfit 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 (41): 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 (43): 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 (47): Function to generate Walsh Code Download |
The gradient function in Matlab allows you to compute the slope of a curve along its entire length. But if your curve is a noisy one, then gradient will also be noisy. In this event one might desire to fit a moderately low order polynomial regression model in a sliding window, then differentiate...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Movingslope Download |
PITAN(NUM,DEN,W) plots the stability boundary locus L(KP,KI,W) in the (KP,KI)-plane for an LTI system with transfer function defined by its NUM, DEN coefficients and driven by a PI controller with transfer function, C(s)=kp+(ki/s). Frequency (W) gridding become important.The method works for open...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (51): Computation of Stabilizing PI Controllers 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 (45): Eigen Function of the Laplacian Download |