The first question is as follows:
Complete the script in Octave so that it defines the following 5 vectors. Each row describes the measurements of activity of all 25 genes at one time point. [10 marks]
T1 = [1, 4, 3, 100, 12, 1000, 25, 32, 500, 700, 20, 9000, 25, 650, 40, 3, 67, 2, 305, 80, 200, 50, 2,15, 4]; T2 = [1, 6, 2, 120, 14, 900, 25, 35, 550, 650, 23, 7500, 25, 700, 43, 6, 72, 8, 360, 70, 220, 60, 1, 14, 8]; T3 = [1.5, 5, 7, 150, 13, 550, 1, 40, 520, 600, 27, 5500, 27, 900, 44, 12, 75, 9, 360, 50, 190, 50, 4, 13, 6]; T4 = [122, 120, 120, 170, 140, 700, 100.5, 134, 570, 600, 125, 6100, 125, 1050, 122, 130, 187, 109, 460, 145, 330, 160, 105, 113, 104]; T5 = [25, 25, 30, 40, 50, 600, 6, 33, 500, 600, 26, 5500, 26, 1150, 14, 32,126, 8, 360, 28, 230, 60, 2, 13, 5];
My answer:
% Question 1 % T1= [1 4 3 100 12 1000 25 32 500 700 20 9000 25 650 40 3 67 2 305 80 200 50 2 15 64] T2= [1 6 2 120 14 900 25 35 550 650 23 7500 25 700 43 6 72 8 360 70 220 60 1 14 8] T3= [1.5 5 7 150 13 550 1 40 520 600 27 5500 27 900 44 12 75 9 360 50 190 50 4 13 6] T4= [122 120 120 170 140 140 700 100.5 134 570 600 125 6100 125 1050 122 130 187 109 460 145 330 160 105 113 104] T5= 25 25 30 40 50 600 6 33 500 600 26 5500 26 1150 14 32 126 8 360 28 230 60 2 13 5]
octave