Compute distance of an atom from a specific point

Thanks for your propmpt response.

So, what do you suggest me if I want to track a specific atom in my system?

Best.

Thanks for your answer.
How can I specify which atom I would like to suppose in my atom style
variable?

you cannot. they apply to all atoms.

axel.

Thanks for your propmpt response.

So, what do you suggest me if I want to track a specific atom in my system?

use an equal style variable then. but most importantly, study the
documentation more carefully.

axel.

you can use particle index like for x coordinate x[i], for y y[i] where i is the particle index