因为楼主自己安装了计量工具箱和原有的冲突了,删除后恢复正常。这是网上查到的:I believe there is a conflict between the matlab standard function "lagmatrix" and the "lagmatrix that comes with the spatial econometrics package. I had the same problem - it does away if you delete the spatial econometrics package from the path file. Although this is not an ideal solution...