next up previous contents
Next: Exercise 8 (Plotting) Up: Plotting Previous: Plotting

Exercise 7 (Plotting)

Plot the function $y=\frac{1}{1+2x^2}$ in the range $x=0.01$ ...$100$ linear and logarithmic.

Solution:

>> x=0.01:0.01:100; y=1./(1+0.5*x.*x); plot(x,y)
>> x=0.01:0.01:100; y=1./(1+0.5*x.*x); loglog(x,y)
0



Helmut Dersch
2009-03-15