Question: Create a function in Matlab called DNA_Manipulation (file new function) that takes a string of DNA sequence of arbitrary size as a single input

Create a function in Matlab called "DNA_Manipulation" (file new function) that takes

Create a function in Matlab called "DNA_Manipulation" (file new function) that takes a string of DNA sequence of arbitrary size as a single input (call it DNA_Data). The letters in the sequence are all lowercase and can be either 'a', 't','g', or 'c'. The function should return the following two outputs: - First output (call it Reverse_Data) should simply produce the DNA sequence in reverse. - Second output (call it Complement_Data) should produce the complement of the DNA sequence so that 'a' becomes t', 'g' becomes 'c', and vice versa (Hint: Use a loop and if/elseif statements). Test your function with the following input: DNA_data = 'gattaca'

Step by Step Solution

3.43 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create the MATLAB function DNAManipulation follow these steps StepbyStep Solution 1 Create the Fu... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!