Open existing Simulink model from Matlab, domain error!
이전 댓글 표시
i need to open an existing simulink model from my Matlab GUI. I am not into Simulink at all and i just have to make it work somehow. To open the model i use the command
open_system('filepath_to_model')
Now an error occurs:
Warning: Physical modeling domain definition file psatdomain.m not found. You will not be able simulate this model. Please close
your model, then add the domain definition file to the MATLAB path and re-open your model.
What does this error mean? i added psatdomain.m to the directory of the model but the error remains the same.
% PSATDOMAIN defines the domain for the PSAT-Simulink library
I would be glad for your help so that i can open an existing Simulink model and run it from my Matlab GUI.
Thank you very much!!
Best regards, John
댓글 수: 7
Walter Roberson
2015년 9월 15일
"Physical modeling domain definition file" is from SimScape
John
2015년 9월 21일
Prabesh Khadka
2019년 1월 15일
Warning: Physical modeling domain definition file p1.m not found. You will not be able simulate this
model. Please close your model, then add the domain definition file to the MATLAB path and re-open your
model.
How can i solve this?
AMOL YERUDAKR
2019년 3월 14일
Hello Prabesh,
Did you find the solution to your problem, as I am also facing the same problem.
Warm Regards
Anil Vaghela
2019년 4월 6일
Hello prabesh and amol,
I'm also facing the same problem. let me know if anyone of you has found the solution
Haiyue Yu
2020년 2월 21일
I'm also facing the same problem.Has this problem been solved?
Walter Roberson
2020년 2월 21일
You need to locate a copy of the domain definition .m file and make sure it is on your MATLAB path.
Also, when you get this error, you have Simscape elements in the model and will need Simscape to simulate the model. I am not sure what would happen if you tried to open such a model when you did not have Simscape installed, but not having Simscape installed increases the risk that you will not have the domain .m files installed.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!