MATLAB程序看不懂[dx dy] = meshgrid(-r:r);h = exp(- (dx.^2 + dy.^2) / (2 * sigma_s^2));xp = padarray(x,[r r],’symmetric’);yp = padarray(y,[r r],’symmetric’);xt = zeros(size(x));parfor p = 1:numel(x),[i j] = ind2sub(size(x),p);求上面程
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 18:32:16
MATLAB程序看不懂[dx dy] = meshgrid(-r:r);h = exp(- (dx.^2 + dy.^2) / (2 * sigma_s^2));xp = padarray(x,[r r],’symmetric’);yp = padarray(y,[r r],’symmetric’);xt = zeros(size(x));parfor p = 1:numel(x),[i j] = ind2sub(size(x),p);求上面程
MATLAB程序看不懂
[dx dy] = meshgrid(-r:r);
h = exp(- (dx.^2 + dy.^2) / (2 * sigma_s^2));
xp = padarray(x,[r r],’symmetric’);
yp = padarray(y,[r r],’symmetric’);
xt = zeros(size(x));
parfor p = 1:numel(x),[i j] = ind2sub(size(x),p);
求上面程序每步的注解!
MATLAB程序看不懂[dx dy] = meshgrid(-r:r);h = exp(- (dx.^2 + dy.^2) / (2 * sigma_s^2));xp = padarray(x,[r r],’symmetric’);yp = padarray(y,[r r],’symmetric’);xt = zeros(size(x));parfor p = 1:numel(x),[i j] = ind2sub(size(x),p);求上面程
[dx dy] = meshgrid(-r:r); %生成网格点的dx,dy的坐标-r