Hello all, this is my first posting , so bear with me if I fail to provide all necessary information the first time though.
I was wondering if Matlab has the capability to detect nested parentheses and match levels by color in the Editor and the Command Window. If so, a brief tutorial in enabling such a function would be greatly appreciated. for example:
This:
SQRT((gamma+1)/(gamma-1))*atand(SQRT(((gamma-1)/(gamma+1))*(M^2-1)))-atand(SQRT(M^2-1))
displays as this
This just makes user interaction and identification of different layers a lot more quick and efficient in my opinion. Any help would be appreciated.

댓글 수: 5

Star Strider
Star Strider 2014년 4월 25일
Matching parentheses now have small underlines under them when you mouse over them, and not-matching parentheses trigger a red underline at the end of a statement. I like the idea of color-highlighted matching parentheses, though. Those would be easier to see in the Editor.
José-Luis
José-Luis 2014년 4월 25일
I second that motion. I have lost so much time getting the parentheses wrong.
Star Strider
Star Strider 2014년 4월 26일
There used to be a ‘Request Enhancements’ option, but I couldn’t find it when I looked earlier today. I suggest you submit this thread to: MathWorks Support Team.
Robert
Robert 2014년 4월 26일
Thanks for the recommendation, Star! How would I go about submitting a thread to them though?

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

 채택된 답변

Image Analyst
Image Analyst 2014년 4월 25일

2 개 추천

No - not yet, but I think it would be a good idea.

댓글 수: 2

Elisabeth Wagner
Elisabeth Wagner 2018년 1월 18일
편집: Elisabeth Wagner 2018년 1월 18일
Is there now a possibility to highlight brackets?
Walter Roberson
Walter Roberson 2018년 1월 18일
"Is there now a possibility to highlight brackets?"
The only differences in this respect since 2014 is that now the Live Script editor exists, and in Live Script when you click on (or position at) a bracket, then it briefly puts an underscore under both the bracket and its match, which is different from the regular editor only in that the brief underscore is slightly thicker and lasts slightly longer and so is a little more obvious than in the regular editor.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

질문:

2014년 4월 25일

댓글:

2018년 1월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by