Graphics Reference
In-Depth Information
eXerCISe 5-4
represent the warped curve of parametric coordinates,
x
= Cos
2
(
t
),
y
= sine (
t
) cos (
t
),
z
= sine (
t
) for
t
ranging
from -4
p
to 4
p
.
Figure
5-18
represents the capabilities requested by using the following syntax:
>> t = -4 * pi: 0.01:4 * pi;
x = cos(t) .^ 2;
y = sin(t) .* cos(t);
z = sin(t);
plot3(x, y, z)
Figure 5-18.