% Unit 2 (MATLAB Course @ UAM)
% (c) Alexander Knebe

function [y] = log3(x)
% calculate log3(x)
y=log(x)./log(3);
end

% alternatively define log3() as anonymous function on the command line:
% log3 = @(x)(log(x)./log(3));