how to do discrete laplace transform (like fft) in matlab ?
40 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
To be more specific, suppose we have a function like f(t)=exp(-a*t) and we would like to transform this function to the 'a' domain (F(a)) by using some transform (just like we transform f(t)=exp(-i*w*t) from time domain to 'w'(frequency) domain). so i thought laplace transform would be useful then i read somewhere that discrete laplace transform is called z transform. but when i am applying it in matlab it is showing some error saying 'laplace/z-transform is not defined for the type double'. please help anyone. thanks in advance.
1 Commento
sarah gebai
il 27 Mar 2019
Modificato: sarah gebai
il 27 Mar 2019
w0=2*pi/Np;
X=zeros(size(x));
for n=0:Np-1
for k=0:Np-1
Xi=x(k+1)*exp(-1j*w0*n*k);
X(n+1,1)=X(n+1,1)+Xi;
end
end
plot(w,2*abs(X(1:length(w)))/Np,'g')
title('DFT freq');xlabel('w (rd/s)');ylabel('|X(jw)|')
Risposte (1)
Azzi Abdelmalek
il 12 Giu 2013
Modificato: Walter Roberson
il 17 Apr 2020
The z-transform is not the discrete Laplace transform, also the z transform of a discrete signal is a continuous function. The ztrans function of symbolic math toolbox calculate the symbolic z-transform of your signal.
3 Commenti
Azzi Abdelmalek
il 12 Giu 2013
Ok, I never heard about it, but looking in the internet I found an article about it. I think before doing this, you should, first, define what is the laplace transform of a discrete signal, and how are you going to use it.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!