Filter löschen
Filter löschen

how to organize your code in blocks

6 Ansichten (letzte 30 Tage)
Steven
Steven am 9 Dez. 2011
hi,
I wonder if it's possible to regroup (minimize) some parts of your code. Matlab offers this with for loop, but could it be possible to do so with any lines? For example let's say I have :
% I want
% to minimize
% this portion of code
and with some (magic) trick, now I could see something shorter like:
[+] % I want
Thx

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 9 Dez. 2011
You could put the code in a cell, and enable code folding for cells. See http://blogs.mathworks.com/desktop/2009/06/15/fold-whatever-you-want-using-cells/

Weitere Antworten (1)

Sean de Wolski
Sean de Wolski am 9 Dez. 2011
docsearch editing code

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by