SHARE
TWEET

zadatak 1e

a guest Oct 21st, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clear all
  2. x = linspace(-pi,pi,101)
  3. x =
  4.  
  5.   Columns 1 through 7
  6.  
  7.    -3.1416   -3.0788   -3.0159   -2.9531   -2.8903   -2.8274   -2.7646
  8.  
  9.   Columns 8 through 14
  10.  
  11.    -2.7018   -2.6389   -2.5761   -2.5133   -2.4504   -2.3876   -2.3248
  12.  
  13.   Columns 15 through 21
  14.  
  15.    -2.2619   -2.1991   -2.1363   -2.0735   -2.0106   -1.9478   -1.8850
  16.  
  17.   Columns 22 through 28
  18.  
  19.    -1.8221   -1.7593   -1.6965   -1.6336   -1.5708   -1.5080   -1.4451
  20.  
  21.   Columns 29 through 35
  22.  
  23.    -1.3823   -1.3195   -1.2566   -1.1938   -1.1310   -1.0681   -1.0053
  24.  
  25.   Columns 36 through 42
  26.  
  27.    -0.9425   -0.8796   -0.8168   -0.7540   -0.6912   -0.6283   -0.5655
  28.  
  29.   Columns 43 through 49
  30.  
  31.    -0.5027   -0.4398   -0.3770   -0.3142   -0.2513   -0.1885   -0.1257
  32.  
  33.   Columns 50 through 56
  34.  
  35.    -0.0628         0    0.0628    0.1257    0.1885    0.2513    0.3142
  36.  
  37.   Columns 57 through 63
  38.  
  39.     0.3770    0.4398    0.5027    0.5655    0.6283    0.6912    0.7540
  40.  
  41.   Columns 64 through 70
  42.  
  43.     0.8168    0.8796    0.9425    1.0053    1.0681    1.1310    1.1938
  44.  
  45.   Columns 71 through 77
  46.  
  47.     1.2566    1.3195    1.3823    1.4451    1.5080    1.5708    1.6336
  48.  
  49.   Columns 78 through 84
  50.  
  51.     1.6965    1.7593    1.8221    1.8850    1.9478    2.0106    2.0735
  52.  
  53.   Columns 85 through 91
  54.  
  55.     2.1363    2.1991    2.2619    2.3248    2.3876    2.4504    2.5133
  56.  
  57.   Columns 92 through 98
  58.  
  59.     2.5761    2.6389    2.7018    2.7646    2.8274    2.8903    2.9531
  60.  
  61.   Columns 99 through 101
  62.  
  63.     3.0159    3.0788    3.1416
  64. y = sin(x)
  65.  
  66. y =
  67.  
  68.   Columns 1 through 7
  69.  
  70.    -0.0000   -0.0628   -0.1253   -0.1874   -0.2487   -0.3090   -0.3681
  71.  
  72.   Columns 8 through 14
  73.  
  74.    -0.4258   -0.4818   -0.5358   -0.5878   -0.6374   -0.6845   -0.7290
  75.  
  76.   Columns 15 through 21
  77.  
  78.    -0.7705   -0.8090   -0.8443   -0.8763   -0.9048   -0.9298   -0.9511
  79.  
  80.   Columns 22 through 28
  81.  
  82.    -0.9686   -0.9823   -0.9921   -0.9980   -1.0000   -0.9980   -0.9921
  83.  
  84.   Columns 29 through 35
  85.  
  86.    -0.9823   -0.9686   -0.9511   -0.9298   -0.9048   -0.8763   -0.8443
  87.  
  88.   Columns 36 through 42
  89.  
  90.    -0.8090   -0.7705   -0.7290   -0.6845   -0.6374   -0.5878   -0.5358
  91.  
  92.   Columns 43 through 49
  93.  
  94.    -0.4818   -0.4258   -0.3681   -0.3090   -0.2487   -0.1874   -0.1253
  95.  
  96.   Columns 50 through 56
  97.  
  98.    -0.0628         0    0.0628    0.1253    0.1874    0.2487    0.3090
  99.  
  100.   Columns 57 through 63
  101.  
  102.     0.3681    0.4258    0.4818    0.5358    0.5878    0.6374    0.6845
  103.  
  104.   Columns 64 through 70
  105.  
  106.     0.7290    0.7705    0.8090    0.8443    0.8763    0.9048    0.9298
  107.  
  108.   Columns 71 through 77
  109.  
  110.     0.9511    0.9686    0.9823    0.9921    0.9980    1.0000    0.9980
  111.  
  112.   Columns 78 through 84
  113.  
  114.     0.9921    0.9823    0.9686    0.9511    0.9298    0.9048    0.8763
  115.  
  116.   Columns 85 through 91
  117.  
  118.     0.8443    0.8090    0.7705    0.7290    0.6845    0.6374    0.5878
  119.  
  120.   Columns 92 through 98
  121.  
  122.     0.5358    0.4818    0.4258    0.3681    0.3090    0.2487    0.1874
  123.  
  124.   Columns 99 through 101
  125.  
  126.     0.1253    0.0628    0.0000
  127.  
  128. plot (x,y,'--+g')
  129. hold on
  130. x1 = linspace(-pi,pi,101)
  131.  
  132. x1 =
  133.  
  134.   Columns 1 through 7
  135.  
  136.    -3.1416   -3.0788   -3.0159   -2.9531   -2.8903   -2.8274   -2.7646
  137.  
  138.   Columns 8 through 14
  139.  
  140.    -2.7018   -2.6389   -2.5761   -2.5133   -2.4504   -2.3876   -2.3248
  141.  
  142.   Columns 15 through 21
  143.  
  144.    -2.2619   -2.1991   -2.1363   -2.0735   -2.0106   -1.9478   -1.8850
  145.  
  146.   Columns 22 through 28
  147.  
  148.    -1.8221   -1.7593   -1.6965   -1.6336   -1.5708   -1.5080   -1.4451
  149.  
  150.   Columns 29 through 35
  151.  
  152.    -1.3823   -1.3195   -1.2566   -1.1938   -1.1310   -1.0681   -1.0053
  153.  
  154.   Columns 36 through 42
  155.  
  156.    -0.9425   -0.8796   -0.8168   -0.7540   -0.6912   -0.6283   -0.5655
  157.  
  158.   Columns 43 through 49
  159.  
  160.    -0.5027   -0.4398   -0.3770   -0.3142   -0.2513   -0.1885   -0.1257
  161.  
  162.   Columns 50 through 56
  163.  
  164.    -0.0628         0    0.0628    0.1257    0.1885    0.2513    0.3142
  165.  
  166.   Columns 57 through 63
  167.  
  168.     0.3770    0.4398    0.5027    0.5655    0.6283    0.6912    0.7540
  169.  
  170.   Columns 64 through 70
  171.  
  172.     0.8168    0.8796    0.9425    1.0053    1.0681    1.1310    1.1938
  173.  
  174.   Columns 71 through 77
  175.  
  176.     1.2566    1.3195    1.3823    1.4451    1.5080    1.5708    1.6336
  177.  
  178.   Columns 78 through 84
  179.  
  180.     1.6965    1.7593    1.8221    1.8850    1.9478    2.0106    2.0735
  181.  
  182.   Columns 85 through 91
  183.  
  184.     2.1363    2.1991    2.2619    2.3248    2.3876    2.4504    2.5133
  185.  
  186.   Columns 92 through 98
  187.  
  188.     2.5761    2.6389    2.7018    2.7646    2.8274    2.8903    2.9531
  189.  
  190.   Columns 99 through 101
  191.  
  192.     3.0159    3.0788    3.1416
  193. y1 = cos(x1)
  194. y1 =
  195.  
  196.   Columns 1 through 7
  197.  
  198.    -1.0000   -0.9980   -0.9921   -0.9823   -0.9686   -0.9511   -0.9298
  199.  
  200.   Columns 8 through 14
  201.  
  202.    -0.9048   -0.8763   -0.8443   -0.8090   -0.7705   -0.7290   -0.6845
  203.  
  204.   Columns 15 through 21
  205.  
  206.    -0.6374   -0.5878   -0.5358   -0.4818   -0.4258   -0.3681   -0.3090
  207.  
  208.   Columns 22 through 28
  209.  
  210.    -0.2487   -0.1874   -0.1253   -0.0628    0.0000    0.0628    0.1253
  211.  
  212.   Columns 29 through 35
  213.  
  214.     0.1874    0.2487    0.3090    0.3681    0.4258    0.4818    0.5358
  215.  
  216.   Columns 36 through 42
  217.  
  218.     0.5878    0.6374    0.6845    0.7290    0.7705    0.8090    0.8443
  219.  
  220.   Columns 43 through 49
  221.  
  222.     0.8763    0.9048    0.9298    0.9511    0.9686    0.9823    0.9921
  223.  
  224.   Columns 50 through 56
  225.  
  226.     0.9980    1.0000    0.9980    0.9921    0.9823    0.9686    0.9511
  227.  
  228.   Columns 57 through 63
  229.  
  230.     0.9298    0.9048    0.8763    0.8443    0.8090    0.7705    0.7290
  231.  
  232.   Columns 64 through 70
  233.  
  234.     0.6845    0.6374    0.5878    0.5358    0.4818    0.4258    0.3681
  235.  
  236.   Columns 71 through 77
  237.  
  238.     0.3090    0.2487    0.1874    0.1253    0.0628    0.0000   -0.0628
  239.  
  240.   Columns 78 through 84
  241.  
  242.    -0.1253   -0.1874   -0.2487   -0.3090   -0.3681   -0.4258   -0.4818
  243.  
  244.   Columns 85 through 91
  245.  
  246.    -0.5358   -0.5878   -0.6374   -0.6845   -0.7290   -0.7705   -0.8090
  247.  
  248.   Columns 92 through 98
  249.  
  250.    -0.8443   -0.8763   -0.9048   -0.9298   -0.9511   -0.9686   -0.9823
  251.  
  252.   Columns 99 through 101
  253.  
  254.    -0.9921   -0.9980   -1.0000
  255. plot(x1,y1,'-pr')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top