Help in Fuzzy logic

5 views (last 30 days)
mahdi hossaini
mahdi hossaini on 26 Nov 2017
Commented: dani ansari on 31 Mar 2022
Hello, I have a solar pv module and fuzzy logic box when I launch my program, I got two errors: 1.Error in 'solar_pv_module_fuzzy/Fuzzy Logic Controller with Ruleviewer/Animation1' while executing MATLAB S-function 'animrule', flag = 0 (initialize), at start of simulation. Caused by: Struct contents reference from a non-struct array object.
2.Error in 'solar_pv_module_fuzzy/Fuzzy Logic Controller with Ruleviewer/Animation1' while executing MATLAB S-function 'animrule', flag = 0 (initialize), at start of simulation. Caused by: Struct contents reference from a non-struct array object. I have two inputs and one output in fuzzy system, and DV(Voltage variation) is one of the inputs.
Anyone has any idea why it does not work? Is there any concurrency issues or something like that?
thanking you in advance
  1 Comment
Sameema Tariq
Sameema Tariq on 29 Mar 2020
Have you resolved this issue?

Sign in to comment.

Answers (2)

said belhadj
said belhadj on 5 Sep 2019
Hello, I want to use the memberships functions to define my two inputs and outputs but I do not know how to limit their intervals knowing that the first entry varies from -100 to +100, the second entry from 0 to 30 and the output from 0 to 100 Do you have an idea ??? Thank you.
Cordially.
  1 Comment
dani ansari
dani ansari on 31 Mar 2022
too late but anyway
for putting your input or output into the intervals when you knowthe variation of your variable you can use gain.for your example you can use gain 0.01 for your input. or more simple you can put your range in toolbox -100 to 100.

Sign in to comment.


tahri Abbes
tahri Abbes on 10 Feb 2021
I got the same problem, any one knows how to resolve this ?

Categories

Find more on Fuzzy Inference System Modeling in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!