필터 지우기
필터 지우기

Error in Fuzzy Logic Example Live Script - How to fix it?

조회 수: 2 (최근 30일)
Julian
Julian 2022년 8월 7일
답변: Chad MacDonald 2023년 9월 5일
Hello,
I am trying to execute the Fuzzy Logic Example "ArtificialPancreasUsingFuzzyLogicExample" and when entering the code
% Configure input and output variables.
fis1 = updateInput(fis1,1,'BG_Level',[80 120],mfNames1);
fis1 = updateInput(fis1,2,'BG_Rate',[-0.5 0.5],mfNames2);
fis1 = updateOutput(fis1,1,'Precalculated_Dose',[0 maxDose]);
I get the error
Check for incorrect argument data type or missing argument in call to function 'updateInput'.
How can I fix this and proceed with the example?
Thank you!

답변 (1개)

Chad MacDonald
Chad MacDonald 2023년 9월 5일
The updateInput and updateOutput functions in this example are local functions within the ArtificialPancreasUsingFuzzyLogicExample.mlx file. If you run the commands from within the MLX file, you should not see an error.
However, if you cut and paste the commands to the MATLAB Command Window, the software tries to call a different updateInput function on the path, which produces the error.
We will update the example to clarify the local function behavior.

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by