How do I replace colordef?
25 ビュー (過去 30 日間)
古いコメントを表示
Using 'colordef' in my code (some rather old) gives "Warning: colordef will be removed in a future release." I can't find any clear guidance on a replacement. Probably something like set(0, ..?
0 件のコメント
回答 (1 件)
Walter Roberson
2025 年 2 月 2 日 18:42
As of R2025a (currently in pre-release) there are new facilities for controlling desktop color schemes that overlap with colordef functionality; see https://www.mathworks.com/help/releases/R2025a/matlab/matlab_env/change-desktop-colors-and-select-dark-theme.html
4 件のコメント
Walter Roberson
2025 年 2 月 2 日 21:49
set(groot) and set(0) are almost equivalent. I have noticed a few small differences between them, but I cannot recall what they are at the moment.
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!