How do I programmatically switch to Dark Mode (Dark Theme) in R2025a?

조회 수: 71 (최근 30일)
I am running R2025a pre-release. What are the commands to switch to dark mode?

채택된 답변

Mike Croucher
Mike Croucher 2025년 1월 13일
편집: Mike Croucher 2025년 1월 13일
This is supported from R2025a onwards. This is what you need to do
>> s = settings;
>> s.matlab.appearance.MATLABTheme.PersonalValue = "Dark";
  댓글 수: 1
Adam Danz
Adam Danz 2025년 1월 13일
편집: Adam Danz 2025년 1월 14일
And for figures,
theme('dark') % light | auto
% Or
theme(fig,'dark')
% Or
fig = figure(Theme='dark')
% or
fig.Theme = 'dark';

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Michelle Hirsch
Michelle Hirsch 2025년 1월 13일
A few more notes:
  • The default behavior is to match your system theme. So, if your system theme is Dark, MATLAB is dark.
  • There's a setting (aka "preference") for it, too. An easy way to get there is to =just search for something like "dark" in the new search bar:

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by