Thread Subject: cell mode execution

Subject: cell mode execution

From: Alan B

Date: 3 Apr, 2009 16:08:01

Message: 1 of 4

Is there any way to see where an error is, when ctrl-enter execution in cell mode fails? I like cell mode but I can't use it because it makes debugging impossible, when I just get a popup box saying "the cell cannot be evaluated". How can I get a more informative message? Is this just fixed in a later version? I have 2006b.

Subject: cell mode execution

From: Matthew Simoneau

Date: 3 Apr, 2009 16:24:00

Message: 2 of 4

Yes, this message isn't very helpful. I think you see it when there is an invalid syntax, i.e. a parse error. If you hit "F5" to run the whole file, does a better error message print to the command window?

Subject: cell mode execution

From: Alan B

Date: 3 Apr, 2009 23:01:02

Message: 3 of 4

"Matthew Simoneau" <matthew@mathworks.com> wrote in message <gr5d70$5fc$1@fred.mathworks.com>...
> Yes, this message isn't very helpful. I think you see it when there is an invalid syntax, i.e. a parse error. If you hit "F5" to run the whole file, does a better error message print to the command window?

Yes I see a helpful message when I use F5. I usually just end up converting the script to a function, which also allows me to see helpful messages. Sometimes I want the added functionality of cell mode though - is there no way to combine cell mode with meaningful error messages?

Thanks

Subject: cell mode execution

From: Matthew Simoneau

Date: 3 Apr, 2009 23:38:02

Message: 4 of 4

You'd think so! This limitation actually goes deep into the dark corners of MATLAB and reflects architectural decisions that were made a long time ago. It is on our radar, but will take some time to work this out.

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
errors Matthew Simoneau 3 Apr, 2009 12:25:04
cell mode Matthew Simoneau 3 Apr, 2009 12:25:04
cell mode Alan B 3 Apr, 2009 12:10:07
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com