added solutions to function erecises

This commit is contained in:
2016-11-19 12:04:08 +01:00
parent 778fde35fa
commit 1e0320ff8e
27 changed files with 288 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
function y = boltzmann( x, k )
% computes the boltzmann function
% x: scalar or vector of x values
% k: slope parameter of boltzman function
% returns y-values of boltzmann function
y = 1./(1+exp(-k*x));
end

View File

@@ -0,0 +1,3 @@
p = boltzmann(voltage, a);
plot(voltage, p)
y = -1;