how to organize your code in blocks
9 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Walter Roberson
2011-12-9
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/
0 个评论
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!