matlab中的newfis,(To be removed) Create new fuzzy inference system

Defuzzification method for computing crisp output values.

If FISType is 'mamdani', specify

the defuzzification method as one of the following:

'centroid' — Centroid of the area under the

output fuzzy set. This method is the default for Mamdani

systems.

'bisector' — Bisector of the area under the

output fuzzy set

'mom' — Mean of the values for which the

output fuzzy set is maximum

'lom' — Largest value for which the output

fuzzy set is maximum

'som' — Smallest value for which the output

fuzzy set is maximum

If FISType is 'sugeno', specify

the defuzzification method as one of the following:

'wtaver' — Weighted average of all rule

outputs. This method is the default for Sugeno systems.

'wtsum' — Weighted sum of all rule

outputs

You can also specify the defuzzification method using a character

vector or string that contains the name of a custom function in the

current working folder or on the MATLAB path. For more information on using custom functions, see

Build Fuzzy Systems Using Custom Functions.

For more information on defuzzification and the fuzzy inference

process, see Fuzzy Inference Process.

MATLAB,可以使用fuzzy logic toolbox的"surfview"函数来生成fuzzy logic controller的surface四维表面图。该函数需要输入一个fuzzy inference system(FIS)对象,然后可以选择性地指定其他参数以控制图形的外观和行为。 下面是一个简单的例子,演示如何使用surfview函数绘制fuzzy logic controller的surface四维表面图: ``` % 创建一个FIS对象 fis = newfis('myfis','mamdani','min','max','min','max','centroid'); % 添加输入和输出变量 fis = addvar(fis,'input','age',[0 100]); fis = addvar(fis,'input','salary',[0 10000]); fis = addvar(fis,'output','risk',[0 1]); % 添加模糊集合和规则 fis = addmf(fis,'input',1,'young','trapmf',[0 0 20 30]); fis = addmf(fis,'input',1,'middle-aged','trapmf',[20 30 50 60]); fis = addmf(fis,'input',1,'old','trapmf',[50 60 100 100]); fis = addmf(fis,'input',2,'low','trapmf',[0 0 2000 4000]); fis = addmf(fis,'input',2,'medium','trapmf',[2000 4000 6000 8000]); fis = addmf(fis,'input',2,'high','trapmf',[6000 8000 10000 10000]); fis = addmf(fis,'output',1,'low','trimf',[0 0.25 0.5]); fis = addmf(fis,'output',1,'medium','trimf',[0.25 0.5 0.75]); fis = addmf(fis,'output',1,'high','trimf',[0.5 0.75 1]); rulelist = [1 1 1 1 1; 2 2 2 1 1; 3 3 3 1 1]; fis = addrule(fis,rulelist); % 使用surfview函数绘制表面图 surfview(fis); ``` 在这个例子,我们首先创建了一个FIS对象并添加了输入和输出变量,以及模糊集合和规则。然后,我们使用surfview函数绘制了该FIS对象的surface四维表面图。 您可以根据需要修改FIS对象的变量,模糊集合和规则,以生成所需的表面图。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值