This repository has been archived on 2021-05-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
scientificComputing/regression/code/powerLaw.m
2020-12-20 23:16:56 +01:00

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