Professional Documents
Culture Documents
Assignment PDE
Assignment PDE
𝒙
Use 𝒖(𝒙, 𝒕) = 𝒇(𝜼), 𝜼 = , find the solution of
√𝟒𝒌𝒕
function F = calculateFourierSineTransform(f, x)
% Calculate the Fourier Sine Transform
N = length(x);
F = zeros(size(x));
for n = 1:N
F(n) = integral(@(t) f(t).*sin(n.*t), 0, pi);
end
end