figure,
subFig1=subplot(1,2,1)
surface(rawx,rawy,rawz) % 3D object
subFig2=subplot(1,2,2)
plot(x,z) %profile of the surface. 假设rawx,rawy,rawz为原始数据,x,y,z为测量数据。
在循环过程中,可以保持subFig1并将测量轮廓绘制在曲面顶部,同时,subFig2仍然可以在2D中显示轮廓,并在新的测量到来时刷新。
我想这可以通过不同的句柄来完成。然而,到目前为止,我找不到任何线索。请帮帮忙。
发布于 2011-12-08 15:53:34
子图中的轴与图中的轴的行为方式相同。调用的最后一个子图仍处于活动状态。
在您的情况下,解决方案是:
figure,
subFig1=subplot(1,2,1)
surface(rawx,rawy,rawz)
subFig2=subplot(1,2,2)
hold on
plot(x,z)
for ...
x= ... % your new value
z= ...
plot(x,z) % subplot 122 still active and still hold
endhttps://stackoverflow.com/questions/8425822
复制相似问题