Add an if statement to the for loop body. If speed(c) is less than or equal to 0, create a loglog plot of s against lambda using a dashed line (—).
After the if statement, add the command hold on so that only one plot is created.
the below didnt work for me:
if speed(c) <= 0 loglog(lambda,s,"--") end hold onend
Best Answer