Hi all,
I am quite confused. I have a function say like this:
function [output] = TLU( inputs, weights, threshold )activationMagnitude = sum(weights.*inputs)if activationMagnitude > thresholdoutput = true;elseoutput = false;end
But when I use class(ans) it always shows a char data type – despite me specifying the output as either true or false!
Why is this?
Best regards,
Craig
Best Answer