>> (1:100).^3
ans =
Columns 1 through 13
1 8 27 64 125 216 343 512 729 1000 1331 1728 2197
Columns 14 through 26
2744 3375 4096 4913 5832 6859 8000 9261 10648 12167 13824 15625 17576
Columns 27 through 39
19683 21952 24389 27000 29791 32768 35937 39304 42875 46656 50653 54872 59319
Columns 40 through 52
64000 68921 74088 79507 85184 91125 97336 103823 110592 117649 125000 132651 140608
Columns 53 through 65
148877 157464 166375 175616 185193 195112 205379 216000 226981 238328 250047 262144 274625
Columns 66 through 78
287496 300763 314432 328509 343000 357911 373248 389017 405224 421875 438976 456533 474552
Columns 79 through 91
493039 512000 531441 551368 571787 592704 614125 636056 658503 681472 704969 729000 753571
Columns 92 through 100
778688 804357 830584 857375 884736 912673 941192 970299 1000000
>> 3.(1:100)
??? 3.(1:100)
|
Error: Unbalanced or unexpected parenthesis or bracket.
>> v=(1:100).^3
v =
Columns 1 through 13
1 8 27 64 125 216 343 512 729 1000 1331 1728 2197
Columns 14 through 26
2744 3375 4096 4913 5832 6859 8000 9261 10648 12167 13824 15625 17576
Columns 27 through 39
19683 21952 24389 27000 29791 32768 35937 39304 42875 46656 50653 54872 59319
Columns 40 through 52
64000 68921 74088 79507 85184 91125 97336 103823 110592 117649 125000 132651 140608
Columns 53 through 65
148877 157464 166375 175616 185193 195112 205379 216000 226981 238328 250047 262144 274625
Columns 66 through 78
287496 300763 314432 328509 343000 357911 373248 389017 405224 421875 438976 456533 474552
Columns 79 through 91
493039 512000 531441 551368 571787 592704 614125 636056 658503 681472 704969 729000 753571
Columns 92 through 100
778688 804357 830584 857375 884736 912673 941192 970299 1000000
>> v=3.^(1:100)
v =
1.0e+047 *
Columns 1 through 16
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
Columns 17 through 32
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
Columns 33 through 48
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
Columns 49 through 64
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
Columns 65 through 80
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
Columns 81 through 96
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0003 0.0008 0.0024 0.0071 0.0212 0.0636
Columns 97 through 100
0.1909 0.5726 1.7179 5.1538
>> v=cos((pi)*(1:100))
v =
Columns 1 through 26
-1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1
Columns 27 through 52
-1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1
Columns 53 through 78
-1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1
Columns 79 through 100
-1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1
>> v=1+((1:100)*i)
v =
1.0e+002 *
Columns 1 through 8
0.0100 + 0.0100i 0.0100 + 0.0200i 0.0100 + 0.0300i 0.0100 + 0.0400i 0.0100 + 0.0500i 0.0100 + 0.0600i 0.0100 + 0.0700i 0.0100 + 0.0800i
Columns 9 through 16
0.0100 + 0.0900i 0.0100 + 0.1000i 0.0100 + 0.1100i 0.0100 + 0.1200i 0.0100 + 0.1300i 0.0100 + 0.1400i 0.0100 + 0.1500i 0.0100 + 0.1600i
Columns 17 through 24
0.0100 + 0.1700i 0.0100 + 0.1800i 0.0100 + 0.1900i 0.0100 + 0.2000i 0.0100 + 0.2100i 0.0100 + 0.2200i 0.0100 + 0.2300i 0.0100 + 0.2400i
Columns 25 through 32
0.0100 + 0.2500i 0.0100 + 0.2600i 0.0100 + 0.2700i 0.0100 + 0.2800i 0.0100 + 0.2900i 0.0100 + 0.3000i 0.0100 + 0.3100i 0.0100 + 0.3200i
Columns 33 through 40
0.0100 + 0.3300i 0.0100 + 0.3400i 0.0100 + 0.3500i 0.0100 + 0.3600i 0.0100 + 0.3700i 0.0100 + 0.3800i 0.0100 + 0.3900i 0.0100 + 0.4000i
Columns 41 through 48
0.0100 + 0.4100i 0.0100 + 0.4200i 0.0100 + 0.4300i 0.0100 + 0.4400i 0.0100 + 0.4500i 0.0100 + 0.4600i 0.0100 + 0.4700i 0.0100 + 0.4800i
Columns 49 through 56
0.0100 + 0.4900i 0.0100 + 0.5000i 0.0100 + 0.5100i 0.0100 + 0.5200i 0.0100 + 0.5300i 0.0100 + 0.5400i 0.0100 + 0.5500i 0.0100 + 0.5600i
Columns 57 through 64
0.0100 + 0.5700i 0.0100 + 0.5800i 0.0100 + 0.5900i 0.0100 + 0.6000i 0.0100 + 0.6100i 0.0100 + 0.6200i 0.0100 + 0.6300i 0.0100 + 0.6400i
Columns 65 through 72
0.0100 + 0.6500i 0.0100 + 0.6600i 0.0100 + 0.6700i 0.0100 + 0.6800i 0.0100 + 0.6900i 0.0100 + 0.7000i 0.0100 + 0.7100i 0.0100 + 0.7200i
Columns 73 through 80
0.0100 + 0.7300i 0.0100 + 0.7400i 0.0100 + 0.7500i 0.0100 + 0.7600i 0.0100 + 0.7700i 0.0100 + 0.7800i 0.0100 + 0.7900i 0.0100 + 0.8000i
Columns 81 through 88
0.0100 + 0.8100i 0.0100 + 0.8200i 0.0100 + 0.8300i 0.0100 + 0.8400i 0.0100 + 0.8500i 0.0100 + 0.8600i 0.0100 + 0.8700i 0.0100 + 0.8800i
Columns 89 through 96
0.0100 + 0.8900i 0.0100 + 0.9000i 0.0100 + 0.9100i 0.0100 + 0.9200i 0.0100 + 0.9300i 0.0100 + 0.9400i 0.0100 + 0.9500i 0.0100 + 0.9600i
Columns 97 through 100
0.0100 + 0.9700i 0.0100 + 0.9800i 0.0100 + 0.9900i 0.0100 + 1.0000i