Skip to content
Prev 315958 / 398513 Next

setting off-diagonals to zero

On 23-01-2013, at 16:13, emorway <emorway at usgs.gov> wrote:

            
Because -SEQ in the last expression is not referencing the correct  elements.
The first element of (731:1009) has index 1 and not 731.
So as far as I can see  the last expression should be something like

MAT[(731:1095)[-(-730+SEQ)], i + 365] <- 0

Berend