Orderedcolors function in R2023b

8 views (last 30 days)
Huy Nguyen Minh
Huy Nguyen Minh on 11 Apr 2024
Answered: Arun on 24 Apr 2024
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 Comments
Huy Nguyen Minh
Huy Nguyen Minh on 11 Apr 2024
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 on 11 Apr 2024
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.

Sign in to comment.

Answers (1)

Arun
Arun on 24 Apr 2024
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.

Categories

Find more on Downloads in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!