Measuring Angles With A Protractor
This package includes a configurable Simulink model for three different types of DC-DC converters (Buck, Boost and Buck-Boost converters) with a PWM PI controller. The example provided shows a case to boost voltage from 5 volts to 25 volts. It can be used to learn DC-DC converters and their...
Platforms: Matlab
License: Freeware | Size: 727.04 KB | Download (49): Configurable Simulink Model for DC-DC Converters with PWM PI Control Download |
n the bottom of a Stefan tube there is a quiescent liquid with a mixture of acetone (component 1) and methanol (component 2). Vapor that evaporates from this pool of liquid diffuses to the top of the tube. Air (component 3) keeps the mole fractions of components 1 and 2 equal to zero. This...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (42): Solution of a Maxwell Stefan Diffusion Problem Download |
It is a Training for students with a ramp periodic input signal to sinusoidal relaxation oscillator VI1 with a new block library simulink.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): Training Ramp Periodic signal to Sinusoidal Relaxation oscillator VI1 with Simulink Download |
We would like to rise water temperature with a heater. Oulet temperature must be equal to the set point temperature (80dlT-C). Proportional (P), Proportional-Integral (PI) and Proportional-Integral-Derivative (PID) control are used and the respective results are compared. Inlet water temperature...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): Temperature Control of a Water Tank Download |
Normally boxplot plots the whiskers with a maximum length based on the distance between the 25th and 75th percentile. This script uses boxplot but plots the whiskers for a specified percentile and only plots the outliers beyond the new whiskers.Note that the percentile is defined as the data...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Box Plot with Whiskers Plotted at Fixed Percentiles Download |
Control a 53132A counter remotely using standard Matlab without the instrument module by treating the GPIB USB interface as a com port. There are lots of little tricks to get this to work. This module also uses a small program SystemError, which is also uploaded to this site, to help debug this...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): Run a 53132A counter with a USB GPIB interface Download |
his package is composed in fact of 2 things :- First thing is MATLAB M file, with a dll and a header file. This script shows how to call some functions from the dll included- The zip file included is the complete Visual studio project, in Visual Studio .NET format, in order to build the Dll...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): Calling functions from a user defined shared library Download |
A function to convert a number to a more readable format by adding thousands separators.This very simple function lets you choose the thousands separator character and the number of decimal spaces to return. Any character (including white space) is accepted as a separator. For...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Format number with a thousands separator of your choice Download |
On a plot with a lot of traces the standard legend will often scroll off the bottom or the side of the figure, this function is intended to overcome this by allowing the user to define a multi column format for the legend.Usage :legHdl =...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): gridLegend - a multi column format for legends Download |
If you dip a straw in a cup of water and hold your finger over the top, you can then pull the straw out and remove the amount** contained in the straw.Obviously it would take an infinite number of dips to empty the cup completely, but did you ever wonder how many times would you have to repeat...
Platforms: Matlab
License: Freeware | Size: 102.4 KB | Download (39): Empty a Cup with a Straw Download |
VIDEOFIG(NUM_FRAMES, @REDRAW_FUNC) creates a figure with a horizontal scrollbar and shortcuts to scroll automatically. The scroll range is 1 to NUM_FRAMES. The function REDRAW_FUNC(F) is called to redraw at scroll position F (for example, REDRAW_FUNC can show the frame F of a video).This can be...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (50): Figure to play and analyze videos with custom plots on top Download |
function [yline xline] = drawslope(I, alpha, refpoint)%% function to draw a line at a desired angle ,% which goes through a reference point % function inputs:% : Image for which the drawing is desired.% Range:3Dim, grayscale, or logical% : Angle in degrees, where 0 is complete% horizontal% Range:...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): Draw an angled line, with a slope relative to a reference point Download |
% ------------------------------------------------------% 4-1% test for Gerschgorin's disk Thm with A a C(m*m) matrix% ex : >>testGerschgorin(A) ;% % plot eigenvalues in redx located in these circles% note : you could use this without input A as a demo%...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Gerschgorin's disk Thm (a test) Download |
USAGE: noise=fftnoise(f[,Nseries]) INPUTS: f: the fft of a time series (must be a column vector) Nseries: number of noise series to generate. (default=1) OUTPUT: noise: surrogate series with same power spectrum as f. (each column is a surrogate). ------ Example: ------ %calculate if the trend is...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (41): fftnoise - generate noise with a specified power spectrum Download |
This submission demonstrates how to write a level-2 M-file S-function with a variable sample time.The block samples and holds an input signal were the inter-sample period is specified by another input signal (and may vary from time period to time period).Each step size must be positive or an...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Zero Order Hold with variable time step Download |
In this archive there are just some simple functions about matrices, expecially to be used with the program perteig.m called "Trajectories of eigenvalues" you can find among the file by the same author in the file exchange.-impdataimpdata.mscripts that imports the matrices A and B written in the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Matrices program with a script for eigenvalues perturbations Download |
Permutation test of the null hypothesis that a set of data was sampled from a symmetric distribution with a particular mean. The test is based on a t-statistic and can be applied to situations in which a one sample or paired sample/repeated measures t-test is appropriate. Note, that this test is...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): one sample/paired samples permutation t-test with correction for multiple comparisons Download |
This example shows how to find the displacement and supply it as a shift in a custom equation.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 61.44 KB | Download (43): Fitting Data with A Sudden Discontinuity Download |
This function draws text on a figure with a 1-pixel-thick border, which may be useful when simple text would be hard to read due to low contrast.TEXTBORDER(X, Y, STRING)Creates text on the current figure with a one-pixel border around it. The default colors are white text on a black border, which...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): textborder - Higher contrast text using a 1-pixel-thick border Download |
This is the same function as posted before but now with a GUI.With this program, you can calculate view factors between polygons, which can be used later in radiation problems.I think that this is the first free program on the web that calculates view factors (I searched one in the past but never...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (41): View Factors with GUI Download |