×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

set a matlab path to a 'private' folder

set a matlab path to a 'private' folder

set a matlab path to a 'private' folder

(OP)
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

RE: set a matlab path to a 'private' folder

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)'  ?

RE: set a matlab path to a 'private' folder

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.

RE: set a matlab path to a 'private' folder

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close