expanding a matrix
I have a data table that is a matrix and is 124 columns and 152 rows. It something like this but bigger. The first row represents the field names in the JMP table:
L 1 3 5
1 0 5 2
3 1 9 3
5 2 2 0
"L" is the label field. The field names represent sectors in the economy and may or may no match the field "label".
I want to build that matrix into a full size matrix, in this example 5X5:
L 1 2 3 4 5
1 0 0 0 0 0
2 0 0 0 0 0
3 0 0 0 0 0
4 0 0 0 0 0
5 0 0 0 0 0
so that it looks like this:
L 1 2 3 4 5
1 0 0 5 0 2
2 0 0 0 0 0
3 1 0 9 0 3
4 0 0 0 0 0
5 2 0 2 0 0
Any ideas on how I could use JMP scripting to get it to where I want it? Thanks.