Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Matlab help - plotting in polar coordinates

Status
Not open for further replies.

StoppTidigare

Full Member level 2
Joined
Jul 16, 2002
Messages
145
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,296
Location
Northern earth
Activity points
1,698
Matlab help

Hi all, could somebody explain to what this
z = (r/(r+1) + 1/(r+1)*exp(j*theta));
comes from in the matlab-function below?

I know that constant r-circles are given by the eqn:
(U-r/(r-1))^2 +V^2=(1/(r+1))^2
and the constant x-circles is givne by
(U-1)^2 +(V-1/x)^2=(1/x)^2
Do you remember it from basic Smithchart theory ?

function [h] = smircirc(r)
%SMIRCIRC Draw impedance circle in the Smith chart. This function
%written by Soeren Laursen (slau93@control.auc.dk).
% [H] = SMIRCIRC(R) draws a circle with r = R and returns
% a handle to the circle in H.

global SMITH_CHART_UNDO
theta=linspace(-pi, pi, 63);
z = (r/(r+1) + 1/(r+1)*exp(j*theta));
if nargout > 0
h = plot(z);
SMITH_CHART_UNDO = [SMITH_CHART_UNDO h];
else
SMITH_CHART_UNDO = [SMITH_CHART_UNDO plot(z)];
end

What does he mean with impedance circle ? There's no such!
/StoppTidigare
 

flatulent

Advanced Member level 5
Joined
Jul 19, 2002
Messages
4,629
Helped
489
Reputation
980
Reaction score
150
Trophy points
1,343
Location
Middle Earth
Activity points
46,689
improper term

It should say that it draws the circles of constant real part of impedances (resistance)

I downloaded the complete program and played with it. The argument of smircirc (x) is the intersection of the left end of the circle with the horizontan axis through the center of the chart.
 

serenade

Newbie level 6
Joined
Dec 1, 2002
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
77
The constant impedance(r) circle is represented by the equation:
(U-r/(r+1))^2+V^2=(1/(r+1))^2,
It is a circle centered at the coordinates (r/(r+1),0) and having a radius
1/(r+1). So in a polar plot, it can be represented by
r/(r+1)+1/(r+1)*exp(j*theta).

the equation you refered: (U-r/(r-1))^2+V^2=(1/(r+1))^2) is not for the constant impedence circle.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top