MATLAB: Does MATLAB crash when the weight of a rule for the EVALIFIS function from the Fuzzy Logic Toolbox is empty

evalfisfuzzyFuzzy Logic Toolboxlogicreadfissegmentationshowfistoolboxviolation

Instead of receiving a segmentation violation, I would like to see a more intuitive error generated.

Best Answer

This enhancement has been incorporated in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in MATLAB 6.5 (R13) in the way that MATLAB crashes when the weight of a rule for the EVALIFIS function from the Fuzzy Logic Toolbox is empty.
As a workaround, to prevent such segmentation violation, try applying SHOWFIS function to a FIS structure first. If no error occurs, use the EVALFIS function to perform fuzzy inference calculations.