Hi, I'm trying to create a pk/pd project in simbiology. Since I'm new to Simbiology I wanted to run a very basic PK model and I realized that I can not simulate my model no matter I do. I keep getting "Test of generated MATLAB function failed" Then I tried running some of the example projects and I encountered the message there as well. I also tried running the code from the command line instead of desktop, but nothing changed. the error message for the example project gprotein was as follows: ---------------------------------------------------------------------- Test of generated MATLAB function failed.
Caused by: Undefined variable "coder" or class "coder.extrinsic".
Error using SBCompiler.SimulationObject/simulate --> Error reported from ODE Compilation: Error using Generator.testMFile (line 587) Test of generated MATLAB function failed.
Error in sbiosimulate (line 143) [t x] = simobj.simulate(mobj, cs, variants, doses); -------------------------------------------------------------------
I realized that I can not even export the model as equations since I run into the previous error. "Test of generated MATLAB function failed"
Can someone help me fix this problem and make simulations possible?
Thanks.

 채택된 답변

Arthur Goldsipe
Arthur Goldsipe 2014년 10월 3일

1 개 추천

Hi,
This problem occurs when SimBiology cannot find a necessary MATLAB function, coder.extrinsic. See if you have a file named extrinsic.m located at [matlab]/toolbox/shared/coder/coder/+coder/, where [matlab] should be replaced with your MATLAB installation directory. If the file is missing, then you have an installation problem, and you should reinstall MATLAB. If the file is there, then there is a problem with your MATLAB path (perhaps caused by a startup script that changed the path). You can restore the default MATLAB path by running the command restoredefaultpath. Hopefully, one of these two suggestions will solve your problem.

댓글 수: 1

Vinicius Skrobot
Vinicius Skrobot 2016년 11월 17일
The 'restoredefaultpath' solved my problem in a similar situation. Thank you!!

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

추가 답변 (1개)

qprime
qprime 2014년 10월 3일

0 개 추천

it worked! thanks a lot!

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

도움말 센터File Exchange에서 Scan Parameter Ranges에 대해 자세히 알아보기

제품

태그

질문:

2014년 10월 3일

댓글:

2016년 11월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by