Orderedcolors function in R2023b

9 visualizaciones (últimos 30 días)
Huy Nguyen Minh
Huy Nguyen Minh el 11 de Abr. de 2024
Respondida: Arun el 24 de Abr. de 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 comentarios
Huy Nguyen Minh
Huy Nguyen Minh el 11 de Abr. de 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 el 11 de Abr. de 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.

Iniciar sesión para comentar.

Respuestas (1)

Arun
Arun el 24 de Abr. de 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.

Categorías

Más información sobre Downloads en Help Center y File Exchange.

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by