afniuser2014 Wrote:
-------------------------------------------------------
> Thank you Nick, it worked for me.
Good, happy to hear that.
> However I had to perform some small modifications,
> I think there was a small error with the counting
> in the node_indices variable.
Could you please explain why these modifications where necessary? Without the modifications, what went wrong?
I'm asking because the code I suggested was intended to be able to deal with cases of unsorted node indices (your suggested code seems unable to do so).
Thanks!