PRODUCTS
Mathematica
Mathematica Home Edition
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
Wolfram Lightweight Grid Manager
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
SOLUTIONS
Engineering
Aerospace Engineering & Defense
Chemical Engineering
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
Higher Education
Precollege Education
Students
Technology
Interactive Deployment
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
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Learning Center
Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Wolfram|Alpha
Demonstrations Project
Wolfram Blog
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Data Manipulation
>
Image Processing & Analysis
>
Image Filtering & Neighborhood Processing
>
Structure Matrices & Convolution Kernels
>
Mathematica
>
Mathematics and Algorithms
>
Matrices and Linear Algebra
>
Constructing Matrices
>
Structure Matrices & Convolution Kernels
>
Built-in
Mathematica
Symbol
DiamondMatrix
CrossMatrix
GaussianMatrix
BoxMatrix
SparseArray
Norm
ListConvolve
ImageConvolve
See Also »
|
Constructing Matrices
Image Filtering & Neighborhood Processing
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
[
r
,
w
]
gives a
w
×
w
matrix containing a disk of
s with radius
r
.
DiskMatrix
[{
r
1
,
r
2
,
...
},
...
]
yields an array whose elements are
in an ellipsoidal region with semi-axis
r
i
in the
i
index direction.
MORE INFORMATION
The disk of
1
s is always at the center of the region.
In
DiskMatrix
[
r
]
or
DiskMatrix
[{
r
1
,
...
}]
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
[
...
, {
w
1
,
w
2
,
...
}]
gives a
w
1
×
w
2
×
...
array.
DiskMatrix
[{
r
1
,
...
,
r
n
},
w
]
gives a
w
×
...
×
w
array.
DiskMatrix
[
All
, {
w
1
,
...
,
w
n
}]
gives a
w
1
×
...
×
w
n
array containing an ellipsoid that is as large as possible.
The radius
r
need not be an integer; in general elements are
1
if their distance from the center is not more than
.
For integer
r
,
DiskMatrix
[
r
]
yields a
(2
r
+1)×(2
r
+1)
matrix.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
This computes and plots a square disk-shaped matrix of radius 7:
In[1]:=
Out[1]=
Scope
(1)
SEE ALSO
DiamondMatrix
CrossMatrix
GaussianMatrix
BoxMatrix
SparseArray
Norm
ListConvolve
ImageConvolve
MORE ABOUT
Constructing Matrices
Image Filtering & Neighborhood Processing
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