This error will occur if the dimension of the input signal to the Fuzzy Logic Controller block does not match the number of inputs the FIS object is expecting. To check how many inputs a FIS object is expecting, try the following:
fis = readfis('tipper.fis')
You should get the following output:
fis =
name: 'tipper'
type: 'mamdani'
andMethod: 'min'
orMethod: 'max'
defuzzMethod: 'centroid'
impMethod: 'min'
aggMethod: 'max'
input: [1x2 struct]
output: [1x1 struct]
rule: [1x3 struct]
The input is a 1-by-2 structure array indicating that this FIS object is expecting 2 inputs. In Simulink, the dimension of the input to the Fuzzy Logic Controller block needs to have a value of 2.
Best Answer