matlab-函数作图
>> x=0:200
x =
Columns 1 through 12
0 1 2 3 4 5 6 7 8 9 10 11
Columns 13 through 24
12 13 14 15 16 17 18 19 20 21 22 23
Columns 25 through 36
24 25 26 27 28 29 30 31 32 33 34 35
Columns 37 through 48
36 37 38 39 40 41 42 43 44 45 46 47
Columns 49 through 60
48 49 50 51 52 53 54 55 56 57 58 59
Columns 61 through 72
60 61 62 63 64 65 66 67 68 69 70 71
Columns 73 through 84
72 73 74 75 76 77 78 79 80 81 82 83
Columns 85 through 96
84 85 86 87 88 89 90 91 92 93 94 95
Columns 97 through 108
96 97 98 99 100 101 102 103 104 105 106 107
Columns 109 through 120
108 109 110 111 112 113 114 115 116 117 118 119
Columns 121 through 132
120 121 122 123 124 125 126 127 128 129 130 131
Columns 133 through 144
132 133 134 135 136 137 138 139 140 141 142 143
Columns 145 through 156
144 145 146 147 148 149 150 151 152 153 154 155
Columns 157 through 168
156 157 158 159 160 161 162 163 164 165 166 167
Columns 169 through 180
168 169 170 171 172 173 174 175 176 177 178 179
Columns 181 through 192
180 181 182 183 184 185 186 187 188 189 190 191
Columns 193 through 201
192 193 194 195 196 197 198 199 200
>> y=8*x
y =
Columns 1 through 6
0 8 16 24 32 40
Columns 7 through 12
48 56 64 72 80 88
Columns 13 through 18
96 104 112 120 128 136
Columns 19 through 24
144 152 160 168 176 184
Columns 25 through 30
192 200 208 216 224 232
Columns 31 through 36
240 248 256 264 272 280
Columns 37 through 42
288 296 304 312 320 328
Columns 43 through 48
336 344 352 360 368 376
Columns 49 through 54
384 392 400 408 416 424
Columns 55 through 60
432 440 448 456 464 472
Columns 61 through 66
480 488 496 504 512 520
Columns 67 through 72
528 536 544 552 560 568
Columns 73 through 78
576 584 592 600 608 616
Columns 79 through 84
624 632 640 648 656 664
Columns 85 through 90
672 680 688 696 704 712
Columns 91 through 96
720 728 736 744 752 760
Columns 97 through 102
768 776 784 792 800 808
Columns 103 through 108
816 824 832 840 848 856
Columns 109 through 114
864 872 880 888 896 904
Columns 115 through 120
912 920 928 936 944 952
Columns 121 through 126
960 968 976 984 992 1000
Columns 127 through 132
1008 1016 1024 1032 1040 1048
Columns 133 through 138
1056 1064 1072 1080 1088 1096
Columns 139 through 144
1104 1112 1120 1128 1136 1144
Columns 145 through 150
1152 1160 1168 1176 1184 1192
Columns 151 through 156
1200 1208 1216 1224 1232 1240
Columns 157 through 162
1248 1256 1264 1272 1280 1288
Columns 163 through 168
1296 1304 1312 1320 1328 1336
Columns 169 through 174
1344 1352 1360 1368 1376 1384
Columns 175 through 180
1392 1400 1408 1416 1424 1432
Columns 181 through 186
1440 1448 1456 1464 1472 1480
Columns 187 through 192
1488 1496 1504 1512 1520 1528
Columns 193 through 198
1536 1544 1552 1560 1568 1576
Columns 199 through 201
1584 1592 1600
>> plot(x,y,'-r','LineWidth',2)