Orderedcolors function in R2023b

14 次查看(过去 30 天)
Huy Nguyen Minh
Huy Nguyen Minh 2024-4-11
回答: Arun 2024-4-24
I have a problem with orderedcolors() function after update 7 of Matlab R2023b, the color is changed index that it is not consistent with the help. Is there something I can do to back to the older update?
  3 个评论
Huy Nguyen Minh
Huy Nguyen Minh 2024-4-11
In Matlab R2023b Update 6 the index of color 8 and 10 is different from Matlab R2023b Update 7.
Figure1. Matlab R2023b Update 7 HELP
In help it provided the same order as Update 6 but it's actually color index 8 and 10 is different. It reverses positions.
DGM
DGM 2024-4-11
I did not notice the change, but I guess there was one. As of now (R2024a), the behavior matches the webdocs (yellow-blue-red).
CT = orderedcolors('gem12');
image(permute(CT,[1 3 2]))
However, when I used the webdocs to add these color tables to MIMT ccmap() sometime last year, they were indeed shown as (red-blue-yellow). The change applies to both 'gem12' and 'glow12'. I do not know when exactly that was or what the function behavior was at that time.
There are no relevant release notes or published bug reports. Consequently, I'm not sure whether this was a design revision, a transient bug, a transient documentation error, or a combination of those possibilities. It seems to be resolved in the current version though.

请先登录,再进行评论。

回答(1 个)

Arun
Arun 2024-4-24
Hi Huy Nguyen Minh,
I understand that you have found that there is an inconsistency in the documentation for specifying the order of colors in the “gem12” color palette for update 7 release of MATLAB R2023b. Also, you want information to revert to an older update due to this issue.
After looking into it, I found out that the mistake in the documentation is just about update 7 of MATLAB R2023b release. The documentation for previous updates of R2023b, as well as for the subsequent release R2024a, remains accurate and consistent.
Please refer to the shared MATLAB Answers link, which provides detailed instructions on: How can I roll back a MATLAB update?: https://www.mathworks.com/matlabcentral/answers/473278-how-can-i-roll-back-a-matlab-update
Hope this helps.

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by