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

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

?? qdis.m

?? 席位分配的matlab例程
?? M
字號:
function varargout = qdis(varargin)
% QDIS M-file for qdis.fig
%      QDIS, by itself, creates a new QDIS or raises the existing
%      singleton*.
%
%      H = QDIS returns the handle to a new QDIS or the handle to
%      the existing singleton*.
%
%      QDIS('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in QDIS.M with the given input arguments.
%
%      QDIS('Property','Value',...) creates a new QDIS or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before qdis_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to qdis_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

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

% Last Modified by GUIDE v2.5 30-Oct-2007 21:31:38

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @qdis_OpeningFcn, ...
                   'gui_OutputFcn',  @qdis_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 qdis is made visible.
function qdis_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 qdis (see VARARGIN)
%a_new = handles.metricdata.numa;
%b_new = handles.metricdata.numb;
%c_new = handles.metricdata.numc;

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

% Update handles structure
guidata(hObject, handles);

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


% --- Outputs from this function are returned to the command line.
function varargout = qdis_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 during object creation, after setting all properties.
function a_new_CreateFcn(hObject, eventdata, handles)
% hObject    handle to a_new (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called


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


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



function a_old_Callback(hObject, eventdata, handles)
% hObject    handle to a_old (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
numa = str2double(get(hObject, 'String'));
if isnan(numa)
    set(hObject, 'String', 0);
    errordlg('Input must be a number','Error');
end
if ((numa-round(numa))~=0|numa<=0)
    set(hObject, 'String', 0);
    errordlg('Input must be a positive interge','Error');
end
% Save the new density value
handles.metricdata.numa = numa;
guidata(hObject,handles)
% Hints: get(hObject,'String') returns contents of a_old as text
%        str2double(get(hObject,'String')) returns contents of a_old as a double


% --- Executes during object creation, after setting all properties.
function a_old_CreateFcn(hObject, eventdata, handles)
% hObject    handle to a_old (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 b_old_Callback(hObject, eventdata, handles)
% hObject    handle to b_old (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 b_old as text
%        str2double(get(hObject,'String')) returns contents of b_old as a double
numb = str2double(get(hObject, 'String'));
if isnan(numb)
    set(hObject, 'String', 0);
    errordlg('Input must be a number','Error');
end
if ((numb-round(numb))~=0|numb<=0)
    set(hObject, 'String', 0);
    errordlg('Input must be a positive interge','Error');
end

% Save the new density value
handles.metricdata.numb = numb;
guidata(hObject,handles)

% --- Executes during object creation, after setting all properties.
function b_old_CreateFcn(hObject, eventdata, handles)
% hObject    handle to b_old (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 c_old_Callback(hObject, eventdata, handles)
% hObject    handle to c_old (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
numc= str2double(get(hObject, 'String'));
if isnan(numc)
    set(hObject, 'String', 0);
    errordlg('Input must be a number','Error');
end
if ((numc-round(numc))~=0|numc<=0)
    set(hObject, 'String', 0);
    errordlg('Input must be a positive interge','Error');
end
% Save the new density value
handles.metricdata.numc = numc;

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


% --- Executes during object creation, after setting all properties.
function c_old_CreateFcn(hObject, eventdata, handles)
% hObject    handle to c_old (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 calculate.
function calculate_Callback(hObject, eventdata, handles)
% hObject    handle to calculate (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

a = handles.metricdata.numa;
b = handles.metricdata.numb;
c = handles.metricdata.numc;
tot=a+b+c;
new(1,1)=round(handles.metricdata.nn/tot*a);
new(2,1)=round(handles.metricdata.nn/tot*b);
new(3,1)=round(handles.metricdata.nn/tot*c);

dn=handles.metricdata.nn-new(1,1)-new(2,1)-new(3,1);
while(dn)
    [B,IX]=sort([a^2/new(1,1)/(new(1,1)+1),b^2/new(2,1)/(new(2,1)+1),c^2/new(3,1)/(new(3,1)+1)]);
    new(IX(length(B)),1)=new(IX(length(B)),1)+1;
    dn=dn-1;
end


set(handles.a_new, 'String', new(1,1));
set(handles.b_new, 'String', new(2,1));
set(handles.c_new, 'String', new(3,1));
% --- Executes on button press in reset.
function reset_Callback(hObject, eventdata, handles)
% hObject    handle to reset (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
set(handles.a_old, 'String', 0);
set(handles.b_old, 'String', 0);
set(handles.c_old, 'String', 0);
set(handles.a_new, 'String', 0);
set(handles.b_new, 'String', 0);
set(handles.c_new, 'String', 0);
set(handles.n_num, 'String', 0);




function n_num_Callback(hObject, eventdata, handles)
% hObject    handle to n_num (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 n_num as text
%        str2double(get(hObject,'String')) returns contents of n_num as a double
nn = str2double(get(hObject, 'String'));
if isnan(nn)
    set(hObject, 'String', 0);
    errordlg('Input must be a number','Error');
end
if ((nn-round(nn))~=0|nn<=0)
    set(hObject, 'String', 0);
    errordlg('Input must be a positive interge','Error');
end
handles.metricdata.nn = nn;
guidata(hObject,handles)
% --- Executes during object creation, after setting all properties.
function n_num_CreateFcn(hObject, eventdata, handles)
% hObject    handle to n_num (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一区二区三区免费野_久草精品视频
一区二区三区欧美视频| 成人动漫一区二区三区| 亚洲一区二区高清| 韩国女主播成人在线观看| 色综合一区二区三区| 欧美高清视频一二三区| 国产精品国产精品国产专区不蜜 | 亚洲日本丝袜连裤袜办公室| 久久精品99国产国产精| 欧美系列在线观看| 日韩伦理av电影| 国产最新精品精品你懂的| 3d动漫精品啪啪1区2区免费| 中文字幕一区二区三区精华液| 久久99久久99精品免视看婷婷 | 亚洲男人天堂av| 国产精品一区二区三区99| 欧美一区二区三区在线看| 一区二区理论电影在线观看| 成人久久视频在线观看| 亚洲精品一区二区三区蜜桃下载 | 精品在线观看免费| 欧美日韩视频在线第一区| 国产精品妹子av| 国产麻豆9l精品三级站| 91精品福利在线一区二区三区| 亚洲国产你懂的| 在线视频一区二区免费| 亚洲天堂精品在线观看| 成人精品国产免费网站| 国产区在线观看成人精品| 久久se精品一区二区| 正在播放一区二区| 日本亚洲视频在线| 日韩免费高清电影| 日本美女一区二区| 欧美电影免费观看完整版| 蜜臀av性久久久久av蜜臀妖精| 5858s免费视频成人| 免费成人av资源网| 亚洲精品一区二区三区蜜桃下载| 精品一区二区在线播放| 精品一区免费av| 欧美日韩aaaaaa| 五月婷婷激情综合| 日韩一区二区在线观看视频播放| 秋霞午夜av一区二区三区| 欧美福利一区二区| 激情文学综合丁香| 亚洲国产高清在线观看视频| av男人天堂一区| 一区二区三区日韩欧美精品| 欧美精品电影在线播放| 蜜桃精品在线观看| 国产欧美综合在线| 欧日韩精品视频| 日韩1区2区日韩1区2区| 国产日韩欧美a| 色综合久久精品| 日韩成人精品视频| 国产亚洲制服色| 色噜噜久久综合| 奇米精品一区二区三区四区| 久久影音资源网| 在线免费观看视频一区| 理论电影国产精品| 亚洲欧美在线aaa| 91麻豆精品91久久久久同性| 懂色av一区二区三区免费看| 一区二区三区不卡在线观看| 欧美一区二区精品在线| 不卡一区二区中文字幕| 免费在线观看精品| 亚洲美女区一区| 久久亚洲综合色一区二区三区| 99re66热这里只有精品3直播 | www国产成人免费观看视频 深夜成人网| 国产在线视频一区二区| 日韩理论片中文av| 久久中文娱乐网| 欧美日精品一区视频| 高清成人免费视频| 天天色综合天天| 成人欧美一区二区三区黑人麻豆| 制服.丝袜.亚洲.中文.综合| 91一区二区三区在线播放| 国产剧情一区二区| 热久久久久久久| 亚洲一区视频在线观看视频| 日本一区二区三区四区| 欧美一区二区三区色| 在线视频国内一区二区| 成人免费av网站| 激情国产一区二区| 蜜臀久久99精品久久久画质超高清| 亚洲精品免费视频| 国产精品人成在线观看免费| 欧美大片在线观看| 91精品国产综合久久久久久| 日本大香伊一区二区三区| 不卡av电影在线播放| 国产在线精品一区二区三区不卡| 日韩电影在线免费看| 亚洲图片有声小说| 一区二区三区中文免费| 综合激情网...| ㊣最新国产の精品bt伙计久久| 欧美国产一区二区| 亚洲国产精品高清| 日本一区二区成人在线| 国产欧美精品一区二区色综合朱莉 | 欧美三级日韩在线| 91国产福利在线| 色婷婷亚洲一区二区三区| av电影天堂一区二区在线观看| 国产suv一区二区三区88区| 国产精品一区二区无线| 国产成人av福利| 岛国一区二区三区| 成人91在线观看| 日本高清无吗v一区| 欧美亚洲一区三区| 欧美福利视频一区| 欧美大片国产精品| 国产午夜精品一区二区三区视频| 国产日韩欧美一区二区三区乱码 | 国产精品一级在线| 国产一区二区在线视频| 国产成人午夜精品影院观看视频 | 国产精品污污网站在线观看| 中文字幕+乱码+中文字幕一区| 中文字幕精品三区| 亚洲精选视频免费看| 亚洲一区二区影院| 九一九一国产精品| 国产电影精品久久禁18| 91视视频在线直接观看在线看网页在线看| 91亚洲资源网| 3atv在线一区二区三区| 2023国产精品自拍| 中文字幕在线不卡一区 | 亚洲视频在线一区| 天天影视色香欲综合网老头| 国产一区欧美一区| 欧美伊人久久大香线蕉综合69| 欧美精品aⅴ在线视频| 欧美大白屁股肥臀xxxxxx| 日本一区二区三区四区| 亚洲午夜在线观看视频在线| 久久er精品视频| 色天天综合久久久久综合片| 这里是久久伊人| 亚洲欧洲精品天堂一级| 日韩av二区在线播放| 国产成人欧美日韩在线电影 | 99久久久无码国产精品| 欧美三区免费完整视频在线观看| 欧美电影免费观看高清完整版在| 国产精品嫩草99a| 欧美a一区二区| 99久久免费视频.com| 日韩手机在线导航| 一区二区三区四区精品在线视频| 精品夜夜嗨av一区二区三区| 91黄视频在线| 国产日韩亚洲欧美综合| 天天av天天翘天天综合网色鬼国产| 国产精品综合在线视频| 欧美日韩专区在线| 国产精品国产a级| 久久丁香综合五月国产三级网站| 色综合久久88色综合天天| 久久久久久综合| 免费久久精品视频| 欧美日韩亚州综合| 日韩美女视频一区| 国产成人综合在线播放| 日韩一区二区精品葵司在线| 亚洲综合视频在线观看| 成人教育av在线| 久久久久亚洲蜜桃| 紧缚捆绑精品一区二区| 91精品国产91久久久久久最新毛片| 一区二区三区中文字幕精品精品| 懂色av一区二区夜夜嗨| 久久久亚洲精品一区二区三区| 午夜精品免费在线观看| 欧美亚洲国产怡红院影院| 中文字幕在线一区免费| 国产精一区二区三区| 精品久久久久久久久久久久久久久久久 | 最近中文字幕一区二区三区| 国产酒店精品激情| 久久夜色精品国产欧美乱极品| 青青草原综合久久大伊人精品优势| 欧美日韩国产欧美日美国产精品| 一区二区三区在线视频播放| 色综合色狠狠天天综合色| 亚洲乱码精品一二三四区日韩在线 | 欧美日韩国产高清一区二区三区|