在应用程序设计器(MATLAB)中,我有两个要显示在彼此之上的图表。这就是我所做的:
plot(app.UIAxes,(1:length(app.var.OEch))/app.var.OE_Fs,app.var.OEch,'Color',[0,0.7,0.9])
st=app.var.st;
hold on
for ss = 1:length(st)
plot(app.UIAxes,[st(ss);st(ss)],[50;250], 'r');
end
hold off
如果我要摆脱 for 循环中的 app.UIAxes,它会工作并分别绘制两个图,但我希望它能够在 UIAxes 上绘制它。目前,我只看到一个白屏,如果我要运行它,我的绘图应该是。