You are on page 1of 33

TransCAD

Working with Matrices

01/27/15

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.
01/27/15

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.
01/27/15

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.
01/27/15

To Create a New Matrix File

01/27/15

01/27/15

To Add a Matrix to a Matrix


File

01/27/15

To Change the Matrix Labels

01/27/15

To Display Matrix Row and


Column Marginals

01/27/15

01/27/15

10

To Sort a Matrix View

01/27/15

11

To Find a Cell in a Matrix

01/27/15

12

To Change the Font, Format,


and Other Settings

01/27/15

13

To Fill Cells with a Single


Value

01/27/15

14

01/27/15

15

To Fill a Matrix Cell by Cell

01/27/15

16

To Fill a Matrix with a Formula

01/27/15

17

To Fill a Matrix Using Vector


Multiplication

01/27/15

18

To Update a Matrix

01/27/15

19

To Append Matrices to a Matrix


File

01/27/15

20

To Sum All the Matrices in a


Matrix File

Summarize two
Matrices

01/27/15

21

To Add a Matrix Index

01/27/15

22

To Display a Portion of a
Matrix

01/27/15

23

To Create Desire Lines


(Desire.wrk)

01/27/15

24

01/27/15

25

To Impost a Dataview into a


Matrix
Activate a dataview first

01/27/15

26

01/27/15

27

To Export a Matrix to a New


Table
Activate a Matrix first

01/27/15

28

To Copy a Matrix File

01/27/15

29

To Transpose a Matrix File

01/27/15

30

To Combine Matrix Files

01/27/15

31

To Perform Matrix
Multiplication

01/27/15

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
01/27/15

33

You might also like