Replacing the matrix diagonal

You can replace the current values in the matrix diagonal. The diagonal includes all cells whose row number and column number correspond with each other. You can either replace the values by a constant or by the values of another matrix or zone attribute. The matrix values of all other rows remain unchanged (Fundamentals: Copy, paste and apply diagonal).

Note: Use the keys Alt + Pgup / Pgdown to scroll along the diagonal in the matrix values.

1.  Open the desired matrix (Opening matrices).

2.  On the Matrix editor window toolbar, click the  Set diagonal symbol.

The Select the operand for 'Set diagonal...‘ on the total matrix window opens.

Tip: Alternatively, from the Matrix editor menu, choose Arithmetic operations > Set diagonal.

3.  Make the desired changes.

Element

Description

Select matrix directly

Select this option to replace the matrix values in the diagonal by the values of a matrix listed in the navigator.

Tip

The navigator lists the same matrices as the Matrices window (Showing matrices in the Matrices window).

Origin/destination attribute (zone)

If the Select matrices by properties is selected, the matrix values are replaced with zone attribute values.

Note

This function is provided for Visum matrices only.

Load matrix from file

Select this option to replace the matrix values by the values of an external matrix. Click the button to select the matrix file of your choice.

Constant

If this option is selected, you can replace the matrix values by a constant value. Enter the constant into the entry field.

Note

If you enter 0 as a constant value for the diagonal, the output matrix corresponds to the input matrix, however, without the zone-internal demand.

4.  Confirm with OK.

In the matrix diagonal, the values are replaced.