Highlight a number + Ctrl + Scroll in Matlab editor - bug or feature?

I'm just curious about the background on the following feature I discovered yesterday in the Matlab editor:
Write a number in the Matlab editor. Highlight the number. Then press down Ctrl and use the scroll wheel on the mouse. It appears that the number is changing by +1 or -1 (depending on the direction of the scrolling), and that the entire code block is executed for every step.
I haven't found any documentation about this, and me and my colleagues have not agreed upon whether we think it is a bug or a feature... ? In some sense, it's improvising a for loop, but we can't really see how to use it efficiently.
It appears to be present in at least the 5 latest Matlab versions, and also on different platforms.

 채택된 답변

per isakson
per isakson 2015년 3월 12일
편집: per isakson 2015년 3월 12일

0 개 추천

It's most likely a shortcut to this feature (R2013b).

댓글 수: 2

Seems likely, thanks!
(I'm still curious about when you need an "increment value and run section"-function, but that's probably just me... :-) )
How would you disable this? I have the same behavior in the editor, and when I accidently use ctrl-wheel on the mouse to increase text size (which doesn't work in Matlab editor. it's just a habit of mine), it changes numbers ... this is certainly something I would like to disable. thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품

태그

질문:

2015년 3월 12일

댓글:

2018년 4월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by