I am working on a simulink model built under simpowersystem environment. The model contains some matlab functions embedded in simulink blocks. When I'm trying to run the programme, there is always the following error message:'model_sfun.bat' indicating that this is not recognize as internal or external, executable program or files commanded. I have built a simulink model to replace some embedded matlab function and the model in which I have only simulink model and elctric components works. So I have a sad impression that the problems in my models are on the use of matlab embedded function  under simpowersystem environment. I wish to know how  I can solve this problem. In fact in many papers I have found in the literature on the use of simpower in the field of modeling and simulation of electric systems, many authors have used this kind of combination (matlab embedded function+simulink blokc+ electrics components on simpower). Pleased can any people help me to solve this urgent problem.

Similar questions and discussions