Path: news.mathworks.com!not-for-mail
From: "Dimitri Shvorob" <not.dimitri.shvorob@vanderbilt.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Cell mode: cell bound prompts figure output
Date: Sat, 13 Oct 2007 07:27:28 +0000 (UTC)
Organization: Vanderbilt University
Lines: 24
Message-ID: <feps10$kem$1@fred.mathworks.com>
Reply-To: "Dimitri Shvorob" <not.dimitri.shvorob@vanderbilt.edu>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1192260448 20950 172.30.248.37 (13 Oct 2007 07:27:28 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 13 Oct 2007 07:27:28 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 870050
Xref: news.mathworks.com comp.soft-sys.matlab:432742


Question 1. How many figures will show up in the HTML report
when the following code is executed in cell mode?

%%
figure
plot(OverallRisk,OverallReturn,'k'), hold on
plot(PortRisk,PortReturn,'LineWidth',3,'Color',[.8 .8 .8]),
hold on
%%
xlabel('Portfolio risk, \sigma_{p}')
ylabel('Portfolio return, r_{p}')
%%
xlim = [0 max(OverallRisk)];
ylim = [RisklessRate max(ExpReturn)];
axis([xlim ylim])
%%
set(gcf,'color','white')
title('Capital allocation line')

(Answer: 4)

Question 2: to Mathworks developers working on cell mode.

Is this a sensible behavior? :)