本文介绍了MATLAB中数值数据的Laplace变换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试计算数据的拉普拉斯变换,就像对数据进行FFT一样.当我尝试

Trying to compute the Laplace transform of my data, like I would with the FFT of my data. When I try

laplace(data)

我得到了错误

Undefined function 'laplace' for input arguments of type 'double'.

但是无论我将数据"更改为什么,我都会遇到相同的错误.拉普拉斯行不通吗?

But whatever I change "data" to I get the same error. Does Laplace not work this way?

推荐答案

laplace() 符号函数.这意味着它将计算给定符号输入的拉普拉斯变换.我假设您的数据是数字而不是符号,因此会出现错误:laplace仅为符号定义,而不为'double'(即数值)定义.

laplace() is a symbolic function. Which means that it calculates a Laplace transformation fo a given, symbolic, input. I presume your data is numeric, and not symbolic, hence you get the error: laplace is only defined for symbolics, and not for 'double', i.e. numeric, values.

傅立叶变换的等效项也不是fft(),而是fourier().前者用于数字输入,后者用于符号输入. MATLAB当前没有用于数字Laplace变换的实现.

The Fourier transform equivalent is also not fft(), but rather fourier(). The former acts for numerical input, the latter for symbolic input. MATLAB currently has no implementation for a numerical Laplace transform.

这篇关于MATLAB中数值数据的Laplace变换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!