switch case or if-elseif-else
Show older comments
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)?

Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!