This function takes clustering data and plots it, if the data is 2d or 3d. The inputs are: An m-by-d matrix of data points, where d is the number of dimension and m the number of data points An m-by-1 vector of indices that associate each data point with a cluster. Optional inputs: A c-by-d matrix with c cluster centers. If not given, the function calculates them. A c-by-3 matrix of colors, as generated by the hsv...
Calculates the length of daylight for any day of the year and latitude.
This uses Herbert Glarner's formulae which do not take into account refraction, twilight, size of the sun, etc http://herbert.gandraxa.com/herbert/lod.asp.
This file calculates BER for or a number of SNR values in Rayleigh Channel.
Every BER value has been calculated for 100 errors for precision results.
I hope script will help students.
It calculates the Inverse Kinematic of an Anthropomorphic arm with 3 DOF. 'q' is the solutions in radiant and K is the direct Kinematic matrix.
K = [ n s a p; 0 0 0 1] where n, s, a are three vectors fo 3 elements...
GAMMACORRECTION calculates the Gamma Correction for a particular image Function GAMMACORRECTION accepts an input image and some gamma value, then applies gamma correction by this value to the image returning corrected image.
This program calculates the non-destructive zoom Fast Fourier transform of a time history.
The input file must be time(sec) and amplitude(units)
Reference: Randall, Frequency Analysis, Bruel & Kjaer, page 170.
This program calcultes the overall GRMS for a PSD function. It also calculates the overall velocity and displacement values.
This code calculates the dielectric constant of seawater using the equations shown in the paper of Stogryn (1973), but correcting a typographical error in the original paper.
type "untitled" to run.
The 7 bit data can be inputted or generated randomly.The crc polynomial used is fixed and cant be changed. The function that calculates and verifies the crc is " mycrc ". The file...
This script calculates BER for a numebr of SNR values in gaussian environment for QAM 16 Modulation.
It calculates 100 errors for each BER measuremnet for better results.
I hope this will be helpful for students of signal...
This function calculates the air-density based on the papers:
1)'Equation for the Determination of the Density of Moist Air' P.Giacomo, Metrologia 18, 33-40 (1982)
2)'Equation for the Determination of the Density of...
The electromagnetic torque motors are widely used in electrohydraulic servovalves. They serve to convert the control current into a proportional torque. For more details about this issue, please refer to my book: M Galal Rabie, Fluid Power...
Calculates the average log-spectral distance between CLEAN and NOISY signals. It has the capability of calculating this distance for a specified sub-band as well. This measure is used for evaluation of processed speech quality in comparison to the...
Simulation of a single hand of blackjack Calculates the profit and loss when playing a single hand of blackjack
This program calculates the shock response spectrum for a base input, where the base input is in the form of an acceleration time history.
I wrote this code because I wanted to incorporate a new distribution in the model, not availiable in Matlab or OxMetrics. In this sample the input is a return series, it uses a Garch(1,1) model with a constant in mean in the returns, and...
I made this simulation as a project in a course I took in RADAR basic concepts.
Short explanation: This is an early warning radar simulation.
The simulation simulates the targets behavior and calculates the expected radar...
Calculates fresnel sin and cos integrals
Run: >>digrub
This program allows the user to generate a Rubik's Cube in a number of ways: 1. Randomly scrambled 2. With predefined scramble 3. By reading state from webcam images 4. By manually...
The variation in Inter-Spike Interval (ISI) between repetitions of a stimulus such as a tone burst for auditory neurons is one of the standard criteria used to classify their responses. The standard method uses bins and produces a noisy and biased... |