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 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
To create the MATLAB function DNAManipulation follow these steps StepbyStep Solution 1 Create the Fu... View full answer
Get step-by-step solutions from verified subject matter experts
