PRODUCTS
Products Overview
Mathematica
Mathematica for Students
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
SUPPORT
Support Overview
Knowledge Base
Learning Center
Community & Forums
Training & Free Seminars
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Data Manipulation
>
Image Processing & Analysis
>
Image Filtering & Neighborhood Processing
>
Structure Matrices & Convolution Kernels
>
DiskMatrix
>
Mathematica
>
Data Manipulation
>
Signal Processing
>
Linear and Nonlinear Filters
>
Structure Matrices & Convolution Kernels
>
DiskMatrix
>
Mathematica
>
Mathematics and Algorithms
>
Matrices and Linear Algebra
>
Constructing Matrices
>
Structure Matrices & Convolution Kernels
>
DiskMatrix
>
BUILT-IN MATHEMATICA SYMBOL
DiamondMatrix
CrossMatrix
GaussianMatrix
BoxMatrix
SparseArray
Norm
ListConvolve
ImageConvolve
See Also »
|
Constructing Matrices
Image Filtering & Neighborhood Processing
Linear and Nonlinear Filters
Structure Matrices & Convolution Kernels
Summary of New Features in 7.0
New in 7.0: Alphabetical Listing
New in 7.0: Lists and Matrices
New in 7.0: Mathematics & Algorithms
More About »
DiskMatrix
DiskMatrix
[
r
]
gives a matrix whose elements are
in a disk-shaped region of radius
r
, and are otherwise
.
DiskMatrix
gives a
w
×
w
matrix containing a disk of
s with radius
r
.
DiskMatrix
yields an array whose elements are
in an ellipsoidal region with semiaxis
in the
i
index direction.
MORE INFORMATION
The disk of
s is always at the center of the region.
In
DiskMatrix
[
r
]
or
DiskMatrix
the matrix or array is sized so as to just include all nonzero elements.
The disk-like region is taken to be the best discrete approximation to a circular disk possible given the size of the matrix.
DiskMatrix
[
All
,
w
]
gives a
w
×
w
matrix containing a disk that is as large as possible.
DiskMatrix
gives a
array.
DiskMatrix
gives a
array.
DiskMatrix
[
All
, {
w
1
,
...
,
w
n
}]
gives a
array containing an ellipsoid that is as large as possible.
The radius
r
need not be an integer; in general elements are
if their distance from the center is not more than
.
For integer
r
,
DiskMatrix
[
r
]
yields a
×
matrix.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
This computes and plots a square disk-shaped matrix of radius 7:
This computes and plots a square disk-shaped matrix of radius 7:
In[1]:=
Out[1]=
Scope
(1)
Create a rectangular ellipse-shaped matrix:
Put a disk inside a bigger matrix:
Extend the disk to the boundaries of the matrix:
Automatically choose an odd width to just fit the disk:
Extend the disk to the given width, and automatically choose the height:
SEE ALSO
DiamondMatrix
CrossMatrix
GaussianMatrix
BoxMatrix
SparseArray
Norm
ListConvolve
ImageConvolve
MORE ABOUT
Constructing Matrices
Image Filtering & Neighborhood Processing
Linear and Nonlinear Filters
Structure Matrices & Convolution Kernels
Summary of New Features in 7.0
New in 7.0: Alphabetical Listing
New in 7.0: Lists and Matrices
New in 7.0: Mathematics & Algorithms
New in 7