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

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

?? rescal.m

?? matlab GUI編寫的LM317電阻選擇計算軟件
?? M
字號:
function varargout = ResCal(varargin)
% RESCAL M-file for ResCal.fig
%      RESCAL, by itself, creates a new RESCAL or raises the existing
%      singleton*.
%
%      H = RESCAL returns the handle to a new RESCAL or the handle to
%      the existing singleton*.
%
%      RESCAL('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in RESCAL.M with the given input arguments.
%
%      RESCAL('Property','Value',...) creates a new RESCAL or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before ResCal_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to ResCal_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 ResCal

% Last Modified by GUIDE v2.5 20-Nov-2007 09:51:41

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @ResCal_OpeningFcn, ...
                   'gui_OutputFcn',  @ResCal_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 ResCal is made visible.
function ResCal_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 ResCal (see VARARGIN)

% Choose default command line output for ResCal
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);
% UIWAIT makes ResCal wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = ResCal_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;


% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global val
global r1
global r2
global uo
clc
uo=str2double(get(handles.edit1,'String'));
r1=str2double(get(handles.edit2,'String'));
r2=str2double(get(handles.edit3,'String'));
popup_sel_index = get(handles.popupmenu1, 'Value');
switch popup_sel_index
    case 1     
        %only specifying Uo,random r1 and r2
        set(handles.edit1,'Enable','on');
        set(handles.edit2,'Enable','on');
        set(handles.edit3,'Enable','on');
        set(handles.edit2,'Enable','off');
        set(handles.edit3,'Enable','off');
     if isnumeric(uo) & ...
        uo >= 1.25 & ...
        uo <= 37
        guidata(hObject,handles); % store the changes
        r1 = random('unif',20,500,1,1);r1=round(r1);
        set(handles.edit2,'string',['',num2str(r1),'??']);
        r2=(uo/1.25-1)*r1;
        r2=round(r2);
        set(handles.edit3,'string',['',num2str(r2),'??']);
    else
    msgbox('Uo should be a number between 1.25V and 37V')
    end
    case 2
        set(handles.edit1,'Enable','on');
        set(handles.edit2,'Enable','on');
        set(handles.edit3,'Enable','on');
        set(handles.edit3,'Enable','off');
    if isnumeric(uo) & ...
        uo >= 1.25 & ...
        uo <= 37 & ...
        isnumeric(r1) & ...
        r1>0
        guidata(hObject,handles); % store the changes
        set(handles.edit2,'string',['',num2str(r1),'??']);
        r2=(uo/1.25-1)*r1;
        r2=round(r2);
        set(handles.edit3,'string',['',num2str(r2),'??']);
    else
    msgbox('Uo should be a number between 1.25V and 37V,R1 should be a integer')
    end
    case 3
        set(handles.edit1,'Enable','on');
        set(handles.edit2,'Enable','on');
        set(handles.edit3,'Enable','on');
        set(handles.edit2,'Enable','off');
    if isnumeric(uo) & ...
        uo >= 1.25 & ...
        uo <= 37 & ...
        isnumeric(r2) & ...
        r2>0
        guidata(hObject,handles); % store the changes
        set(handles.edit3,'string',['',num2str(r2),'??']);
        r1=r2/(uo/1.25-1);
        r1=round(r1);
        set(handles.edit2,'string',['',num2str(r1),'??']);
    else
    msgbox('Uo should be a number between 1.25V and 37V,R2 should be integer')
    end
end

% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
set(handles.edit1,'string',num2str(0));
set(handles.edit2,'string',['',num2str(0),'??']);
set(handles.edit3,'string',['',num2str(0),'??']);
set(handles.edit2,'Enable','off');
set(handles.edit3,'Enable','off');


function edit1_Callback(hObject, eventdata, handles)
% hObject    handle to edit1 (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 edit1 as text
%        str2double(get(hObject,'String')) returns contents of edit1 as a double


% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit1 (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 during object creation, after setting all properties.
function axes2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to axes2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: place code in OpeningFcn to populate axes2
Image_cir=imread('317.jpg'); 
image(Image_cir);


% --- If Enable == 'on', executes on mouse press in 5 pixel border.
% --- Otherwise, executes on mouse press in 5 pixel border or over pushbutton1.
function pushbutton1_ButtonDownFcn(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


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


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


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




% --- Executes on button press in radiobutton1.
function radiobutton1_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton1
if (get(hObject,'Value') == get(hObject,'Max'))
    % then rsdio button is selected-take approriate action
    set(handles.radiobutton2,'Value','Max')
else
    % radio button is not selected-take approriate action
end

% --- Executes on button press in radiobutton2.
function radiobutton2_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton2




% --- Executes on selection change in popupmenu1.
function popupmenu1_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu1 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu1
popup_sel_index = get(handles.popupmenu1, 'Value');
switch popup_sel_index
    case 1     
        set(handles.edit1,'Enable','on');
        set(handles.edit2,'Enable','on');
        set(handles.edit3,'Enable','on');
        set(handles.edit2,'Enable','off');
        set(handles.edit3,'Enable','off');
    case 2
        set(handles.edit1,'Enable','on');
        set(handles.edit2,'Enable','on');
        set(handles.edit3,'Enable','on');
        set(handles.edit3,'Enable','off');
    case 3
        set(handles.edit1,'Enable','on');
        set(handles.edit2,'Enable','on');
        set(handles.edit3,'Enable','on');
        set(handles.edit2,'Enable','off');
end

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

% Hint: popupmenu 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');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end

set(hObject, 'String', {'Specifying Uo Only', 'Specifying Uo and R1', 'Specifying Uo and R2'});



function edit2_Callback(hObject, eventdata, handles)
% hObject    handle to edit2 (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 edit2 as text
%        str2double(get(hObject,'String')) returns contents of edit2 as a double


% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit2 (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 edit3_Callback(hObject, eventdata, handles)
% hObject    handle to edit3 (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 edit3 as text
%        str2double(get(hObject,'String')) returns contents of edit3 as a double


% --- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit3 (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






?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品美女久久久久aⅴ| 国产一区二区精品久久| 精品一区二区三区日韩| 白白色亚洲国产精品| 欧美大片一区二区三区| 洋洋成人永久网站入口| 国产成人av一区二区三区在线| 欧美色图在线观看| 亚洲欧美综合色| 国产一区二区三区四| 欧美一级午夜免费电影| 午夜私人影院久久久久| 91无套直看片红桃| 国产精品黄色在线观看| 国产精品18久久久久久久久 | 性久久久久久久| 不卡av免费在线观看| 久久―日本道色综合久久| 日本美女一区二区三区视频| 欧美天堂一区二区三区| 亚洲色图视频免费播放| 成人动漫视频在线| 欧美激情在线看| 成人黄色777网| 国产精品视频免费| 成人av资源网站| 国产精品国产三级国产普通话三级| 久久成人免费网站| 久久综合久久99| 国产成人亚洲精品青草天美| 久久精子c满五个校花| 国产一区二区三区免费观看| 精品国产91乱码一区二区三区| 秋霞影院一区二区| 日韩一级精品视频在线观看| 热久久一区二区| 精品sm在线观看| 激情图片小说一区| 国产欧美视频在线观看| 成人av网站在线| 国产精品久线观看视频| 91免费在线播放| 亚洲免费观看在线视频| 欧美天堂亚洲电影院在线播放| 亚洲国产成人高清精品| 91精品国产全国免费观看| 久久精品理论片| 亚洲国产高清aⅴ视频| 色综合久久99| 美国一区二区三区在线播放| 久久婷婷色综合| k8久久久一区二区三区| 亚洲黄色录像片| 精品剧情v国产在线观看在线| 国产在线精品一区二区不卡了| 中文字幕精品在线不卡| 色94色欧美sute亚洲线路二| 日韩和欧美的一区| 国产清纯白嫩初高生在线观看91 | 国产人妖乱国产精品人妖| 成人永久aaa| 亚洲电影视频在线| 久久先锋资源网| 欧美丝袜丝nylons| 国产精品77777| 偷窥少妇高潮呻吟av久久免费| 久久综合九色综合97婷婷女人 | 欧美高清视频不卡网| 国产在线不卡一区| 亚洲一区二区美女| 久久久午夜精品理论片中文字幕| 91久久精品一区二区三| 激情五月播播久久久精品| 一区二区三区精品视频| 久久综合狠狠综合| 欧美喷潮久久久xxxxx| 春色校园综合激情亚洲| 日本中文字幕一区二区视频 | 久久久久久久久久久久久夜| 91小视频免费看| 国产成人在线视频网址| 手机精品视频在线观看| 国产精品国产自产拍在线| 日韩三级视频中文字幕| 欧美性色综合网| 成人午夜激情影院| 久久丁香综合五月国产三级网站| 亚洲欧美一区二区三区极速播放 | 精品国产免费久久 | 久久综合九色综合97_久久久| 欧美午夜电影一区| 成人av动漫在线| 国产在线国偷精品免费看| 秋霞影院一区二区| 丝袜亚洲精品中文字幕一区| 亚洲人123区| 国产精品情趣视频| 久久久久久久久久久电影| 欧美一区二区三区视频在线观看| 欧美在线影院一区二区| 99国产精品久久久久久久久久| 久久99久久久久久久久久久| 天堂资源在线中文精品| 亚洲综合小说图片| 亚洲一区二区黄色| 亚洲综合男人的天堂| 亚洲乱码精品一二三四区日韩在线| 国产欧美日韩亚州综合| 国产色一区二区| 久久这里都是精品| 久久精品人人做| 欧美国产精品中文字幕| 国产精品色一区二区三区| 久久色在线视频| 久久这里只精品最新地址| 久久久久国产免费免费| 欧美国产综合一区二区| 亚洲欧洲三级电影| 亚洲黄色免费电影| 日韩综合小视频| 久久97超碰色| 国产99久久久久久免费看农村| 成人av资源网站| 91精品1区2区| 欧美一区二区三区视频免费播放| 88在线观看91蜜桃国自产| 欧美一级二级三级蜜桃| 久久综合久久综合久久| 国产精品护士白丝一区av| 一区二区三区在线观看欧美| 亚洲成va人在线观看| 久久99最新地址| 成人黄色国产精品网站大全在线免费观看| 懂色av一区二区三区蜜臀| 色偷偷久久人人79超碰人人澡| 欧美色电影在线| 26uuu国产在线精品一区二区| 中文字幕二三区不卡| 亚洲一区二区三区视频在线| 老司机精品视频在线| av中文一区二区三区| 欧美视频第二页| 国产欧美日韩不卡免费| 亚洲一区欧美一区| 国产精品99久久久久久似苏梦涵 | 国产精品区一区二区三区| 国产精品狼人久久影院观看方式| 欧美视频在线一区二区三区 | 欧美乱妇15p| www亚洲一区| 亚洲欧美日韩国产另类专区| 首页国产欧美日韩丝袜| 懂色中文一区二区在线播放| 欧美色欧美亚洲另类二区| 久久久久国产精品厨房| 亚洲成人免费在线| 北岛玲一区二区三区四区| 欧美一级二级三级乱码| 亚洲免费观看高清完整| 久草中文综合在线| 欧美裸体一区二区三区| 国产精品―色哟哟| 久久97超碰国产精品超碰| 欧美午夜精品久久久久久孕妇 | av电影一区二区| 欧美一区二区久久| 亚洲人成在线观看一区二区| 激情深爱一区二区| 51精品国自产在线| 一区二区欧美视频| 成人av手机在线观看| 亚洲精品一区二区三区在线观看 | 日韩欧美色电影| 一区二区在线免费观看| 成人免费毛片a| 久久久久久久久久久99999| 蜜臀精品久久久久久蜜臀| 欧美日韩亚洲高清一区二区| 国产精品美女一区二区| 国产一区 二区| 精品国产亚洲在线| 奇米四色…亚洲| 欧美日韩专区在线| 亚洲影院在线观看| 91黄色在线观看| 亚洲欧美激情视频在线观看一区二区三区| 国产精品77777| 久久伊人中文字幕| 国产不卡视频一区| 国产午夜一区二区三区| 丝袜a∨在线一区二区三区不卡| 豆国产96在线|亚洲| 中文字幕精品一区二区三区精品 | 欧美性一级生活| 一区二区三区四区在线播放| 91麻豆精品秘密| 亚洲愉拍自拍另类高清精品| 日本精品免费观看高清观看| 亚洲午夜精品在线| 日韩亚洲电影在线|