Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: FindRoot
Date: Sat, 13 Nov 2010 20:02:03 +0000 (UTC)
Organization: Idaho National Laboratory
Lines: 8
Message-ID: <ibmqrr$h1l$1@fred.mathworks.com>
References: <ibmmbh$oag$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1289678523 17461 172.30.248.38 (13 Nov 2010 20:02:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 13 Nov 2010 20:02:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:686558

For example:

>> d = .3;
>> nucarea = 2;
>> rt = fzero(@(x) areaexpression(d,x) - nucarea,3.2)

Also, you will need to vectorize the expression in your function:
nucleararea = 0.5*(d*sqrt(-d.^2 + 4*R.^2) + 4*R.^2.*acsc((2*R)./d));