Main Content

Constants and Test Matrices

Pi, Not-a-Number, infinity; Hadamard, Companion, Pascal, and other specialized matrices

Functions

epsFloating-point relative accuracy
flintmaxLargest consecutive integer in floating-point format
iImaginary unit
jImaginary unit
InfCreate array of all Inf values
piRatio of circle's circumference to its diameter
NaNCreate array of all NaN values
isfiniteDetermine which array elements are finite
isinfDetermine which array elements are infinite
isnanDetermine which array elements are NaN
companCompanion matrix
galleryTest matrices
hadamardHadamard matrix
hankelHankel matrix
hilbHilbert matrix
invhilbInverse of Hilbert matrix
magicMagic square
pascalPascal matrix
rosserClassic symmetric eigenvalue test problem
toeplitzToeplitz matrix
vanderVandermonde matrix
wilkinsonWilkinson's eigenvalue test matrix

Topics

Missing Data in MATLAB

Handle missing values in data sets.