Path: news.mathworks.com!not-for-mail
From: "Thomas Clerc" <thomas.clerc@unifr.ch>
Newsgroups: comp.soft-sys.matlab
Subject: stem not connected with the axis
Date: Mon, 6 Aug 2007 13:35:14 +0000 (UTC)
Organization: Fribourg
Lines: 13
Message-ID: <f9782i$t6b$1@fred.mathworks.com>
Reply-To: "Thomas Clerc" <thomas.clerc@unifr.ch>
NNTP-Posting-Host: webapp-01-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186407314 29899 172.30.248.36 (6 Aug 2007 13:35:14 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 6 Aug 2007 13:35:14 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1074433
Xref: news.mathworks.com comp.soft-sys.matlab:422596



hi,

I want to produce a figure showing the function -(x-3)^2-20
with a line joining the optimum point M(3,-20) with the
frame of the plot. How can I say MatLab this?

x=-50:50; plot(x,-(x-3).^2-20 ); stem(-3,-20); ??


Thank you 

Thomas