定义所需变量。define varieties and martixs