Graphics Reference
In-Depth Information
Figure 5-14.
eXerCISe 5-2
Graph, on the same axes, the functions bessel(1,x), bessel(2,x) and bessel(3,x) for values of x between 0 and 12,
evenly spaced using two-tenths. place three legends and add three different types of strokes (normal, asterisks
and circles, respectively) to the three functions.
Figure 5-15 represents the capabilities requested by using the following syntax:
>> x = 0:.2:12;
plot(x, besselj(1,x), x, besselj(2,x),'*', x, besselj(3,x), 'o');
legend('Bessel(1,x)', 'Bessel(2,x)', 'Bessel(3,x)');
Figure 5-15.
Search WWH ::




Custom Search