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.
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...
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....
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,...
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...
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.
T = nfactork(24,3) % produces
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,...
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...
Pushing the following keys has the listed 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...
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...