Toggle navigation
Home
Download
Documentation
Function Reference
Examples
Workshops
People
Functions
Geometry
Overview
vector3d
vector3d
abs
accumarray
angle
angle_outer
arrow3d
byPolar
calcCluster
calcDelaunay
calcDensity
calcQuadratureWeights
calcVoronoi
calcVoronoiArea
cat
centroid
char
circle
conj
contour
contourf
convhull
cross
cross_outer
ctranspose
cumsum
det
display
dot
dot_outer
double
dyad
eig
end
eq
exp
export
find
fullDouble
gridify
histogram
horzcat
interp
isPerp
isempty
isscalar
length
line
lineIntersect
load
mapScatter
matrix
mean
meshNorm
minus
mpower
mrdivide
mtimes
nan
nan2zero
nanmean
ndims
ne
norm
normalize
numel
ones
orth
orthProj
pcolor
perp
planeIntersect
plot
plot3d
plotCustom
plus
polar
polyArea
power
project2FundamentalRegion
quiver
quiver3
rand
rank
rdivide
refine
region
repmat
reshape
rotate
rotate_outer
round
round2zero
scatter
scatter3d
setdiff
size
smooth
sparse
subSet
subsasgn
subsref
sum
surf
symmetrise
text
text3
times
transpose
uminus
unique
vertcat
zeros
Miller
Miller
calcDensity
cat
char
cross
display
dot
dot_outer
dspacing
exp
gridify
mean
multiplicity
perp
project2FundamentalRegion
region
rotate
rotate_outer
round
scatter
smooth
surf
symmetrise
text
transformReferenceFrame
unique
symmetry
symmetry
Laue
LaueName
calcAngleDistribution
calcAxisDistribution
check
disjoint
elements
ensureCS
eq
factor
fundamentalRegion
fundamentalRegionEuler
fundamentalSector
isLaue
isProper
maxAngle
mtimes
multiplicityZ
ne
nfold
numProper
numSym
plot
properGroup
properSubGroup
quaternion
rotation
rotation_special
union
crystalSymmetry
crystalSymmetry
add
alignment
axesDual
basicHKL
byElements
char
dispLine
display
eq
load
plotHKL
plotUVW
transformationMatrix
specimenSymmetry
specimenSymmetry
char
dispLine
crystalShape
crystalShape
albite
amphibole
analcime
andalusite
anorthite
antigorite
apatite
aragonite
augite
biotite
brucite
calcite
chromite
clinochlore
cordierite
corundum
diamond
diopside
dolomite
enstatite
epidote
fluorite
fluorite_complex
forsterite
garnet
gypsum
halite
ice_VI
ilmenite
kyanite
magnesite
magnetite
microcline
monazite
muscovite
olivine
orthoclase
plagioclase
quartz
rutile
spinel
staurolite
titanite
topaz
tourmaline
zircon
zoisite
display
fitArea
innerFace
length
mtimes
plot
plotInnerFace
plotSlipSystem
plus
repmat
reshape
rotate
rotate_outer
size
subSet
subsref
times
rotation
rotation
byAxisAngle
byEuler
byMatrix
byRodrigues
calcDensity
cat
char
display
dot
dot_outer
double
fit
getMinAxes
isImproper
line
load
map
matrix
mldivide
mtimes
permute
plotSection
power
project2FundamentalRegion
repmat
reshape
subSet
subsasgn
subsref
times
transpose
uminus
unique
orientation
orientation
BCV
KLCV
LSCV
accumarray
angle
axis
bingham_test
byAxisAngle
byEuler
byMatrix
byMiller
byRodrigues
calcAngleDistribution
calcBinghamODF
calcCluster
calcFourierODF
calcInvTaylor
calcKernel
calcKernelODF
calcMIndex
calcTensor
calcVoronoi
char
crossCorrelation
ctranspose
display
doHClustering
dot
dot_outer
exp
export_VPSC
fibreVolume
fit
getFundamentalRegion
gridify
isMisorientation
ldivide
load
log
logm
map
matchLattice
mean
mldivide
mtimes
multiplicity
niceEuler
parents
plot
plotIPDF
plotPDF
plotSection
power
project
project2EulerFR
project2FundamentalRegion
qqplot
quiver
quiverSection
round2Miller
scatter
sphereVolume
symmetrise
tensor
times
transformReferenceFrame
unique
variants
volume
MoritoOrder
calcParent
calcParent2Child
calcVariantId
plotVariants
orientationRegion
orientationRegion
angle
axisSector
calcAngleDistribution
calcAxisDistribution
checkInside
cleanUp
display
eq
horzcat
maxAngle
minAngle
ne
plot
rotate
volume
sphericalRegion
sphericalRegion
boundary
byVertices
char
checkInside
cleanUp
display
eq
horzcat
isLower
isUpper
ne
plot
polarCoordinates
restrict2Lower
restrict2Upper
rhoRange
rotate
rotate_outer
triangle
volume
fibre
fibre
angle
cat
display
end
eq
fit
horzcat
isempty
length
multiplicity
ne
orientation
plot
plotIPDF
plotPDF
rotation
size
subSet
subsref
symmetrise
transpose
vertcat
slipSystem
slipSystem
SchmidFactor
SchmidTensor
cat
deformationTensor
end
eq
horzcat
isempty
isscalar
length
mPrime
mtimes
ne
residualBurgersVector
rotate
rotate_outer
size
subSet
subsasgn
subsref
symmetrise
trace
transpose
uminus
vertcat
dislocationSystem
dislocationSystem
cat
end
eq
horzcat
isempty
length
ne
rotate
rotate_outer
size
subSet
subsasgn
subsref
symmetrise
tensor
transpose
uminus
vertcat
quaternion
quaternion
Euler
Rodrigues
accumarray
angle
angle_outer
axis
calcVoronoi
calcVoronoiVolume
cat
char
cross
ctranspose
cubochoric
display
dot
dot_angle
dot_outer
double
end
eq
export
find
geodesic
homochoric
horzcat
inv
isempty
isnan
isscalar
itimes
length
log
logm
matrix
mean
mean_CS
minus
mldivide
mpower
mrdivide
mtimes
ndims
ne
norm
normalize
numel
permute
perturbe
plot
plus
power
prod
project2EulerFR
project2FundamentalRegion
qmatrix
qq
rdivide
real
repmat
reshape
scatter
setSubSet
size
std
subSet
subsasgn
subsref
sum
symmetrise
times
transpose
uminus
unique
vertcat
S1Grid
S1Grid
GridLength
coarser
delete
display
dist
dist_outer
double
eq
find
max
min
minus
plot
plus
refine
shift
subGrid
S2Grid
S2Grid
cat
copy
cross
delete
display
find
getdata
plus
polar
refine
rotate
rotate_outer
subGrid
subsasgn
subsref
times
fibonacciS2Grid
char
display
quadratureS2Grid
rotate_outer
subsasgn
subsref
S2Triangulation
S2Triangulation
calcBario
checkInside
plot
rotate
SO3Grid
SO3Grid
char
copy
delete
display
dot_outer
find
mtimes
spy
subGrid
subSet
subsasgn
subsref
find
homochoricSO3Grid
char
display
quadratureSO3Grid
subsasgn
subsref
embedding
embedding
cat
dot
double
horzcat
mean
minus
mtimes
norm
normalize
orientation
plot
plus
project
rdivide
rotate
rotate_outer
setDouble
sum
sym
symmetrise
times
vertcat
misc functions
CSL
EulerAngleConvention
HEALPixS2Grid
allHKL
axis2quat
axis2quat_outer
cubo2homo
doHClustering
ensureCompatibleTangentSpaces
equispacedS2Grid
equispacedSO3Grid
euler2quat
expquat
extractSphericalRegion
fibre2quat
hexNeighbors
homo2cubo
hr2quat
isLaue
isProper
loadCIF
loadPHL
localOrientationGrid
mat2quat
plotS2Grid
plotSO3Grid
polySgnArea
reflection
regularS2Grid
regularSO3Grid
squareNeighbors
squareNeighbors2
xvector
yvector
zvector
Phase Transistion Analysis
MoritoOrder
calcParent
calcParent2Child
calcVariantId
plotVariants
EBSD Analysis
Overview
EBSD
EBSD
KAM
calcGROD
calcGrains
calcMisorientation
calcTensor
calcTraces
cat
char
curvature
display
export
export_ang
export_crc
export_ctf
export_h5
extent
fill
fillByGrainId
findByLocation
findByOrientation
getCPRInfo
grainMean
gridify
id2ind
inpolygon
interp
isnan
load
minus
plot
plotUnitCells
plus
project2FundamentalRegion
quiver
reduce
reshape
rotate
rotate_outer
selectInteractive
shift
smooth
spatialProfile
subSet
subsasgn
subsind
subsref
text
transform2PolarRefernceFrame
updateUnitCell
weightedBurgersVec
EBSDsquare
EBSDsquare
KAM
calcGND
interp
plotUnitCells
spatialProfile
subGrid
subsind
xy2ind
EBSDhex
EBSDhex
KAM
interp
plotUnitCells
reduce
subsind
grain2d
grain2d
area
aspectRatio
boundarySize
calcTraces
caliper
cat
centroid
checkInside
convexhullProps
diameter
display
eq
equivalentPerimeter
equivalentRadius
findByLocation
findByOrientation
fitEllipse
hasHole
hist
histogram
hull
id2ind
inpolygon
isBoundary
isInclusion
load
longAxis
merge
minus
ne
neighbors
numNeighbors
paris
paror
perimeter
plot
plus
principalComponents
quiver
reduceBoundary
refineBoundary
rotate
rotate2Plane
selectInteractive
shapeFactor
shortAxis
smooth
subBoundaryLength
subBoundarySize
subSet
subsasgn
subsref
text
grainBoundary
grainBoundary
angle
calcGBND
calcGBND2
calcGBPD
calcMeanDirection
calcTriplePoints
characteristicShape
curvature
display
flip
inpolygon
intersect
isTwinning
load
minus
perimeter
plot
plus
quiver
reduce
reorder
rotate
segLength
selectByGrainId
subSet
subsasgn
subsref
surfor
triplePointList
triplePointList
display
minus
plot
plus
rotate
subSet
subsasgn
subsref
parentGrainReconstructor
parentGrainReconstructor
calcGBFit
calcGBVotes
calcGrainVotes
calcGraph
calcParent2Child
calcParentEBSD
calcParentFromGraph
calcParentFromVote
calcTPVotes
calcVariantGraph
calcVariants
clusterGraph
clusterVariantGraph
display
mergeByGraph
mergeInclusions
mergeSimilar
parent2ChildInfo
plotGraph
plotVariantPF
revert
selectInteractive
ODF Analysis
Overview
ODF
ODF
load
neuralgas
uniformComponent
unimodalComponent
fibreComponent
FourierComponent
BinghamComponent
Standard ODFs
kernel
Pole Figures
Tensors
Overview
tensor
tensor
EinsteinSum
Fourier
Voigt
antiSym
cat
char
checkSymmetry
colon
conj
ctranspose
det
diag
directionalMagnitude
display
double
eig
end
eq
expm
export
horzcat
inv
isscalar
length
leviCivita
load
logm
matrix
mean
minus
mpower
mrdivide
mtimes
ndims
ne
norm
normalize
numel
plot
plus
polar
quadric
rdivide
real
reshape
rotate
rotate_outer
rotation
size
sqrtm
subSet
subsasgn
subsref
sum
svd
sym
symmetricDecomposition
symmetrise
tensorSize
times
trace
transformReferenceFrame
transpose
uminus
vector3d
vertcat
stressTensor
stressTensor
calcShearStress
deviatoricStress
equivalentStress
meanStress
normalize
strainTensor
strainTensor
axisRatios
calcTaylor
deviatoricStrain
ellipsoid
equivalentStrain
norm
octahedralStrain
strainRateTensor
strainRateTensor
complianceTensor
complianceTensor
ChristoffelTensor
PoissonRatio
YoungsModulus
bulkModulus
colon
inv
linearCompressibility
mtimes
shearModulus
velocity
volumeCompressibility
stiffnessTensor
stiffnessTensor
ChristoffelTensor
HashinShtrikmanModulus
PoissonRatio
YoungsModulus
bulkModulus
colon
energyVector
inv
linearCompressibility
mtimes
plotSeismicVelocities
shearModulus
velocity
volumeCompressibility
refractiveIndexTensor
refractiveIndexTensor
birefringence
opticalAxis
refractiveIndex
spectralTransmission
curvatureTensor
curvatureTensor
dislocationDensity
fitDislocationSystems
spinTensor
spinTensor
ChristoffelTensor
ChristoffelTensor
velocityGradientTensor
velocityGradientTensor
FCE
angularVelocityVector
axisRatios
calcTaylor
compressionDirection
equivalentStrain
expm
extensionDirection
finiteStrain
normalDirection
polar
pureShear
rotationRate
shearDirection
simpleShear
strainRate
uniaxial
vorticity
deformationGradientTensor
deformationGradientTensor
CauchyStrain
GreenStrain
logm
pureShear
simpleShear
uniaxial
dislocationDensityTensor
dislocationDensityTensor
curvature
Spherical Functions
Overview
S2Fun
S2Fun
abs
contour
contourf
conv
discreteSample
display
grad
log
log2
max
mean
min
minus
mrdivide
mtimes
norm
pcolor
plot
plot3d
plotSection
plus
quiver3
quiverSection
rdivide
rotate
rotate_outer
smiley
sum
surf
times
uminus
unimodal
volume
S2FunHandle
S2FunHandle
rotate_outer
S2FunTri
S2FunTri
abs
display
eval
grad
le
max
mean
min
mtimes
plot
plus
power
rdivide
rotate
times
uminus
volume
BinghamS2
BinghamS2
fit
rotate
S2FunHarmonic
S2FunHarmonic
abs
acos
approximation
calcSymAxis
cat
conj
conv
cos
ctranspose
display
dot
eig
end
entropy
eval
even
grad
horzcat
isempty
le
length
log
mean
mtimes
norm
plotSpektra
plus
power
quadrature
radon
rdivide
regularisation
reshape
rotate
rotate_outer
simultaniousCG
sqrt
steepestDescent
subsasgn
subsref
sum
symmetrise
times
transpose
truncate
uminus
vertcat
volume
S2FunHarmonicSym
S2FunHarmonicSym
display
plot
plus
power
quadrature
rdivide
times
S2AxisField
S2AxisField
angle
plot
quiver
quiver3
S2AxisFieldTri
S2AxisFieldTri
angle
cross
dot
eval
S2AxisFieldHarmonic
S2AxisFieldHarmonic
approximation
cross
display
dot
eval
quadrature
S2VectorField
S2VectorField
angle
display
dot
n
norm
normal
normalize
plot
plotSection
polar
quiver
quiver3
quiverSection
rho
sigma
tangential
theta
S2VectorFieldHarmonic
S2VectorFieldHarmonic
approximation
cross
display
dot
eval
mean
minus
mtimes
norm
plus
quadrature
rdivide
rotate
times
uminus
S2VectorFieldTri
S2VectorFieldTri
angle
cross
display
dot
eval
minus
norm
plus
rdivide
times
uminus
S2Kernel
S2Kernel
conv
grad
plotSpektra
radon
Orientation Functions
Overview
SO3Fun
SO3Fun
abs
calcAngleDistribution
calcAxisDistribution
calcAxisVolume
calcComponents
calcError
calcFourier
calcMDF
calcMIndex
calcPDF
calcPoleFigure
calcTensor
centerSpecimen
conj
conv
cor
discreteSample
display
dubna
ensureCompatibleSymmetries
entropy
exp
export
export_VPSC
export_generic
export_mtex
fibreVolume
grad
hist
interpolate
inv
load
log
max
mean
min
minus
mrdivide
mtimes
norm
plot
plot3d
plotDiff
plotFibre
plotIPDF
plotPDF
plotSection
plotSpektra
plus
power
quantile
radon
rdivide
rotate
rotate_outer
smooth
sqrt
steepestDescent
sum
times
transformReferenceFrame
uminus
volume
SO3TangentSpace
doEulerStep
symmetrise
SO3FunHandle
SO3FunHandle
display
eval
example
length
numel
rotate_outer
size
SO3FunBingham
SO3FunBingham
display
eval
example
mean
radon
rotate
times
uminus
SO3FunCBF
SO3FunCBF
calcFourier
conv
discreteSample
display
eval
example
grad
mean
radon
rotate
times
uminus
SO3FunComposition
SO3FunComposition
calcFourier
char
discreteSample
display
eval
example
grad
mean
radon
rotate
rotate_outer
smooth
times
uminus
volume
SO3FunRBF
SO3FunRBF
calcFourier
conv
discreteSample
display
eval
example
grad
inv
mean
plus
radon
rotate
times
uminus
volume
SO3FunHarmonic
SO3FunHarmonic
L2normalizeFourierCoefficients
WignerDmap
adjoint
adjointNFSOFT
approximation
calcFourier
cat
conj
conv
cor
ctranspose
display
end
eval
evalEquispacedFFT
evalNFSOFT
evalODFSections
example
grad
horzcat
inv
laplace
length
max
mean
norm
plot
plot3d
plotFibre
plotIPDF
plotPDF
plotSection
plus
quadrature
radon
rdivide
reshape
rotate_outer
subsasgn
subsref
sum
symmetrise
times
transpose
uminus
vertcat
volume
wignerTrafo
SO3FunHomochoric
SO3FunHomochoric
eval
SO3VectorField
SO3VectorField
abs
antiderivative
conj
cross
curl
display
div
dot
ensureCompatibleSymmetries
exp
inv
left
log
mean
minus
mrdivide
mtimes
norm
normalize
plot
plus
power
quiver
quiver3
quiverSection
rdivide
right
rotate
sqrt
times
uminus
SO3VectorFieldHarmonic
SO3VectorFieldHarmonic
antiderivative
approximation
conj
cross
curl
display
div
dot
eval
left
mean
norm
normSquare
normalize
plus
quadrature
rdivide
right
rotate
symmetrise
times
uminus
SO3VectorFieldHandle
SO3VectorFieldHandle
eval
rotate
SO3Kernel
SO3Kernel
K_symmetrised
RK_symmetrised
conv
eval
grad
plot
plotPDF
plotSpektra
radon
volume
Plotting
Overview
mapPlot
scaleBar
sphericalPlot
mtexFigure
mtexFigure
adjustFigurePosition
colorbar
drawNow
getDataCursorPos
nextAxis
spherical Projections
eangleProjection
eareaProjection
edistProjection
full3dProjection
gnonomicProjection
orthographicProjection
plainProjection
sphericalProjection
squareProjection
orientation plots
orientationPlot
BungePlot
RodriguesPlot
axisAnglePlot
conformalPlot
cubochoricPlot
homochoricPlot
newOrientationPlot
quaternionPlot
Euler space sections
ODFSections
plot
quiver
PhiSections
alphaSections
axisAngleSections
gammaSections
ipfSections
omegaSections
pfSections
phi1Sections
phi2Sections
sigmaSections
colormaps
LaboTeXColorMap
WhiteJet01ColorMap
WhiteJetColorMap
black2whiteColorMap
blue2redColorMap
coolColorMap
hotColorMap
hsvColorMap
infernoColorMap
magmaColorMap
parulaColorMap
plasmaColorMap
red2blueColorMap
viridisColorMap
white2blackColorMap
directional color keys
HKLDirectionKey
HSVDirectionKey
TSLDirectionKey
directionColorKey
orientation color keys
BungeColorKey
axisAngleColorKey
ipfColorKey
ipfHKLKey
ipfHSVKey
ipfSpotKey
ipfTSLKey
orientationColorKey
spectralTransmissionColorKey
spotColorKey
tools
annotate
ar2rgb
contour3s
convertFigureRGB2ind
ellipse
gcm
getCamera
getColormaps
getHoldState
getPixelPos
getUnitScale
hsl2hsv
ind2color
isRGB
mtexColorMap
mtexColorbar
newMapPlot
newMtexFigure
newODFSectionPlot
newSphericalPlot
nextAxis
nextstyle
num2rgb
optiondraw
optionplot
pix2data
plotEllipse
plotEllipsoid
plotEmptySphere
plotx2east
plotx2north
plotx2south
plotx2west
plotzIntoPlane
plotzOutOfPlane
rgb2str
saveFigure
sectionLabels
selectPolygon
setCamera
setColorRange
simulateClick
str2rgb
switchUnit
Tools
Overview
options
argin_check
checkOption
check_option
delete_option
extractSym
extract_SO3grid
extract_argoption
extract_data
extract_option
find_option
find_type
getClass
getMTEXpref
get_flag
get_option
mtex_path
option2str
setAllAppdata
setMTEXpref
setOption
set_default_option
set_option
math
ClebschGordan
ClebschGordanTensor
ClenshawL
Wigner3j
Wigner3jPrecomputed
Wigner3j_new
WignerD
Wigner_D
Wigner_d_recursion
allPairs
allTriple
bresenham
chi2inv
deg2dim
det3
dim2deg
discreteSample
eig2
eig3
ensureNonNeg
evalkappa
fclencurt
findJumps
legendre0
legendreNodesWeights
mhyper
nadjacent
nanmean
nanmeanWeights
nanmedian
nanplus
rhoInside
smoothn
sphericalClebschGordan
sphericalY
times_outer
wignerD2
statistics
Gaussian
cMeans
c_hat
calcDensity
calcS1Density
kMeans
majorityVote
maxVote
quantile
randp
range
graphs
EulerCycles
EulerCycles2
EulerTours
connectedComponents
mclComponents
load triplepointSegmentsExampleData.mat
kernel functions
files
apply_recursivly
assertExt
cell2file
cprproject_read
efopen
file2cell
getFileNames
getSubDirs
h5group2struct
load_generic
parseXML
restrictEBSD_ang
save_sparse
touch
write_cell
writedouble
pathes
mtexCifPath
mtexDataPath
mtexEBSDPath
mtexExamplePath
mtexODFPath
mtexPoleFigurePath
mtexTensorPath
dubna xrd
DubnaGrid
DubnaPoleFigure
calc_background
loadallspectra
loadspectra
plot_spectra
proceed_spectra
misc
MTEXmenu
binsearch
bucketSearch
calcTDF
characteristicShape
choose
circdensity
circdiff
closeAllButCurrentFiles
cprintf
cunion
cut2unitI
degree
dispStruct
displayClass
doclink
docmethods
ensurecell
equal
erode
fillStr
getmem
ind2char
isLocalMinD
isOctave
isalmostreal
isappr
isempty_cell
iseven
isnull
ispos
logAxis
makeDisjoint
mtex_assert
n2str
newer_version
out2
pauseline
plotTDF
progress
pullTemp
pushTemp
qwarning
repcell
rmallappdata
selectMaxbyColumn
selectMaxbyRow
selectMinbyColumn
selectMinbyRow
setFont
setNull
size2str
sparseConcat
splitdata
stripStar
stripws
strong
submatrix
trimMat
varlink
vdisp
vec2cell
xnum2str
numNeighbors
numNeighbors
edit page
returns the number of neighboring grains
Syntax
counts
=
numNeighbors
(
grains
)
Input
grains
grain2d
Output
counts
number of neighbors per grain