You left freq undefined, so Prime will try to range freq from -10 to 10. Of course that doesn't work on a logarithmic scale. In addition freq needs a unit (Hz or so).
You can solve this problem simply by defining freq as:

But this creates a lot of superfluous points for a log scale. And when you want to go over 6 decades it's not going to work.
You can use logpts() or logspace() to generate a vector of logarithmically spaced points for freq:

To get 10 points per decade from 10^0(=1) to 10^3(=1000) Hz.
Now you need to vectorise the plot expressions.
You can use the unit deg instead of multiplying the argument with 180/pi, and i is a predefined constant, you don't need to define j.
This gets:

and

Success!
Luc
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.




