## MATLAB - Lesson 1.4

# Changing MATLAB Preferences

- Review the different window layouts in MATLAB.
- Change the MATLAB user preferences.

Most of the MATLAB preferences
covered in this lesson are just that. However, there are a
few changes that can make a functional difference while you are learning to program, so it would
be wise to familiarize yourself with the options available.

### How to Change the Window Layout in MATLAB

MATLAB makes it simple to change the position and layout in the MATLAB program, and there are various ways to accomplish this.

One way is to use the layout options for each sub-window, which can be minimized, maximized, undocked, or closed by selecting
the symbol in its upper right hand corner as shown Figure 1. Note that undocking means that the window can be separately and
independently moved around from the MATLAB software (try it out!).

**Figure 1:** Changing view of a window in MATLAB.

If you happen to “lose” or accidentally close a window, the simplest way to recover it is by selecting one
of the MATLAB’s preset layout options that can be found in the “Home” navigation ribbon then under the “Layout”
button as shown in Figure 2.

**Figure 2:** Selecting a layout in MATLAB.

**Important Note:** Moving forward, this course will assume that you are working with the “Default” layout preset.

### Changing Basic User Preferences

Lots of times, it is advantageous to change the default user preferences when working with MATLAB. For example, to choose a more
readable font or font size. These preferences may include visual/layout (font, font size) and functional (MATLAB behavior) options.
While there are many fundamental preferences that can be changed, we will only demonstrate on the font size here. Increasing the font
size can make dense, small code feel more readable and less overwhelming.

Preferences can be found on the “Home” ribbon, in the “Environment” group, selecting the “Preferences” button as shown in Figure 3.

**Figure 3:** The MATLAB preferences location on the Home tab.

Once in the Preferences pop-up window (see Figure 4), select “Fonts” in the navigation tree on the right hand side. Then in the
“Desktop code font” section, select “12” as the font size. Once done, select “OK” as the bottom of the window.

**Figure 4:** MATLAB preferences window.

Although it is not necessary to remember exactly how to change these preferences, it is good to keep in mind that most visual
aspects of MATLAB are easily changed to suit your needs/preference.

In the next lesson, we will cover the m-file’s function to store your code in MATLAB.