来自“ fit”的方程式的拉普拉斯变换

问题描述 投票:1回答:1

这是我自己先前对一个问题的跟进:Laplace transform of numerical data in MATLAB


我已经实验性地收集了数据,并希望对此进行Laplace转换。但是,laplace()需要模型/方程式。我从以下位置找到拟合方程来对数据建模:

[up,lo] = envelope(dat);

x = 1:length(up);
x = x';

f = fit(x,up,'poly3');

然后是我的Laplace转换,我需要传递]的输出>

f = fit(x,up,'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的拉普拉斯变换?

[这是我自己先前的一个问题的后续文章:MATLAB中数值数据的拉普拉斯变换我已经实验性地收集了数据,并希望对此进行拉普拉斯变换。但是,...

matlab symbolic-math
1个回答
4
投票

我不熟悉fit的输出,但是您的符号变量至少应为x,因为这是您的因变量。然后,您可以自己建立f

© www.soinside.com 2019 - 2024. All rights reserved.