我的matlab2015a输入如下代码:plot((1:10).^2)xlabel('Population')提示错误:Index exceeds matrix dimensions.
matlab提示Index exceeds matrix dimensions.的意思是索引超过矩阵的尺寸。出现这个提示,我觉得可能是电脑内存配置偏低。
在matlab2016a上可以运行给出的代码。运行结果如下