image thumbnail

updated 14 days ago

Numeric to English Words by Stephen Cobeldick

Convert a numeric scalar to a string giving the English name of the number value (GB/US). (dialect, words, number names)

num2words(num,opts)

image thumbnail

updated 18 days ago

Prefixed-String Conversion (SI or Binary) by Stephen Cobeldick

Convert between numeric values and SI (or binary) prefixed strings. (data, communications, iso 80000)

binum(str,uni)

bipre(val,sgf,pfx,trz)

sinum(str,uni)

image thumbnail

updated 4 months ago

Generating Gaussian Filter 2D Matrix by Duc Chung Tran

The function is used to generate Gaussian Filter 2D Matrix. (gaussian, filter, matrix)

g=Gaussian_filter(Filter_size, sigma)

image thumbnail

updated 4 months ago

xyimagesc.m by Anthony Bathgate

Same as imagesc but works when X and Y are not evenly spaced. (image, imagesc, imagescnan)

xyimagesc( X, Y, C, varargin )

image thumbnail

updated 4 months ago

CircPlot by Kevin Hellemans

Create circular plot of labeled data (vector, circle, plot)

CircPlot

image thumbnail

updated 5 months ago

3D colored bar plot by Johannes

3D bar plot with arbitrary coloring (bar plot, 3d, color)

bar3c(Z,x,y,w,C)

image thumbnail

updated 5 months ago

Read Gml by Elias

Stores gml info in hierarchical structure. Derive Adjacency Matrix (graph, gml, struct)

get_adjacency_matrix(graph)

get_next_struct(content, i)

read_gml(filename)

image thumbnail

updated 5 months ago

cicularconvolution of sequences and plotting in GUI by ratan pal singh

circular convolution is a technique of convolution of sequences (circular convolution, plot, stem)

image thumbnail

updated 5 months ago

Linear fit with both uncertainties in x and in y by Julien Browaeys

Performs a linear fit with uncertainties in x and y, using a Monte Carlo method (fit, linear, plot)

linfitxy( xdatain, ydatain, xerrin, yerrin, varargin)

image thumbnail

updated 7 months ago

Phase Plots of Complex Functions by Elias Wegert

Routines for creating color representations of complex functions (phase plots) (complex functions, phase plot, domain coloring)

BrightenRGB(RGB,bright)

GUI_PhasePlot(hObject, ~)

PPDemo(cs)

image thumbnail

updated 8 months ago

Fixed Point Algorithm by James Adams

Calculates the fixed point of a function. (fixed point, algorithm, function)

FixedPoint_Algorithm_JA

image thumbnail

updated 8 months ago

Quadratic Solver by James Adams

Finds solutions to a Quadratic function using Quadratic formula (quadratic, function, roots)

QuadraticFunction_JA

image thumbnail

updated 8 months ago

Linear Equation by James Adams

Calculates a linear equation for two given points. (linear, inversion, matrix)

LinearEquation_JA

image thumbnail

updated 8 months ago

Knights Tour by Sumit

This Program generates the knights tour for a given mXn board for a given position of the knight (plot, plotting, graph)

chessknight.m

coordinates1.m

knights_all.m

image thumbnail

updated 9 months ago

Setting Maximum numer of Characters in edit box by 123456

Shows how to limit the number of characters in an edit field using simple GUI programming. (edit, box, edit box)

limit_text(varargin)

image thumbnail

updated 10 months ago

Connect Randomly Ordered 2D Points into a Minimal Nearest-Neighbor Closed Contour by Tristan Ursell

Connects randomly ordered 2D points into a minimal nearest neighbor contour. (contour, nearest, neighbor)

[Xout,Yout,varargout]=points2contour(Xin,Yin,P,direction,...

image thumbnail

updated 11 months ago

Export figure to 3D interactive PDF by Ioannis Filippidis

Export figure as U3D file or directly to 3D interactive graphics within PDF. (3d, u3d, graphics)

[strmodelshading, strfaces_colors, strfaceshading, strcol...

arclength(px,py,varargin)

axes_extremal_xyz(ax)

image thumbnail

updated 11 months ago

Bar Chart with Error Bars by Martina Callaghan

This is a very simple extension of MatLab's bar function to add error bars. (error, bar, errorbar)

barwitherr(errors,varargin)

image thumbnail

updated 1 year ago

struct2tree by Daniel

Renders a structure as a uitree in a graphics container (uitree, struct, graphics)

struct2node(S,name)

struct2tree(S,h)

image thumbnail

updated 1 year ago

Create a colored, tilted 2D error ellipse scatter plot. by Nathan Orloff

Create a colored, tilted 2D error ellipse scatter plot. (ellipse, error, errorplot)

errorellipse(ex,ey,xx,yy,varargin)

image thumbnail

updated 1 year ago

quiverwcolorbar by Melissa Day

Generates a quiver plot colored according to vector magnitude and/or user specified axis boundaries. (quiver, vector, velocity)

quiverwcolorbar.m

image thumbnail

updated 1 year ago

Arrow3 Version 5 by Tom Davis

Draws lines with directional arrowheads. (annotation, customization, arrow)

hn=arrow3(p1,p2,s,w,h,ip,alpha,beta)

image thumbnail

updated 1 year ago

legend1.m by Stavros Zanos

Control line and text entries in a legend object, individually. (plot, legend, loop)

legend1(s,c,fsz)

image thumbnail

updated 1 year ago

Graph incidence matrix to adjacency matrix by Ondrej

Conversion from graph incidence matrix to adjacency matrix. (incidence, adjacency, graph)

inc2adj(mInc)

image thumbnail

updated 1 year ago

Image Noise Reduction by Local Statistics by Tristan Ursell

Reduce image noise by measuring local pixel statistics and remapping intensities. (image processing, image, noise)

[varargout]=relnoise(Iin,sz,sigma,varargin)

image thumbnail

updated almost 2 years ago

Draw lines with arrows by Sabesan

Draw lines with arrows. Multiple optional parameters are given for controlling the arrow and line (draw lines, plot, figure)

draw_line2(p1, p2, varargin)

image thumbnail

updated almost 2 years ago

Scalable Vector Graphics (SVG) Export of Figures by Juerg Schwizer

Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). (specialized, plotting, svg)

demo_svg_water

plot2svg.m

simulink2svg

image thumbnail

updated almost 2 years ago

Connected Component Analysis on an Undirected Graph by Tristan Ursell

Connected component analysis on undirected graphs, with thresholding and connectivity constraints. (graph, theory, undirected)

[groups,orphans]=graph_analysis(W,varargin)

image thumbnail

updated 2 years ago

Generate Random Numbers from a 2D Discrete Distribution by Tristan Ursell

Random numbers from any 2D discrete probability distribution, at any resolution. (discrete, distribution, generate)

[x0,y0]=pinky(Xin,Yin,dist_in,varargin)

image thumbnail

updated 2 years ago

mat2fig - Conversion from a matrix to a figure by Ondrej

Function for converting a matrix into a figure (eps,fig,jpg,etc.) and latex code. (matrix, figure, latex)

mat2fig(A,varargin)

image thumbnail

updated 2 years ago

Matrix Convolution with Sub-Pixel Resolution by Tristan Ursell

Convolve two matrices at sub-pixel resolution, using bilinear interpolation. (matrix, convolve, convolution)

matout=matoverlay(mat1,mat2,x,y)

image thumbnail

updated 2 years ago

CNCCoder by Sagheb Kohpayeh Araghi

This is a basic CNC coder which allow user to write CNC codes. (cnc, gui, cnc code)

newCNC

image thumbnail

updated 2 years ago

Update error bar widths automatically on figure resize by Chris Rodgers

Add callback to the current axis to maintain a sensible error bar width on zooming. (callback, figure, errorbar)

errorbar_tick(h,w,xtype)

updateErrorBars(h)

testUpdateErrorBars.m

image thumbnail

updated almost 3 years ago

insertNaN by Chris Miller

Used to insert NaN values into a vector or matrix given a threshold condition. (nan, mapping, plotting)

finaldata=insertNaN(data,diffthreshold)

image thumbnail

updated 3 years ago

Laplacian in 1D, 2D, or 3D by Andrew Knyazev

Sparse (1-3)D Laplacian on a rectangular grid with exact eigenpairs. (matrix, mathematics, laplacian)

laplacian(varargin)

image thumbnail

updated 3 years ago

datefig: figure handle class with automatically readjusting date ticks by Mark Mikofski

Handle class object that automatically resets date ticks after resize, zoom or pan. (figure, datetick, class)

datefig

image thumbnail

updated 3 years ago

Plot an Array of Structures by Jonathan Sullivan

This utility will plot an array of structures. (plot, shaperead, array)

plotAS(varargin)

image thumbnail

updated 3 years ago

Graph adjacency matrix to incidence matrix by Ondrej

Conversion from graph adjacency matrix to incidence matrix. (adjacency, incidence, graph)

adj2inc(mAdj,varargin)

image thumbnail

updated 3 years ago

Draw grpah of a function on matrix by David Silver

FCN2MAT Convert user-defined single-valued function to matrix (function plotting, plot, draw)

fcn2mat(fcnstr,minX,maxX,perX,lineWidth,perY,minY,maxY)

image thumbnail

updated 3 years ago

quiver3Dpatch by Kevin Moerman

Plotting of colored 3D arrows based on patch command (quiver, color, 3d)

quiver3Dpatch.m

image thumbnail

updated 3 years ago

Shortest Distance Between Two Lines in N dimensions by Alexander Brodsky

Function calculates shortest distance between two lines presented by two points for each line. (2d, 3d, intersection)

[dist Pc Qc]=distBW2lines(L1,L2)

image thumbnail

updated 3 years ago

displaytable by Matt Caywood

Legible display of N-dimensional data tables with color highlighting of entries. (matrix, array, table)

displaytable(data,headings,labels,cellsize,decimalsize,pe...

image thumbnail

updated 3 years ago

MATLAB Goto Statement by Husam Aldahiyat

The one and only. (goto, jump, jmp)

Example14

Example15

Example3

image thumbnail

updated 3 years ago

smartSlice and iGSlice by James Ramm

slice into irregular grids with smartSlice and iGSlice. NaN values are allowed. (slice, 3d, irregular grid)

h=smartSlice(varargin)

hout=quickSlice(varargin)

iGslice(varargin)

image thumbnail

updated 3 years ago

Sampling Of 2D Geometrical Object via Line Beams by Michael Chan

Illustrates coordinated sampling of a geometrical shape such as an eclipse is used in this case. (image processing, project, beam)

calculateEllipse(x, y, a, b, angle, steps)

deg2rad( inDegrees )

getPointsBetween2Points (startp,endp,pts)

image thumbnail

updated 3 years ago

GPUCONV2 by Dirk-Jan Kroon

Example, Matlab R2010B Cuda CONV2 on GPU using Cuda kernels (cuda, conv2, gpu)

gpuconv2(A,B,SHAPE)

nvcc(varargin)

image thumbnail

updated 3 years ago

Forming ray lines for plots by Michael Chan

The objective is to construct different line beams. (beam, plot, ray)

deg2rad( inDegrees )

rayLinesScheme_fan (numberOfLines, ...

rayLinesScheme_parallel (numberOfLines, ...

image thumbnail

updated almost 4 years ago

vecslice by Samuel Lazerson

Plots a pseudo 3D vector field using pcolor for the out of plane component (data exploration, plotting, vector)

pixplot(varargin)

vecslice(varargin)

image thumbnail

updated 4 years ago

Separate Kernel in 1D kernels by Dirk-Jan Kroon

Decompose an arbitrary N dimensional filtering kernel into 1D kernels, for faster filtering (image, 2d, 3d)

[K1 KN ERR]=SeparateKernel(H)

image thumbnail

updated 4 years ago

dep by Thomas Guillod

Make a dependency report for a matlab file and plot the call graph. Make only static code analysis. (directories, function, call)

dep(indir,main,reclim,others,fileout)

dep1()

dep2()

Contact us