Help in Fuzzy logic

조회 수: 5 (최근 30일)
mahdi hossaini
mahdi hossaini 2017년 11월 26일
댓글: dani ansari 2022년 3월 31일
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
Sameema Tariq
Sameema Tariq 2020년 3월 29일
Have you resolved this issue?

댓글을 달려면 로그인하십시오.

답변 (2개)

said belhadj
said belhadj 2019년 9월 5일
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
dani ansari
dani ansari 2022년 3월 31일
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.

댓글을 달려면 로그인하십시오.


tahri Abbes
tahri Abbes 2021년 2월 10일
I got the same problem, any one knows how to resolve this ?

카테고리

Help CenterFile Exchange에서 Fuzzy Inference System Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by