Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
linalg[band] - create a band matrix
Calling Sequence
band(b, n)
Parameters
b
-
list or vector
n
positive integer
Description
Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The call band(b, n) creates an n x n banded matrix using the elements of b. The number of elements of b must be odd and not greater than 2*n-1.
If b has n elements, the middle n diagonals of the result are initialized to the elements of b, in left-to-right order. In each diagonal all elements have the same value.
If 2*n-1 is larger than the length of b, then the remaining sub- and super-diagonals are set to zero.
The matrix result uses a sparse indexing function.
The command with(linalg,band) allows the use of the abbreviated form of this command.
Examples
See Also
linalg(deprecated)[diag], LinearAlgebra
Download Help Document