Mathematical/Algebraic way to model an offset?

Manrique

New member
Joined
Feb 18, 2012
Messages
2
Hi, I am looking for a way to mathematically do an offset.

I want to go from a matrix that looks like this.

2
1
3




The numbers represent duration, so it can also look like this (I have the matrix in both notations, so the starting point can be either matrix)

11
1
111




And I want to offset the numbers in each row as follows (this represents a delay in the starting time)

1
2
1




So the end result should be a matrix that looks like this:

00110
00100
01110




It's fine to use expressions such as sum, as well as the use of max, min, round, etc.

No use of Ifs, For loops, etc.

Also, there would not be a problem in having to resize the matrix.

Is there a way to model this? I greatly appreciate your help. It's driving me crazy!
 
Top