How do I collapse sections in Matlab 2017b?

97 vues (au cours des 30 derniers jours)
KTRO
KTRO le 9 Nov 2017
Commenté : KTRO le 9 Nov 2017
Since upgrading to 2017b (Mac OS 10.11), I can't collapse sections of code. In earlier version of Matlab, there would be a small '-' symbol next to the %% which would allow for the section to be collapsed (and, when collapsed, a '+' symbol to expand). If I open the same code in the older version (2015b), the collapse/expand functionality is still there. Does it exist in 2017b?
%%Import Data
data = csvread('datafile.CSV');
date='2017_11_09_2';
%%Assign columns
D=data(:,1);
T_C=data(:,2);
T=T_C+273.15;
yield=data(:,3);

Réponse acceptée

Steven Lord
Steven Lord le 9 Nov 2017
You had probably set the Code Folding preferences to allow you to fold Sections in the older release but that preference is not set in the newer release. See also the Code Folding section on this documentation page.
  1 commentaire
KTRO
KTRO le 9 Nov 2017
Yes! Thank you! I was hunting for this box to check.

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by