Asking about help in Fuzzy inference system?
Show older comments
I'm using the fuzzy inference system for my work to obtain optimal results. I have 5 input variables and 2 output variables. Each input has 3 membership functions (low, medium, high) and each output also has 3 membership functions and so the number of rules is 243 rule. When I tried to test the code it gives me an error in the evalfis function.
Can you please help me to solve this error?
Thanks in advance
Abdelrahmasn Samy
PhD student
4 Comments
Sam Chak
on 14 Jun 2022
@Abdelrahman Samy, perhaps you forgot to show the FIS code and the info about the fuzzy system?
Abdelrahman Samy
on 14 Jun 2022
Abdelrahman Samy
on 14 Jun 2022
Abdelrahman Samy
on 14 Jun 2022
Answers (1)
Most likely that the input trnX that you passed into the evalfis function is of some other class (not double or single), for example, it contains some non-numeric data.
Please check the input trnX again. For example:
trnX = pi;
tf = isa(trnX, 'double')
If it returns "1", then it is true that the data type in trnX is a double. After all, it is a π constant.
Categories
Find more on Fuzzy Logic Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
