Asking about help in Fuzzy inference system?

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

@Abdelrahman Samy, perhaps you forgot to show the FIS code and the info about the fuzzy system?
This is the fis model that I made with 5 input and two outputs. The second image is the error it gives me when I want to evaluate the system using the evalfis function

Sign in to comment.

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')
tf = logical
1
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

Asked:

on 14 Jun 2022

Edited:

on 15 Jun 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!