Quadratic Function Examples
Statement: strLetterCounter('string')....where, 'string' is an input string containing alphabet or numbers.Ex: string='aaaaaaaabbbbbbccd'Statement: strLetterCounter(string)Output: '8a,6b,2c,1d'Note: This function is different from the Matlab function called 'unique' because it keeps the order in...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (38): String Letter Counter Function Download |
IMAGGS(NUM,DEN) Computation of Im[G(s)]=0 of a LTI system with transfer function defined by its NUM, DEN coefficients.Examples used are form "Computation of Stabilizing PI and PID Controllers" by Nusret Tan, Ibrahim Kaya and Dereck P. Atherton.Method is from "Fast calculation of stabilizing PID...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (49): Computation of Im[G(s)]=0 Download |
This submission provides functions (and examples scripts) for estimation, simulation and forecasting of a general Markov Regime Switching Regression. Features of the package:- Support for univariate and multivariate models.- Support of any number of states and any number of explanatory...
Platforms: Matlab
License: Freeware | Size: 409.6 KB | Download (56): MS_Regress - A Package for Markov Regime Switching Models in Matlab Download |
It is a hill climbing optimization algorithm for finding the minimum of a fitness function in the real space. The space should be constrained and defined properly. It attempts steps on every dimension and proceeds searching to the dimension and the direction that gives the lowest value of the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (51): Hill climbing optimization Download |
SpinCalc is a consolidated matlab function that will convert any rotation data between the 4 types included. Will also convert between 2 different Euler angle set types.Multiple orientations can be input. For N orientations:DCM ===> 3x3xN multidimensional arrayEA### ===> Nx3 matrixEuler Vectors...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Function to Convert between DCM, Euler angles, Quaternions, and Euler vectors Download |
This presentation introduces comparing between the hand coding and auto code generation with Simulink HDL.It uses simple communications models to mention merit/demerit.Additionally,The frame synchronization explained by the book was designed with Stateflow.The figure which is in the book and...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Compare with hand coding and auto code generation of HDL Download |
Sometimes it is important to be able to estimate the peak of a sampled continuous function between the samples. This is called subsample peak interpolation and is used in radar, delay estimation, and communication. Typically one fits a model to the sampled data and then finds the maximum of the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Peak Interpolation Download |
PGPI(NUM,DEN,W,FI,A) plots the stability boundary locus L(KP,KI,W)in the (KP,KI)-plane for an LTI system with transfer function defined by its NUM, DEN coefficients and driven by a PI controller with transfer function, C(s)=kp+(ki/s). Frequency (W) gridding becomes important. Phase Margin, FI,...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): PI Control with Gain and Phase Margin Specifications Download |
In order to optimize any MATLAB function, there are two options: 1) rewrite the function to take only 1 array of inputs, reading all others from a file, perhaps, or from a global variable (undesirable), or 2) write an interface layer that handles this.This function provides an interface layer...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Generalized Objective Function Download |
This modification of fminsearch solves an issue with this simplex implementation when the function to minimize is smooth at a high scale, but rough at a low scale, i.e. when plotted with the parameters axis being (?10,10), there is a clear global extremum, but when zoomed (-0.1,0.1), the function...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): fminsearch modifed for higher scale smooth function Download |
SETTPI(NUM,DEN,W,P) plots the stability boundary locus L(KP,KI,W)in the (KP,KI)-plane for an LTI system with transfer function defined by its NUM, DEN coefficients and driven by a PI controller with transfer function, C(s)=kp+(ki/s). Frequency (W) gridding becomes important. For a specific...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (50): PI Control, Settling Time Download |
Software described in and associated with the paper"Numerical algorithms and issues concerning the discrete-time optimal projection equations for systems with white parameters", Proceedings UKACC International Conference on Control '98, 1-4 Sept. 1998, University of Swansea, UK, Vol. 2,...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (43): Reduced-order inf. horizon time-inv. discr.-time LQG control for systems with white parameters Download |
For a system having multiple inputs x and outputs y, the partial coherence is the coherence computed between any individual input and the output when the effect of all other inputs is removed from the output by a linear least squares prediction. This coherence obeys the usual inequality, and will...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Multiple Coherence Function Download |
This function generates a Timeseries file which can be used for Moore FSM coverage analysis.The file is generated in the working directory and can be opened into the Workspace for use by MATLAB, or read directly into Simulink using the 'Import Data From File' source block.The generated Timeseries...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (54): Function to generate Timeseries file to use for Moore FSM coverage analysis. Download |
We propose a new global optimization algorithm based on a harmony search scheme, termed as harmony element string algorithm (abbreviated as HEA). The algorithm has five fundamental features: (1) The states of the system is represented by strings of elements {0,1,2,3,4} and hence the search of the...
Platforms: Matlab
License: Freeware | Size: 276.48 KB | Download (42): Harmony Element Algorithm Download |
CMIF - Complex Mode Indicator FunctionInputs:H - full complex H matrix (Frequency Response Function) including at least 2 reference points measurements:[number of frequency points x number of DOF x number of reference points]W - frequency vector [Hz]Reference:D.J. Ewins, "Modal Testing: Theory,...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): CMIF - Complex Mode Indicator Function Download |
Basic example for beginners, that shows how to solve the differential equation through S-Function****************DIFFERENTIAL EQ. SOLUTION THROUGH S-FUNCTION*********************************"Instructions for Simulink"*************************1.Goto simulink library browser and expand...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): DIFFERENTIAL EQ. SOLUTION THROUGH S-FUNCTION Download |
Function check.m may accelerate debugging of a program. The function displays columnwise elements of a real, complex or string matrix, say A, obeying a condition Cond. The output of every element A(p,q) fitting Cond consists of items in a required format.Forms of calls:~~~~~~~~~~~~~~~ check(A)...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (42): Checking Matrix Elements Download |
A Dynamic environment is one in which either the obstacles or the goal or both are in motion. In most of the current research, robots attempting to navigate in dynamic environments use reactive systems. Although reactive systems have the advantage of fast execution and low overheads, the tradeoff...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Temporal Potential Function based Path Planner for Dynamic Environments Download |
When doing traditional bode diagram control system analysis of ill-conditioned high order SISO systems in V4.2 with Control System Toolbox, I found using these utilities improved the robustness of my results. There's also a nice function to plot an approximate (asymptotic) bode diagram which I...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (42): Transfer Function Utilities for Download |