Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Matrix Manipulation. Data for the percentage of viable cells determined 24 hours

ID: 3209967 • Letter: M

Question

Matrix Manipulation. Data for the percentage of viable cells determined 24 hours after exposure to a drug is available in the viability.txt file. Import the data into MATLAB using the the load command. Each of the three columns represents a run in which cell viability was measured as a function of different drug concentrations (Run 1, Run 2, and Run 3). Each row of data represents a drug concentration (0, 0.1, 1,2, 5 and 10 uM). 1. The following data are available for Run 4 (corresponding to the same drug concentration range described above). Add Run 4 as an additional column to the viability data. a. Run_4 [98.6, 86.4, 66.2, 50.4, 38.5, 29.6] b. Create and display a matrix called Table' which places a column of concentration values (column 1) next to the viability values for Runs 1-4. c. Extract the data from Run 3 and make an array names "Run_3" where the concentration is Row 1 and the data for Run 3 is row 2.

Explanation / Answer

MATLAB code

close all
clear
clc

Data = load('viability.txt')
Run_4 = [98.6 86.4 66.2 50.4 38.5 29.6];
Data_4 = [Data Run_4'] % Part (a)
Conc = [0 0.1 1 2 5 10];
Table = [Conc' Data_4] % Part (b)
Run_3 = [Conc; Data(:,3)'] % Part (c)

output

Data =
96.1000 93.6000 93.1000
85.4000 87.3000 88.2000
74.3000 78.3000 80.7000
43.3000 68.1000 69.6000
36.1000 49.8000 54.5000
38.0000 39.1000 23.9000
Data_4 =
96.1000 93.6000 93.1000 98.6000
85.4000 87.3000 88.2000 86.4000
74.3000 78.3000 80.7000 66.2000
43.3000 68.1000 69.6000 50.4000
36.1000 49.8000 54.5000 38.5000
38.0000 39.1000 23.9000 29.6000
Table =
0 96.1000 93.6000 93.1000 98.6000
0.1000 85.4000 87.3000 88.2000 86.4000
1.0000 74.3000 78.3000 80.7000 66.2000
2.0000 43.3000 68.1000 69.6000 50.4000
5.0000 36.1000 49.8000 54.5000 38.5000
10.0000 38.0000 39.1000 23.9000 29.6000
Run_3 =
0 0.1000 1.0000 2.0000 5.0000 10.0000
93.1000 88.2000 80.7000 69.6000 54.5000 23.9000