Plotting an infinite integral

조회 수: 4 (최근 30일)
dustin
dustin 2013년 10월 16일
How do I plot an infinite integral? I am trying to plot a solution to Laplaces equation where -inf < x < inf.
What I have tried is:
f = 100;
b = 50;
x = linspace(-100, 100, .1);
y = linspace(0, b, .01);
k = (0:.1:100);
kk = (-100:.2:100);
[K, KK] = meshgrid(k, kk);
T = zeros(length(x), length(y));
T = T + trapz(K, trapz(KK, sinh(K.*(b - y))./sinh(K.*b)*f.*...
cos(K.*(KK - x))/pi));
imagesc(x, y, flipud(T))

답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by