matlab程序问题,那位帮着说说是什么意思,希望逐句注释

问题描述:

matlab程序问题,那位帮着说说是什么意思,希望逐句注释
if(options.verbose)
figure,
for i=1:6
xtest = ShapeData.x_mean + ShapeData.Evectors(:,i)*sqrt(ShapeData.Evalues(i))*3;
subplot(2,3,i),hold on;%?
plot(xtest(end/2+1:end),xtest(1:end/2),'r');
plot(ShapeData.x_mean(end/2+1:end),ShapeData.x_mean(1:end/2),'b');
end
end
1个回答 分类:综合 2014-12-16

问题解答:

我来补答
if(options.verbose)%判断options.verbose是不是0
figure,%建立一个figure图
for i=1:6 %循环
xtest = ShapeData.x_mean + ShapeData.Evectors(:,i)*sqrt(ShapeData.Evalues(i))*3;%数学运算
subplot(2,3,i), hold on;%?%建立一个2行3列的sub子图
plot(xtest(end/2+1:end),xtest(1:end/2),'r');%在子图上画图
plot(ShapeData.x_mean(end/2+1:end),ShapeData.x_mean(1:end/2),'b');%在同一个子图上画另一个图.
end%循环结束
end
 
 
展开全文阅读
剩余:2000