5 lines
198 B
Matlab
5 lines
198 B
Matlab
function y = exponential(parameter, x)
|
|
% Function implements an exponential function with two parameters
|
|
% controlling the amplitude and the time constant.
|
|
|
|
y = parameter(1) .* exp(x./parameter(2)); |