有人用过matlab的模糊控制箱吗?

SoftWare1999 2003-04-17 08:19:00
为什么连一个简单的,结果COA会有错误呢?

给一个简单的给我吧
...全文
91 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
SoftWare1999 2003-04-21
  • 打赏
  • 举报
回复
呵呵,谢谢你了
leojay 2003-04-19
  • 打赏
  • 举报
回复
我是leojay,你可以把分给我了,呵呵。
SoftWare1999 2003-04-17
  • 打赏
  • 举报
回复
MinMax blocks do not accept 'boolean' signals. The input signal(s) of block 'untitled/Fuzzy Logic Controller/FIS Wizard/Defuzzification1/Max (COA)' must be one of the MATLAB 'uint8', 'uint16', 'uint32', 'int8', 'int16', 'int32', 'single', or 'double' data types

An error occurred while propagating data type 'boolean' from block 'untitled/Fuzzy Logic Controller/FIS Wizard/Defuzzification1/Zero Strength (COA)', output port 1


错误为以上信息。
请各位有matlab的兄弟,帮忙试一下,谢谢了
SoftWare1999 2003-04-17
  • 打赏
  • 举报
回复
a.fis的具体内容

[System]
Name='a'
Type='mamdani'
Version=2.0
NumInputs=1
NumOutputs=1
NumRules=3
AndMethod='min'
OrMethod='max'
ImpMethod='min'
AggMethod='max'
DefuzzMethod='centroid'

[Input1]
Name='input1'
Range=[0 1]
NumMFs=3
MF1='mf1':'trimf',[-0.4 0 0.4]
MF2='mf2':'trimf',[0.1 0.5 0.9]
MF3='mf3':'trimf',[0.6 1 1.4]

[Output1]
Name='output1'
Range=[0 1]
NumMFs=3
MF1='mf1':'trimf',[-0.4 0 0.4]
MF2='mf2':'trimf',[0.1 0.5 0.9]
MF3='mf3':'trimf',[0.6 1 1.4]

[Rules]
1, 1 (1) : 1
2, 2 (1) : 1
3, 3 (1) : 1
SoftWare1999 2003-04-17
  • 打赏
  • 举报
回复
我说一下我地步骤:
1.在matlab的命令窗口键入fuzzy
2.用默认的输入输出,让后加入规则
if (input1 = MF1) then (output1=Mf1) (1)
if (input1 = MF2) then (output1=Mf2) (1)
if (input1 = MF3) then (output1=Mf3) (1)
让后save 命名为a.fis
3.在matlab的命令窗口键入 a=readfis('a.fis')
4.打开simulink
5.加入fuzzy模块、Scope模块、const模块。
6.run,仿真 出错了


原来连了个复杂的也不行了
diabloqin 2003-04-17
  • 打赏
  • 举报
回复
没用过,帮你up

33,008

社区成员

发帖
与我相关
我的任务
社区描述
数据结构与算法相关内容讨论专区
社区管理员
  • 数据结构与算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧