Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Using feature('memstats') fails with 'An unknown feature was specified'
Date: Fri, 19 Oct 2007 13:13:30 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 29
Message-ID: <ffaahq$c8$1@fred.mathworks.com>
References: <ff16qq$oo2$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-06-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1192799610 392 172.30.248.36 (19 Oct 2007 13:13:30 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 19 Oct 2007 13:13:30 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:433736



>   >> m = feature('memstats')
>   ??? Error using ==> feature
>   An unknown feature was specified

You're probably using an old version of Matlab, that didn't
have this feature yet. It works ok on one of the latest
releases (including the very latest R2007b).

>   >> which feature
>   built-in (undocumented)
> 
> I can't find much help though:
> 
>   >> help feature
>   feature.m not found.

feature is an internal undocumented function, used by
Mathworks for internal program development and debugging.
There's not much info about it floating around, mostly in
this newsgroup. Specific features are liable to change
between Matlab releases, so if you see some neat feature in
an old thread, there's a chance it won't work on the latest
release... There are some excellent undocumented Matlab
functions that I'd be happy to recommend relying on, but
feature is not one of them - it's way up on the risk scale.

Yair Altman
http://ymasoftware.com