From the course: Learning MATLAB
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Using the Command Window - MATLAB Tutorial
From the course: Learning MATLAB
Using the Command Window
- [Instructor] As you work in MATLAB, you'll write commands in the Command Window which creates variables and calls functions. For example, if you type a = 5 and press Enter, you have created a variable called a that has a value of 5. We are going to talk more in detail about variables in the next videos. For now, let's look at some of the most used commands. Create another variable called b which is equal to 10. And let's say we want to clear the command window. You have to enter the clc or clear command, so type clc and press Enter. However, we will notice that the workspace area still is populated by the variable and its content. In order to clear the workspace area, we will use the clear all command. You'll notice that after the word "clear", the "all" word becomes magenta color. Another command that we can use is home. If you have created some variables and your command windows seems busy, you can type "home",…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.