MATLAB: Parentheses in code to make code more readable

make code more readable

Hi,
i need to write a function and i'm using a few if-else or switch-case and the code starts to be difficult to read.
question: how do i bundle if-else or switch-case with Parentheses to make the code more readable?
thank you 🙂

Best Answer

You can’t create a paranthesis like that in a code. I suggest you to make those two conditional statements as two separate functions?
Related Question