For question (1), plot(b)
is going to give you lines made up of the columns of b
. If you switch to using b-transpose, i.e. plot(b')
, you'll plot each row separately.
plot(b')
ylim([-4 0])
xlim([-0 4])
Question (2) requires a certain toolbox for the resp
function?