image thumbnail

updated 1 month ago

Find values in a vector or function by Adrian Lara-Quintanilla

For a function y=f(x), this script looks for all the "x" values for a desired value of "y" (y0). (mathematics, data exploration, time series)

varargout=findvalues(vector,yvalue)

image thumbnail

updated 3 months 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 4 months ago

Arrow3 Version 5 by Tom Davis

Draws lines with directional arrowheads. (arrow, arrow3, arrowhead)

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

image thumbnail

updated 5 months ago

printf by Petter

Multiple file pointers. List printing features. Merged fprintf and sprintf. (print printf list spr..., vector, matrix)

printf(varargin)

image thumbnail

updated 7 months ago

NEXTPERMPOS by Jos (10584)

the next combination of values in specific positions (extension of PERMPOS) (permutation, combination, large)

nextpermpos(C)

image thumbnail

updated 7 months ago

Draw line with Arrows in 3D by Sabesan

draw_line3 draw line with directional arrow/arrows for the given 3D vector coordinates. (arrow, line in 3d, vector)

draw_line3(p1, p2, varargin)

image thumbnail

updated 8 months ago

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

Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). (plot2svg, svg filters, 3d)

demo_svg_water

plot2svg.m

simulink2svg

image thumbnail

updated 8 months ago

Binary search for closest value in an array by Benjamin Bernard

Returns closest value and corresponding index in an increasingly ordered array. (binary search, search, closest)

closest_value(arr, val)

image thumbnail

updated 9 months ago

Round Toward Vector of Values by Tom R

Round values towards a given vector of choices. (ceil, data, floor)

newnums=roundtowardvec(X,roundvec,type)

image thumbnail

updated 9 months ago

Export figure to 3D interactive PDF by Ioannis Filippidis

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

[strmodelshading, strfaces_colors, strfaceshading, strcolor...

arclength(px,py,varargin)

axes_extremal_xyz(ax)

image thumbnail

updated 9 months ago

Efficient Vector Rotation Matrix Routine by Darin Koblick

Efficient Method to Determine a Matrix Needed to Rotate One Vector to Another (vector, rotation, euler)

vecRotMat(f,t)

vecRotMatDemo()

image thumbnail

updated 12 months ago

Guide Basico by Jorge

Ingresa vector y comparacion (guide, media, desviacion)

control2(varargin)

image thumbnail

updated 1 year ago

vector_plane_intersect by Val Schmidt

A function to fine the point where a line intersects a plane. (mathematics, line, plane)

vector_plane_intersect(Vo,V,C)

image thumbnail

updated 1 year ago

Normalize N-D Vectors in Single Matrix or N Component Matrices by Ioannis Filippidis

Normalizes N-D vectors provided either in one matrix, or as multiple component matrices. (normalize, matrices, vector)

normvec(varargin)

vnorm(A,varargin)

usage_example_normvec.m

image thumbnail

updated 1 year ago

Repeated Values by Mike Sheppard

Finds all repeated values for input X, and their attributes. (repeat values, vector, mathematics)

[RV,NR,POS,IR]=repval(varargin)

image thumbnail

updated 1 year ago

vecfun by Adam Gripton

Applies a function to each entry of an N-dimensional array comprised of vectors. (data processing, vector, array)

M=vecfun(f,A,dim)

image thumbnail

updated 1 year ago

Adjust "quiver" arrowhead size by Kevin J. Delaney

Lets user easily tweak vectors plotted by "quiver", making arrowheads bigger or smaller. (arrowhead, quiver, vector)

adjust_quiver_arrowhead_size(quivergroup_handle, scaling_fa...

image thumbnail

updated 1 year ago

Interleave by Assaf Mushinsky

Interleave any number of vectors to one column vector (interleave, vector)

interleave(varargin)

image thumbnail

updated 1 year ago

arrayadapt by Armin Schmidt

A C++ wrapper class for MATLAB's mxArray type (mex, c, matrix)

image thumbnail

updated almost 2 years ago

2D Progressive Vector Diagram by Isaac Mancero Mosquera

Sequential Vector plot. Vector components x, y are required. User can define the initial position. (vector, sequence, progressive vector di...)

ipvd(vx,vy,xo,yo)

image thumbnail

updated almost 2 years ago

quiverc.m--updated with new features by Liang kuang

In this updated code,new features including colorbar, samesize vectors plottting are included (vector, quiverc, same size vector)

quiverc(varargin)

image thumbnail

updated 2 years ago

Inversion every 2D slice for arbitrary Multi-dimension array. by Xiaodong

Inverse every 2D slice for an arbitrary N-D array (M). (inversion, inverse, array)

multinv(M)

image thumbnail

updated 2 years ago

Closest value(s) from a list by Javier Lopez-Calderon

Returns the closest value from a list for each target value (find, min, vector)

closest(data, target)

image thumbnail

updated 2 years ago

quiver3Dpatch by Kevin Moerman

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

[F,V,C]=quiver3Dpatch(x,y,z,ux,uy,uz,c,a)

image thumbnail

updated 2 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, plot, intersection)

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

image thumbnail

updated 2 years ago

Vector to colon notation by Javier Lopez-Calderon

Converts a vector into a string with its MATLAB colon notation (single resolution). (single resolution, eval, string)

vect2colon(vec, varargin)

image thumbnail

updated 2 years ago

Shuffle by Jan Simon

Random permutation of array elements, C-Mex: much faster than RANDPERM (statistics, vector, mix)

Shuffle(Arg1, Arg2, Arg3)

uTest_Shuffle(doSpeed, doBias)

image thumbnail

updated 2 years ago

Plot 3d vectors by Pirmin Borer

Plot real 3d arrows from .stl file. Similar to quiver (vector plot, 3d vector, quiver3)

h=vector3d(X,Y,Z,U,V,W,varargin)

stlread(file)

image thumbnail

updated 2 years ago

FINDARRAY by Mukhtar Ullah

Find one array within another. (find, vector, array)

findarray(a,b,flag)

image thumbnail

updated 2 years ago

sinspace by Sky Sartorius

Generates a sine-spaced vector with elements clustered at one of the two endpoints (clustered, clustering, sine)

sinspace(d1, d2, n, factor)

image thumbnail

updated 2 years ago

cosspace by Sky Sartorius

Generates cosine- or acos-spaced vector with elements clustered or sparse at the endpoints (cosine, spacing, spaced)

cosspace(d1, d2, n, factor)

image thumbnail

updated 2 years ago

Cell2Vec by Jan Simon

Concatenate cell elements to a vector - fast C-Mex (cell, concatenate, cat)

Cell2Vec(C) %#ok<INUSD,STOUT>

uTest_Cell2Vec(doSpeed)

image thumbnail

updated 2 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 2 years ago

Take a vector and convert it to a unit vector (normalize) by James West

normalize a vector to a unit vector (unit vector, normalize, vector)

createUnitVector(vector)

image thumbnail

updated 2 years ago

Plot Unit Vectors by James West

Simple method to plot unit vectors in 3d (3d, vector, plot3)

fcn_plotUnitVectors(origin, csX, csY, csZ, vectorScale,colo...

image thumbnail

updated 2 years ago

Transform Points by James West

transform 3d points from one reference frame to another (transformation, 3d, vector)

fcn_transformPoints(tr1, tr2, points)

image thumbnail

updated 2 years ago

LINSPACE3: linearly spaced vector defined by three points by Sky Sartorius

Generate a vector as linearly spaced as possible while still including three defined points. (distributed, linspace, logspace)

linspace3(d1, tar, d2, n)

image thumbnail

updated almost 3 years ago

Multiple matrix multiplications, with array expansion enabled by Paolo de Leva

Multiplying matrices, vectors, or scalars contained in two N-D arrays, with array expansion enabled. (arraylab, singleton expansion, vector)

arraylab13(a,b,d1,d2)

arraylab131(a,b,d1,d2)

arraylab132(a,b,d1,d2)

image thumbnail

updated almost 3 years ago

Matrix exponential by Stefan Güttel

A rational Chebyshev method to compute the exponential of a symmetric matrix. (exponential, matrix exponential, function)

rcexpmv(A,v,tol,solver)

rcexpmv2(K,M,v,tol,solver)

test_rcexpmv.m

image thumbnail

updated almost 3 years ago

SUB2IND4UP Linear index from subscripts of upper triangular matrix (only elements above diagonal) by Francesco Pozzi

Single index for given subscripts of a 2D upper matrix, (no elements over the diagonal) (subscripts, linear indexes, vector)

sub2ind4up(I, J)

image thumbnail

updated almost 3 years ago

IND2SUB4UP Subscripts from linear index for upper triangular matrix (only elements above diagonal) by Francesco Pozzi

Subscripts from a given single index for a 2D upper matrix (no elements over the diagonal) (subscripts, linear indexes, vector)

ind2sub4up(IND)

image thumbnail

updated 3 years ago

marginhist.m by Peter Perkins

2D scatterplot w/marginal histograms. (specialized, plotting, scatterplot)

marginhist(x,y,nbins)

image thumbnail

updated 3 years ago

quiverc by Francesco

This function allow the quick creation of vector filled plots. (colored, vector, field)

image thumbnail

updated 3 years ago

Miller Indices of Cubic Crystals by Husam Aldahiyat

Simple GUI that displays properties of Miller Indices for cubic crystals. (indices, crystal, miller)

millerind

image thumbnail

updated 3 years ago

Solid State Physics Simulation Pack_V 0.02 by Ali Mohammad Razeghi

A Simple Pack of Tools for Plotting Lattices and Crystals and Calculating Their Properties. (bases, simulation, cplot)

[Xout,Yout,Zout]=gplot3(A,xy,lc)

ccv ( A , N , F )

cplot ( A , N , F )

image thumbnail

updated 3 years ago

intersectPlaneSurf by Mehmet OZTURK

Intersection points of an arbitrary surface with an arbitrary plane. (plane, intersection, contour)

out=intersectPlaneSurf(p0, v, exx, eyy, ezz)

example.m

image thumbnail

updated 3 years ago

unique_no_sort_rows by Michael Petralia

find unique rows of a matrix without resorting the rows (cell array, matrices, matrix)

unique_no_sort_rows(A)

image thumbnail

updated almost 4 years ago

Remove Outliers by Vince Petaccio

Uses the Thompson Tau technique to remove outliers from a vector containing statistical data. (thomspon, tau, method)

removeoutliers(datain)

image thumbnail

updated almost 4 years ago

Least Common Multiple Set by Josh

Input a set of numbers as an n-dimension array, get their least common multiple. (least, lcm, multiple)

lcms(numberArray)

image thumbnail

updated almost 4 years ago

Reshape 1D to 2D with Balance by Dr. Murtaza Khan

Reshapes 1D array to 2D array with size of rows and columns of B is balance (reshape, vector, 1d)

B=reshape1dto2dbalance(A)

factor2(k)

reshape1dto2dbalanceTest.m

Contact us