Understanding the Prompt in Matlab: Commands and Terminology

  • Context: MATLAB 
  • Thread starter Thread starter mech-eng
  • Start date Start date
  • Tags Tags
    Definition
mech-eng
Messages
826
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.
 
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   Reactions: 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 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K