End-to-End distance

Dear All,

I’m now conducting MD to simulate the coarse grain model.
I’m wondering whether there is a compute command to compute the end-to-end distance ?
Thank you very much,

Compute gyration is similar. It could likely be modified
to do what you want, assuming you have some definition of