function [grid] = precompute_leadfield(cfg, data)

% PRECOMPUTE_LEADFIELD is deprecated, please use PREPARE_LEADFIELD

warning('PRECOMPUTE_LEADFIELD is deprecated, please use PREPARE_LEADFIELD');

if nargin==1
  [grid] = prepare_leadfield(cfg);
else
  [grid] = prepare_leadfield(cfg, data);
end
