Software Listing of Author : "Matt Fig"
- Collatz
- License: Shareware
- Price:


Three different M-files for use in examining the Collatz sequence.
- Platform: Matlab, Scripts
- EXPAND Script
- License: Freeware
- Price: 0.00


For an array A and a vector B, the function replicates each one's of A's elements by B. The results are tiled into an array in the same order as the elements of A, so that the result is size: size(A).*SZ. Therefore the number of elements of SZ must equal the number of dimensions of A. The result will have the same number of dimensions as does A. There is no restriction on the number of dimensions for input A.
- Platform: Matlab, Scripts
- Findsubmat Script
- License: Freeware
- Price: 0.00


The function looks and returns the linear index of the location where the first element of matrix B is within matrix A.
- Platform: Matlab, Scripts
- gaussleg
- License: Shareware
- Price:


gaussleg(f,a,b,ngp) I have found that this is on average +20 times faster than 'Gauss-Legendre' file(4560), and easier to read because it is shorter.
- Platform: Matlab, Scripts
- guidegetter
- License: Shareware
- Price:


This tool is useful when one wants to create a GUI from a standalone M-file, but would like to use guide for it's excellent ability to position the GUI objects within the GUI. guidegetter works by first fetching the layout of the uicontrols, uimenus and other objects from a guide generated .fig file. Then an M-file is created that will generate the same GUI without the use of a fig file. The new M-file can then be used to complete the GUI project (write callbacks, etc). See the help for more information. Please email me about bugs. Tested on 6.5 2006a and 2007a.
- Platform: Matlab, Scripts
- imsubtract
- License: Shareware
- Price:


Takes two pictures and subtracts them one from the other digitally. Then creates a new picture that represents the difference and also a plot that can be used for measuring features of the difference. Example pictures of wind tunnel shock angle measurements are included. Another example is included which shows how to find where the text message is hidden in a steganographically encrypted image. Images are include for both examples. See the readme file which will walk you through the examples.
- Platform: Matlab, Scripts
- LINECMENU
- License: Shareware
- Price:


LINECMENU Creates a uicontextmenu or submenu to a pre-existing uicontextmenu for a line object. U = LINECMENU; creates a uicontext menu for a line object. U can then be put in the 'uicontextmenu' property of any (or several) line object(s). LINECMENU(H) appends a line menu to uicontextmenu or submenu in handle H. The sample image shows the menu which comes up when a line is clicked. The code should be easy enough to follow that it is extensible. For example, one could add more sizes to the MarkerSize menu by following the pattern laid out in the code. Also included is another M-file, DEFAULTLINECREATEFCN. This file is meant to be called from the STARTUP file so that LINECMENU is automatically placed in the uicontextmenu for all subsequently created lines. This is optional, and will result in all future lines created by the user...
- Platform: Matlab, Scripts
- MATLABTETRIS
- License: Shareware
- Price:


Pushing the following keys has the listed effect: Key Effect ------------------ n.....Starts a new game in the middle of any game. p.....Pauses/Unpauses game play. s.....Starts the new game (alternative to pushing the start button). Other tips: To move the piece, use the arrow keys. The up arrows rotates a piece clockwise, shift+up, counter clockwise. Clicking on the preview window hides/unhides the preview (next piece). Click on the level (1) before starting a game to choose start level. If the first level is too slow, try starting out at a higher level, up to 9. The desired starting level may also be passed in as an argument when first calling the game. For example, matlabetetris(7) starts the game at level 7. See the help in the file for more important information. If this game is found to have bugs, please contact me via...
- Platform: Matlab, Scripts
- NFACTORK
- License: Shareware
- Price:


NFACTORK All integer factorings of integer N which have K elements. T = NFACTORK(N,K) returns an array which has K columns such that all(prod(T,2)==N) is true. Examples: T = nfactork(24,3) % produces T = 1 1 24 1 2 12 1 3 8 1 4 6 2 2 6 2 3 4 such that: all(prod(T,2)==24) % True T = nfactork(N,inf); % Last row is factor(N) % unique(T) lists all divisors of N This was written in response to a NewsGroup question. Like many combinatorial problems, this one can grow very quickly and soon overwhelm the system resources. Suggestions for improvements are always welcome. See the function help and comments in code for more information.
- Platform: Matlab, Scripts
- N_PERMUTE_K
- License: Shareware
- Price:


MAT = NPERMUTEK(N,K) returns all possible permutations of the elements taken from vector N of length K. This type of sampling is an ordered sample with replacement. This is also known as the permutations with repetition. MAT has size (length(N)^K)-by-K, where K must be a scalar. [MAT, IDX] = NPERMUTEK(N,K) also returns IDX such that MAT = N(IDX). If N is of class single, MAT and IDX will be also. Please email me about bugs in the code. Thanks
- Platform: Matlab, Scripts
- pass_protect
- License: Freeware
- Price: 0.00


Creates a password protected pcode version of an M-file. The user of the pcode file will have to enter the password only on the first execution of the code per session, or until a 'clear all' command is issued. Will not alter the input M-file. Please see the rather verbose help for more information and a built in example. Please contact me for bug fixes and/or suggestions. My email is in the file. Thanks.
- Platform: Matlab, Scripts
- RCUMSUMC
- License: Shareware
- Price:


RCUMSUM cumulative sum of elements, restarted after every zero. For vectors, RCUMSUM(X) is a vector containing the cumulative sum of the elements of X, with the summation restarting after a zero is encountered. For matrices, RCUMSUM(X) is a matrix the same size as X containing the cumulative restarted sums over each column. For N-D arrays, RCUMSUM(X) operates along the first non-singleton dimension. RCUMSUM(X,DIM) works along the dimension DIM. Also included is RCUMPROD.
- Platform: Matlab, Scripts
- Resonant Ultrasound Spectroscopy (RUS)
- License: Shareware
- Price:


Calculates resonant frequencies and mode shapes for Resonant Ultrasound Spectroscopy. This program can function with the common sample shapes used in RUS by material scientists and engineers. Included is a paper explaining the motivation for the program and it's usage, and also some sample material files. Made in 2006a, also works with 7.01. Please email me with bugs or typos in the Readme file.
- Platform: Matlab, Scripts
- rppd
- License: Freeware
- Price: 0.00


RPPD(sidelength,centerloc,facecolor,edgecolor,alpha) Creates an RPPD with the following arguments: sidelength is a 1x3 vector of side lengths. centerloc is a 1x3 vector giving the location of the center of the rppd. facecolor is a 1x3 vector of RBG values for the faces. edgecolor is a 1x3 vector of RGB values for the edges. alpha is a transparency value on [0 1]. 0 is transparent, 1 opaque. All arguments are optional, and defaults will be provided. The default is a 95% opaque, blue unit cube located at the origin. If requested, rppd returns the handle to the patch object. See the help for more information and several examples. Inspired by questions on the newsgroup, and another FEX submission. Tested on 6.5 R2007a Please email me about bugs and other concerns. Thanks.
- Platform: Matlab, Scripts
- TRIGDEMO
- License: Shareware
- Price:


Interactively explore how parameters affect trigonometric functions. TRIGDEMO allows user to manipulate the parameters A,B,C,D in the general equation: y = y(x) = A trig(Bx + C) +D Where trig is any one of sine, cosine, tangent, cosecant, secant, cotangent. The inspiration for this was my participation in a discussion, during the course of which, it became clear that several very educated people didn't completely (reflexively) understand how these parameters affect the plot of trigonometric functions. I figure if these folks were hesitant, there might be others out there who could use a little refresher. For demonstration purposes only! This is not meant to be earth-shattering.
- Platform: Matlab, Scripts
- txthide
- License: Shareware
- Price:


TXTHIDE is a GUI that allows the user to hide a text message in an image file. The user will be asked for a key that will be used to both encode and decode the text into an image. The key can be of length from 2 to 900 characters. The encryption pattern for a key 'hell' is not a subset of the encryption pattern for 'hello'. See help. Created with version 7.01.
- Platform: Matlab, Scripts

