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

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

?? tank.m

?? 主要運用gui的控件來進行調整數值
?? M
字號:
function varargout = Tank(varargin)
% TANK M-file for Tank.fig
%      TANK, by itself, creates a new TANK or raises the existing
%      singleton*.
%
%      H = TANK returns the handle to a new TANK or the handle to
%      the existing singleton*.
%
%      TANK('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in TANK.M with the given input arguments.
%
%      TANK('Property','Value',...) creates a new TANK or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before Tank_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to Tank_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 Tank

% Last Modified by GUIDE v2.5 19-Jun-2005 23:44:05

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

% Choose default command line output for Tank
clc
handles.output = hObject;
handles.h = 20;
handles.R = 15;
handles.r = 2;
handles.tim = 1;

set(handles.Height,'String',handles.h)
set(handles.Base_Radius,'String',handles.R);
set(handles.Hole_Radius,'String',handles.r);
set(handles.Height_Radius,'Value',handles.h)
set(handles.Base_Radius_Slider,'Value',handles.R);
set(handles.Hole_Radius_Slider,'Value',handles.r);
set(handles.popupmenu2,'Value',1);

% Update handles structure
guidata(hObject, handles);
calculation(hObject,handles);

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


% --- Outputs from this function are returned to the command line.
function varargout = Tank_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 slider movement.
function Base_Radius_Slider_Callback(hObject, eventdata, handles)
% hObject    handle to Base_Radius_Slider (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,'Value') returns position of slider
%        get(hObject,'Min') and get(hObject,'Max') to determine range of slider
handles.R = round(100*get(handles.Base_Radius_Slider,'Value'))/100;
set(handles.Base_Radius,'String',handles.R);
guidata(hObject, handles);
calculation(hObject,handles);


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

% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor',[.9 .9 .9]);
end



function Base_Radius_Callback(hObject, eventdata, handles)
% hObject    handle to Base_Radius (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 Base_Radius as text
%        str2double(get(hObject,'String')) returns contents of Base_Radius as a double
handles.R = str2double(get(handles.Base_Radius,'String'));
set(handles.Base_Radius_Slider,'Value',handles.R);
guidata(hObject, handles);
calculation(hObject,handles);


% --- Executes during object creation, after setting all properties.
function Base_Radius_CreateFcn(hObject, eventdata, handles)
% hObject    handle to Base_Radius (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 slider movement.
function Hole_Radius_Slider_Callback(hObject, eventdata, handles)
% hObject    handle to Hole_Radius_Slider (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,'Value') returns position of slider
%        get(hObject,'Min') and get(hObject,'Max') to determine range of slider
handles.r = round(100*get(handles.Hole_Radius_Slider,'Value'))/100;
set(handles.Hole_Radius,'String',handles.r);
guidata(hObject, handles);
calculation(hObject,handles);



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

% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor',[.9 .9 .9]);
end



function Hole_Radius_Callback(hObject, eventdata, handles)
% hObject    handle to Hole_Radius (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 Hole_Radius as text
%        str2double(get(hObject,'String')) returns contents of Hole_Radius as a double
handles.r = str2double(get(handles.Hole_Radius,'String'));
set(handles.Hole_Radius_Slider,'Value',handles.r);
guidata(hObject, handles);
calculation(hObject,handles);


% --- Executes during object creation, after setting all properties.
function Hole_Radius_CreateFcn(hObject, eventdata, handles)
% hObject    handle to Hole_Radius (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 slider movement.
function Height_Radius_Callback(hObject, eventdata, handles)
% hObject    handle to Height_Radius (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,'Value') returns position of slider
%        get(hObject,'Min') and get(hObject,'Max') to determine range of slider
handles.h = round(100*get(handles.Height_Radius,'Value'))/100;
set(handles.Height,'String',handles.h);
guidata(hObject, handles);
calculation(hObject,handles);


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

% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor',[.9 .9 .9]);
end



function Height_Callback(hObject, eventdata, handles)
% hObject    handle to Height (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 Height as text
%        str2double(get(hObject,'String')) returns contents of Height as a double
handles.h = str2double(get(handles.Height,'String'));
set(handles.Height_Radius,'Value',handles.h);
guidata(hObject, handles);
calculation(hObject,handles);


% --- Executes during object creation, after setting all properties.
function Height_CreateFcn(hObject, eventdata, handles)
% hObject    handle to Height (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 Plot.
function Plot_Callback(hObject, eventdata, handles)
% hObject    handle to Plot (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
r = [1:0.1:100];
t = handles.R^2./(5*r.^2).*sqrt(2*handles.h/9.81);

switch get(handles.popupmenu2,'Value')
    case 1
        tim = round(1000*t)/1000
    case 2
        tim = round(1000*t/60)/1000;
    case 3
        tim = round(1000*t/3600)/1000;
end

figure, plot(r,tim), title('The Figure of Time Vs. Hole Radius');


% --- Executes on button press in Help.
function Help_Callback(hObject, eventdata, handles)
% hObject    handle to Help (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
str = sprintf(['Tank Drain Calculator - Version 1.1.1\n\n',...
    'Implemented with Matlab GUI Environment\n',...
    'Copyright 2004-2006 The Microjects, Inc.\n']);
msgbox(str,'About the Tank Drain Calculator','modal');


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


% --- Executes during object creation, after setting all properties.
function Time_CreateFcn(hObject, eventdata, handles)
% hObject    handle to Time (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 selection change in popupmenu2.
function popupmenu2_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu2 (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 popupmenu2 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu2
guidata(hObject, handles);
calculation(hObject,handles);


% --- Executes during object creation, after setting all properties.
function popupmenu2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu2 (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');
end

function calculation(hObject,handles)
handles.t = handles.R^2/(5*handles.r^2)*sqrt(2*handles.h/9.81);
guidata(hObject, handles);

switch get(handles.popupmenu2,'Value')
    case 1
        handles.tim = round(1000*handles.t)/1000
    case 2
        handles.tim = round(1000*handles.t/60)/1000;
    case 3
        handles.tim = round(1000*handles.t/3600)/1000;
end

set(handles.Time,'String',handles.tim)
guidata(hObject, handles);


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产入口在线| 久久久久国产一区二区三区四区| 欧美激情一区二区在线| 一本久久a久久精品亚洲| 九九九精品视频| 一区二区在线观看不卡| 国产午夜精品一区二区三区四区| 欧美日韩国产精选| 成人午夜视频福利| 亚洲高清免费在线| 亚洲日韩欧美一区二区在线| 在线播放日韩导航| 国产福利精品导航| 日韩成人精品在线| 一区二区三区久久久| 中文字幕乱码日本亚洲一区二区| 日韩视频在线你懂得| 欧美日韩亚洲国产综合| 91一区二区在线观看| 成人激情小说网站| 国内精品久久久久影院色| 亚洲福利一区二区三区| 亚洲视频香蕉人妖| 国产精品精品国产色婷婷| 国产日产欧美精品一区二区三区| 欧美一区二区在线视频| 欧美日韩视频第一区| 91美女片黄在线观看91美女| 丁香六月久久综合狠狠色| 精品一区二区在线观看| 美国十次综合导航| 日韩中文字幕麻豆| 激情成人综合网| 亚洲第一搞黄网站| 一区av在线播放| 亚洲欧美另类久久久精品2019| 国产清纯美女被跳蛋高潮一区二区久久w| 日韩一级在线观看| 精品国偷自产国产一区| 日韩欧美在线一区二区三区| 日韩一区二区在线观看视频播放| 在线成人免费视频| 欧美一区二区私人影院日本| 69av一区二区三区| 日韩一区二区麻豆国产| 欧美va亚洲va| 久久久高清一区二区三区| 国产亚洲一本大道中文在线| 国产日韩欧美a| 国产精品网站导航| 亚洲精品免费电影| 亚洲国产裸拍裸体视频在线观看乱了| 一区二区三区电影在线播| 午夜电影网亚洲视频| 久久精品国产亚洲aⅴ | 一区二区三区视频在线看| 亚洲综合色成人| 五月天一区二区| 精品亚洲国产成人av制服丝袜| 国产麻豆精品在线| 91麻豆国产精品久久| 欧美色电影在线| 欧美电视剧在线看免费| 欧美韩国日本一区| 一区二区三区日韩| 美女被吸乳得到大胸91| 成人激情小说乱人伦| 欧美性大战久久久| 精品国产污网站| 国产精品不卡在线| 肉肉av福利一精品导航| 国产精品一二三| 色先锋资源久久综合| 91精品啪在线观看国产60岁| 国产亚洲成aⅴ人片在线观看| 亚洲欧美精品午睡沙发| 美女视频第一区二区三区免费观看网站 | 国产女主播一区| 亚洲综合图片区| 国产一区二区不卡老阿姨| 色综合久久综合网| 精品国产网站在线观看| 一区二区三区四区蜜桃| 国产一区二区在线观看视频| 色综合久久久久综合体桃花网| 欧美一级欧美三级在线观看| 国产精品久久影院| 九九精品一区二区| 欧美午夜一区二区三区| 国产精品素人视频| 蜜臀精品一区二区三区在线观看| 97aⅴ精品视频一二三区| 欧美成人伊人久久综合网| 一区二区成人在线视频| 在线欧美日韩国产| 久久久久久久网| 亚洲成人av电影在线| av中文字幕一区| 26uuu亚洲综合色欧美| 香港成人在线视频| www.成人网.com| 久久久午夜精品理论片中文字幕| 香蕉成人啪国产精品视频综合网| 成人av电影在线| www久久精品| 美女视频免费一区| 欧美日韩午夜影院| 亚洲欧美日韩精品久久久久| 盗摄精品av一区二区三区| 日韩精品一区二区三区在线| 亚洲成人久久影院| 色综合视频一区二区三区高清| 久久女同性恋中文字幕| 美女久久久精品| 欧美日韩国产天堂| 一区二区三区免费| 91蜜桃视频在线| 亚洲欧洲精品成人久久奇米网| 国产激情视频一区二区三区欧美| 日韩精品一区二| 免费成人结看片| 3d动漫精品啪啪| 青青国产91久久久久久| 欧美乱妇15p| 日韩成人一级片| 4438成人网| 日韩成人精品视频| 制服丝袜中文字幕一区| 五月婷婷激情综合| 91精品一区二区三区久久久久久| 天堂一区二区在线| 正在播放亚洲一区| 日韩经典一区二区| 在线成人免费观看| 麻豆国产精品视频| www激情久久| 国产成人午夜视频| 中文字幕欧美激情一区| 成人动漫在线一区| 18涩涩午夜精品.www| 色婷婷香蕉在线一区二区| 一区二区三区四区在线播放| 欧美亚洲国产一区在线观看网站| 亚洲国产美国国产综合一区二区| 欧美日韩国产另类一区| 男女视频一区二区| 久久亚洲精华国产精华液| 风间由美一区二区av101| 最新热久久免费视频| 91国产免费看| 日日欢夜夜爽一区| 精品国产伦一区二区三区观看体验| 国产一区在线看| 国产精品的网站| 欧美日韩情趣电影| 美女一区二区三区在线观看| 久久精品亚洲麻豆av一区二区 | 国产欧美日韩久久| 99re视频这里只有精品| 亚洲一二三专区| 欧美一区二区女人| 国产成人啪免费观看软件 | 日本免费新一区视频| 日韩欧美的一区二区| 国产成人欧美日韩在线电影| 亚洲日韩欧美一区二区在线| 在线播放欧美女士性生活| 国产一区二区三区四区五区入口| 国产精品成人一区二区艾草 | 欧美性生活久久| 麻豆精品一二三| 国产精品区一区二区三| 欧美中文字幕久久| 精品一区二区综合| 亚洲欧美日韩国产手机在线| 日韩视频永久免费| 91在线porny国产在线看| 蜜臀精品一区二区三区在线观看| 亚洲国产精品99久久久久久久久| 在线观看日韩精品| 国产精品原创巨作av| 一区二区三区四区高清精品免费观看| 欧美成人福利视频| 色偷偷成人一区二区三区91 | 欧洲精品视频在线观看| 久久国产剧场电影| 中文字幕一区二区三区四区| 欧美一区二区私人影院日本| 91在线观看地址| 激情深爱一区二区| 亚洲一卡二卡三卡四卡| 国产校园另类小说区| 欧美日韩国产一级| av一二三不卡影片| 美腿丝袜亚洲三区| 亚洲一区二区三区四区在线观看| 日本一区二区三区电影| 91精品国产综合久久久久久久| 99v久久综合狠狠综合久久| 黑人精品欧美一区二区蜜桃 |