Path: news.mathworks.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!news.mathforum.org!not-for-mail
From: Matt <mcushi2@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matlab Problem!!!
Date: Wed, 03 Dec 2008 00:08:30 EST
Organization: The Math Forum
Lines: 12
Message-ID: <23500797.1228280941124.JavaMail.jakarta@nitrogen.mathforum.org>
References: <6200318.1228278241565.JavaMail.jakarta@nitrogen.mathforum.org>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1228280941 29495 144.118.30.135 (3 Dec 2008 05:09:01 GMT)
X-Complaints-To: news@news.mathforum.org
NNTP-Posting-Date: Wed, 3 Dec 2008 05:09:01 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:504588


I've tried many things.  I already have it saved as newton.m file.  And I'm trying multiple things in the M-File Configuration Box.  I've tried:

x = 1;
f = [@(x)x.^2, @(x)2*x];
newton(f, 0.2);

f = 'x^2';
newton(f, 0.2);

newton('x^2', 0.2);

And all of them give crazy errors :(