matlab 不显示特定legend2

来源:互联网 发布:360云盘mac版怎么用 编辑:程序博客网 时间:2024/05/29 12:43

a=findobj(gca, 'Type', 'patch');
              hasbehavior(a(1),'legend',false);
              hasbehavior(a(2),'legend',false);
              b=findobj(gca, 'Type', 'line');
               hasbehavior(b(1),'legend',false);

0 0