
New Member
Mathematical/Algebraic way to model an offset?
Hi, I am looking for a way to mathematically do an offset.
I want to go from a matrix that looks like this.
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)
And I want to offset the numbers in each row as follows (this represents a delay in the starting time)
So the end result should be a matrix that looks like this:
0 
0 
1 
1 
0 
0 
0 
1 
0 
0 
0 
1 
1 
1 
0 
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!
Posting Permissions
 You may not post new threads
 You may not post replies
 You may not post attachments
 You may not edit your posts

Forum Rules
Bookmarks