Orderedcolors function in R2023b

조회 수: 7 (최근 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