Software Listing of Author : "Timothy Felty"
- BMPtoCOE
- License: Shareware
- Price:


This code was written for a colleague of mine that needed a quick script that could convert a 16 color bmp to a Xilinx FPGA memory file. This could be used for your projects or for an example on the structure for your own coe files. Zip file includes the function, a test bmp, and the resultant coe file. The code makes the assumption that the data is scanned row by row, not column by column.
- Publisher: Timothy Felty
- Date Released: 12-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Dynamic Time Warping
- License: Freeware
- Price: 0.00


If you pass in 2 vectors it returns the unnormalized distance between the vectors, the accumulated distance between them, the length of the warping path (the normalizing factor), and the warping path points. To compare 2 vectors A and B call: [Dist,D,k,w]=dtw(A,B) Dist is the unnormalized distance D is the accumulated distance k is the length of the warping path (the normalizing factor) w is a matrix containing the points along the warping path
- Publisher: Timothy Felty
- Date Released: 10-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- KNMCluster
- License: Freeware
- Price: 0.00


Usage: [means,c]=KNMCluster(k,indata) KNMCluster is an implementation of the K-means clustering algorithm. It takes inputs k and indata. k is the initial guess of the number of clusters. indata is the aggregate data that you want to put into clusters. The returned value "means" are the eturned means of the final clusters. c is a structure with fields Clust1, Clust2, and so on for each of the k means. Notes: This program makes use of Sara Silva's program shuffle found here on Mathworks. I would like to thank her for this nice little utility, it saved me some time which is always nice. Tim Felty, fistandantilus1@hotmail.com
- Publisher: Timothy Felty
- Date Released: 10-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Multivariate Gaussian Distribution
- License: Shareware
- Price:


Creates a number of samples from a specified number of dimensions and centers them around a given mean, and within a given covariance range. You might not find it very useful, but hey, I need something to do this so why not. To use: You need to generate 1000 samples from a 3 dimensional Gaussian distribution with a mean m = [4,5,6], and with a covariance sigma = [9 0 0;0 9 0;0 0 9]. Command line: x=mgd(1000,3,m,sigma) or x=mgd(1000,3,m',sigma) it doesn't matter if the mean is given as a row or column vector x is a (1000x3) matrix of the where where each row is the coordinates of that point in 3 space.
- Publisher: Timothy Felty
- Date Released: 15-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Phasor/Polar Data Type
- License: Shareware
- Price:


In the study of circuits and others it is useful to portray quantities as phasors which are functionally equivalent to a vector in polar format. This class implements the constructor for that data type as well as the functions to add, subtract, multiply and divide phasors. There is also the necessary methods to extract and insert data. There is an included text file with a more indepth description of the included methods and their use. I would appreciate any comments and suggestions as well as code that would improve this data class. There is code included for Matlab 6 and Matlab 7. The Matlab 7 code is fairly mlint clean, the Matlab 6 code is going to throw up lots of stuff due to the & -> && change.
- Publisher: Timothy Felty
- Date Released: 02-01-2013
- Download Size: 72 KB
- Download
- Platform: Matlab, Scripts
- Simple Neural Network
- License: Freeware
- Price: 0.00


The attached zip file contains what is needed to implement a two layer neural network. This will hopefully be the first part of a broader collection of neural network tools. It can be used to train and simulate a NN with two layers, an input layer and an output layer. The output layer's activation function can be the simple perceptron rule, or the logistic sigmoid function. The perceptron rules work fine, however the logistic sigmoid function seems to be off. If anyone wishes to help with debugging I would be grateful. The code doesn't do any error checking for inputs, but the enclosed PDF file give examples of usage. As time progresses and I figure out whats going on with the logistic sigmoid function I will be updating these files with more online help.
- Publisher: Timothy Felty
- Date Released: 21-06-2013
- Download Size: 20 KB
- Download
- Platform: Matlab, Scripts

