Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe20.iad.POSTED!7564ea0f!not-for-mail
From: "Nasser M. Abbasi" <nma@12000.org>
Newsgroups: comp.soft-sys.matlab
References: <hbcotn$e16$1@fred.mathworks.com>
Subject: Re: Ezplot constants?
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3598
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
X-RFC2646: Format=Flowed; Original
X-EsetId: 321EA926BF2033386458
X-EsetScannerBuild: 5843
Message-ID: <BioCm.23531$cL1.21749@newsfe20.iad>
NNTP-Posting-Host: ncdeodfefpjopplmihjclpliaacepnnh
X-Complaints-To: abuse@charter.net
X-Trace: bagdcaddeagjpadoadefjppgkgeilljagcgcckdmhdahnienncdeodfefpjopplmmgdmmdanmgdmojgmgcopjadkaakekfehoeggmpchongebilpgkcnfnmpheoljofnofbanfllipfpcbfd
NNTP-Posting-Date: Sat, 17 Oct 2009 18:46:57 UTC
Date: Sat, 17 Oct 2009 13:47:03 -0500
Xref: news.mathworks.com comp.soft-sys.matlab:578083



"David Doria" <daviddoria@gmail.com> wrote in message 
news:hbcotn$e16$1@fred.mathworks.com...
>I want to plot some quadratic functions with varying coefficients, for 
>example:
>
> syms x
> syms y
> ezplot('2*x^2 + 3*y^2 = 1')
>
> but I want to iterate/vary the '2' and '3' in that expression, something 
> like
> a = 2
> b = 3
> ezplot('a*x^2 + b*y^2 = 1')
>
> but of course a and b aren't recognized inside the ' ' .
>
> How should I do this?
>
> Thanks,
>
> Dave

a = 10
b = 11
ezplot(subs('a*x^2 + b*y^2 = 1'))

--Nasser