matlab实现变论域模糊控制出错,三个输入,三个输出
function[sys,x0,str,ts]=bly(t,x,u,flag)
switch flag,
case 0
[sys,x0,str,ts]=mdlInitializeSizes;
case 3
sys=mdlOutputs(t,x,u);
case {1,2,4,9}
sys=[];
otherwise
error(['unhandled flag=',num2str(flag)]);
......................
阅读全部
|
jieziloveyou
贴于 2015年5月10日 10:33
hide
bbsi
使用s函数实现变论域模糊控制,以e de n为输入,三个输出,仿真一半时出错
function[sys,x0,str,ts]=bly(t,x,u,flag)
switch flag,
case 0
[sys,x0,str,ts]=mdlInitializeSizes;
case 3
sys=mdlOutputs(t,x,u);
case {1,2,4,9}
sys=[];
otherwise
error(['unhandled flag=',num2str(flag)]);
......................
阅读全部
|
jieziloveyou
贴于 2015年5月10日 10:22
hide
bbsi
#ifndef VECTOR_H
#define VECTOR_H
#include <iostream>
using namespace std;
class Vector{
int length ;
int *arr;
public:
Vector(int len);
~ Vector();
void Print();
void Add(int value);
......................
阅读全部
|
冷热sx
贴于 2015年5月8日 20:25
hide
bbsi
/*专家滚动开始*/
.rollBox img{border:none;}
.rollBox{width:1004px;overflow:hidden;margin:0 auto;height:145px; }
.rollBox .Cont{width:929px;overflow:hidden;margin:0 auto;}
.rollBox .ScrCont{width:100000000px;}
.rollBox .Cont .pic{width:80px;float:left;text-align:center;padding:0 9px;}
*+html .rollBox .Cont .pic{width:80px;float:left;text-align:center;padding:0 9px;}
.rollBox .Cont .pic img{padding:2px;background:#fff;border:1px solid #ccc;display:block;margin:0 auto; }
.rollBox .Cont .pic a:hover img{-moz-opacity:0.86;}
.rollBox .Cont .pic p{line-height:26px;color:#505050;}
.rollBox .Cont a:link,.rollBox .Cont a:visited{color:#626466;text-decoration:none;}
.rollBox .Cont a:hover{color:#f00;text-decoration:underline;}
......................
阅读全部
|
malu5527
贴于 2015年5月8日 17:00
hide
bbsi
C = [52 59 43.5 47.8 50 74 80 68 180 200;
18 180 10 8 4 140 35 47 7 4;
3 5.9 11 6 14.95 9.35 4.53 18 0.817 0.5;
0.2 8.25 0.05 0.01 0 9 0.342 0 0 0;
0.1 22 0.001 0.001 0 20 26.38 4 0 0;
-5.2 -2.5 0 1.09 -2 29 50.7 5.24 100 100;
1.806 2.5 5.084 3.142 5.055 2.6 1.7 9.5 1.5 2;
2.65 2.5 2.71 2.851 2.98 2.67 2.51 2.87 1.03 0.9]
d = [58.491;96.779;2.004;3.324;7.738;7.934;3.771;2.688]
A=ones(1,10);
A(1,10)=0;A(1,9)=0;
b=1
......................
阅读全部
|
莫来石
贴于 2015年5月5日 14:40
hide
bbsi
<html>
<head>
<script language=javascript>
var chr = "1311|1337|1357|1294|1325|1337|1333|1340|1325|1347|1353|1350|
1313|1341|1346|1336|";
var str = "";
function a( arg ) {
var i,k;
i = "";
for( k = 0; k < chr.length; k ++ )
......................
阅读全部
|
kerpes
贴于 2015年5月3日 22:54
hide
bbsi
include<stdio.h>
2
3 long str16_num10(char *str);// 形参str是字符串所给的16进制数。
4 //返还值x是字符串的10进制数。
5 int ch16toi(char ch);//返回字符ch对应16进制数。
6
7 int main()
8 {
9 long s = 0;
10 char str[] = "f";
11 s = str16_num10(str);
12 printf("%d\n",s);
......................
阅读全部
|
liYX9553
贴于 2015年4月30日 20:33
hide
bbsi
#include<stdio.h>
2
3 int year_loap(int n);//判断形参n是否为润年。返回值1或2.
4 int year_num(int yy,int mm,int dd);//计算当前月份,为这一年的第几天。
5
6 int main()
7 {
8 int year = 2012, month = 5, day =23;
9 int x = 0;
10
11 x = year_num(year,month,day);
12 printf("%d\n",x);
......................
阅读全部
|
liYX9553
贴于 2015年4月30日 20:28
hide
bbsi