Create torusaffinity.m