Software Listing of Author : "M Ma"
- cbarf
- License: Shareware
- Price:


Similar to the well known colorbarf but more realistic. There are two things missing in colorbar and colorbarf: 1. the colorbar ticks are scaled according to the size of each interval. 2. when color is saturated at the upper limit, or when is white, below the lower limit, a triangle is added. The triangle means "more/less than". Such information is not provided by the existing tools, colorbar and colorbarf. See the examples. Besides, there is a bug (?) with contourf: in some cases, even with the levels specified, one additional level is added and corrensponds to the sourrounding line! In such case, colorbarf adds one box for this fake level! Syntax: H=CBARF(DATA,LEVELS,MODE,SCALE) Updated 13-7-2007 by adding the option SCALE for linear/non linear scale
- Platform: Matlab, Scripts
- contourz
- License: Shareware
- Price:


Similar to contour3 but contours are drawn over any surface. This may be useful if you wanna add contours to a surface created by surf(x,y,z,v). Notice that if v = z, is the same as use contour3. The screenshot was created as: [x,y,v] = peaks; z=-(x.^2+y.^2); surf(x,y,z,'facecolor','none','edgealpha',.1) hold on contourz(x,y,z,v); % add clabels: view(2) contourz('clabel'); view(3)
- Platform: Matlab, Scripts
- fillout
- License: Shareware
- Price:


While Matlab FILL, fills inside a polygon, FILLOUT fills outside a boundary. The boundary can be a continuous line, defined by the vectors X,Y or a region defined by the 2-D arrays X,Y. Syntax: H = FILLOUT(X,Y,LIM,VARARGIN) Inputs: X, Y Boundary vectors (continuous) or 2-D arrays. LIM Outer limite box, like AXIS, ie, [minX maxX minY maxY], by default the limits of the data is used VARARGIN Any options of the FILL command. By default the fill color FaceColor) is green and the EdgeColor is none The screenshot shows the example on the help
- Platform: Matlab, Scripts
- gclabel
- License: Shareware
- Price:


GCLABEL allows the automatic placement of contour labels in the intersection points between a guide and the contour lines. The guide is created by the user and can be a curve (spline) or a broken line. Any number of guides can be added and they also can be saved (as a text file) for future use in other figures Usage: [C,H] = CONTOUR(...) GCLABEL(H) 1- Click with the left mouse buttom at least twice on the axes to create the guide and auxiliary points (aux). To stop click with other buttom. 2- Use the left mouse buttom to drag guide or aux as desired 3- Click on the guide with right buttom and select <done> on the uicontextmenu. This will delete the guide and aux Many options are available, see the help of the file and see the screenshots for some features It works in Matlab releases from 5.3 (at least) to the current one (R14)
- Platform: Matlab, Scripts
- lsf
- License: Freeware
- Price: 0.00


Returns amplitudes (C) and phases (pha) of the harmonic components of series, i*cos(2*pi*t/Ti-phai). For imaginary series, the amplitudes and phases of the real and imaginary part is converted in ellipse parameters semi-major and minor axis, inclination and phase angle). In the screenshot is shown two outputs, for real and imaginary series (see the examples on the file). The output of this function has the same form of T_TIDE output so it can be used by other T_TIDE utilities.
- Platform: Matlab, Scripts
- m_clabel
- License: Shareware
- Price:


This function does the same as clabel(ch,'manual'). It was created because sometimes clabel puts not the real values but rounded !? See the screenshot for the difference between m_clabel and clabel: [cs,ch] = contour(peaks,5); m_clabel(ch); clabel(cs,'manual');
- Platform: Matlab, Scripts
- plot_ellipse
- License: Shareware
- Price:


It is common to find routines to plot ellipses without the ellipse phase angle parameter. Phase angle provides important information in many applications... This function also allows ellipse to be drawn at different z levels. Three ways to show ellipse phase is shown in the screenshot: plot_ellipse(2,1,45,20); axis equal hold on plot_ellipse(2,1,45,20,[0 -2],'r',2); plot_ellipse(2,1,45,20,[0 -4],'k',3);
- Platform: Matlab, Scripts
- polyorient
- License: Shareware
- Price:


Returns the orientation and signed area of a 2D polygon Syntax: [ORIENT,SAREA] = POLYORIENT(X,Y) Inputs: X, Y Vectors with the polygon vertices Outputs: ORIENT Polygon orientation. 1 if the orientation is counter-clockwise (direct), 0 otherwise SAREA Signed area of the polygon, negative if orientation is not direct Examples: x1 = [0 0 1 1]; y1 = [1 2 2 1]; x2 = [0 0 1 1]; y2 = [1 0 0 1]; x3 = [x1 x2]; y3 = [y1 y2]; [o1,a1] = polyorient(x1,y1) % 0, -1 [o2,a2] = polyorient(x2,y2) % 1, 1 [o3,a3] = polyorient(x3,y3) % 0, 0
- Platform: Matlab, Scripts
- vfield3
- License: Shareware
- Price:


Plots 3-D arrows as cones. Is similar to CONEPLOT but the inputs can have any dimension. Syntax: HANDLE = VFIELF3(X,Y,Z,U,V,W,VARARGIN) Inputs: X, Y, X Positions, N-D arrays U, V, W Field, N-D arrays VARARGIN: CData, by default the speed is used as CData 'color', <color>, patches color (then CData is not used) 'tr', <val>, tip length with respect to intensity or absolute length if is a string [ <value> <value as string> {0.3} ] 'ar', <val>, arrow radius with respect to tip width/2 [0.3 ] 'fi' <deg>, tip angle [ 20 ] 'n', <num>, ponts used in the circunferences [ 25 ] The screenshot shows: r = linspace(0.5,1,2); tt = linspace(0,2*pi,20); [r,tt] = meshgrid(r,tt); [x,z] = pol2cart(tt,r); y = zeros(size(x)); u = zeros(size(x)); v = 2-r.^2; v=v./1.5; w = zeros(size(x)); vfield3(x,y,z,u,v,w);...
- Platform: Matlab, Scripts
- vwhist
- License: Shareware
- Price:


Draws a variable width histogram. Does not calculate data, it is just a drawing utility. Draws histogram with defined x, so data length(data)=length(x)-1, or, if lengths are equal, bars are centred at x. Syntax: HANDLES = VWHIST(X,Y,DX,DY,DIREC,FaceColor,EdgeColor)
- Platform: Matlab, Scripts
- Wind_rose
- License: Shareware
- Price:


Syntax: [HANDLES,DATA] = WIND_ROSE(D,I,VARARGIN) Inputs: D Directions I Intensities VARARGIN: -dtype, type of input directions D, standard or meteo, if meteo, the conversion dnew=mod(-90-D,360) is done; if not meteo, standard is used (default) -n, number of D subdivisons -di, intensities subdivisons, default is automatic -ci, percentage circles to draw, default is automatic -labtitle, main title -lablegend, legend title -cmap, colormap [jet] -colors, to use instead of colormap, for each di -quad, Quadrant to show percentages [1] -ri, empty internal radius, relative to size of higher percentage [1/30] -legtype, legend type: 1, continuous, 2, separated boxes [2] -bcolor, full rectangle border color ['none'] -lcolor, line colors for axes and circles ['k'] -percbg, percentage labels bg ['w'] -ax, to place wind rose...
- Platform: Matlab, Scripts
