Octave help: solving equations

1. Feb 14, 2008

ayu

Hello,

First, if somebody can point out a better forum to seek answers concerning the usage of the program Octave, please let me know! :)

Okay, so I'm trying to solve a relatively simple equation (numerically), foo = ln(4*z)/z, with the foo range known. As far as I know, the only way is to use fsolve? So I try,

foo = [0:.001:.05];
for i=1:length(foo);
z(i) = fsolve("log(4*x)/x-foo(i)", 1);
end;

and get back an error that fsolve does not know what foo is. Is fsolve the right way to get values for z given foo in the equation above? Does anybody know how to do this?

Thank you very much,
Ayu