Path: news.mathworks.com!not-for-mail
From: "Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: string 2 number
Date: Thu, 1 Apr 2010 13:38:07 +0000 (UTC)
Organization: Universit&#228;t Heidelberg
Lines: 15
Message-ID: <hp27jv$p2p$1@fred.mathworks.com>
References: <hp12km$ojf$1@fred.mathworks.com>
Reply-To: "Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1270129087 25689 172.30.248.38 (1 Apr 2010 13:38:07 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 1 Apr 2010 13:38:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869888
Xref: news.mathworks.com comp.soft-sys.matlab:622599

Dear Ender!

> The problem is even though I input the value of the variables, MATLAb does not calculate the equations instead the program just stores the matrix with my equations with the variables inside instead. Here is my code:
> 
> % Initial approximation
> XO = [0.1;0.1;-0.1];
> 
>  % First equation
>                 f1 = 3*x_1-cos(x_2*x_3)-1/2;

It is unclear to me, what this could mean: "MATLAb does not calculate the equations instead the program just stores the matrix with my equations".

Did you define "x_1" , "x_2" and "x_3" anywhere?

Kind regards, Jan