help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble with fsolve


From: Adam C Powell IV
Subject: Trouble with fsolve
Date: Tue, 18 Oct 2005 11:06:57 -0400

Greetings,

I'm trying to solve a system with a function of more than one parameter:

[x,fval] = fsolve(@hello_calc,x_guess,options,z3,Param);

where hello_calc is declared later in the same file:

function [fval]=hello_calc(x,z3,Param)

This works just fine in MATLAB, but in octave I get:

error: evaluating for command near line 40, column 1
error: called from `hello' in file `hello.m'

Can octave fsolve not deal with functions of more than one parameter?
That seems to be suggested by the "man page" for fsolve which comes up
after the error is displayed...

Thanks,
-Adam
-- 
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Welcome to the best software in the world today cafe!
http://www.take6.com/albums/greatesthits.html



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]