I wrote this code in octave:
syms z;
f=z-2;
fsolve("f",0.)
Then this gives the error
@f: no function and no method found.
Also using fsolve(@f,0)
gives the same error
When I write code as:
syms z;
f=z-2;
fsolve(f,0.)
Then this gives the error
ind2sub: subscript indices must be either positive integers less than 2^31 or logicals.
Please explain to me how to actually use fsolve
.