How to solve this equation for Laplace transform with matlab?
Mostrar comentarios más antiguos

10 comentarios
darova
el 21 de Feb. de 2020
What do you mean by 'solving'? Is it a surface? What are those equations?
soe min aung
el 25 de Feb. de 2020
darova
el 25 de Feb. de 2020
Did you try to build those surface/equations? Can you show your attempts?
Where is the problem?
soe min aung
el 26 de Feb. de 2020
Walter Roberson
el 26 de Feb. de 2020
Since you are using the symbolic toolbox anyhow, use piecewise() to define your equation. Then when you have it in piecewise form, ude rewrite() specifying the 'Heaviside' option. With the equation in heaviside form, the symbolic toolbox laplace transform functions can create appropriate expressions.
soe min aung
el 26 de Feb. de 2020
Walter Roberson
el 26 de Feb. de 2020
Editada: Walter Roberson
el 26 de Feb. de 2020
syms eta0 L v t x y k k1 k2 s h w
T1 = (eta0*v*t)/(2*L)*(1-cos(pi/50*x)).*(1-cos(pi/100*(y+150))) ;
T2 = (eta0*v*t)/L*(1-cos(pi/50*x)) ;
T3 = (eta0*v*t)/(2*L)*(1-cos(pi/50*x)).*(1-cos(pi/100*(y-150))) ;
R = @(V,L,H,X)heaviside(V-L)*heaviside(H-V)*X
T = simplify( R(x,0,100,R(y,-150,-50,T1) + R(y,-50,50,T2) + R(y,50,150,T3)) )
Now you can do laplace() on T. However, when you do so, you need to specify which variable you are transforming with respect to. Likewise when you fourier, make sure you do so with respect to the correct variable.
Also, you need to carefully examine what happens at the exact boundaries.
soe min aung
el 27 de Feb. de 2020
Walter Roberson
el 28 de Feb. de 2020
Your zeta is a symbolic expression in k and y according to symvar(), but it also contains k2 inside fourier() calls.
Perhaps you should do
kvals = 0:100;
yvals = linspace(-200,200,101);
[K,Y] = meshgrid(kvals, yvals);
Zsym = subs(zeta, {k, y}, {K, Y});
Z = double(Zsym);
surf(K,Y,Z)
However in practice this does not work: after the substitution, double() is not able to resolve some of the values to numeric. I discovered that some of them can be converted to a better form by using simplify(Zsym), but that is slow.
soe min aung
el 2 de Mzo. de 2020
Respuestas (0)
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
