How can I see for a function from which version was change functionality!

4 次查看(过去 30 天)
By example I use the latest vesrion 2021B and I had a problem with the "title" function for a plot. I checked the version from which version this function exist and in the helper page was described "title(titletext,subtitletext)", and I created plots with title and subtitle used this function, but for my colleagues who use 2020b or 2019 they had errors with this function, that have to much arguments. It is possible to see on the helper page if in a function some functionality of the functions is working just from the specified Matlab version, if not I think it would be very very usefull this information when it is included new functionality for older function to specify the version when this functionaly was introduced ???

回答(1 个)

Adam Danz
Adam Danz 2021-12-15
The subtitle option was added in Matlab R2020b so your colleagues who are using 20b should not have a problem.
I agree that it would be nice for the documentation to include release info about new features within the help pages. For example,
Alternatively, you can look up documentation in the archive for previous releases or search the release notes (links provided above).
  6 个评论
Jan
Jan 2021-12-15
@Rik: My favourite examples for undocumented changes:
  • fopen in VAX-D mode vanished in R2008b.
  • strncmp(s1, s2, n) changed the result multiple times, if one of the strings is empty or if n=0.
  • fid=fopen(File, 'w'), fwrite(fid, 'a') wrote an ASCII until R2021b and an UTF16 now.
Adam Danz
Adam Danz 2021-12-15
Last year the archived documentation and release notes became limited to -5 years which has made it difficult to troubleshoot in older releases without installing the older release.
I frequenly look up functions in the archives to see when a feature was added or changed but that requires manually referencing the function in each individual documentation release and comparing the results which is a pain.
And I often miss new exciting features and run into them 2-3 releases later even though I usually read the release notes after each new release. That motivates me to write Community Highlights to improve the discoverability of some new features but I've only managed to cover a small fraction of my shortlist.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by