smith_chart - function figNumber=smith_chart(option) %...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: function figNumber=smith_chart(option) % Usage: smith(option) % % Purpose: creates Smith chart display % % Parameters: % option = 0 <-- Z-Smith Chart is created (black color, solid line) % option = 1 <-- Y-Smith Chart is created (black color, solid line) % option = 2 <-- ZY-Smith Chart is created (black color, % Z-Chart- solid line, Y-Chart - dashed line) figNumber=figure; % define X and R circles X=[0.2 0.5 1 2 5]; R=[0.2 0.5 1 2 5]; % we want to plot smooth cirlces with 101 points alpha=2*pi*(0:0.01:1); % if no arguments are not specified we assume Z-chart if nargin<1 option=0; end; % draw a white circle chart_color=[0.5 0.5 0.5]; patch(cos(alpha),sin(alpha),'-','edgecolor',chart_color,'facecolor',get(gca,'col or')); hold on; plot([-1 1],[0 0],'color',chart_color); for rr=R xc=rr/(1+rr); % x position of the center rd=1/(1+rr); % radius of the circle % plot circles if (option==0 | option==2) plot(xc+rd*cos(alpha),rd*sin(alpha),'-','color',chart_color); end; if option==1 plot(-xc-rd*cos(alpha),rd*sin(alpha),'-','color',chart_color);...
View Full Document

This note was uploaded on 02/06/2012 for the course EE 2120 taught by Professor Aravena during the Fall '08 term at LSU.

Page1 / 2

smith_chart - function figNumber=smith_chart(option) %...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online