How can I solve an equation such as
(1/5)^x - 4x = 0
using Matlab?
How can I solve an equation such as
(1/5)^x - 4x = 0
using Matlab?
That's not an equation, it's just an expression. Did you mean this?
(1/5)^x - 4x = 0
Alternatively you can use MATLAB's gatool if your equation is complex.
function [F]=fitness_A(x)
F = abs((1/5).^x - 4.*x);
end
Full size: http://img534.imageshack.us/img534/4428/gatool2.png (showing another fitness function).