[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57559] parse error near line 165 of file ....
From: |
Botond Sandor Kirei |
Subject: |
[Octave-bug-tracker] [bug #57559] parse error near line 165 of file .... defuzz.m |
Date: |
Wed, 8 Jan 2020 10:22:49 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?57559>
Summary: parse error near line 165 of file .... defuzz.m
Project: GNU Octave
Submitted by: botondkirei
Submitted on: Wed 08 Jan 2020 03:22:47 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 5.1.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
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)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57559>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57559] parse error near line 165 of file .... defuzz.m,
Botond Sandor Kirei <=