Some time ago, I wrote a short function that draws a very simple Smith
chart. You can find it under the URL
ftp://ftp.mathworks.com/pub/contrib/graphics/smith.m
Regards,
Frank
I haven't seen one as such; the "polar" plot should help you get there.
--
Lars Erup | ESTEC D/TEL/TST
mailto:la...@t.estec.esa.nl | P.O. Box 299
Web: http://www.esrin.esa.it | NL-2200 AG The Netherlands
"On a clear disk, you can seek forever"
Thanks,
-C
--
/>
/< Corbett Rowell
O[\\\\\\(O):::<===================================-
\< Hong Kong University of Science and Technology
\> ph...@ee.ust.hk
I have created some basic routines for this purpose. If you are interested, I
could mail them. If you need more sophiscated plotting routines than the ones
included I would be very interested to know - I would then implement these
in the package.
Here is something from the MathWorks ftp site:
(/pub/contrib/graphics/smith.m)
------
function smith
% SMITH Draws a Smith chart and sets hold to on so that you can plot the
% reflection coefficient on top of it.
% This is a quick little hack that draws a simple Smith chart, a diagram
% that is very frequently used in high frequency engineering. It maps
% the normalized impedance z to the reflection coefficient gamma:
% gamma = (z-1)/(z+1) with z = r+i*x .
% You can customize the function by specifying the r=const and x=const lines
% you want to draw at the beginning of the corresponding loops.
% 3-13-95 Frank Wiedmann wied...@com.enst.fr
plot([-1 1],[0 0],'w')
axis equal
axis off
hold on
tr = 2*pi*(0:.01:1);
for r = [0 .2 .5 1 2 5] % specify the r=const lines you want to draw
rr = 1/(r+1);
cr = 1-rr;
plot(cr+rr*cos(tr),rr*sin(tr),'w')
end
for x = [.2 .5 1 2 5] % specify the x=const lines you want to draw
rx = 1/x;
cx = rx;
tx = 2*atan(x)*(0:.01:1);
plot(1-rx*sin(tx),cx-rx*cos(tx),'w')
plot(1-rx*sin(tx),-cx+rx*cos(tx),'w')
end
+=== Tom Krauss ========================= kra...@mathworks.com ===+
| "Eschew obfuscation." |
| The MathWorks, Inc. in...@mathworks.com |
| 24 Prime Park Way http://www.mathworks.com |
| Natick, MA 01760-1500 ftp.mathworks.com |
+=== Tel: 508-653-1415 ==== Fax: 508-653-2997 ====================+