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

Must be solved using MATLAB CODE In that table, the amino acids in proteins mole

ID: 2072949 • Letter: M

Question

Must be solved using MATLAB CODE

In that table, the amino acids in proteins molecules of oxygen (O), carbon (C), nitrogen (N), sulfur S) and hydrogen (H) are listed. create a data file elements.dat to save the table. Write a Matlab program to compute the molecular weight of each amino acid in table 1, assuming that the numeric information in the table can be reloaded. generate a new data file named weights.dat that contains the molecular weights of the amino acids. Use matrix operations to compute the molecular weigths.

Explanation / Answer

clc;

clear all;

close all;

Molecular_weights=[15.9994 12.011 14.00674 32.066 1.00794];

save elements.mat Molecular_weights

amino_acids=[2 3 1 0 7; 2 6 4 0 15; 3 4 2 0 8; 4 4 1 0 6; 2 3 1 1 7; 4 5 1 0 8; ...

3 5 2 0 10; 2 2 1 0 5; 2 6 3 0 10; 2 6 1 0 13; 2 6 1 0 13; 2 6 2 0 15; 2 5 1 1 11;...

2 9 1 0 11; 2 5 1 0 10; 3 3 1 0 7; 3 4 1 0 9; 2 11 2 0 11; 3 9 1 0 11; 2 5 1 0 11;];

amino_acids_Molecular_weights=amino_acids*Molecular_weights';

save weights.mat amino_acids_Molecular_weights