Function uses algorithm from Dan Sunday internet site
L1, L2 includes two points in matrix of 2*n
where n are dimensions (3 in 3D).
d - shortest distance between two lines
Pc,Qc - points where exists shortest distance d
[d Pc Qc]=distBW2lines(L1,L2)
Functions of lines L1,L2 and shortest...
This program analyzes the performance of the AC voltage regulator operating on the Sinusoidal pulse width modulation principle under different loading condidtions.
The inputs are:
- The input frequency.
- The modulation...
sel_and_del Interactively select and delete points from a line object using mouse input. Left-click selects the point closest to the click and Right-click unselects it. The selected points are highlighted with a black square. The selection process...
The function plots x and y data with errorbars for both.
x=array of xdata
y=array of ydata
xerror=array of errors for x
Baseline Fit each column in "x".
There did not seem to be a similar function in th file exchange. This routine is simply a wrapper for two Matlab routines, interp1 and ginput.
Once the finite element matrix equations are solved for field values at the nodes, in postprocessing these derived quantities are graphically displayed. To know the variation of the field variable along the model/mesh contour plots of the field...
This program plots the deformation field (displace vectors) contained in vector.txt.
This producted by ITK image registration programs. Check the ITK output format of the registration program you are using and modify the fscanf line...
The Oregonator model accurately describes the Belousov-Zhabotinsky (BZ) reaction. BZ reaction is an example of oscillating chemical reactions. The simulink file oregonator.mdl solves this classical problem. The values of the parameters used in the...
This m-file finds the periodic ACF of all the m-sequences of length 31.In this program m-sequences of length 31 are generated and its periodic Autocorrelation function is plotted.
This program analyzes the performance of a voltage source inverter with Sinusoidal-pulse-modulated output, under different loading conditions.
The inputs are:
- The frequency of the output voltage waveform.
- The modulation...
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...
This is a solution for the keplar problem for orbit insertion. Given a burn out velocity and a flight path angle, what is the apogee of the orbit, and the circular orbit that can be achived with one burn at apogee? The delta-velocity for...
In FORMANT_TRACKER.M the input speech waveform is broken up into number of overlapping frames. LPC analysis for each frame, frequencies for each frame are plotted are also given as output in a matrix.
GreatCharts is a program which will let you draw a wide range of stock-charts, for example Candlestick, OHLC and functions like MAC, Stochastic, RSI, etc.
Chart can be plotted in a very configurable way, to any picture size.
The main features are:
For each immitance types (Z, Y, C or M), the data can be plotted
in the complex plane, as well their real, imaginary parts or
their magnitude in function of the frequency (Log/Log).
This is a simple filter that converts noisy data of arbitrary amplitude to 1s and 0s.
The input is an array of the raw data, and a new array of 1s and 0s of equivalent array length is returned.
The function uses simple edge...
This routine was meant to be used as a tool to represent the a complex electric field in a plane (with phase and amplitude)
Plots the phase of a 2D complex array (FIELD) in a continuous color scale (hue) and...
Tired of adding "To Workspace" or Display blocks when debugging your models?
In this case, SIMLOG is for you. Select which signals to log, either individually or complete subsystems. After execution of the model, signals can quickly...
This method allows to use various windows for sidelobe reduction. In this code , this technique is illustrated for a very simple data (sum of three sinusoids). At the end, single sided Power spectral density (PSD) is plotted.
Using the Image Acquisition and Image Processing Toolboxes, IMAQMOTION offers a MATLAB based motion detection GUI.
Using a video input object, live data is acquired and analyzed to calculate any motion between two adjacent image...