Using the colon operator generate the following sequences 11
Using the colon(:) operator generate the following sequences 11 12 13 14 15 16 17 18 19 20 21 5 10 15 20 25 30 35 40 45 50 -15 -10 -5 0 5 10 15 30 28 26 24 22 20 18 16 14 12 10 5 4 3 2 1 0-1 -2 -3 -4 -5
Solution
>> a=11:1:21
a =
11 12 13 14 15 16 17 18 19 20 21
>> b=5:5:50
b =
5 10 15 20 25 30 35 40 45 50
>> c=-15:5:15
c =
-15 -10 -5 0 5 10 15
>> d=30:-2:10
d =
30 28 26 24 22 20 18 16 14 12 10
>> e=5:-1:-5
e =
5 4 3 2 1 0 -1 -2 -3 -4 -5
