Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Continue Entering Statement - how to exit or quit

Subject: Continue Entering Statement - how to exit or quit

From: Sofia Häggberg

Date: 26 Jul, 2010 14:42:04

Message: 1 of 9

Let us assume that I entered this command:

m = [’J’,’o’,’h’,’n’]

Immediately after it I am getting into the so called "Continue Entering Statement" mode.

How can I exit this mode and continue to enter correct commands, such as:
M =[12;34;56]

Thanks!

Subject: Continue Entering Statement - how to exit or quit

From: Andy

Date: 26 Jul, 2010 14:54:04

Message: 2 of 9

"Sofia Häggberg" <hd.int.assNOSPAM@gmail.com> wrote in message <i2k6rs$951$1@fred.mathworks.com>...
> Let us assume that I entered this command:
>
> m = [’J’,’o’,’h’,’n’]
>
> Immediately after it I am getting into the so called "Continue Entering Statement" mode.
>
> How can I exit this mode and continue to enter correct commands, such as:
> M =[12;34;56]
>
> Thanks!

What is the "Continue Entering Statement" mode? Did you type "..." somewhere that you're not showing us? When I type

m = ['J','o','h','n']

and hit enter, MATLAB correctly displays

m =
John

Subject: Continue Entering Statement - how to exit or quit

From: us

Date: 26 Jul, 2010 14:55:22

Message: 3 of 9

"Sofia Häggberg" <hd.int.assNOSPAM@gmail.com> wrote in message <i2k6rs$951$1@fred.mathworks.com>...
> Let us assume that I entered this command:
>
> m = [’J’,’o’,’h’,’n’]
>
> Immediately after it I am getting into the so called "Continue Entering Statement" mode.
>
> How can I exit this mode and continue to enter correct commands, such as:
> M =[12;34;56]
>
> Thanks!

do you use the correct apostrophes(?)...

     m = ['J','o','h','n']
     n=[12;34;56]

us

Subject: Continue Entering Statement - how to exit or quit

From: Sofia Häggberg

Date: 26 Jul, 2010 15:32:04

Message: 4 of 9

"Sofia Häggberg" <hd.int.assNOSPAM@gmail.com> wrote in message <i2k6rs$951$1@fred.mathworks.com>...
> Let us assume that I entered this command:
>
> m = [’J’,’o’,’h’,’n’]
>
> Immediately after it I am getting into the so called "Continue Entering Statement" mode.
>
> How can I exit this mode and continue to enter correct commands, such as:
> M =[12;34;56]
>
> Thanks!

@Andy & @us

Both of you are right in some way!

I havent use the apostrophes that you used @Andy! And that generated problems :(

I have use this apostrophe ’ instead of ' and that lead me to the so called Continue Entering Statement... and what is this?

http://img192.imageshack.us/img192/4103/screen1c.jpg

If you left-down where is the start button you will see that text!

And I am curious to know more about this... could someone explain it to me?

To posts about the same problem (which I am not able to understand so much):
http://www.mathworks.com/matlabcentral/newsreader/view_thread/252795
http://www.mathworks.de/matlabcentral/newsreader/view_thread/138903

But may help you to explain it to me!

Thanks!

Subject: Continue Entering Statement - how to exit or quit

From: us

Date: 26 Jul, 2010 15:45:21

Message: 5 of 9

"Sofia Häggberg" <hd.int.assNOSPAM@gmail.com> wrote in message <i2k9pk$llp$1@fred.mathworks.com>...
> "Sofia Häggberg" <hd.int.assNOSPAM@gmail.com> wrote in message <i2k6rs$951$1@fred.mathworks.com>...
> > Let us assume that I entered this command:
> >
> > m = [’J’,’o’,’h’,’n’]
> >
> > Immediately after it I am getting into the so called "Continue Entering Statement" mode.
> >
> > How can I exit this mode and continue to enter correct commands, such as:
> > M =[12;34;56]
> >
> > Thanks!
>
> @Andy & @us
>
> Both of you are right in some way!
>
> I havent use the apostrophes that you used @Andy! And that generated problems :(
>
> I have use this apostrophe ’ instead of ' and that lead me to the so called Continue Entering Statement... and what is this?
>
> http://img192.imageshack.us/img192/4103/screen1c.jpg
>
> If you left-down where is the start button you will see that text!
>
> And I am curious to know more about this... could someone explain it to me?
>
> To posts about the same problem (which I am not able to understand so much):
> http://www.mathworks.com/matlabcentral/newsreader/view_thread/252795
> http://www.mathworks.de/matlabcentral/newsreader/view_thread/138903
>
> But may help you to explain it to me!
>
> Thanks!

the statement starts with an [

     [cmplt_ ... % <- ... is the syntax for continuing
          <other stuff>

but you're missing the closing ]

          <stuff>,'all');
% instead of
          <stuff>,'all')];

that's why the editor thinks you want to continue...

us

Subject: Continue Entering Statement - how to exit or quit

From: Sofia Häggberg

Date: 26 Jul, 2010 15:55:20

Message: 6 of 9

"Sofia Häggberg" <hd.int.assNOSPAM@gmail.com> wrote in message <i2k6rs$951$1@fred.mathworks.com>...
> Let us assume that I entered this command:
>
> m = [’J’,’o’,’h’,’n’]
>
> Immediately after it I am getting into the so called "Continue Entering Statement" mode.
>
> How can I exit this mode and continue to enter correct commands, such as:
> M =[12;34;56]
>
> Thanks!

So how to say stop (quit or exit) to the editor I dont want to continue anymore?

...

Subject: Continue Entering Statement - how to exit or quit

From: us

Date: 26 Jul, 2010 16:22:08

Message: 7 of 9

"Sofia Häggberg" <hd.int.assNOSPAM@gmail.com> wrote in message <i2kb58$l2d$1@fred.mathworks.com>...
> "Sofia Häggberg" <hd.int.assNOSPAM@gmail.com> wrote in message <i2k6rs$951$1@fred.mathworks.com>...
> > Let us assume that I entered this command:
> >
> > m = [’J’,’o’,’h’,’n’]
> >
> > Immediately after it I am getting into the so called "Continue Entering Statement" mode.
> >
> > How can I exit this mode and continue to enter correct commands, such as:
> > M =[12;34;56]
> >
> > Thanks!
>
> So how to say stop (quit or exit) to the editor I dont want to continue anymore?
>
> ...

well... did you read my reply above(?)...

us

Subject: Continue Entering Statement - how to exit or quit

From: Matt Fig

Date: 26 Jul, 2010 18:08:04

Message: 8 of 9

You need to type the word: return

then hit the return (or enter key). You are in KEYBOARD mode, your parenthesis and brackets are balanced.

Subject: Continue Entering Statement - how to exit or quit

From: Pawan

Date: 26 Feb, 2014 22:57:08

Message: 9 of 9

"Matt Fig" wrote in message <i2kiu4$ktf$1@fred.mathworks.com>...
> You need to type the word: return
>
> then hit the return (or enter key). You are in KEYBOARD mode, your parenthesis and brackets are balanced.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us