Re: Persistent issue installing the `fuzzy-logic-toolkit-0.4.5`

Andreas Weber <[email protected]>
Newsgroups gmane.comp.gnu.octave.general
Message-ID <[email protected]>
Am 13.02.21 um 00:24 schrieb seamusdemora:
> My system is Linux Ubuntu 20.04, GNU Octave, version 5.2.0
> 
> I've tried this multiple times, in multiple ways, but the result is always
> the same:
> ...
>>> pkg install -forge fuzzy-logic-toolkit
> parse error near line 165 of file
> /home/seamus/octave/fuzzy-logic-toolkit-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;

Looks like this was fixed in 2018 but never released:
https://sourceforge.net/p/octave/fuzzy-logic-toolkit/ci/00e05af94b3762d2e051ad28fb436da089160f40/

You can clone and build it yourself:
$ hg clone http://hg.code.sf.net/p/octave/fuzzy-logic-toolkit 
octave-fuzzy-logic-toolkit
$ make dist

in GNU Octave: "pkg install target/fuzzy-logic-toolkit-0.4.5.tar.gz"

-- Andy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.