matlab 合并绘图,如何加图例? 作者: 瞿立建 时间: 2018年07月16日 访问: 1,280 次 分类: 教学笔记 用语句 legend('-DynamicLegend') 和 hold all ,请看下面的例子: 12345x=0:.01:10;plot(x, sin(x), 'DisplayName','sin');legend('-DynamicLegend');hold all; % add new plot lines on top of previous ones plot(x, cos(x), 'DisplayName','cos'); 标签: matlab