Search the courses, subjects, tracks, games and features, or jump straight to a page.
Learn it your way
A short class with Sarah and her students. The other ways are under More.
Sign up free to listen. Transcripts are free to read.
Welcome everyone! Today we will learn how to start MATLAB. When you double-click the MATLAB icon on your desktop after logging in, what do you see?
I see the MATLAB desktop interface with a Command Window!
Exactly! The Command Window is essential as it's where you enter commands. Can someone tell me what the prompt looks like?
It shows '>>' for the full version or 'EDU>' for the educational version.
Great job! Remember this prompt as it indicates where you type your commands. Let's move on to using MATLAB as a calculator.
Now, let's try a simple calculation. If I type '1 + 2 * 3', what do you expect the output to be?
It should be 7 because multiplication comes before addition!
Correct! MATLAB follows the order of operations just like in math class. Let's see how we can assign this value to a variable instead. What command would we use?
We can type 'x = 1 + 2 * 3'!
Fantastic! That's how you assign values to variables in MATLAB.
Before we finish our session, how do we exit MATLAB?
We type 'quit' or we can go to File and select Exit MATLAB!
Exactly! It's important to exit properly to save your workspace. Remember to always do this before you leave!
Will my variables still be there if I quit and re-open MATLAB?
Good question! No, your variables will not persist unless you save your session using commands to manage your workspace.
The interface where users can access the Command Window, Command History, and more.
Basic operations such as addition, subtraction, multiplication, and division.
The area where users interact with MATLAB by typing commands.
The process of storing a value in a named variable for later use.
To start MATLAB and see the screen, type your commands and watch it gleam.
Imagine opening a magic box (MATLAB) where every command acts instantly like a magic spell!
Remember 'CAD' for Command Window, Arithmetic, and Desktop when starting MATLAB.
Use 'ICE' - Initiate, Calculate, Exit, to remember how to start, compute and leave MATLAB.
Term
How do you access the Command Window?
Click to flip
Term
What does the Command Window display when you perform a calculation?
Click to flip
A high-performance language for technical computing that integrates computation, visualization, and programming.
The main interface area in MATLAB where commands are entered and executed.
The default output variable used by MATLAB when an explicit variable name is not assigned.
This section introduces the basics of starting and exiting MATLAB, performing simple calculations, and navigating the MATLAB desktop environment.
In this section, learners will discover how to log into MATLAB, perform basic arithmetic operations, and manage their workspace. Key components of the MATLAB interface are highlighted, including the Command Window and its various functionalities.
This section provides a foundational understanding of logging into MATLAB and navigating the desktop interface. It covers how to perform basic arithmetic operations and manage sessions effectively. Starting with the initiation of MATLAB upon logging into your account, the section delves into the elements of the MATLAB desktop which include important tools such as the Command Window where users can enter commands and perform calculations. Additionally, this section discusses arithmetic operations, including addition, subtraction, multiplication, and division, showcasing how MATLAB handles outputs implicitly with 'ans' or explicitly through variable assignment. Understanding how to quit MATLAB after use is also outlined to provide learners with complete session management guidance.