what is wrong with my code?
古いコメントを表示
t=86400;
v=10.^-5;
D=10.^-7;
x=0:0.01:2;
%Calcuate the concentration in ( mol/l)
conc=(1./sqrt(4*pi*D*t)*exp.(-1*((x-v*t).^2./4*D)));
採用された回答
その他の回答 (1 件)
Don't need a dot in exp()
conc=(1./sqrt(4*pi*D*t)*exp(-1*((x-v*t).^2./4*D)));
This is no comment on the correctness of any math, though.
カテゴリ
ヘルプ センター および File Exchange で MATLAB Parallel Server についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!