作业帮 > 综合 > 作业

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

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/09 10:56:21
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
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