0

正如标题已经暗示的那样,我想将具有不同景观和形状参数的不同颜色的几个伽马分布绘制到一个图上,并将该图另存为 pdf。

我已经尝试了一些东西,但我是 MATLAB 的新手,没有什么能真正奏效..

谢谢你

4

1 回答 1

0

试试这个:

figure(1)
hold all
grid on
% For the case of 3 curves:
plot(x1,gamma(x1),x2,gamma(x2),x3,gamma(x3))
xlabel('X Variable [Unit]')
ylabel('Gamma Function [-]')
title('Gamma Function of the three variables x1, x2, x3')
legend('First','Second','Third','location','best')
saveas(figure(1), 'nameofpicture.pdf');

希望它工作正常,我是一个 Matlab 用户,直到很长时间,这是一个很好的解决方案 :-)

再见

MLC

于 2013-08-21T06:06:57.470 回答