bugGNU Octave - Bugs: bug #57559, [octave forge]...

 
 

bug #57559: [octave forge] (fuzzy-logic-toolkit) parse error near line 165 of file defuzz.m

Submitter:  Botond Sandor Kirei <botondkirei>
Submitted:  Wed 08 Jan 2020 03:22:47 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 5.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 08 Jan 2020 07:35:13 PM UTC, comment #1: 

This has already been fixed in the package repository, see bug #53549.

Mike Miller <mtmiller>
Group Member
Wed 08 Jan 2020 03:22:47 PM UTC, original submission:  

After I create a fuzzy controller, and try to plot the control surface a pasing error appears:

------------------------------copied from the command prompt ----

parse error near line 165 of file C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\fuzzy-logic-tool
kit-0.4.5\defuzz.m

  anonymous function bodies must be single expressions

>>>   y_val = @(y_val) if (y_val == max_y) 1 else 0 endif;

                        ^

error: called from
    defuzzify_output_mamdani at line 82 column 15
    evalfis_private at line 57 column 20
    gensurf>generate_plot at line 160 column 10
    gensurf at line 119 column 5

----------------------------------------------------------

The fuzzy inferention system I try to run:

fis = newfis("me_lab");

fis = addvar(fis, "input", "temperatura", [-20,50]);
fis = addmf(fis, "input", 1, "frig", "trapmf", [-Inf -20, 0, 20]);
fis = addmf(fis, "input",1,"cald", "trapmf",[10, 30, 50, Inf]);

fis = addvar(fis, "output","comanda", [0 1]);
fis = addmf(fis, "output",1, "oprit", "trapmf", [-Inf, 0, 0.1, 0.11]);
fis = addmf(fis, "output",1, "pornit", "trapmf", [0.89, 0.9, 1, Inf]);
fis = addmf(fis, "output",1, "nu_conteaza", "trapmf", [0.09 0.11 0.89 0.91]);

rules = [1 2 1 2
        2 1 1 2];
fis = addrule(fis,rules);

plotmf(fis, 'input',1);
plotmf(fis, 'output',1);
showrule(fis)

gensurf(fis)

Botond Sandor Kirei <botondkirei>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Carbon-Copy List
  • -email is unavailable- added by botondkirei (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-22 lostbard Dependencies- bugs #59158 is dependent
    2020-06-14 mtmiller Dependencies- bugs #58563 is dependent
    2020-02-26 mtmiller Dependencies- bugs #57904 is dependent
    2020-02-15 mtmiller Dependencies- bugs #57820 is dependent
    2020-01-08 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed
        Summary[fuzzy logic package] parse error near line 165 of file .... defuzz.m [octave forge] (fuzzy-logic-toolkit) parse error near line 165 of file defuzz.m
    2020-01-08 rik5 Carbon-CopyRemoved 72865 -
    2020-01-08 rik5 CategoryOctave Function Octave Package
        Summaryparse error near line 165 of file .... defuzz.m [fuzzy logic package] parse error near line 165 of file .... defuzz.m

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code