全文预览

模糊统计试验

上传者:菩提 |  格式:doc  |  页数:12 |  大小:0KB

文档介绍
; for j=1:y2 if (ww>=da1(1,j)&ww<=da1(2,j)) Ax= Ax+1; end end Ax=Ax/y2; ax=num2str(Ax); set(handles.text8, 'String' ,ax); guidata(hObject, handles); function pushbutton6_Callback(hObject, eventdata, handles) % hObject handle to pushbutton6 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global da; da1=cell2mat(da); da1=da1'; [y1 y2]=size(da1); A1=da1(1,1);A2=da1(1,1); for i=1:1: y2 if (da1(1,i)<A1) A1=da1(1,i); end if (da1(2,i)>A2) A2=da1(2,i); end end x=1:(A2-A1)/100:100; Ax=[]; 9 for i=1:1:length(x) Ax(i)=0; for j=1:y2 if (x(i)>=da1(1,j)&x(i)<=da1(2,j)) Ax(i)= Ax(i)+1; end end Ax(i)=Ax(i)/y2; end plot(x,Ax) axes(handles.axes2); guidata(hObject, handles); 3.2.2 隶属函数的页面图1 隶属函数主页面 10 图2 试验次数 20 次的隶属函数

收藏

分享

举报
下载此文档