simulate diffusion in 3D
古いコメントを表示
I want to simulate diffusion in 3D.
In 2D, diffusion in time is related to repeatedly blurring an image, I, using a Gaussian kernel, G:
I = zeros(100,100);
I(50,50) = 10;
G = fspecial('gaussian', [5 5], 1.0);
for t = 1 : 10
I = imfilter(I, G, 'same', 'conv');
figure(1);
mesh(I);
end
Now I want to do this in 3D, but instead of specifying a kernel size (e.g., [5 5 5]) and sigma (e.g., 1.0), I want to specify a time parameter (e.g., tau = t * 1e-3 [sec]) and a diffusion coefficient (e.g., 1e-1 [cm^2/sec]).
I would appreciate any suggestions. Thanks.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!