如何更改 MATLAB 的默认格式?

How can I change MATLAB's default formatting?

打开一个新的 MATLAB R2022a 会话,我注意到默认格式设置为 shortG,而我预计它只是 short。如何将默认值更改回 short

>> fmt = format

fmt = 

  DisplayFormatOptions with properties:

    NumericFormat: "shortG"
      LineSpacing: "loose"

您可以在 PreferencesMATLABCommand WindowNumeric format 中更改: