Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!o61g2000hsh.googlegroups.com!not-for-mail
From:  Screwdriver223 <david.kolin@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Option Pricing?
Date: Tue, 07 Aug 2007 22:11:02 -0000
Organization: http://groups.google.com
Lines: 24
Message-ID: <1186524662.460907.176710@o61g2000hsh.googlegroups.com>
References: <f9aa45$dka$1@fred.mathworks.com>
NNTP-Posting-Host: 132.206.175.182
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1186524662 7768 127.0.0.1 (7 Aug 2007 22:11:02 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 7 Aug 2007 22:11:02 +0000 (UTC)
In-Reply-To: <f9ae7k$r18$1@fred.mathworks.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: o61g2000hsh.googlegroups.com; posting-host=132.206.175.182;
Xref: news.mathworks.com comp.soft-sys.matlab:422842



> > > By using the function below in ML, you get both the call
> > > and put prices.
> > > [CallPrice, PutPrice] = blsprice(Price, Strike, Rate,
> > > Time, Volatility, DividendRate)
> > > Is there anyway to get the put prices only?
ONE SOLUTION>
> > [PutPrice, PutPrice] = blsprice(Price, Strike, Rate,
> > Time, Volatility, DividendRate)
On Aug 7, 2:38 pm, "stephen " <huan...@nationwide.com> wrote:
> Thanks for your response.
>
> What if I want to assign the put price to a variable, i.e.
> b=Putprice...?

Maybe I don't understand what you're asking for, but what about:
[b, b] = blsprice(Price, Strike, Rate, ...
Time, Volatility, DividendRate)

OR

[PutPrice, PutPrice] = blsprice(Price, Strike, Rate, ...
Time, Volatility, DividendRate)
b=PutPrice;