Path: news.mathworks.com!not-for-mail
From: "Miroslav Balda" <miroslav.nospam@balda.cz>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problem while solving sinusodial equations
Date: Sun, 31 May 2009 20:57:01 +0000 (UTC)
Organization: Miroslav Balda
Lines: 15
Message-ID: <gvuqut$gu1$1@fred.mathworks.com>
References: <gvr821$7hg$1@fred.mathworks.com>
Reply-To: "Miroslav Balda" <miroslav.nospam@balda.cz>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1243803421 17345 172.30.248.35 (31 May 2009 20:57:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 31 May 2009 20:57:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 360709
Xref: news.mathworks.com comp.soft-sys.matlab:543833


"Michael " <thebadphantom@gmx.de> wrote in message 

SNIP

> Is there any function that can help me to calcultate the variables that all equations become close to zero. fsolve-function refused to work because of wrong input data type??

Hi Michael,

It is always difficult to solve set of nonlinear equations containing harmonic functions with unknowns in arguments. It is necessary that you have to have rather good estimate of the solution to get a chance of convergence of iterations. One way, how to overcome this difficulty is to solve many trial runs in which you choose such unknowns as random numbers from a known interval, and finaly to select the solution with minimum sum of squares of equation residuals.

I would use my function LMFnlsq from FEX Id. 17534, which is rather stable, however, it is impossible to guarantee the successful solution.

Good luck

Mira