这是我之前对上一个问题的跟踪:Laplace transform of numerical data in MATLAB
我已经实验性地收集了数据,并希望对此进行拉普拉斯变换。但是,laplace()
需要模型/方程式。我找到了一个拟合方程来对以下数据进行建模:
[up,lo] = envelope(dat);
x = 1:length(up);
x = x';
f = fit(x,up,'poly3');
然后对于我的Laplace转换,我需要传递
的输出f = fit(x,'poly3');
进入
syms f
laplace(f)
但是此刻,它吐出了f
的变换:
laplace(f)
ans =
1/s^2
如果这是f
f =
Linear model Poly3:
f(x) = p1*x^3 + p2*x^2 + p3*x + p4
Coefficients (with 95% confidence bounds):
p1 = 1.772e-12 (1.593e-12,1.951e-12)
p2 = -2.211e-08 (-2.483e-08,-1.939e-08)
p3 = 2.847e-05 (1.676e-05,4.017e-05)
p4 = 0.2762 (0.2627,0.2897)
如何找到f
的Laplace变换?