Clear Filters
Clear Filters

ANFIS Toolbax Test FIS graph

6 views (last 30 days)
Hazal Eylül
Hazal Eylül on 2 May 2023
Commented: Hazal Eylül on 29 May 2023
I try to predict a parameter using ANFIS. Is the grapgh that is shown in the toolbax modifiable? For example I want to change the lables, or want to see predictions vs actual results. How can i change the graph? Or can i create the graph using fis output data? Is this data available?

Answers (1)

Bhanu Prakash
Bhanu Prakash on 11 May 2023
Hi Hazal,
As per my understanding, you want to modify the graph shown in the ANFIS toolbox.
You can change the labels of the graphs using "xlabel" & "ylabel" functions. The ANFIS output is calculated using the "evalfis" function. Consider the code shown below:
fis = anfis(TrainingData);
x = fuzex1trnData(:,1);
anfisOutput = evalfis(fis,x);
plot(anfisOutput);
where, the function "anfis" is used to create a fuzzy interface system "fis" from the training data "TrainingData". The FIS output "anfisOutput" is calculated using the function "evalfis" and the training data.
You can plot the "anfisOutput" with the help of the "plot" function.
For more information on the above-mentioned functions, you can refer to the following documentation:
For "anfis" function:
For "evalfis" function:
For "plot" function:
  1 Comment
Hazal Eylül
Hazal Eylül on 29 May 2023
Thank you for your answer. I want to modify the graph so that I can exactly see the predicted values of the fis inference vs real values. The error given at the end of the process is an average error. I have lots of data so that i can not try them individually to see what is the output value. So is there any way to take the predicted values as a matrix? So maybe ı can create my own graph with real vs predicted values. Thanks.

Sign in to comment.

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!