Powered By Blogger

Selasa, 25 Maret 2014

Grafik 3

> x=-pi:.1:pi;
>> z=sin(x)

z =

  Columns 1 through 7

   -0.0000   -0.0998   -0.1987   -0.2955   -0.3894   -0.4794   -0.5646

  Columns 8 through 14

   -0.6442   -0.7174   -0.7833   -0.8415   -0.8912   -0.9320   -0.9636

  Columns 15 through 21

   -0.9854   -0.9975   -0.9996   -0.9917   -0.9738   -0.9463   -0.9093

  Columns 22 through 28

   -0.8632   -0.8085   -0.7457   -0.6755   -0.5985   -0.5155   -0.4274

  Columns 29 through 35

   -0.3350   -0.2392   -0.1411   -0.0416    0.0584    0.1577    0.2555

  Columns 36 through 42

    0.3508    0.4425    0.5298    0.6119    0.6878    0.7568    0.8183

  Columns 43 through 49

    0.8716    0.9162    0.9516    0.9775    0.9937    0.9999    0.9962

  Columns 50 through 56

    0.9825    0.9589    0.9258    0.8835    0.8323    0.7728    0.7055

  Columns 57 through 63

    0.6313    0.5507    0.4646    0.3739    0.2794    0.1822    0.0831

>> plot(x,z)
>> set(gca,'XTick',-pi:pi/2:pi)








>> set(gca,'XTickLabel',{'-pi','-pi/2','0','pi/2','pi'})


0 komentar:

Posting Komentar