-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDNA_decode_rule01.m
22 lines (13 loc) · 989 Bytes
/
DNA_decode_rule01.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
% DNA decoding function
% -----------------------------------------------------------------------------------------------------------------------------------
% Function for DNA Decoding operation based on rule 01
function P = DNA_decode_rule01(d,mn)
% -----------------------------------------------------------------------------------------------------------------------------------
% STEP 1:Creating an empty integer array for a DNA output
% -----------------------------------------------------------------------------------------------------------------------------------
% STEP 2: Performing DNA Decoding by using DNA ACGT pattern
% -----------------------------------------------------------------------------------------------------------------------------------
% STEP 3:Converting binary to decimal
P = bin2dec(b);
end
% -----------------------------------------------------------------------------------------------------------------------------------