You are on page 1of 33

TransCAD

Working with Matrices

112/05/18 1
Matrices

 Matrices can contain data that are essential for


transportation applications, but do not fit comfortably
into spreadsheets or databases. TransCAD provides a
broad and powerful set of tools for storing, displaying,
editing, and manipulating data in matrix form.
 A Matrix contains rows and columns. Each row is
identified by a row ID, and each column by a column
ID. Each entry in the matrix is called a cell and has a
value that describes something about the row and
column.

112/05/18 2
Matrices

 TransCAD stores matrices in a matrix file. A matrix


file contains one or more matrices, each of which
contains the exact same set of rows and columns.
 You can use TransCAD to create, modify, and edit
matrix files of any size. In addition, many
TransCAD modes and procedures create matrix
files as output. For example:
 The multiple shortest path procedure can create a matrix
file showing the distance between a set of origins and a
set of destinations.

112/05/18 3
Creating Matrices

 You create a new, empty matrix file by choosing


the following:
 The layer or dataview on which the matrix file is built
 The dataview field you want to use to identify the rows
and columns of the matrix file
 Which features or records from the dataview should
appear in the matrix file
 You must choose one numeric field from the layer
or dataview to use as the ID for the rows and
columns of the matrix file.
112/05/18 4
To Create a New Matrix File

112/05/18 5
112/05/18 6
To Add a Matrix to a Matrix
File

112/05/18 7
To Change the Matrix Labels

112/05/18 8
To Display Matrix Row and Co
lumn Marginals

112/05/18 9
112/05/18 10
To Sort a Matrix View

112/05/18 11
To Find a Cell in a Matrix

112/05/18 12
To Change the Font, Format,
and Other Settings

112/05/18 13
To Fill Cells with a Single
Value

112/05/18 14
112/05/18 15
To Fill a Matrix Cell by Cell

112/05/18 16
To Fill a Matrix with a Formula

112/05/18 17
To Fill a Matrix Using Vector
Multiplication

112/05/18 18
To Update a Matrix

112/05/18 19
To Append Matrices to a
Matrix File

112/05/18 20
To Sum All the Matrices in a
Matrix File

Summarize two
Matrices

112/05/18 21
To Add a Matrix Index

112/05/18 22
To Display a Portion of a
Matrix

112/05/18 23
To Create Desire Lines
(Desire.wrk)

112/05/18 24
112/05/18 25
To Impost a Dataview into a
Matrix
Activate a dataview first

112/05/18 26
112/05/18 27
To Export a Matrix to a New
Table
Activate a Matrix first

112/05/18 28
To Copy a Matrix File

112/05/18 29
To Transpose a Matrix File

112/05/18 30
To Combine Matrix Files

112/05/18 31
To Perform Matrix
Multiplication

112/05/18 32
Options for Storing Matrix

 TransCAD has a number of options for how matrices are


stored and accessed. When you are creating a new matrix
file you may want to use these options to reduce the disk
space requirements for large matrix files, or to increase the
speed of access for certain operations. There are four
settings you can control:
 How values are stored in the file
 Whether values are loaded into memory or accessed from disk
 Whether the values are stored in a compact or expanded format
 Whether values are stored in row or column order

112/05/18 33

You might also like