```Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to plot the ratio of two variables in single axis?
Date: Fri, 25 Jun 2010 21:48:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <i0386l\$f2k\$1@fred.mathworks.com>
References: <1618512900.5126.1277497562574.JavaMail.root@gallium.mathforum.org>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1277502485 15444 172.30.248.37 (25 Jun 2010 21:48:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 25 Jun 2010 21:48:05 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:648130

Dinesh Kumar Kala Sekar <contactdineshraji@gmail.com> wrote in message <1618512900.5126.1277497562574.JavaMail.root@gallium.mathforum.org>...
> Hi all, can anybody help me how to plot a 3d surface graph in which x axis for frequency range, y axis for ratio of two variables say Ri/Re and z axis plotted according to the formula
>
> omega=2*pi*f;
> r = 1./(1i.*omega.*c);
> z =abs(1/(1/Re + 1/( r + Ri)));
>
> here variable c is constant say 10.
> the problem is Re and Ri should not be declared as whole  value to calculate ratio between them. instead as,
>
> if Ri = Re then value of Ri/Re is 1 this value should be at the mid point of y axis.
>
> if Ri > Re then value of Ri/Re is greater than 1 this value should be at the right side from the mid point of y axis up-to certain range say, till Ri/Re = 10.
>
> if Ri < Re then value of Ri/Re is less than 1 this value should be at the left side from the mid point of y axis up-to certain range say, till Ri/Re = 0.1.
>