matlab plot问题
本帖最后由 南北左右 于 2011-11-7 21:56 编辑http://forum.simwe.com/data/attachment/album/201111/07/2156198di8452p4b0t813z.png请问下,这个图中,想去掉连接绿点之间的红线,这些个点是独立的,不需要连接~~~~ 要怎么改程序
figure
x =;
y=m(1:6);
errorbar(x,y,sy(1:6),'*r');
hold on
plot(x,y,'-mo',...
'LineWidth',1,...
'MarkerEdgeColor','k',...
'MarkerFaceColor',[.19 1 .23],...
'MarkerSize',5);
hold on
z=polyfit(x,y,1);
xi=0:2:30;
yi=polyval(z,xi);
hold on
plot(xi,yi,'linewidth',2,'markersize',8)
sprintf('linear fit?I0/I=(%0.5g)*DO+(%0.5g)',z(1),z(2))
axis()
xlabel('DO%');ylabel('I0/I');
图片 '-mo'改成'mo' nwcwww 发表于 2011-11-7 23:32 static/image/common/back.gif
'-mo'改成'mo'
:)成功了,非常感谢~~
页:
[1]