The body of an if block is only executed if the condition is true. task modify the script so that the plotting code on lines 4-7 are executed only when doplot is 1. hint modify the if statement as shown if doplot %% plotting code; end test results: incorrect! is there no plot when when doplot is 0? is there a plot when doplot is 1? is the plot correct with doplot is 1?

Solved
Show answers

Ask an AI advisor a question