Thread Subject: 2008a evaluate selection / keyboard

Subject: 2008a evaluate selection / keyboard

From: spasmous

Date: 2 Jan, 2009 23:39:51

Message: 1 of 8

I recently went from 2006b to 2008a and find that Right Click-
>Evaluate Selection no longer works if I am at a keyboard break point
and if there is a for loop in the code. Same problem with cut and
paste of code into the command line.

E.g. put a keyboard command somewhere in your function, then copy and
paste this snippet into the command window

temp = 0;
for j=1:10
    temp=temp+j;
end

For me the result is nothing happens and there is a Continue entering
statement message in the status bar. Is there any way to make it work
again like the previous version?

Subject: 2008a evaluate selection / keyboard

From: spasmous

Date: 5 Jan, 2009 21:13:50

Message: 2 of 8

On Jan 2, 3:39=A0pm, spasmous <spasm...@gmail.com> wrote:
> I recently went from 2006b to 2008a and find that Right Click->Evaluate S=
election no longer works if I am at a keyboard break point
>
> and if there is a for loop in the code. Same problem with cut and
> paste of code into the command line.
>
> E.g. put a keyboard command somewhere in your function, then copy and
> paste this snippet into the command window
>
> temp =3D 0;
> for j=3D1:10
> =A0 =A0 temp=3Dtemp+j;
> end
>
> For me the result is nothing happens and there is a Continue entering
> statement message in the status bar. Is there any way to make it work
> again like the previous version?

Bump - can someone confirm this bug? Please :)

Subject: 2008a evaluate selection / keyboard

From: Walter Roberson

Date: 5 Jan, 2009 22:02:34

Message: 3 of 8

spasmous wrote:
> E.g. put a keyboard command somewhere in your function, then copy and
> paste this snippet into the command window
> temp = 0;
> for j=1:10
> temp=temp+j;
> end
>
> For me the result is nothing happens and there is a Continue entering
> statement message in the status bar.

Try pressing return once after the paste. Pasted code is not always executed line
by line as it logically arrives at the buffer: sometimes you have to press return.

--
.signature note: I am now avoiding replying to unclear or ambiguous postings.
Please review questions before posting them. Be specific. Use examples of what you mean,
of what you don't mean. Specify boundary conditions, and data classes and value
relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?

Subject: 2008a evaluate selection / keyboard

From: spasmous

Date: 5 Jan, 2009 22:41:18

Message: 4 of 8

On Jan 5, 2:02=A0pm, Walter Roberson <rober...@hushmail.com> wrote:
> spasmous wrote:
> > E.g. put a keyboard command somewhere in your function, then copy and
> > paste this snippet into the command window
> > temp =3D 0;
> > for j=3D1:10
> > =A0 =A0 temp=3Dtemp+j;
> > end
>
> > For me the result is nothing happens and there is a Continue entering
> > statement message in the status bar.
>
> Try pressing return once after the paste. Pasted code is not always execu=
ted line
> by line as it logically arrives at the buffer: sometimes you have to pres=
s return.
>


I tried pressing return - it stays in the 'continue entering statement
mode'. Typing 'end' does get out this mode but it doesn't evaluate the
pasted code. If there are no other responses, I'll go ahead and file a
bug.

Subject: 2008a evaluate selection / keyboard

From: Christopher Hummersone

Date: 9 Feb, 2009 14:35:02

Message: 5 of 8

> Bump - can someone confirm this bug? Please :)

I certainly can, although I'm in R2007a. It's quite frustrating... :-( I don't suppose you came up with a solution?

Chris

Subject: 2008a evaluate selection / keyboard

From: Stanley

Date: 13 Feb, 2009 06:07:02

Message: 6 of 8

"Christopher Hummersone" <wheely_chairs@hotmail.com> wrote in message <gmpeum$r4l$1@fred.mathworks.com>...
> > Bump - can someone confirm this bug? Please :)
>
> I certainly can, although I'm in R2007a. It's quite frustrating... :-( I don't suppose you came up with a solution?
>
> Chris

Bump: I have the identical bug. it makes it near impossible to work with the jvm and for loops. typing end will end the "continue statement" but nothing will be evaluated.

Even copying the text to a separate text file and then pasting into the matlab editor fails
the only way to evaluate my code is to type it directly into the editor, an unacceptable solution.

Subject: 2008a evaluate selection / keyboard

From: Christopher Hummersone

Date: 13 Feb, 2009 12:19:02

Message: 7 of 8

Maybe my bug is not quite the same but I find that I can evaluate a long section of code so long as I do it in snippets, esp doing FOR loops individually. Sometimes though I find that Matlab seems to take on a mind of its own and evaluate a subsequent section of code that was not highlighted for evaluation (again, this is usually with respect to FOR loops that get evaluated without me telling Matlab to do so)...

Subject: 2008a evaluate selection / keyboard

From: Kemal

Date: 22 May, 2011 18:07:05

Message: 8 of 8

spasmous <spasmous@gmail.com> wrote in message <b4ff69c1-7bc4-4a93-8a9f-f7b136469681@g3g2000pre.googlegroups.com>...
> I recently went from 2006b to 2008a and find that Right Click-
> >Evaluate Selection no longer works if I am at a keyboard break point
> and if there is a for loop in the code. Same problem with cut and
> paste of code into the command line.
>
> E.g. put a keyboard command somewhere in your function, then copy and
> paste this snippet into the command window
>
> temp = 0;
> for j=1:10
> temp=temp+j;
> end
>
> For me the result is nothing happens and there is a Continue entering
> statement message in the status bar. Is there any way to make it work
> again like the previous version?

I have the same bug in version R2009a. Did this get fixed? Or is there a workaround?

Thanks

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
for loop evalua... Stanley 13 Feb, 2009 01:10:07
debug Christopher Hummersone 9 Feb, 2009 09:40:05
keyboard Christopher Hummersone 9 Feb, 2009 09:40:05
evaluate selection Christopher Hummersone 9 Feb, 2009 09:40:05
rssFeed for this Thread

Contact us at files@mathworks.com