how to preform Laplace transform?

for i=late+1:length(x)
delayed_signal(i) = x(i)+alpha*x(i-late);
end
app.y = delayed_signal;
app.x_n = x;
x_s = laplace(x);
y_s = laplace(delayed_signal);
h_s = x_s/y_s;
I am tring to Laplace tranform the variable 'x': a .wav folder, read through 'audioread
and 'y' the same file with an echo, and then divide them and put them in 'h_s', but I keep getting the following error at the line where I define 'y_s'
Undefined function 'laplace' for input arguments of type 'double'
can someone please explain what this line means and how to fix it? - TIA

Risposte (1)

Matt J
Matt J il 26 Apr 2021
Modificato: Matt J il 26 Apr 2021
The laplace() command only works on Symbolic Math Toolbox variables, e.g.,
syms y(t)
y=exp(-t).*heaviside(t);
Y=laplace( y )
Y = 

6 Commenti

Thank you for your reply - is there a way I can fix this and make it work in my scenario?
Matt J
Matt J il 26 Apr 2021
Modificato: Matt J il 26 Apr 2021
A Laplace transform in this scenario doesn't make a lot of sense to me. At what values of s would you want the Laplace transform evaluated?
I am trying to find the h(s) between the sound and its echo in laplace transform
x(t) * h(t) = y(t) <--using convolution
x(s) . h(s) = y(s)
and then use the inverse transform to find h(t), which is the other variavle in convolution. is this idea implementable in MATLAB?
Matt J
Matt J il 26 Apr 2021
Why with Laplace transforms? Why not with FFTs?
Matt J
Matt J il 26 Apr 2021
or deconv().
I am a bit of a beginner in using MATLAB, so I don't really know what FFT is but I will look it up

Accedi per commentare.

Prodotti

Release

R2021a

Richiesto:

il 26 Apr 2021

Commentato:

il 26 Apr 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by