PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
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
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
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
SEARCH MATHEMATICA 8 DOCUMENTATION
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
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:
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
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