Using fuzzy logic toolbox on Octave

我怕爱的太早我们不能终老 提交于 2019-12-11 15:49:03

问题


I've install Octave and the fuzzy logic toolkit to work with Fuzzy Inference Systems.

pkg install fuzzy-logic-toolkit-0.4.5.tar.gz
    For information about changes from previous versions of the fuzzy-logic-toolkit package, run 'news fuzzy-logic-toolkit'.
>> pkg list
Package Name         | Version | Installation directory
---------------------+---------+-----------------------
fuzzy-logic-toolkit  |   0.4.5 | /home/bgarcial/octave/fuzzy-logic-toolkit-0.4.5

But ... How to can I use the toolkit?

I type pkg load fuzzy-logic-toolkit and the command was accepted

>> pkg load fuzzy-logic-toolkit

>>

In this point I can test some samples and functions like in this link

>> demo('sigmf')
sigmf example 1:
 x = 0:100;
 params = [0.3 40];
 y1 = sigmf(x, params);
 params = [0.2 40];
 y2 = sigmf(x, params);
 params = [0.1 40];
 y3 = sigmf(x, params);
 figure('NumberTitle', 'off', 'Name', 'sigmf demo');
 plot(x, y1, 'r;params = [0.3 40];', 'LineWidth', 2)
 hold on;
 plot(x, y2, 'b;params = [0.2 40];', 'LineWidth', 2)
 hold on;
 plot(x, y3, 'g;params = [0.1 40];', 'LineWidth', 2)
 ylim([-0.1 1.2]);
 xlabel('Crisp Input Value', 'FontWeight', 'bold');
 ylabel('Degree of Membership', 'FontWeight', 'bold');
 grid;

>>

And I can see this chart

My question is.

There is some way of use fuzzy-logic-toolbox in which I can enter the inputs, outputs, linguistic categories and ranges in the discourse universe, like fuzzy toolbox in Matlab?


回答1:


If I am interpreting your question correctly, it seems you are expecting to be able to open a graphical user interface just like you would in the Matlab Fuzzy Logic toolbox. Something like what is shown in the Matlab documentation here.

From the function list for Octave's fuzzy logic toolkit package, it does not appear that the package includes a graphical interface. The Matlab GUI does just call underlying toolbox functions, however. If you want to use Octave for this task, you will need to use the individual functions from the command line or a script.



来源:https://stackoverflow.com/questions/49328230/using-fuzzy-logic-toolbox-on-octave

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!