Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

set a matlab path to a 'private' folder

Status
Not open for further replies.

lipkind

Bioengineer
Aug 18, 2011
2
Hi,

I'm trying to run a matlab code that I've downloaded from the web (its author made it publicly available on his site). The code consists of a main function that calls up several other functions. It is in a folder with several subfolders, one of which is called 'private'. Matlab doesn't let me set a path to this folder, and when I try running the main function, I get an error that a function in the private folder is inaccessible. Any way out?

Thank you,

Dina
 
Replies continue below

Recommended for you

Here's one thought: open windows explorer (windows-E key combo), navigate to the folder, right click, and adjust the settings in "general" and "security" tabs to make it as accessible as possible.

=====================================
(2B)+(2B)' ?
 
How does the main function reference the function in the private folder? Does it use a 'cd' command? You could always locate where in the code the path change occurs, and just change the name.
 
Thank you all very much for helping.

I now realized that my problem was not related to the private folder, but to some mex functions within it. A private folder contains functions that are available only to its parent folder and one actually is not supposed to set a path to it. Apologies for not investigating this properly before posting my question, and thanks again.

Dina
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor