亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? smith.m

?? 用matlab編寫的smith圓圖軟件 解壓之后包括兩個文件 直接運行.m即可
?? M
?? 第 1 頁 / 共 3 頁
字號:
function varargout = Smith(varargin)
% SMITH M-file for Smith.fig
%      SMITH, by itself, creates a new SMITH or raises the existing
%      singleton*.
%
%      H = SMITH returns the handle to a new SMITH or the handle to
%      the existing singleton*.
%
%      SMITH('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in SMITH.M with the given input arguments.
%
%      SMITH('Property','Value',...) creates a new SMITH or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before Smith_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to Smith_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Copyright 2002-2003 The MathWorks, Inc.

% Edit the above text to modify the response to help Smith

% Last Modified by GUIDE v2.5 13-Mar-2006 16:18:19

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @Smith_OpeningFcn, ...
                   'gui_OutputFcn',  @Smith_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before Smith is made visible.
function Smith_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to Smith (see VARARGIN)
global h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 I X Y pic1 pic2 distance Z0 hv hi hvi him;
I=1;
h1=handles.real;
h2=handles.image;
h3=handles.absolute;
h4=handles.phase;
h5=handles.K;
h6=handles.p;
h7=handles.min_real;
h8=handles.max_real;
h9=handles.min_len;
h10=handles.max_len;
pic1=handles.Smith;
pic2=handles.wave;
set(handles.Dis_slider,'value',2);
distance=0;
hv=handles.V_amp;
hi=handles.I_amp;
hvi=handles.VI_amp;
him=handles.impedance;

set(gcf,'WindowButtonMotionFcn',@Mouse);
Draw_Background;
set(handles.Smith,'Color',get(handles.figure1,'color'));
set(handles.Smith,'XColor',get(handles.figure1,'color'));
set(handles.Smith,'YColor',get(handles.figure1,'color'));
subplot(pic2);
hold on;
t=0:0.01:2;
plot(t,sin(2*pi*t),'-');
hold on;

axes(pic2);
if strcmp(get(hObject,'Visible'),'off')
    Draw_Voltage_Amplitude(Mg, Ph);
end

% Choose default command line output for Smith
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);


% UIWAIT makes Smith wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = Smith_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;

% Draw a circle with the pole at (x0,y0) and a radius r
function Draw_Circle(x0,y0,r,color)
t=0:0.01:2*pi;
x=x0+cos(t)*r;
y=y0+sin(t)*r;
plot(x,y,'-','color',color,'HitTest','off');

% Draw an arch
function Draw_Arch(x0,y0,color)
if(x0 == 1)
    if y0>0
        a=2*atan(-(y0+1)/(y0-1));
        if a>0
            t1=a;
        else
            t1=2*pi+a;
        end
        t2=1.5*pi;
    else
        t1=0.5*pi;
        t2=pi-2*atan((y0+1)/(y0-1));
    end
        t=t1:0.01:t2;
        x=x0+cos(t)*abs(y0);
        y=y0+sin(t)*abs(y0);
        plot(x,y,'-','color',color,'HitTest','off');
elseif(x0 == -1)
    if y0>0
        a=2*atan(-(y0+1)/(y0-1));
        if a>0
            t1=a;
        else
            t1=2*pi+a;
        end
        t2=1.5*pi;
    else
        t1=0.5*pi;
        t2=pi-2*atan((y0+1)/(y0-1));
    end
        t=t1:0.01:t2;
        x=x0-cos(t)*abs(y0);
        y=y0+sin(t)*abs(y0);
        plot(x,y,'-','color',color,'HitTest','off');
end
    

function Draw_Background
global pic1;
subplot(pic1);
hold on;
plot([-1 1],[0 0],'-','color',[0.4 0.4 0.4],'HitTest','off');
hold on;

Draw_Circle(0,0,1,[0.4 0.4 0.4]);
hold on;

Draw_Circle(0.25/(0.25+1),0,1/(0.25+1),[0.4 0.4 0.4]);
hold on;
Draw_Circle(0.5/(0.5+1),0,1/(0.5+1),[0.4 0.4 0.4]);
hold on;
Draw_Circle(1/(1+1),0,1/(1+1),[0.4 0.4 0.4]);
hold on;
Draw_Circle(2/(2+1),0,1/(2+1),[0.4 0.4 0.4]);
hold on;

Draw_Circle(-0.25/(0.25+1),0,1/(0.25+1),[0.7 0.7 0.7]);
hold on;
Draw_Circle(-0.5/(0.5+1),0,1/(0.5+1),[0.7 0.7 0.7]);
hold on;
Draw_Circle(-1/(1+1),0,1/(1+1),[0.7 0.7 0.7]);
hold on;
Draw_Circle(-2/(2+1),0,1/(2+1),[0.7 0.7 0.7]);
hold on;

Draw_Arch(1,1/0.5,[0.4 0.4 0.4]);
hold on;
Draw_Arch(1,1/1,[0.4 0.4 0.4]);
hold on;
Draw_Arch(1,1/2,[0.4 0.4 0.4]);
hold on;
Draw_Arch(1,1/4,[0.4 0.4 0.4]);
hold on;

Draw_Arch(1,-2,[0.4 0.4 0.4]);
hold on;
Draw_Arch(1,-1/1,[0.4 0.4 0.4]);
hold on;
Draw_Arch(1,-1/2,[0.4 0.4 0.4]);
hold on;
Draw_Arch(1,-1/4,[0.4 0.4 0.4]);
hold on;

Draw_Arch(-1,1/0.5,[0.7 0.7 0.7]);
hold on;
Draw_Arch(-1,1/1,[0.7 0.7 0.7]);
hold on;
Draw_Arch(-1,1/2,[0.7 0.7 0.7]);
hold on;
Draw_Arch(-1,1/4,[0.7 0.7 0.7]);
hold on;

Draw_Arch(-1,-2,[0.7 0.7 0.7]);
hold on;
Draw_Arch(-1,-1/1,[0.7 0.7 0.7]);
hold on;
Draw_Arch(-1,-1/2,[0.7 0.7 0.7]);
hold on;
Draw_Arch(-1,-1/4,[0.7 0.7 0.7]);
hold on;

X=[0.5 1 2 5];
R=[0.25 0.5 1 2];
Text_Color=[0.5 0 0];
for rr=R
   xc=rr/(1+rr); % x position of the center
   rd=1/(1+rr);    % radius of the circle
   text(xc-rd,0,num2str(rr,'%.2f'), ...
      'horizontalalignment','left','VerticalAlignment','bottom',...
      'color',Text_Color,'Rotation',90,'HitTest','off');
end;   
for xx=X
   alpha_xx= 2*atan(1/xx);
   text(1.1*cos(alpha_xx),1.1*sin(alpha_xx),num2str(xx,'+%.1f'), ...
      'horizontalalignment','center','VerticalAlignment','middle',...
      'color',Text_Color,'HitTest','off');
   text(1.1*cos(alpha_xx),-1.1*sin(alpha_xx),num2str(xx,'-%.1f'), ...
      'horizontalalignment','center','VerticalAlignment','middle',...
      'color',Text_Color,'HitTest','off');
end;  
text(-1.1,0,'0.0', ...
   'horizontalalignment','center','VerticalAlignment','middle',...
   'color',Text_Color,'HitTest','off');
text(1.1,0,'\infty', ...
   'horizontalalignment','center','VerticalAlignment','middle',...
   'color',Text_Color,'HitTest','off');
axis image;


function real_Callback(hObject, eventdata, handles)
% hObject    handle to real (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of real as text
%        str2double(get(hObject,'String')) returns contents of real as a double
Z_Real = str2double(get(hObject, 'String'));
if isnan(Z_Real)
    errordlg('You must input a number.','input', 'model');
    set(handles.real, 'string', '');
elseif (Z_Real<0)
    errordlg('Real part of Zin cannot be negative.');
    set(handles.real, 'string', '');
end;

% --- Executes during object creation, after setting all properties.
function real_CreateFcn(hObject, eventdata, handles)
% hObject    handle to real (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


function image_Callback(hObject, eventdata, handles)
% hObject    handle to image (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of image as text
%        str2double(get(hObject,'String')) returns contents of image as a double
Z_Image = str2double(get(hObject, 'String'));
if isnan(Z_Image)
    errordlg('You must input a number.','input', 'model');
    set(handles.image, 'string', '');
end


% --- Executes during object creation, after setting all properties.
function image_CreateFcn(hObject, eventdata, handles)
% hObject    handle to image (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes on button press in Z_set.
function Z_set_Callback(hObject, eventdata, handles)
% hObject    handle to Z_set (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see UIDATA)
global h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 I X Y pic1 distance Z0;
subplot(pic1);
cla;
Draw_Background;
Z_Real = str2num(get(handles.real, 'String'));
Z_Image = str2num(get(handles.image, 'String'));
Z=complex(Z_Real,Z_Image);
Z0=((Z-j*tan(2*pi*distance))/(1-j*Z*tan(2*pi*distance)));
absolute=sqrt(((1-Z_Real)^2+Z_Image^2)/((1+Z_Real)^2+Z_Image^2));
phase=atan(Z_Image/(Z_Real-1))-atan(Z_Image/(Z_Real+1));
if (phase>=pi/2)
    phase=phase-pi;
elseif(phase <= -pi/2)
    phase=phase+pi;
end
p=(1+absolute)/(1-absolute);
K=1/p;
if(Z_Image==0)
    Zc1_min=sqrt(Z_Real);
    Zc1_max=0;
    min_length=0;
    max_length=0;
else
    Zc1_min=1/sqrt(p);
    Zc1_max=sqrt(p);
    max_length=phase/4/pi;
    if(max_length>0.25)
    min_length=max_length-0.25;
    else 
        min_length=max_length+0.25;
    end
end
T=(Z-1)/(Z+1);
x=real(T);
y=imag(T);
text(x+0.02,y+0.02,'Zin','HitTest','off','color',[0 0 0]);
plot(x,y,'+','color',[0 0 0]);
Draw_Circle(0,0,abs(T),[1 0 0]);
Draw_Circle((Z_Real/(Z_Real+1)),0,(1/(1+Z_Real)),[0 1 0]);
if Z_Image == 0
    plot([-1 1],[0 0],'color',[0 0 1]);
else
    Draw_Arch(1,1/Z_Image,[0 0 1]);
end
set(h3,'string',absolute);
set(h4,'string',phase);
set(h5,'string',K);
set(h6,'string',p);   
set(h7,'string',Zc1_min);
set(h8,'string',Zc1_max);
set(h9,'string',min_length);
set(h10,'string',max_length);

mode_set_Callback(hObject, eventdata, handles);

function distance_Callback(hObject, eventdata, handles)
% hObject    handle to distance (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of distance as text
%        str2double(get(hObject,'String')) returns contents of distance as a double


% --- Executes during object creation, after setting all properties.
function distance_CreateFcn(hObject, eventdata, handles)
% hObject    handle to distance (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end


% --- Executes on mouse press over axes background.
function Smith_ButtonDownFcn(hObject, eventdata, handles)
% hObject    handle to Smith (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global I X Y h1 h2  h3 h4 h5 h6 h7 h8 h9 h10 pic1 distance Z0;
subplot(pic1);
T=X+j*Y;
Z_Re=real((1+X+j*Y)/(1-X-j*Y));
Z_Im=imag((1+X+j*Y)/(1-X-j*Y));
Z=complex(Z_Re,Z_Im);
Z0=((Z-j*tan(2*pi*distance))/(1-j*Z*tan(2*pi*distance)));
absolute=sqrt(((1-Z_Re)^2+Z_Im^2)/((1+Z_Re)^2+Z_Im^2));
phase=atan(Z_Im/(Z_Re-1))-atan(Z_Im/(Z_Re+1));
if (phase>=pi/2)
    phase=phase-pi;
elseif(phase <= -pi/2)
    phase=phase+pi;
end
p=(1+absolute)/(1-absolute);
K=1/p;

if(Z_Im==0)
    Zc1_min=sqrt(Z_Re);
    Zc1_max=0;
    min_length=0;
    max_length=0;
else
    Zc1_min=1/sqrt(p);
    Zc1_max=sqrt(p);
    max_length=phase/4/pi;
    if(max_length>0.25)
    min_length=max_length-0.25;
    else 
        min_length=max_length+0.25;
    end
end

if(I==1)
    I=0;
else
    I=1;
    ht5=findobj('color','y');
    ht4=findobj('color','m');
    ht6=findobj('color','c');
    delete(ht6);
    delete(ht5);
    delete(ht4);
end
if (I==1)
    if(X^2+Y^2<=1)
        if(isempty(findobj('color',[1 0 0])))
            text(X+0.02,Y+0.02,'Zin','HitTest','off','color',[0 0 0]);
            plot(X,Y,'+','color',[0 0 0],'HitTest','off');
            Draw_Circle(0,0,abs(T),[1 0 0]);
            Draw_Circle((Z_Re/(Z_Re+1)),0,(1/(1+Z_Re)),[0 1 0]);
            if Z_Im == 0
                plot([-1 1],[0 0],'color',[0 0 1]);
            else
                Draw_Arch(1,1/Z_Im,[0 0 1]);
            end
        else
            ht1 = findobj('color',[1 0 0]);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产伦精品一区二区三区视频青涩 | 岛国av在线一区| 一区二区高清免费观看影视大全 | 亚洲一区二区三区四区在线| 亚洲欧洲99久久| 国产精品女同一区二区三区| 久久蜜桃av一区二区天堂| 日韩欧美中文一区二区| 欧美一区二区三区免费在线看| 色94色欧美sute亚洲线路一久| 99久免费精品视频在线观看| 国产河南妇女毛片精品久久久| 美脚の诱脚舐め脚责91| 三级久久三级久久久| 亚洲一二三四区不卡| 亚洲国产一区视频| 日韩成人午夜精品| 日本va欧美va精品| 蜜桃av噜噜一区| 黄一区二区三区| 懂色中文一区二区在线播放| 国产999精品久久久久久绿帽| 国产精品一区二区三区99| 国产精品综合一区二区| 成人免费看视频| 色呦呦网站一区| 欧美日韩性生活| 欧美一级一级性生活免费录像| 日韩三级精品电影久久久| 精品国产自在久精品国产| 国产午夜精品一区二区三区视频 | 久久综合给合久久狠狠狠97色69| 精品噜噜噜噜久久久久久久久试看| 亚洲精品一区二区三区99| 中文字幕乱码久久午夜不卡 | 成人永久免费视频| 99re热这里只有精品免费视频| 欧美综合亚洲图片综合区| 欧美精品1区2区3区| 欧美videofree性高清杂交| 亚洲精品免费看| 亚洲高清免费一级二级三级| 久久99精品国产91久久来源| 成人国产精品视频| 在线看日韩精品电影| 日韩女优制服丝袜电影| 中文一区一区三区高中清不卡| 一区二区久久久久| 国产一区三区三区| 丁香啪啪综合成人亚洲小说| 中文字幕国产一区二区| 国产一区亚洲一区| 国内精品国产三级国产a久久| 国产精品卡一卡二卡三| 性欧美疯狂xxxxbbbb| 精品一区二区久久| 欧美在线999| 国产欧美视频一区二区| 日韩va欧美va亚洲va久久| 播五月开心婷婷综合| 精品国产一区二区国模嫣然| 亚洲第四色夜色| 99精品视频一区二区三区| 欧美大白屁股肥臀xxxxxx| 亚洲黄色片在线观看| 国产精品一卡二| 日韩欧美在线网站| 香蕉加勒比综合久久| av电影一区二区| 国产人伦精品一区二区| 蜜桃av噜噜一区二区三区小说| 欧美亚洲国产bt| 综合婷婷亚洲小说| 成人高清视频在线| 欧美国产激情二区三区| 国产精品原创巨作av| 日韩你懂的电影在线观看| 午夜激情久久久| 欧洲生活片亚洲生活在线观看| 国产精品三级久久久久三级| 国产高清视频一区| 精品国产免费视频| 久久国产日韩欧美精品| 777午夜精品免费视频| 一区二区三区四区视频精品免费 | 国产精品久久久久久久久动漫| 精品制服美女久久| 精品国产一区二区亚洲人成毛片| 久久精品国产亚洲高清剧情介绍 | 精品夜夜嗨av一区二区三区| 国产亚洲综合av| 国产一区在线看| 国产片一区二区| 国产 欧美在线| 亚洲国产精品v| 91在线观看免费视频| 亚洲日本成人在线观看| 色综合久久88色综合天天| 亚洲色图在线视频| 色婷婷亚洲精品| 天天av天天翘天天综合网色鬼国产| 欧美日本一区二区| 激情图区综合网| 国产精品欧美一区二区三区| 99久久综合色| 亚洲成人精品一区二区| 欧美大片在线观看| 国产不卡在线一区| 一区二区三区四区视频精品免费 | 91精品国产全国免费观看| 韩国三级中文字幕hd久久精品| 国产日韩v精品一区二区| 成人免费视频caoporn| 亚洲精品欧美激情| 欧美一区二区成人| 丁香六月综合激情| 亚洲福利国产精品| 久久久久久久久99精品| 91久久精品一区二区| 美国十次综合导航| 国产精品成人免费| 一区二区在线观看免费视频播放| 欧美日韩视频在线第一区| 久久精品久久综合| 最近中文字幕一区二区三区| 69精品人人人人| aaa亚洲精品| 极品少妇xxxx精品少妇偷拍| 亚洲欧美日韩在线不卡| 精品99一区二区| 精品视频在线免费观看| 国产91露脸合集magnet | 亚洲午夜电影在线观看| 国产人成亚洲第一网站在线播放| 欧美在线小视频| 成人免费精品视频| 久久国产欧美日韩精品| 亚洲综合色视频| 国产人伦精品一区二区| 91精品国产乱码久久蜜臀| 91丨九色porny丨蝌蚪| 国产一区二区伦理片| 日韩专区一卡二卡| 亚洲精品欧美综合四区| 国产欧美综合色| 欧美一区二区精品| 欧美在线视频不卡| 一本久道久久综合中文字幕 | 337p日本欧洲亚洲大胆色噜噜| 在线视频国产一区| www.欧美亚洲| 国产成人午夜精品5599| 91丨九色丨蝌蚪富婆spa| 国产大片一区二区| 国产乱子伦一区二区三区国色天香| 婷婷综合另类小说色区| 亚洲一区二区三区激情| 一区二区三区日韩在线观看| 中文字幕中文字幕在线一区| 国产色婷婷亚洲99精品小说| 精品国一区二区三区| 91精品国产91热久久久做人人| 欧美乱熟臀69xxxxxx| 欧美四级电影网| 欧美亚洲一区三区| 欧美日本韩国一区| 欧美一区二区三区在线观看 | 91精品国产一区二区| 555夜色666亚洲国产免| 欧美电影一区二区| 日韩一级欧美一级| 精品成人一区二区三区四区| 久久午夜免费电影| 欧美韩国日本一区| 亚洲人成影院在线观看| 亚洲一级在线观看| 日本不卡高清视频| 国产精品69毛片高清亚洲| 成人激情av网| 91毛片在线观看| 538prom精品视频线放| 精品国产免费久久| 国产精品国产三级国产aⅴ入口| 亚洲欧美影音先锋| 日韩精品一二区| 国产真实乱子伦精品视频| 成人久久视频在线观看| 欧美曰成人黄网| 555www色欧美视频| 中文字幕av一区二区三区高| 亚洲色图19p| 日产国产欧美视频一区精品| 国内一区二区在线| 色欧美片视频在线观看在线视频| 欧美日韩国产片| 2024国产精品视频| 亚洲香蕉伊在人在线观| 久久精品国产色蜜蜜麻豆| 91视频.com| www日韩大片|