如何在matlab中将两个数字合二为一?

时间:2016-08-14 06:28:34

标签: matlab normal-distribution figures

所以我构建了两个正态分布..我想将两者合并为一个图像,两个图像部分重叠,看起来像这样: two plots http://www.uark.edu/misc/lampinen/tutorials/image8BK.JPG

有没有办法在matlab中做到这一点?

1 个答案:

答案 0 :(得分:0)

在不同图表之间使用hold on keyword。 例如:

   plot(x,'r');

   hold on;

   plot(y,'b');

它会在同一图表上以红色和蓝色绘制xy