Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#4 |
高级会员
注册日期: 2008-01-02
帖子: 247
声望力: 22 ![]() |
![]()
function yourplot(x,y)
% x,y 为维数相同向量. n=length(x); axis([min(x) max(x) min(y)+0.3 max(y)+0.3]) %隐藏纵坐标为0的点. %axis equal hold on for i=1:n if y(i)==0 plot(x(i),y(i),'w.') %不画出纵坐标为0的点的表示法. else plot(x(i),y(i),'r*','markersize',6) end end hold off 此帖于 2009-04-28 15:37 被 mathjiang 编辑。 |
![]() |
![]() |