Previously accessible file is now inaccessible.

조회 수: 148 (최근 30일)
joha
joha 2016년 4월 8일
댓글: sarathjc 2019년 5월 28일
I want to test my installation after installing gurobi5, when I run initCobraToolbox, the error came up >> "Previously accessible file "C:\Program Files\MATLAB\R2013a\toolbox\cobra\external\addpath_recurse.m" is now inaccessible"
  댓글 수: 2
per isakson
per isakson 2016년 4월 8일
편집: per isakson 2016년 4월 9일
Could it be that addpath_recurse.m isn't in the search path of Matlab, because the current directory has been changed?
joha
joha 2016년 4월 9일
yes, i had change the current directory. How i want to run the initCobraToolbox back? C:\Program Files\MATLAB\R2013a\toolbox\installed\cobra\initCobraToolbox
I had installed a new gurobi 6.5.1, after i run it, i type the savepath command, and it will automatically change the new version, but in the initCobraToolbox, still the old version of gurobi5 and when i tried to edit the initCobraToolbox, the access denied.
help me.

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

채택된 답변

per isakson
per isakson 2016년 4월 9일
편집: per isakson 2016년 4월 10일
  • The "installation programs" of Matlab toolboxes (The MathWorks excluded) varies. You have to follow the specific instructions - if there are any ;-( &nbsp Installation of many toolboxes consists of two simple steps. Copy a bunch of m-files to a folder and add that folder to the path (and save the path).
  • I don't know anything specific about the installation procedures of these two toolboxes.
  • "type the savepath command" &nbsp has effect only if folders have been added by the "installation program" (your question hints that at least one required folder had not been added).
  • There is a little tool called Set Path. However, first see: What Is the MATLAB Search Path?. Use Set&nbspPath to find out whether the folders of the two toolboxes are in the path. Add folders if needed and remove the folder(s) of the old version of gurobi5 (hopefully the versions are in different folders). Test the functions and if it works save the path.

추가 답변 (0개)

카테고리

Help CenterFile 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!

Translated by