can anybody help me with this error,load a file in workspace and ruleviewer
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi ,
can any body pls sort out this error ,i am simulating a power system model for my project but facing this error,pls if you can tell me what is the root cause of it and how i can solve it ,
thanks alot
Error evaluating parameter 'fismatrix' in 'Microgrid/Battery Management System1/ANFIS Controller with Ruleviewer'
Caused by:
- Undefined function or variable 'BMSS1'.
- Variable 'BMSS1' does not exist.
Suggested Actions
Load a file into base workspace.
Fix
Create a new variable.
Fix
Component:Simulink | Category:Model error
Error evaluating parameter 'fismatrix' in 'Microgrid/FC/ANFIS Controller with Ruleviewer'
Caused by:
- Undefined function or variable 'fc'.
- Variable 'fc' does not exist.
Suggested Actions
Load a file into base workspace.
Fix
Create a new variable.
Fix
Component:Simulink | Category:Model error
Error evaluating parameter 'fismatrix' in 'Microgrid/Fuzzy Logic Controller with Ruleviewer'
0 commentaires
Réponses (1)
Riya
le 25 Avr 2025
Hi Kapil,
I understand that you are encountering an error related to missing variables like “BMSS1” and “fc” in your Simulink model.
This usually happens when “FIS” (Fuzzy Inference System) variables expected by “ANFIS” or “Fuzzy blocks” are not loaded into the base workspace before simulation.
To solve this issue, you can load the required variables manually by running the following code:
BMSS1 = readfis('BMSS1.fis');
fc = readfis('fc.fis');
Or, if using a “.mat” file:
load('your_file.mat'); % Must contain BMSS1, fc
You can also automate the loading process by going to “File → Model Properties → Callbacks → PreLoadFcn” and then adding:
BMSS1 = readfis('BMSS1.fis');
fc = readfis('fc.fis');
Lastly, you must ensure that the “FIS matrix” fields in Simulink blocks exactly match the variable names. Now your simulation and “Ruleviewer” should work without any errors.
0 commentaires
Voir également
Catégories
En savoir plus sur Install Products dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!