Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
1 回表示 (過去 30 日間)
古いコメントを表示
Name='Corrective with MTTR'
Type='mamdani'
Version=2.0
NumInputs=4
NumOutputs=1
NumRules=15
AndMethod='min'
OrMethod='max'
ImpMethod='min'
AggMethod='max'
DefuzzMethod='centroid'
[Input1]
Name='Budget'
Range=[0 100]
NumMFs=3
MF1='low':'trimf',[0 0.006955 20]
MF2='medium':'trimf',[20 30 50]
MF3='high':'trimf',[50 71 100]
[Input2]
Name='Frequency'
Range=[0 12]
NumMFs=3
MF1='low':'trapmf',[0 0 2 3]
MF2='medium':'trapmf',[2 3 4 5]
MF3='high':'trapmf',[4 5 12 13]
[Input3]
Name='Age'
Range=[0 30]
NumMFs=3
MF1='Young':'trapmf',[-10 0 9 10]
MF2='Mid-Age':'trapmf',[9 10 15 16]
MF3='Old':'trapmf',[15 16 30 31]
[Input4]
Name='MTTR';
Range=[0 5];
NumMFs=4;
MF1='Low':'trapmf',[-1.607 0 1.607 2]
MF2='Medium':'trapmf',[1.5 1.606577 2.7748402 3]
MF3='High':'trapmf',[2.6 2.774803 3.226124 3.3]
MF4='Very_High':'trapmf',[3.1 3.226 5 6]
[Output1]
Name='Corrective_Maintenance'
Range=[0 4]
NumMFs=3
MF1='low':'trimf',[0 1 1.5]
MF2='medium':'trimf',[1.5 2 2.5]
MF3='high':'trimf',[2.5 3 3.5]
[Rules]
1 1 0 0, 1 (1) : 1
3 3 0 0, 3 (1) : 1
0 3 0 0, 3 (1) : 1
0 1 0 0, 1 (1) : 1
1 1 1 0, 1 (1) : 1
3 3 3 0, 3 (1) : 1
3 3 2 0, 3 (1) : 1
1 3 2 0, 3 (1) : 1
3 3 2 0, 3 (1) : 1
1 1 3 0, 3 (1) : 1
3 1 3 1, 3 (1) : 1
1 1 3 1, 3 (1) : 1
3 2 1 4, 2 (1) : 1
2 3 1 2, 3 (1) : 1
3 3 3 3, 3 (1) : 1
This is my mfile from fis, it shows an error of Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses when i run it, what should I amend?
0 件のコメント
回答 (1 件)
Walter Roberson
2021 年 3 月 23 日
fis are not m files. You need
https://www.mathworks.com/help/fuzzy/readfis.html
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Fuzzy Logic Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!