14.07.2013 Views

3.5 Space Curves in Matlab

3.5 Space Curves in Matlab

3.5 Space Curves in Matlab

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

252 Chapter 3 Plott<strong>in</strong>g <strong>in</strong> <strong>Matlab</strong><br />

these components <strong>in</strong> the view(ax,el)<br />

<strong>in</strong> your script to obta<strong>in</strong> an identical<br />

view. Label the axes and provide<br />

a title that <strong>in</strong>cludes the name<br />

the conic section that is the <strong>in</strong>tersection<br />

of the given plane and the<br />

right circular cone.<br />

7. Sketch the plane z = 1/2 over the<br />

doma<strong>in</strong><br />

D = {(x, y) : −1 ≤ x, y ≤ 1}.<br />

8. Sketch the plane z = 0.4y + 0.5<br />

over the doma<strong>in</strong><br />

D = {(x, y) : −1 ≤ x, y ≤ 1}.<br />

9. Sketch the plane z = y+0.25 over<br />

the doma<strong>in</strong><br />

D = {(x, y) : −1 ≤ x, y ≤ 1}.<br />

10. Sketch the plane x = 0.5 over<br />

the doma<strong>in</strong><br />

D = {(y, z) : −1 ≤ y, z ≤ 1}.<br />

11. Sketch the torus def<strong>in</strong>ed by the<br />

parametric equations<br />

x = (7 + 2 cos u) cos v<br />

y = (7 + 2 cos u) s<strong>in</strong> v<br />

z = 3 s<strong>in</strong> u.<br />

Set the EdgeColor to a shade of gray<br />

and add transparency by sett<strong>in</strong>g both<br />

FaceAlpha and EdgeAlpha equal<br />

to 0.5. Set the axis equal. Use <strong>Matlab</strong>’s<br />

l<strong>in</strong>e command to superimpose<br />

the torus knot hav<strong>in</strong>g parmetric equations<br />

x = (7 + 2 cos 5t) cos 2t<br />

y = (7 + 2 cos 5t) s<strong>in</strong> 2t<br />

z = 3 s<strong>in</strong> 5t<br />

over the time doma<strong>in</strong> 0 ≤ t ≤ 2π.<br />

Use handle graphics to set the Color<br />

of the torus knot to a color of your<br />

choice and set the L<strong>in</strong>eWidth to a<br />

thickness of 2 po<strong>in</strong>ts.<br />

12. Sketch the torus def<strong>in</strong>ed by the<br />

parametric equations<br />

x = (8 + 2 cos u) cos v<br />

y = (8 + 2 cos u) s<strong>in</strong> v<br />

z = 3 s<strong>in</strong> u.<br />

Set the EdgeColor to a shade of gray<br />

and add transparency by sett<strong>in</strong>g both<br />

FaceAlpha and EdgeAlpha equal<br />

to 0.5. Set the axis equal. Use <strong>Matlab</strong>’s<br />

l<strong>in</strong>e command to superimpose<br />

the torus knot hav<strong>in</strong>g parmetric equations<br />

x = (8 + 2 cos 11t) cos 3t<br />

y = (8 + 2 cos 11t) s<strong>in</strong> 3t<br />

z = 3 s<strong>in</strong> 11t<br />

over the time doma<strong>in</strong> 0 ≤ t ≤ 2π.<br />

Use handle graphics to set the Color<br />

of the torus knot to a color of your<br />

choice and set the L<strong>in</strong>eWidth to a<br />

thickness of 2 po<strong>in</strong>ts.<br />

13. Sketch the cone def<strong>in</strong>ed by the<br />

parametric equations<br />

x = r cos θ<br />

y = r s<strong>in</strong> θ<br />

z = r<br />

where 0 ≤ r ≤ 1 and 0 ≤ θ ≤ 2π.<br />

Set the EdgeColor to a shade of gray

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!