The conjugate gradient method aims to solve a system of linear equations, Ax=b, where A is symmetric, without calculation of the inverse of A. It only requires a very small amount of membory, hence is particularly suitable for large scale systems.
It is faster than other approach such as Gaussian elimination if A is well-conditioned. For example,
n=1000; [U,S,V]=svd(randn(n)); s=diag(S);
This code can be used to solve a set of linear equations using Gaussian elimination with partial pivoting. Note that the Augmented matrix rows are not directly switches. Instead a buffer vector is keeping track of the switches made. The final...
THIS PROGRAM HELPS TO CROP A REGION OF INTEREST MANUALLY FROM AN IMAGE AND IT COMPUTES SEVEN TEXTURE PARAMETERS VIZ., 1. SHORT RUN EMPHASIS (SRE) 2. LONG RUN EMPHASIS(LRE) 3. GRAY LEVEL NON-UNIFORMITY (GLN) 4. RUN PERCENTAGE...
Derives number of dimensions (variables) of given function (class - inline , symbolic or char) then tries to find a set of coordinates that function has simple relations between variables or finds the coordinates that function has...
These files help to map a set of points to a set of edges and arcs. This maybe interesting for matching GPS coordinates to infrastructure plans.
The simple algorithme was taken from
Journal of the Eastern Asia Society...
groups_euclid calls gp_euc and euclid to separate a set of harmonics into families or groups of related harmonics, each with its own fundamental tone. The euclid() function accepts two real numbers with uncertainty intervals, and returns their...
The built-in function WAVRECORD requires the user to specify a duration of the data acquisition. This in impractical if we are waiting for short transient signals. In this case, we would like to monitor the input until such event occurs and then...
process_varargin is a simple script that allows the user to create a set of default values for attributes in a script then using varargin override those values.
rle: Run Length Encoding, use it to compress a vector of values. irle: Inverse Run Length Encoding, use it to reconstruct a vector of values. Readme: Help, how you can use this code.
Often I have to extract a subset of a two-dimensional array for further analysis. Usually I do this with logical indexing. But most often the problem with logical indexing is that I get a column vector which I then have to reshape or index into a...
Subplot tends to leave a lot of empty space around the axes. Tight_subplot allows to adjust the spacing between the axes as well as the margins around the axes. For example: ha = tight_subplot(3,2,[.01 .03],[.1 .01],[.01 .01]) for...
A common request is to interpolate a set of points at fixed distances along some curve in space (2 or more dimensions.) The user typically has a set of points along a curve, some of which are closely spaced, others not so close, and they wish to...
Improving a uitable, if the doc has many data, it is better to use a couple of table. For example, I wanted to create a table for 71 rows, so I couldn't sabe all the data in one table. With thi code I can add a column of data to visualize all...
Use coeffs = fit2dPolySVD(x, y, z, order) to fit a polynomial of x and y so that it provides a best fit to the data z. Uses SVD which is robust even if the data is degenerate. Will always produce a least-squares best fit to the data even if...
Since I have to do a lot of plots after doing PCA on my data I?ve written this small ?programs? using GUIDE .
=>Fastplot button uses plot command and can be used in combination with removepoint (code of this function is a small...
EMBEDEDPROGRESSBAR intends to be a merge of all the previous progressbar that can be found on the FEX. Its two main features are:
1) It uses classes and objects, which also each embededprogressbar to be accessed and modified through...
Files = uiListFiles
Displays a (modal) dialog box to select a list of files from different folders. The selected files can be ordered inside the listbox using 'Shift /' and 'Shift /' buttons. The output a cell array of full names of...
Given a vector of x- and y-coordinates of a data set, allows the user to select a subset of the data with the mouse and change the coordinates of that subset much as he/she moves icons around a desktop. There are three modes of selecting the data...
This FREE plugin enables any website/blog to store a list of newsletter subscriptions. You can store custom fields like gender, country or job department, and send emails to your subscribers straight from your website's admin interface. The...
This functions allows the user to apply a function of his choice to all video frames- frame by frame. Consider a case you have a function you're used to apply to single images like imfilter, imresize, imadjust, imcrop etc... (see Matlab Image... |