how to plot multiple if else conditions ?

I have plotted an equation. when using if else condition separately i got the perfect plot. But when I used if else condition in a loop then it became a straight line. so what i will do? I attach my 2 files.

Answers (0)

Categories

Find more on Networks in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!