Hi guys. I was doing my assignment (Sierpenski triangle) and i solved it in two ways. switch case ans if-elseif-else. Which one do you think is more logical( less error)?
MATLAB: Switch case or if-elseif-else
elseififswitchcase
Related Question
- Sending values to a matrix from if-elseif-else loop
- How to terminate an if-elseif-else statement once a condition is met.
- Using if, else-if and else
- Hi, In Configuration Parameters, Code style I have selected th option to Convert if-elseif-else to switch case statements but the generated code still generates the code using if else. How to make sure it generates using switch case
Best Answer