Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Package of the current m-file
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Kaba

Posts: 289
Registered: 5/23/11
Package of the current m-file
Posted: Nov 2, 2012 7:07 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

Is it possible to find out the containing package of the
currently-running m-file? I want to do something like this:

+MyPackage
==========

f.m
---

function f()
import(current_package());
g()

g.m
---

function g()
disp('It works!');

--
http://kaba.hilvi.org



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.