38,935 results

Computes/applies rotation about arbitrary 3D line.

Generates the roto-translation matrix for the rotation around an arbitrary line in 3D. The line need not pass through the origin. Optionally, also, applies this transformation to a list of 3D

Mohr's Circle

Version 1.2.1.0

by Peter L Bishay

App that plots Mohr's circles (2D and 3D) given the state of stress.

Generate unstructured meshes for general two-dimensional geometries.

MESH2D is a MATLAB-based Delaunay mesh-generator for two-dimensional geometries. It is designed to generate high-quality constrained Delaunay triangulations for general polygonal regions in the plane

vol3d v2

Version 1.2.2.0

by Oliver Woodford

3-d volume (voxel) rendering

An update to Joe Conti's popular vol3d function, allowing voxel colors and alpha values to be defined explicitly. Functionality is increased, but the function is entirely backwards compatible.In

Y = INPAINTN(X) computes the missing data in the N-D array X.

Y = INPAINTN(X) replaces the missing data in X by extra/interpolating the non-missing elements. The non finite values (NaN or Inf) in X are considered as missing data. X can be any N-D array.Type

Accurate Curvature and Normals of a line/contour consisting of 2D points

LineCurvature2D, This function calculates the curvature of a 2D line. It first fits polygons to the points. Then calculates the analytical curvature from the polygons. K =

Viewer3D

Version 12.1.0.0

by Dirk-Jan Kroon

MIP, Color, Slice and Shaded 3D (shearwarp) Volume Rendering, interactive 3D view/measurement GUI

This function can be used to interactively view any kind of 2D,3D and 4D image volumes like CT and MRI. Allowing segmentation and distance measurements or ROI selection in 2D slices.It includes

3D Polar Plot

Version 1.2.0.0

by Ken Garrard

Plots 3d polar data with polar axis and polar grid

Polarplot3d produces surface, mesh, wireframe and contour plots for three dimensional polar data. A labeled polar axis is drawn at a fixed height or it can follow the surface contour at maximum

The program plots convex closed regions in 2D/3D.

The program plots convex closed regions in 2D/3D. The region is a subset of R2 or R3 such that Ax>=b and lb<=x<=ub. It is also possible to plot points in the same plot.(See help plotregion

geom3d

Version 1.25

by David Legland

Geometric computing library for 3D shapes: meshes, points, lines, planes...

The aim of geom3d library is to handle and visualize 3D geometric primitives such as points, lines, planes, polyhedra... It provides low-level functions for manipulating 3D geometric primitives

Calculates the local radius of curvature as well as the cumulative arc length and the curvature vector along a 1D curve in 2D or 3D space

Function circumcenter finds the radius R and the center of the circumscribed circle of a triangle in 3D space. Function curvature calls circumcenter for every triplet , , of neighboring points along

GUI to open most Medical file-formats: Dicom, V3D, ISI, NifTI, Analyze and other formats

This function ReadData3D allows the user to open medical 3D files. It supports the following formats : Dicom Files ( .dcm , .dicom ) V3D Philips Scanner ( .v3d ) GIPL Guys Image Processing

mmx

Version 1.3.0.0

by Yuval

N-D multithreaded matrix operations.

Multithreaded matrix operations on N-D arrays (a Matlab plug-in)

inpaint_nans

Version 1.1.0.0

by John D'Errico

Interpolates (& extrapolates) NaN elements in a 2d array.

Interpolate NaN elements in a 2-d array using non-NaN elements. Can also extrapolate, as it does not use a triangulation of the data. Inpaint_nans offers several different approaches to the

Exports 2D/3D image volume, vector field, surface, lines, polygons, etc. to ParaView

Paraview is a powerful open-source software for visualization of large 3D dataset. It offers more options, details and much better performance than built-in Matlab 3D visualization modules. This

Plot images as 3D planes with full control over position and scale.

This function will display an image in a 3D plane with the specified position, image normal, image x direction and scale. It can display full colour and monochrome images with or without

geom2d

Version 1.25

by David Legland

Geometry library for matlab. Performs geometric computations on points, lines, circles, polygons...

), drawLine([X0 Y0 DX DY]). Some clipping is performed for infinite shapes such as lines or rays.Additional help is provided in geom/Contents.m file, as well as summary files like 'points2d.m' or 'lines2d

Model 2-d surfaces from scattered data

Speeds up many 2-D convolutions using the SVD; also finds a fast approximation in other cases.

. Additional shape options allow: (a) 2-D "circular" convolution - that is, the input array is taken to be periodic rather than surrounded by zeros; (b) a "reflection" boundary condition - that is, the input

magnify

Version 1.0.0.0

by Rick Hindman

Turns the mouse into a pop-up magnifying glass to look at details of 2D plots.

PLOTCUBE

Version 1.0.0.0

by Olivier

Plot a 3D-cube

PLOTCUBE - Display a 3D-cube in the current axes PLOTCUBE(EDGES,ORIGIN,ALPHA,COLOR) displays a 3D-cube in the current axes with the following properties: * EDGES : 3-elements vector that defines

Fast 2D peak finder

Version 1.13.0.0

by Adi Natan

Find local maxima \ peak positions in noisy 2D arrays

fastpeakfindA simple and fast 2D peak finder. The aim was to be faster than more sophisticated techniques yet good enough to find peaks in noisy data. The code analyzes noisy 2D images and find peaks

Export figure as U3D file or directly to 3D interactive graphics within PDF.

FIG2U3D saves the figure as a U3D file for inclusion as an interactive 3-dimensional figure within a PDF. Either LaTeX or Adobe Acrobat can be used to embed the U3D file in the PDF.Development and

Export triangulated mesh into a pdf with a 3D interactive object.

Export triangulated mesh into a pdf with a 3D object. The matlab mesh is converted to IDTF with matlab code. The IDTF file is converted to u3d with an external binary file. The u3d file can then be

matGeom

Version 1.2.7

by David Legland

A collection of functions for 2D and 3D geometric computing.

MatGeomMATLAB geometry processing library in 2D/3D.MatGeom is a library for geometry processing / geometric computing with MATLAB in 2D and 3D.MatGeom is a “function-based” library: it contains

Two scripts: polyfitweighted2 fits 2D data with weights, and polyval2 evaluates the 2D polynomial

polyfitweighted2.m and polyval2.m---------polyfitweighted2.m: Find a least-squares fit of 2D data z(x,y) with an n th order polynomial, weighted by w(x,y).polyval2.m: Evaluate 2D polynomial produced

imshow3D

Version 1.6.1.0

by Maysam Shahedi

imshow3D:(3D imshow) Displays 3D images slice by slice.Intensity adjusting & slice browsing by mouse

imshow3D displays 3D grayscale or RGB images in a slice by slice fashion with mouse-based slice browsing and window and level adjustment control, and auto slice browsing control.Usage:imshow3D (

Alphanumeric row sort of a cell/string/categorical/table array, with customizable number format.

{'ABCD';'3e45';'67.8';'+Inf';'-12';'+9';'NaN'};>> sortrows(B) % SORTROWS for comparison.ans = '+9' '+Inf' '-12' '3e45' '67.8' 'ABCD' 'NaN'>> natsortrows(B,'[-+]?(NaN|Inf|\d+\.?\d*(E[-+]?\d+)?)')ans = '-12' '+9' '67.8

Voxel

Version 1.0.0.0

by Suresh Joel

Draws a 3-D cube in a 3-D graph.

Simple function to draw a voxel (cube, cuboid) in a specific position of specific dimensions in a 3-D plot. Transparency of the voxel can also be specified. Many voxels can be aggregated to form a

make_STL_of_Array Convert a voxelized object contained within a 3D logical array into an STL surface mesh, It's optimal for 3D printing.

make_STL_of_Array Convert a voxelized object contained within a 3D logical array into an STL surface mesh, It's optimal for 3D printing because of the number of faces in final STL is as low as

Rotation Matrix

Version 1.0.0.1

by Jan

Rotation matrix in 2D, 3D and N-D

RotMatrix - N-dimensional Rotation matrixR = RotMatrix(alpha, u, v)INPUT: alpha: Angle of rotation in radians, counter-clockwise direction. u, v: If just the input alpha is provided, a 2D matrix

Calculates radially averaged 2D power spectrum for a surface roughness/topography

one can do a radial average on the calculated discrete Fourier transform of the surface topography and obtain its 2D power spectrum, namely, 2D PSD.With this function you can calculate 2D PSD of a

Calculates the 3D skeleton of an arbitrary binary volume using parallel medial axis thinning.

Skeleton3D: Parallel medial axis thinning of a 3D binary volumeThis code calculates the 3D medial axis skeleton of an arbitrary 3d binary volume. It is an optimized MATLAB implementation of the

Detect a whereas a point is interior or exterior to a 2D polygon

imtranslate

Version 1.0.0.0

by Sean de

Affine translates a 2D image or 3D volume.

This function makes it easy to translate a 2d image or 3d volume. The shifts do not need to be integer values. It was written so I could test image registration algorithms.Help:function Iout =

Extend Simscape Multibody models with physical effects spanning multiple physical domains.

: https://github.com/mathworks/Simscape-Multibody-Multiphysics-Library/archive/19.1.3.0.zipFor R2018b: https://github.com/mathworks/Simscape-Multibody-Multiphysics-Library/archive/18.2.2.7.zipFor R2018a

An extension of inpaint_nans to 3 dimensions

Every once in a while I get asked for a 3-d version of inpaint_nans, so I modified my existing 2-d code to run in 3 dimensions. This code has only two methods as options. I picked what I felt were

Plot a 2D or 3D line using a specified colormap.

% H = colormapline(X,Y,Z,C) Plot a line using a specified colormap% If Z is given, a 3D plot with coordinates X, Y, Z is created.% If Z is not given, a 2D plot of Y over X if created.% If Y and

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

^{...} for superscript_{...} for subscriptHow to use SVG files in HTML codeLimitations:- Does not support figure objects that have been introduced for > Matlab R2014b- axis scaling factors for 3D axes- 3D

OcTree recursively splits a large set of points into smaller subvolumes. A QuadTree but in 3D.

OcTree point decomposition in 3D OcTree is used to create a tree data structure of bins containing 3D points. Each bin may be recursively decomposed into 8 child

Algorithms for 2D AR and 2D ARMA parameters estimation.

The 2D ARMA estimation algorithm is the implementation of the approach proposed in "Two-dimensional ARMA modeling for breast cancer detection and classification" by N. Bouaynaya, J. Zielinski and D

k-D tree

Version 1.2.0.0

by Guy Shechter

Perform closest point search or range query using a k-D tree implementation.

This distribution contains the KDTREE, KDTREEIDX, and KDRANGEQUERY functions.-----KDTREE Find closest points using a k-D tree. CP = KDTREE( REFERENCE, MODEL ) finds the closest points inREFERENCE

spatialgraph2D

Version 2.1.0

by Matt J

Creates a graph object with 2D spatial locations associated with the nodes

This submission defines a graph class which allows 2D (x,y) location data to be attached to the nodes. It was designed with mosaic graphs in mind. By a mosaic graph, I mean a graph in which distinct

Evaluate 2D polynomials using Horner's method. Fit 2D polynomials to data using backslash operator.

Often it's necessary to fit or evaluate a function with 2 dimensions. Use polyFit2D.m to fit a 2D polynomila to data and polyVal2D.m to evaluate it. Fun!These functions are explained in detail

Fits a 2D Gaussian function to simulated data.

The program generates a 2D Gaussian. The program then attempts to fit the data using the MatLab function “lsqcurvefit “ to find the position, orientation and width of the two-dimensional

3D Polar Plot

Version 1.0.0.0

by J De Freitas

Plots 3D polar data with axes.

Polar3D plots 3 dimensional data given angular and radial ranges. A choice of plot types and interpolation methods is supported by this function. Useful particularly in producing 3D plots sampled on

Decompose an arbitrary N dimensional filtering kernel into 1D kernels, for faster filtering

--------------------------------------------------------------------- If we have a separable kernel like H = [1 2 1 2 4 2 3 6 3]; We like to solve unknown 1D kernels, a=[a(1) a(2) a(3)] b=[b(1) b(2) b(3)] We know that, H = a'*b b

findND

Version 2.0.0

by Rik

find for 3D or ND

Easily perform 2D highpass, lowpass, bandpass, or bandstop filters on gridded datasets.

This function performs a 2D gaussian-weighted moving-window averaging filter on gridded datasets. It's designed to simplify the process of converting resolution to pixels and figuring out what sigma

Function to rotate a -array of- vector(s) around any given -shifted- axis, in 2D or 3D space.

Please first check the examples tab (.mlx, doc) here on the right for a complete description.Once downloaded, typewrite 'help rotate_3D' or 'doc rotate_3D' in Matlab console for support.To benefit

Draw a 3D arrow. Easily specify size, color and even transparency.

This function draws a 3D arrow using a cylinder and cone patch. This allows the use of all patch properties including transparency. It can be used with default parameters (example 1) or user-defined

Gielis2d

Version 2.0.0.0

by Giuseppe Cardillo

Use Gielis'es superformula in 2d plot

format:Cardillo G. (2006). Superformula Generator 2d: a GUI interface to trace a2d plot of the parametric Gielis Superformula.http://www.mathworks.com/matlabcentral/fileexchange/10189

A notable use case is to simulate RGB or Kinect (depth) camera images for computer vision applications.

3D Rendering Toolbox: Color images and depth maps from 3D meshesImplementation of the computer graphics pipeline for triangulated meshes, in addition to a number of camera plotting functions. Handles

This code calculates 2D/3D specific surface of porous media using 2D images

2D/3D specific surface of porous media using 2D imagesSpecific surface of the porous media has two different definitions:1-3-D Specific surface of the void/porous space, which is equal to the surface

Create 3D Boxplots to display distributions with more than one grouping parameter

Create three-dimensional boxplots in Matlab, data can be arranged in columns and levels in a single 3D Matrix or a single column and two grouping parameters. See description in GitHub for a tutorial.

allwords

Version 1.1.0.0

by John D'Errico

Parse a sentence or any string into distinct "words"

Turns thin surfaces into closed solids by adding a flat base or offsetting by a given thickness.

specified below. Z must be a 2D matrix. X and Y can be 2D matrices of the same size as Z, or vectors of length equal to SIZE(Z,2) and SIZE(Z,1), respectively. If X or Y are scalar values, they are used to

Enhancement of Vessel/ridge like structures in 2D/3D image using hessian eigen values

supports both 2D images and 3D volumes.The 3D method contains an c-code file which can calculate fast the eigenvectors and eigenvalues of a list of image Hessians. First compile this code with "mex

point to line distance

Version 1.3.2

by Rik

calculate the distance between a 2D or 3D line and one or more points

You can input either a 2D or a 3D line and 2D or 3D points. This function is an extended version of the line below, with some input checking:distance=norm(cross(v1-v2,pt-v2))/norm(v1-v2)Licence: CC

Load more