Software Listing of Author : "Richard Crozier"
- Display Formatted Text Table of Data
- License: Shareware
- Price:


displaytable: prints formatted matrix of numerical data with headings Syntax displaytable(data, colheadings, wid, fms, rowheadings, fid, colsep, rowending) Input: data: a matrix or cell array, containing the data to be put in the table. If a matrix the numbers in the table will be printed to using the default format specifier, or the specifier(s) supplied in fms. data can also be a cell array containing a mixture of strings and numbers. each cell in this case can contain only a single scalar value. In this case numbers are printed as in the matrix case, while strings are printed up to the maximum width of the column. colheadings: a cell array of strings for the headings of each column. Can be an empty cell array if no headings are required. wid: (optional) scalar or vector of column widths to use for the table. If scalar, every...
- Publisher: Richard Crozier
- Date Released: 23-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- gapolyfitn
- License: Freeware
- Price: 0.00


This function implements a method of using genetic algorithms to optimise the form of a polynomial, i.e. reducing the number of terms required in comparison to a least-squares fit using all possible terms, as described in the following paper: Clegg, J. et al, "The use of a genetic algorithm to optimize the functional form of a multi-dimensional polynomial fit to experimental data", 2005 IEEE Congress on Evolutionary Computation, 928-934, Edinburgh, September, 2005 A general polynomial of n variables can be represented as follows: a1 * x1^2 * x2^4 * x3^1 * xn^p + a2 * x_1^6 * x2^3 * x3^1 * xn^p + ... A linear least-square fit can find the values of the coefficients, represented as 'a' above, such that the error between the function and a set of data is minimized. If the functional form of the data is not known in advance this can...
- Publisher: Richard Crozier
- Date Released: 05-01-2013
- Download Size: 31 KB
- Download
- Platform: Matlab, Scripts
- Goodness of Fit (Modified)
- License: Shareware
- Price:


GFIT2 Computes goodness of fit for regression model USAGE: [gf] = gfit2(t,y) [gf] = gfit2(t,y,gFitMeasure) [gf] = gfit2(t,y,gFitMeasure,options) INPUT: t: matrix or vector of target values for regression model y: matrix or vector of output from regression model. gFitMeasure: a string or cell array of string values representing different form of goodness of fit measure as follows: 'all' - calculates all the measures below '1' - mean squared error (mse) '2' - normalised mean squared error (nmse) '3' - root mean squared error (rmse) '4' - normalised root mean squared error (nrmse) '5' - mean absolute error (mae) '6' - mean absolute relative error (mare) '7' - coefficient of correlation (r) '8' - coefficient of determination (d) '9' - coefficient of efficiency (e) '10' - maximum absolute error '11' - maximum...
- Publisher: Richard Crozier
- Date Released: 22-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- odesplit
- License: Shareware
- Price:


Occasionally I have had to solve large systems of differential equations which result in matlab running out of memory during evaluation. Odesplit breaks up the simulation period into a series of chunks to ease this problem. At each split point in the evaluation a function specified by the user is called with the current set of results to do whatever is necessary with the ouput. The next section is then evaluated using the final value of the previous section as the new starting point. This behaviour differs from matlab's odextend as it allows you operate only on small sections of the solution, whereas odeextend always returns the full solution from the original start time to the specified final time. With odesplit, you could also choose to extract only particular solution components of interest, but which depend on the full solution,...
- Publisher: Richard Crozier
- Date Released: 08-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- randMat for Mathematics
- License: Freeware
- Price: 0.00


The result will be displayed in a matrix format. For uniform distributions,the values returned by the MATLAB function rand() are multiplied by (b-a), then added to a. For normal distributions the output of randn() is multiplied by the standard deviation (b), and then added to the desired to the mean (a).
- Publisher: Richard Crozier
- Date Released: 11-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- tightfig
- License: Shareware
- Price:


Alters a figure so that it has the minimum size necessary to enclose all axes in the figure without excess space around them. Works for figures containing multiple axes as subplots. Note that tightfig will expand the figure to completely encompass all axes if necessary. Returns an error if the figure contains any 3D axes which have been zoomed.
- Publisher: Richard Crozier
- Date Released: 16-01-2013
- Download Size: 10 KB
- Download
- Platform: PHP, Scripts
