Can Fuzzy Logic Toolbox output words?

2 views (last 30 days)
Nick Kelly
Nick Kelly on 14 Jan 2016
Commented: Nick Kelly on 5 Jun 2018
I have a simple .fis that outputs values between -3 and 3. There are three distinct categories within -3 and 3, meaning between -3 and -1 represents one category, -1 to 1 another, and 1 to 3 the last one. The fuzzy operator outputs numbers, which is what I expected it to do, but when looking at the numbers I'm having to convert in my head which category it is. Not that big of a deal, I know, but is still a minor inconvenience.
So my question is, can I have the fuzzy operator output words instead of numbers? If not, how do I make the matrix that the fuzzy operator is outputting into a specific matrix that says the name of my categories?
  2 Comments
Olivia Milton-thompson
Olivia Milton-thompson on 4 Jun 2018
Hi Nick, I understand you published this a while ago but I've got the same question as you, and I was wondering if you got a solution in the end?
Thanks :)
Nick Kelly
Nick Kelly on 5 Jun 2018
figure(1)
Labels = {'High' 'Mid' 'Low'}; %creates Y-axis cell
plot(T, Data)
set(gca, 'YTick', -1:1, 'YTickLabel', Labels); % makes Y-axis Labels
xlabel('Time(s)'); ylabel('Position');
This is what worked for what I needed.

Sign in to comment.

Answers (0)

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!