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.
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?
"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?
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.
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.