Graphics Reference
In-Depth Information
Below you will find the syntax used to represent the polar curve
r
=
Sin
(2
a
)
Cos
(2
a
) for
t
between 0 and 2p
(Figure
5-8
).
>> t = 0:0.1:2*pi;
>> r = sin(2*t).* cos(2*t);
>> polar(t,r)
Figure 5-8.
This example could also represent this polar curve with a dashed line of red color (Figure
5-9
) using the
following syntax:
>> t = 0:0.1:2*pi;
>> r = sin(2*t).*cos(2*t);
>> polar(t,r,'--r')
Figure 5-9.