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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? gpc.asv

?? 使用matlab實(shí)現(xiàn)智能預(yù)測(cè)控制算法中的GPC算法
?? ASV
字號(hào):
function varargout = GPC(varargin)
% GPC M-file for GPC.fig
%      GPC, by itself, creates a new GPC or raises the existing
%      singleton*.
%
%      H = GPC returns the handle to a new GPC or the handle to
%      the existing singleton*.
%
%      GPC('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in GPC.M with the given input arguments.
%
%      GPC('Property','Value',...) creates a new GPC or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before GPC_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to GPC_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 GPC

% Last Modified by GUIDE v2.5 15-Dec-2005 15:29:52
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @GPC_OpeningFcn, ...
                   'gui_OutputFcn',  @GPC_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin & isstr(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 GPC is made visible.
function GPC_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 GPC (see VARARGIN)

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

% Update handles structure
guidata(hObject, handles);

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


% --- Outputs from this function are returned to the command line.
function varargout = GPC_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;
% --------------------------------------------------------------------function project_Callback(hObject, eventdata, handles)% hObject    handle to project (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function begin_Callback(hObject, eventdata, handles)% hObject    handle to begin (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global yr;
global n;
N=str2num(get(handles.N,'String'));
Nu=str2num(get(handles.Nu,'String'));
r=str2num(get(handles.r,'String'));
a=str2num(get(handles.a,'String'));
y0=str2num(get(handles.y0,'String'));
u0=str2num(get(handles.u0,'String'));

A=str2num(get(handles.modelA,'String'));
B=str2num(get(handles.modelB,'String'));

O=[1,-1]; 
En=zeros(1,N);
F=zeros(N,length(A));
Aa=conv(A,O);
En(1)=1;
k=zeros(size(Aa));
k(1)=1;
L=k-Aa;
F(1,:)=L(2:end);
for j=1:N-1
    En(j+1)=F(j,1);
    L=[F(j,:),0]-En(j+1).*Aa;
    F(j+1,:)=L(2:end);
end
E=cell(1,N);
for i=1:1:N
    E{i}=En(1:i);
end
 
H=cell(1,N);
G=cell(1,N);
for j=1:N
    Gl=conv(E{j},B);
    G{j}=Gl(1:j);
    H{j}=Gl(j+1:end);
end

G1=zeros(N,Nu);

for i=1:N
    if i<Nu
        G1(i,i:-1:1)=G{N}(1:i); 
    end
    if i>Nu
        G1(i,1:Nu)=G{N}(i:-1:i-Nu+1);
    end
end

Al=(-1).*A(2:end);
y=zeros(1,n);
u=zeros(1,n);
yd=zeros(N,1);
yo=zeros(N,1);
Y=zeros(length(A)-1,1);
U=zeros(length(B),1);
for i=1:(length(A)-1)
    Y(i,1)=y0(i);
end
for i=1:length(B)
    U(i,1)=u0(i);
end
for k=1:n
    y(k)=Al*Y+B*U;
    
    yd(1)=a*y(k)+(1-a)*yr(k);
    for j=2:N
        yd(j)=a*yd(j-1)+(1-a)*yr(k);
    end
    
   Yt=[y(k);Y];
   for j=1:N
       yo(j)=F(j,:)*Yt+conv(O,H{j})*U;
   end
   
   I=eye(Nu);
   tmp=inv(G1'*G1+r.*I)*G1'*(yd-yo);
   u(k)=U(1)+tmp(1);
   
   for j=length(A)-1:-1:2
       Y(j,1)=Y(j-1);
   end
   Y(1,1)=y(k);
   for j=length(B):-1:2
       U(j,1)=U(j-1);
   end
   U(1,1)=u(k);
       
end

k=1:n;
axes(handles.axesy);
plot(k,yr(k),k,y(k));
axes(handles.axesu);
plot(k,u(k));% --------------------------------------------------------------------function exit_Callback(hObject, eventdata, handles)% hObject    handle to exit (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)close;% --------------------------------------------------------------------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)% --- Executes during object creation, after setting all properties.function yrmenu_CreateFcn(hObject, eventdata, handles)% hObject    handle to yrmenu (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    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));end% --- Executes on selection change in yrmenu.function yrmenu_Callback(hObject, eventdata, handles)% hObject    handle to yrmenu (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 yrmenu contents as cell array%        contents{get(hObject,'Value')} returns selected item from yrmenuglobal yr;
global n;
val = get(hObject,'Value');
switch val
case 2
prompt={'請(qǐng)輸入階躍信號(hào)設(shè)定值:','請(qǐng)輸入運(yùn)行步數(shù):'};
title='設(shè)定曲線';
def={'10','200'};
answer=inputdlg(prompt,title,1,def);
stan=str2num(answer{1});
n=str2num(answer{2});
yr=zeros(1,n);
for i=1:n
    yr(i)=stan;
end
case 3
    
prompt={'請(qǐng)輸入正弦函數(shù)的幅值:','請(qǐng)輸入正弦函數(shù)的周期:','請(qǐng)輸入運(yùn)行步數(shù):'};
title='正弦函數(shù)輸入框';
def={'10','40','200'};
answer=inputdlg(prompt,title,1,def);
a=str2num(answer{1});
b=str2num(answer{2});
n=str2num(answer{3});
for t=1:n
    yr(t)=a*sin(2*3.14*t/b);
end

case 4
   
prompt={'請(qǐng)輸入方波函數(shù)的最大幅值:','請(qǐng)輸入方波函數(shù)的最小幅值:','請(qǐng)輸入方波函數(shù)的周期:','請(qǐng)輸入運(yùn)行步數(shù):'};
title='方波函數(shù)輸入框';
def={'5','5','40','200'};
answer=inputdlg(prompt,title,1,def);
amax=str2num(answer{1});
amin=str2num(answer{2});
b=str2num(answer{3});
n=str2num(answer{4});
for m=0:n/b
     for k=1:b/2
         yr(m*b+k)=amax;
     end
     for k=b/2:b
         yr(m*b+k)=-1*amin;
     end
 end
end;
% The user selected the second item
% etc.
% k=1:100;
% axes(handles.axesy);
% plot(k,yr(k));% --- Executes during object creation, after setting all properties.
function modelA_CreateFcn(hObject, eventdata, handles)% hObject    handle to modelA (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'));endfunction modelA_Callback(hObject, eventdata, handles)% hObject    handle to modelA (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 modelA as text%        str2double(get(hObject,'String')) returns contents of modelA as a double% --- Executes during object creation, after setting all properties.function modelB_CreateFcn(hObject, eventdata, handles)% hObject    handle to modelB (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'));endfunction modelB_Callback(hObject, eventdata, handles)% hObject    handle to modelB (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 modelB as text%        str2double(get(hObject,'String')) returns contents of modelB as a double% --- Executes during object creation, after setting all properties.function N_CreateFcn(hObject, eventdata, handles)% hObject    handle to N (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'));endfunction N_Callback(hObject, eventdata, handles)% hObject    handle to N (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 as text%        str2double(get(hObject,'String')) returns contents of N as a double% --- Executes during object creation, after setting all properties.function Nu_CreateFcn(hObject, eventdata, handles)% hObject    handle to Nu (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'));endfunction Nu_Callback(hObject, eventdata, handles)% hObject    handle to Nu (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 Nu as text%        str2double(get(hObject,'String')) returns contents of Nu as a double% --- Executes during object creation, after setting all properties.function a_CreateFcn(hObject, eventdata, handles)% hObject    handle to a (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'));endfunction a_Callback(hObject, eventdata, handles)% hObject    handle to a (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 a as text%        str2double(get(hObject,'String')) returns contents of a as a double% --- Executes during object creation, after setting all properties.function r_CreateFcn(hObject, eventdata, handles)% hObject    handle to r (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'));endfunction r_Callback(hObject, eventdata, handles)% hObject    handle to r (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 r as text%        str2double(get(hObject,'String')) returns contents of r as a double% --- Executes during object creation, after setting all properties.function u0_CreateFcn(hObject, eventdata, handles)% hObject    handle to u0 (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'));endfunction u0_Callback(hObject, eventdata, handles)% hObject    handle to u0 (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 u0 as text%        str2double(get(hObject,'String')) returns contents of u0 as a double% --- Executes during object creation, after setting all properties.function y0_CreateFcn(hObject, eventdata, handles)% hObject    handle to y0 (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'));endfunction y0_Callback(hObject, eventdata, handles)% hObject    handle to y0 (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 y0 as text%        str2double(get(hObject,'String')) returns contents of y0 as a double

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲日本va午夜在线电影| 2022国产精品视频| 久久综合九色综合97_久久久| 成人黄色国产精品网站大全在线免费观看| 7878成人国产在线观看| 一区二区三区日韩精品视频| 成人国产精品免费观看视频| 日韩高清在线一区| 4438x成人网最大色成网站| 国产宾馆实践打屁股91| 中文av一区二区| 成人a级免费电影| 蜜臀精品一区二区三区在线观看 | 色偷偷久久人人79超碰人人澡| 国产欧美一区二区精品秋霞影院| 精品亚洲国产成人av制服丝袜| 欧美xfplay| 国产麻豆精品theporn| 国产日韩欧美在线一区| 在线综合+亚洲+欧美中文字幕| 91免费看视频| 亚洲成人黄色小说| 欧美成人精品二区三区99精品| 欧美天堂一区二区三区| 免费观看在线色综合| 欧美激情中文不卡| 欧美做爰猛烈大尺度电影无法无天| 婷婷综合另类小说色区| 国产亚洲人成网站| 欧美亚洲自拍偷拍| 91啪九色porn原创视频在线观看| 成人晚上爱看视频| 免费观看30秒视频久久| 亚洲成人动漫一区| 午夜精品久久久久久| 亚洲国产成人av好男人在线观看| 欧美电影免费观看高清完整版| 成人免费毛片aaaaa**| 国产成人一区二区精品非洲| 亚洲午夜久久久久久久久电影网| 亚洲免费看黄网站| 亚洲黄一区二区三区| 在线观看一区日韩| 在线日韩一区二区| 欧美亚洲动漫制服丝袜| 欧美日韩免费高清一区色橹橹 | 国产精品一级在线| 一级女性全黄久久生活片免费| 自拍偷自拍亚洲精品播放| 日韩美女视频一区| 亚洲黄色在线视频| 亚洲地区一二三色| 日本最新不卡在线| 国产在线视视频有精品| 亚洲综合图片区| 久久午夜羞羞影院免费观看| 2017欧美狠狠色| 亚洲国产精品激情在线观看| 日韩理论在线观看| 亚洲国产精品一区二区久久恐怖片| 婷婷一区二区三区| 国产乱人伦精品一区二区在线观看| 国产a级毛片一区| 色综合一个色综合| 国产91精品露脸国语对白| 成人手机在线视频| 色欧美片视频在线观看在线视频| 欧美亚洲高清一区二区三区不卡| 91精品国产综合久久精品麻豆| 成人午夜av电影| 在线中文字幕不卡| 99vv1com这只有精品| 成人av电影免费观看| 欧美性生活一区| 欧美mv和日韩mv的网站| 国产精品国产自产拍高清av王其| 国产亚洲欧洲一区高清在线观看| 日韩久久一区二区| 毛片一区二区三区| av在线不卡电影| 成人av免费网站| 欧美日韩国产美| 国产亚洲一区二区三区四区 | 国产美女一区二区三区| 在线一区二区视频| 欧美精品一区二区精品网| 日韩一级片在线观看| 日韩亚洲欧美一区二区三区| 国产婷婷色一区二区三区四区| 亚洲一区国产视频| 国产高清亚洲一区| 在线综合视频播放| 亚洲日本在线视频观看| 精品一区二区在线看| 色香蕉成人二区免费| 精品成人在线观看| 亚洲永久免费av| 懂色中文一区二区在线播放| 69堂亚洲精品首页| 亚洲日本在线a| 国内成人免费视频| 欧美日本在线一区| 亚洲人成伊人成综合网小说| 国产尤物一区二区| 91麻豆精品国产自产在线观看一区| 国产精品国产三级国产| 国产一区二区精品久久91| 9191国产精品| 一区二区三区不卡视频| 成人精品免费网站| 久久综合视频网| 男女男精品网站| 欧美人牲a欧美精品| 日韩久久一区二区| 成人一道本在线| 久久久久久久久一| 椎名由奈av一区二区三区| 国产一区二区电影| 精品欧美黑人一区二区三区| 亚洲成人免费av| 欧美日韩中文字幕精品| 亚洲欧洲日韩一区二区三区| 视频一区中文字幕| 国产成人精品免费网站| 久久这里只精品最新地址| 久久精品72免费观看| 成人白浆超碰人人人人| 久久久精品黄色| 韩国av一区二区三区四区| 精品蜜桃在线看| 麻豆精品久久久| 精品国产一区二区精华| 久久99久久99小草精品免视看| 3atv在线一区二区三区| 视频一区欧美日韩| 欧美精品成人一区二区三区四区| 国产欧美日韩一区二区三区在线观看| 激情久久久久久久久久久久久久久久| 欧美成人精品二区三区99精品| 男人的天堂久久精品| 日韩美一区二区三区| 激情图片小说一区| 国产亚洲精品bt天堂精选| 国产91精品欧美| 日韩伦理av电影| 欧美性做爰猛烈叫床潮| 天天色 色综合| 日韩一区二区三区视频在线观看 | 日韩成人精品在线| 日韩欧美中文字幕制服| 国产一区二区三区美女| 国产精品人妖ts系列视频| 99精品视频中文字幕| 亚洲愉拍自拍另类高清精品| 91麻豆精品91久久久久同性| 蜜桃一区二区三区在线| 国产午夜精品一区二区三区四区 | 国产成人免费视频精品含羞草妖精| 国产丝袜美腿一区二区三区| av中文字幕亚洲| 亚洲福利一二三区| 欧美变态凌虐bdsm| 成人av网站在线观看免费| 一区二区三区四区不卡视频| 717成人午夜免费福利电影| 国精产品一区一区三区mba桃花| 欧美激情一区二区三区蜜桃视频 | 精品三级在线观看| 成人av网站在线观看| 亚洲观看高清完整版在线观看| 日韩欧美你懂的| 成人a免费在线看| 午夜电影一区二区三区| 国产欧美一区二区三区在线老狼| 99久久伊人久久99| 秋霞午夜鲁丝一区二区老狼| 国产亚洲一区字幕| 欧美三级日韩三级国产三级| 国产一区二区按摩在线观看| 亚洲少妇30p| 日韩欧美不卡在线观看视频| jvid福利写真一区二区三区| 石原莉奈在线亚洲二区| 中文字幕中文在线不卡住| 欧美一级生活片| 99久久精品一区二区| 免费观看日韩av| 一区二区三区在线观看国产| 久久欧美中文字幕| 欧美日韩国产首页| www.一区二区| 久久国产麻豆精品| 亚洲一级片在线观看| 久久伊人蜜桃av一区二区| 欧美亚洲图片小说| 成人av免费在线| 久久99深爱久久99精品| 亚洲综合清纯丝袜自拍| 国产色产综合色产在线视频| 91麻豆精品国产自产在线观看一区|