Automatic generation joint number and path. Update position mat folder