This repository has been archived on 2021-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
scientificComputing/regression/code/powerLaw.m

10 lines
248 B
Matlab

function y = powerLaw(x, p)
% Power law function y = c*x^alpha.
%
% Arguments: x, vector of the x-data values.
% p, vector with parameter values c and alpha
%
% Returns: y, vector of the computed y-data values.
y = p(1)*x.^p(2);
end