Using function of newer MATLAB version in older version
59 views (last 30 days)
Hello everybody out there using MATLAB,
The functions wrap and unwrap have been added to MATLAB in 2021.
Is there a way to add the code for these functions to older versions of MATLAB in order to enable people with older versions of MATLAB to use my code?
I assume that the code of the functions is not too complex and they are rather provided for convenience.
John D'Errico on 20 Feb 2022
Edited: John D'Errico on 20 Feb 2022
No. Sorry, but no. You cannot use functions from one release in another release. They essentially check for this.
Could you write codes with those names, adding them to your own toolboxes? Well, yes. But then you would need to write the code yourself.
Having said that, I know that unwrap has certainly been around for ages. A quick check tells me it was introduced before 2006a. So at least 16 years ago, and I recall it before then.
As far as wrap goes, it does not exist in MATLAB R2020b, then I checked R2021a. Not in there either. I guess this means it is time to install a new release for me. Ok. Checked. wrap does also not exist in R2021b, update 2, either. So unless you have this toolbox:
which wrap -all
then you will not have wrap. Are you a wrapper? Is it my birthday already? ;-)