Unhide code in Live Script
조회 수: 17 (최근 30일)
이전 댓글 표시
I discovered and pressed the "Hide Code" button on the right margin of the editor while working on a .mlx file.
It works unidirectionally: I can't unhide the code.
This state appears to be persistent: Restarting MATLAB and OS has no effect.
Restarting MATLAB using an historical editor-state, also has no effect, suggesting the view state is bound to the file. (It also suggests I've accidentally saved the .mlx file.)
Further, the reopened file flags the following warning:
![Screen Shot 2019-05-28 at 16.40.23.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/221523/Screen%20Shot%202019-05-28%20at%2016.40.23.png)
I also tried to open/save script using an earlier release. The code fields reappear in R2018b, but saving the .mlx file doesn't change the hidden state when re-opening in R2019a.
Aside: The «hide code» button appears to act like a radio button grouped with the two view-options for placement of output. (This seems an odd choice.) So activating one of the other two, changes the target button-state, but not the view-state.
R2019a + macOS 10.14.4
댓글 수: 0
채택된 답변
Sean de Wolski
2019년 5월 28일
Install Update 2 (should appear in upper right hand corner of desktop if online), it fixes this bug.
댓글 수: 0
추가 답변 (1개)
Evan Bentz
2019년 7월 23일
You can just copy the hided code and paste it in a new script - it will unhide it
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!