Thread Subject: How can I check since which Matlab version a function exists?

Subject: How can I check since which Matlab version a function exists?

From: Norbert Marwan

Date: 18 Jul, 2007 16:43:45

Message: 1 of 5

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.

Subject: How can I check since which Matlab version a function exists?

From: John D'Errico

Date: 18 Jul, 2007 16:59:03

Message: 2 of 5

> 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.


There is no facility to know this. I wish there was. So here
is an enhancement idea...

Create a new function, I'll call it "whence", that would indicate
when called what Matlab release any function was introduced.
Thus

  whence convhulln

would return something like the number 11, since I think it
was introduced in release 11.

John

Subject: How can I check since which Matlab version a function exists?

From: last) (first then

Date: 23 Jul, 2007 20:27:40

Message: 3 of 5

Funny, I was just searching for this exact functionality. If John says it doesn't exist, it probably does not, which is too bad. Surely it could rely on mlint like crawling through the code to figure out what is and is not compatible. Further suggestions for ensuring compatibility through a certain version would also be useful.

A friendly bump for Steven or other fine Mathworks folks to respond?

Thanks.

Subject: How can I check since which Matlab version a function exists?

From: Duane Hanselman

Date: 24 Jul, 2007 00:17:57

Message: 4 of 5

"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.
>
The text "Mastering MATLAB 7" has an appendix that contains this information as obtained by reviewing all the release notes back to MATLAB 5, R10.

Duane

Subject: How can I check since which Matlab version a function exists?

From: Bob Gilmore

Date: 24 Jul, 2007 07:16:37

Message: 5 of 5

"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.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
exist Bob Gilmore 24 Jul, 2007 03:20:07
function Norbert Marwan 18 Jul, 2007 12:45:07
version Norbert Marwan 18 Jul, 2007 12:45:07
matlab Norbert Marwan 18 Jul, 2007 12:45:07
rssFeed for this Thread

Contact us at files@mathworks.com