From: nico cruz on
Hi everybody,

when using the for-loop matlab lets you hide the content of the loop by clicking the sqaure whith a minus sign on the left side of the "for".

is there a way to set this trick to hide text so the mfile looks smaller?.

what I do, is to set for loops that dont do anything to be able to hide the text, but I guess there is a more elegant way to do this.

thanx in advance
From: Ashish Uthama on
On Wed, 10 Mar 2010 07:47:04 -0500, nico cruz
<m.nicolas.cruz(a)mailbox.tu-berlin.de> wrote:

> Hi everybody,
>
> when using the for-loop matlab lets you hide the content of the loop by
> clicking the sqaure whith a minus sign on the left side of the "for".
>
> is there a way to set this trick to hide text so the mfile looks
> smaller?.
>
> what I do, is to set for loops that dont do anything to be able to hide
> the text, but I guess there is a more elegant way to do this.
>
> thanx in advance

I guess you are looking for code cells with code folding:

Please find more details online at:
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/brqxeeu-259.html
Or please paste this in the MATLAB command window:
web([docroot,'/techdoc/matlab_env/brqxeeu-259.html'])
From: nico cruz on
"Ashish Uthama" <first.last(a)mathworks.com> wrote in message <op.u9cs49uya5ziv5(a)uthamaa.dhcp.mathworks.com>...
> On Wed, 10 Mar 2010 07:47:04 -0500, nico cruz
> <m.nicolas.cruz(a)mailbox.tu-berlin.de> wrote:
>
> > Hi everybody,
> >
> > when using the for-loop matlab lets you hide the content of the loop by
> > clicking the sqaure whith a minus sign on the left side of the "for".
> >
> > is there a way to set this trick to hide text so the mfile looks
> > smaller?.
> >
> > what I do, is to set for loops that dont do anything to be able to hide
> > the text, but I guess there is a more elegant way to do this.
> >
> > thanx in advance
>
> I guess you are looking for code cells with code folding:
>
> Please find more details online at:
> http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/brqxeeu-259.html
> Or please paste this in the MATLAB command window:
> web([docroot,'/techdoc/matlab_env/brqxeeu-259.html'])


THANX :)
 | 
Pages: 1
Prev: surf plot
Next: Simulink batch mode