Inspired by a question on the answer forum:
You are given a matrix of 8-bit integers which encodes a genome. Each integer can be converted into a sequence by converting it first to binary and then converting bit pairs using the rule A = 00, C = 01, T = 10, G = 11. For example, 177 -> 10110001 -> TGAC.
Convert the matrix into a cell array of sequences.
str2num and regexp not allowed.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers73
Suggested Problems
-
Find the peak 3n+1 sequence value
2572 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1330 Solvers
-
Unique values without using UNIQUE function
456 Solvers
-
I've got the power! (Inspired by Project Euler problem 29)
148 Solvers
-
Replace multiples of 5 with NaN
472 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!