I am trying to evaluate my FIS with eval(input, fis) and in doing so I got the folowing error when previously I useed fis = readfis (‘dc_motor.fis’) to get my FIS
evalfis ([45 -23], fis)
error: trapmf's second argument must be a parameter vector
>>
My FIS include the following inputs and output:
[Input1]
Name= 'Error'
Range= [-97.5 +97.5 ]
NumMFs = 5
MF1='Nl':'trapmf', [-67-66 -65 -32.5 ]
MF2='Ns':'trimf' , [-65 -32.5 0 ]
MF3='Z' :'trimf' , [-32.5 0 32.5]
MF4='Ps':'trimf', [0 32.5 65]
MF5='Pl':'trapmf', [32.5 65 66 67]
[Input2]
Name ='Edot'
Range=[-54 54]
NumMFs=5
MF1='Nl':'trapmf',[-38-37 -36 -18]
MF2='Ns':'trimf', [-36 18 0]
MF3='Z' :'trimf', [-18 0 18]
MF4='Ps':'trimf', [0 18 36]
MF5='Pl':'trapmf, [18 36 37 38]
[Output1]
Name ='U'
Range=[-255 255]
NumMFs=5
MF1='Nl':'trimf', [-155 -103.3 -51.66]
MF2='Ns':'trimf', [-103.3 -51.66 0]
MF3='Z ':'trimf', [-51.66 0 51.6 ]
MF4='Ps':'trimf', [0 51.66 103.3]
MF5='Pl':'trimf', [-255 -170 -85 0 85 170 255]
Above is what I tried.
I expect to understand what that message error is telling me about the second argument because the second arguments is the fis word as documentation is showing.
New contributor
Saturn777 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1