Hello colleague, just for clarification; you write
> I would basically like to reproduce the matlab "patch" command,
>
Do you mean, you want to* write code *to reproduce the matlab patch command
or do you mean you want to *use code* to reproduce the matlab patch command?
Wishing a happy day,
Andreas
