Path: news.mathworks.com!not-for-mail
From: "Bob Gilmore" <bgilmore@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How can I check since which Matlab version a function exists?
Date: Tue, 24 Jul 2007 07:16:37 +0000 (UTC)
Organization: The Mathworks, Inc.
Lines: 17
Message-ID: <f8490l$7a1$1@fred.mathworks.com>
References: <f7lg01$hi8$1@fred.mathworks.com>
Reply-To: "Bob Gilmore" <bgilmore@mathworks.com>
NNTP-Posting-Host: webapp-01-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185261397 7489 172.30.248.36 (24 Jul 2007 07:16:37 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 24 Jul 2007 07:16:37 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 574352
Xref: news.mathworks.com comp.soft-sys.matlab:420664



"Norbert Marwan" <marwan.nospam@agnld.uni-potsdam.de> wrote in message <f7lg01$hi8$1@fred.mathworks.com>...
> Hello
> 
> I'm quite sure that there is a possibility to find out, with which Matlab release a certain Matlab function was introduced. I would need this to keep some downward compatibility in my Matlab codes.
> 
> Thank you for any hint.
> 

I suggest using the EXIST function to determine whether or not the function you're looking for exists in the MATLAB installation you're running under.  If it doesn't, then switch to an alternate algorithm.

See
>> help exist
to see how to use the EXIST function to determine whether or not a function exists.

Hope that helps,
--
Bob Gilmore, The MathWorks, Inc.