Thread Subject: problem with the cell mode

Subject: problem with the cell mode

From: Pinpress

Date: 27 Feb, 2009 17:28:01

Message: 1 of 5

Hi all,

Anyone has experienced the same thing that I have? I have a few matlab files opened in the Editor with Cell Mode on. However, some of my .m files shows correctly with cell partitions (each section can be executed separated and are separated by "%%"). However, other .m files does not show correctly with cell mode (the entire file shows only one color even with cell separation, and can only be executed as a whole). Switching on and off the cell mode does not help. I had to create a new file and copy paste the code and save to the original file name (replace). This time cell mode shows correctly.

This must be a bug of some sort? It's 2008b.

Subject: problem with the cell mode

From: Dan Knudsen

Date: 27 May, 2009 01:04:02

Message: 2 of 5

Not sure if this has since been answered elsewhere, but I couldn't find it.

I'm having the exact same problem using 2009a.

Any help would be greatly appreciated.

-Dan

"Pinpress" <nospam__@yahoo.com> wrote in message <go97r1$djp$1@fred.mathworks.com>...
> Hi all,
>
> Anyone has experienced the same thing that I have? I have a few matlab files opened in the Editor with Cell Mode on. However, some of my .m files shows correctly with cell partitions (each section can be executed separated and are separated by "%%"). However, other .m files does not show correctly with cell mode (the entire file shows only one color even with cell separation, and can only be executed as a whole). Switching on and off the cell mode does not help. I had to create a new file and copy paste the code and save to the original file name (replace). This time cell mode shows correctly.
>
> This must be a bug of some sort? It's 2008b.

Subject: problem with the cell mode

From: Matthew Simoneau

Date: 27 May, 2009 14:02:02

Message: 3 of 5

To allow cell breaks to work within functions, loops, and other control structures, we introduced the concept of nested cells. That is, one cell can be a subset of another. Here is the full description:

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/brqxeeu-259.html#brqxeeu-285

People who previously used cells as a visual demarcation, even though it wouldn't work for publishing at that time, will now see a different behavior.

Subject: problem with the cell mode

From: Dan Knudsen

Date: 27 May, 2009 18:23:01

Message: 4 of 5

Well, I apologize for adding to the noise, but I fixed my particular problem. I had a syntax error in my m file and this caused all of the cell demarcations to disappear.

Hopefully your problem is as easily fixed as mine, Pinpress.

"Dan Knudsen" <neurodude@gmail.com> wrote in message <gvi3i2$jcu$1@fred.mathworks.com>...
> Not sure if this has since been answered elsewhere, but I couldn't find it.
>
> I'm having the exact same problem using 2009a.
>
> Any help would be greatly appreciated.
>
> -Dan
>
> "Pinpress" <nospam__@yahoo.com> wrote in message <go97r1$djp$1@fred.mathworks.com>...
> > Hi all,
> >
> > Anyone has experienced the same thing that I have? I have a few matlab files opened in the Editor with Cell Mode on. However, some of my .m files shows correctly with cell partitions (each section can be executed separated and are separated by "%%"). However, other .m files does not show correctly with cell mode (the entire file shows only one color even with cell separation, and can only be executed as a whole). Switching on and off the cell mode does not help. I had to create a new file and copy paste the code and save to the original file name (replace). This time cell mode shows correctly.
> >
> > This must be a bug of some sort? It's 2008b.

Subject: problem with the cell mode

From: Pinpress

Date: 22 Oct, 2009 01:59:18

Message: 5 of 5

Yes, that was exactly the same fix here as well. It took me some time to figure out -- Maybe Matlab could be a little more smarter ...

"Dan Knudsen" <neurodude@gmail.com> wrote in message <gvk0e5$qua$1@fred.mathworks.com>...
> Well, I apologize for adding to the noise, but I fixed my particular problem. I had a syntax error in my m file and this caused all of the cell demarcations to disappear.
>
> Hopefully your problem is as easily fixed as mine, Pinpress.
>

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
syntax error Dan Knudsen 27 May, 2009 14:24:15
cell mode Dan Knudsen 27 May, 2009 14:24:15
cell mode Matthew Simoneau 27 May, 2009 10:04:09
nested cells Matthew Simoneau 27 May, 2009 10:04:09
cell Pinpress 27 Feb, 2009 12:30:18
matlab Pinpress 27 Feb, 2009 12:30:18
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