MATLAB Understanding the Prompt in Matlab: Commands and Terminology

  • Thread starter Thread starter mech-eng
  • Start date Start date
  • Tags Tags
    Definition
Click For Summary
In MATLAB, the term "prompt" refers specifically to the symbol ">>" that indicates where users can enter commands within the command window. The command window encompasses the entire interface, including the prompt, the commands typed, and the results displayed. There was a discussion about the phrasing of a sentence regarding the prompt, where it was suggested that "which looks like" is more appropriate than "with looks like." Overall, the prompt is a critical part of the command window, serving as the entry point for user commands in MATLAB.
mech-eng
Messages
825
Reaction score
13
What is the definition of prompt in Matlab. Here is an example sentence.

"commands are entered at the prompt with looks like two successive greater than signs"

Are prompt and command window the same things in Matlab or all computer terminology? If so, is the prompt the environment where we enter commands?

Thank you.
 
Physics news on Phys.org
It means you'll see >> in the command window where you enter your commands

Code:
>> x=[0:10]
x =
  0  1  2  3  4  5  6  7  8  9 10
>>

I typed in the x=[0:10] statement.
 
Should not it be which looks like instead of with looks like in the sentence?

Thank you.
 
  • Like
Likes jedishrfu
mech-eng said:
Should not it be which looks like instead of with looks like in the sentence?

Thank you.

Yes, must have been a spell checker or grammar checker failure... "To err is human, to really screw up things you need a computer..."
 
The command window is the whole window, which includes the >> prompt, any commands you type in at the prompt, and any results that get echoed into the window. It's essentially the whole white rectangular box.

The command prompt is the >> symbol you see inside the command window, and is where you can type in any command you want. The prompt is just one part of the larger command window.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
13K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
9
Views
3K