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

Urgent: MatLab Program - Your help is needed It is known experimentally that bin

ID: 3672164 • Letter: U

Question

Urgent: MatLab Program - Your help is needed

It is known experimentally that binding sites 1 through 5 of a certain molecule will bind strongly with amino acids of type 1, 2, 3, 4, 5, or 6, and will bond weakly with amino acids of type 7, 8, 9, 10, or 11. Binding sites 6 through 10 of the same molecule will bind strongly with amino acids of type 1, 4, 7, 11, 12, or 13, and will bond weakly with amino acids of type 2, 3, 6, 14, or 15. Given a binding site number and an amino acid type number, write a Matlab function called mybond.m which will return 1 if the bond is strong, 0 if the bond is weak, or -1 if the bond is not listed among those given.

Explanation / Answer

site=input('the nimber of bind site');

type=input('te numerical tye of amino acid');

function bond= finding(site,type):

       if site >0 && site <6 :

                      weak =[ 1 2 3 4 5 6];

                      strong =[7 8 9 10 11];

                      if type = find(weak):

                                       return 0;

                     elseif type ==find(strong):

                                         return 1;

                      else

                                    return -1;

                   end

      elseif site>5 && site <11:

                     weak=[2 3 6 14 15];

                      strong=[1 4 7 11 12 13];

                     if type==find(weak):

                            return 0;

                     elseif type==find(strong):

                             return 1;

                     else

                               return -1;

                    end

    end

end

      

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote