Jen in MATLAB Answers
Última actividad el 14 de En. de 2026

I am using simbiology to run my code and its been working fine. However, periodically I would have errors with sbiosaveproject. When I get errors, I can dive into the sbiosaveproject and see that its doing a try and catch on the sbiogate function (this code is taken from line 130-160 of sbiosaveproject: errorOccurred = false; try filesToZip = {matFileName, manifestFileName}; sbiogate('privateadddesktopfilestoproject', projfilename_new, filesToZip); catch errorOccurred = true; end If I debug and stop it at that function and run it in the command line, i get this error: K>> sbiogate('privateadddesktopfilestoproject', projfilename_new, filesToZip) Unrecognized function or variable 'cleanupDirectories'. Error in privateadddesktopfilestoproject Error in sbiogate (line 22) feval(varargin{:}); ^^^^^^^^^^^^^^^^^^^ If I do a which on cleanupDirectories, I get this: K>> which cleanupDirectories 'cleanupDirectories' not found. I have tried to delete all forms of MatLab and redownload. I have read and write access to all the temp folders. I have tried to specifically manually delete and reinstall simbiology. Nothing works to get the sbiosaveproject code to run again.
MathWorks Support Team in MATLAB Answers
Última actividad el 16 de Jun. de 2023

I created a SimBiology model with multiple programs using the Model Analyzer app in MATLAB R2022b. I exported the program and ran it using the "runprogram" function, as described on the following documentation page: https://www.mathworks.com/help/releases/R2022b/simbio/ug/view-run-program-code-simbiology-model-analyzer.html After doing so, I want to save the data to my SimBiology project so I could view the results in the Model Analyzer app. I tried following the example on the "sbiosaveproject" documentation page but could not see the results when I opened the saved project in the Model Analyzer app.  How would I instead go about saving the results to view in the Model Analyzer app? kA03q0000019nxtCAA 000362233