# MATLAB Environment

Get introduced to the MATLAB environment and receive an overview of its coding structure.

MATLAB is a high-level programming language and interactive environment primarily designed for numerical computation, data analysis, and visualization. It is widely used in various fields such as engineering, mathematics, physics, finance, biology, and scientific research due to its powerful capabilities and ease of use.

Here’s an introduction to the MATLAB environment:

## Desktop environment

When we launch MATLAB, we’ll be greeted with its desktop environment. The desktop version consists of several panels:

**Command window:**This is where we can execute MATLAB commands interactively. It’s like a command-line interface where we can type commands and see their output immediately.**Current folder:**This panel displays the files and folders in our current working directory. We can navigate through directories and manage files from here.**Workspace:**The workspace panel shows the variables currently in memory and their values. We can inspect and manipulate variables directly from here.**Command history:**It shows the history of commands executed in the command window.**Editor:**MATLAB has a built-in code editor where we can write and edit scripts and functions. The editor provides syntax highlighting, code folding, and debugging features.**Figure palette:**MATLAB is powerful for visualization. The figure palette allows us to create and manage plots, graphs, and other visualizations.

## Matrix operations

MATLAB is specifically designed to excel in matrix and vector computations. MATLAB stands for MATrix LABoratory, meaning that most operations in MATLAB are designed to work efficiently with arrays and matrices, making it particularly well-suited for linear algebra and numerical computations.

In the example below, we create matrixes and perform simple operations:

Get hands-on with 1200+ tech skills courses.