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?
> 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?
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?
"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?
"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.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.