Give me feedback

Functions in MatLab

%% im trying to get this function to work with matrices.

function values = log_values(r, x0, k, n) x=x0; history = []; for ii = 1:n x=r.*x.*(1-x); history(ii) = x; end values = history(n-k+1 : n);

Reactions 0 reactions

No reactions yet, be the first: comment or tweak the code

Comment on this code:

Please Login or Register to leave a comment.