values('ATCG') = [-1+1i 1-1i -1-1i 1+1i]; % mapping from characters to complex
s = 'ATCGCGCGATATATCGCGCG'; % any specific sequence
scomplex = values(s); % the sequence represented as complex numbers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!