你已经派生过 em3d-mt
镜像自地址
https://gitee.com/sduem/em3d-mt.git
已同步 2025-08-03 11:26:50 +08:00
6 行
199 B
Matlab
6 行
199 B
Matlab
|
|
function t=calculate_layers(n,t1,z)
|
|
%% calculate layer thicknesses given nlayers and top and bottom
|
|
exp_sum = @(x) ( x.^(n-1)-1)./(x-1)-z/t1;
|
|
f = fzero(exp_sum,[1.0001 2]);
|
|
t = t1*f.^(0:(n-2)); |