views:

158

answers:

1

Can anyone get the function and class scoping feature to work, as documented in Scoping Classes with Packages ?

I create a directory C:\Windows\Temp+undergrad I put a file foo.m in there tat defines a function foo. I make sure C:\Windows\Temp is on the matlab path In matlab, type 'what undergrad' should result in a list of functions and classes defined in the package. Instead I get "undergrad not found."

I am using MATLAB Version 7.4.0.287 (R2007a) student version.

Anyone have an idea if this package scoping stuff actually works in this version of Matlab? The documentation gives no indication of what version the feature was introduced in.

+1  A: 

Packages were introduced in R2008a; your version is older than that. Unfortunately, The MathWorks do not list what versions a feature works with on that feature's documentation page.

See the release notes for R2008a: http://www.mathworks.com/access/helpdesk/help/techdoc/rn/brjk1q5-1.html#brjk1q5-4

Arthur Ward

related questions