"to return a single variable" and here "solve" is a command.

Best Regards.

- Thread starter hhtt
- Start date

"to return a single variable" and here "solve" is a command.

Best Regards.

But here the usage is a little different. Can you explain it? "MATLAB will simply return the command prompt and won’t say anything else,but if you try to use these variables again without assigning them values it will be as if they had not been seen before." So what does it mean

by return the command prompt.

by return the command prompt.

Last edited:

>

you type

> sqr(8)

and Matlab returns:

64

>

It "returns" the result and puts up a new command prompt. In this case, you type some gibberish and it give you no answer but it does give you a command prompt.

You type:

> gibberish

MATLAB returns:

>

Hi, Myridon. What do you mean by gibberish? If I write it(gibberish) to the command prompt Matlab do not recognize it. Can you expand that example please. And thank you

>

you type

> sqr(8)

and Matlab returns:

64

>

It "returns" the result and puts up a new command prompt. In this case, you type some gibberish and it give you no answer but it does give you a command prompt.

You type:

> gibberish

MATLAB returns:

>

for Matlab course.

"Gibberish" means anything that makes no sense. (see a dictionary)Hi, Myridon. What do you mean by gibberish? If I write it(gibberish) to the command prompt Matlab do not recognize it. Can you expand that example please. And thank you

for Matlab course.

MATLAB takes mathematical values, if you put in "tank", a word, you will get a command prompt because there is no mathematical value for MATLAB to compute.

Myridon's explanation is spot on.

As an explanation of what happens, but not of the phrase "return the command prompt". MATLAB may well return a null value following an input error (which won't, of course, display on the screen), but it can't return the prompt. It returnsMyridon's explanation is spot on.

Spot on there, too. Come on, hhtt, please provide proper context before you add more questions.You didn't give us enough context to really answer the question.