请查看从Gnuplot创建的附图.我面临着两个问题.
1)密钥框左侧的空白空格(图例框).有没有办法删除多余的空白空间?我既不想丢失钥匙箱,也不想在使用的希腊字母上妥协.另请注意,最终输出格式必须为eps.
2)y轴和y标签之间也有太多空间.如何优化呢?请帮忙.
指数函数与正弦函数卷积的理论结果如下所示。
这两个图看起来很相似,但它们并不相同,请参见比例尺。matlab 良率是理论结果的十倍。为什么?
matlab 代码在这里。
clc;
clear all;
close all;
t = 0:0.1:50;
x1 = exp(-t);
x2 = sin(t);
x = conv(x1,x2);
x_theory = 0.5.*(exp(-t) + sin(t) - cos(t));
figure(1)
subplot(313), plot(t, x(1:length(t))); subplot(311), plot(t, x1(1:length(t))); subplot(312), plot(t, x2(1:length(t)))
figure(2)
subplot(313), plot(t, x_theory); subplot(311), plot(t, x1(1:length(t))); subplot(312), plot(t, x2(1:length(t)))
Run Code Online (Sandbox Code Playgroud)