How to look at Settings through code in MatLab? - settings -- MatLab

How to look at Settings through code in MatLab? - settings -- MatLab


How to look at Settings through code in MatLab?
[Ans]
settings

[Description]
look at , add and change settings.

more details on:

Access and Modify Settings - MATLAB & Simulink (mathworks.com)


code: 

clear
clc
%help settings;
%current settings
fprintf("settings");
s = settings
%matlab field in settings
fprintf("matlab");
s.matlab
%Simulink field in settings
fprintf("Simulink");
s.Simulink
%{
output:
settings
s =
SettingsGroup with properties:
Simulink: [1×1 SettingsGroup]
matlab: [1×1 SettingsGroup]
matlab
ans =
SettingsGroup 'matlab' with properties:
general: [1×1 SettingsGroup]
colors: [1×1 SettingsGroup]
editor: [1×1 SettingsGroup]
fonts: [1×1 SettingsGroup]
keyboard: [1×1 SettingsGroup]
toolboxpathcache: [1×1 SettingsGroup]
commandwindow: [1×1 SettingsGroup]
codeanalyzer: [1×1 SettingsGroup]
appdesigner: [1×1 SettingsGroup]
Simulink
ans =
SettingsGroup 'Simulink' with properties:
OpenLegendWhenChangingSampleTimeDisplay: [1×1 Setting]
CacheFolder: [1×1 Setting]
CodeGenFolder: [1×1 Setting]
EditorScrollWheelZooms: [1×1 Setting]
EditorContentPreviewDefaultOn: [1×1 Setting]
CodeGenFolderStructure: [1×1 Setting]
EditorModernTheme: [1×1 Setting]
ErrorIfLoadShadowedModel: [1×1 Setting]
NotifyIfLoadOldModel: [1×1 Setting]
EditorSmartEditing: [1×1 Setting]
SaveSLXThumbnail: [1×1 Setting]
EditorSmartEditingHotParam: [1×1 Setting]
ModelFileFormat: [1×1 Setting]
LastSavedRelease: [1×1 Setting]
EditorPathXStyle: [1×1 Setting]
CallbackTracing: [1×1 Setting]
ProtectedModelValidateCertificate: [1×1 Setting]
DiagnosticViewerPreference: [1×1 Setting]
MDLFileChangedOnDiskHandling: [1×1 Setting]
MDLFileChangedOnDiskChecks: [1×1 SettingsGroup]
ToolbarVisibilities: [1×1 SettingsGroup]
AutoSaveOptions: [1×1 SettingsGroup]
CustomObjectClasses: [1×1 SettingsGroup]
%}

Comments