Path: news.mathworks.com!not-for-mail
From: "Ulrik Nash" <uwn@sam.sdu.dk>
Newsgroups: comp.soft-sys.matlab
Subject: How do I reduce this to one line from two lines?
Date: Thu, 15 Jul 2010 10:47:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <i1mov9$m1f$1@fred.mathworks.com>
Reply-To: "Ulrik Nash" <uwn@sam.sdu.dk>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1279190825 22575 172.30.248.35 (15 Jul 2010 10:47:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 15 Jul 2010 10:47:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2106050
Xref: news.mathworks.com comp.soft-sys.matlab:653310

Hi Everyone,

I it possible to reduce the following to a single line?

A = max([firm_profit(:,t),firm_price(:,t)])
B = A(1,1)

Kind regards,

Ulrik.