Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

antistr_simpliromatiki

%antistr_simpliromatiki(dna)
ArxikiAllilouxia="AGTAGCAT";
AntistrofiAllilouxia="";
SimbliromatikiAllilouxia="";
for i=1:length(ArxikiAllilouxia)
      newStr = substr (ArxikiAllilouxia,i, 1)
     fprintf("",newStr); 
     if (newStr=="A")
    SimbliromatikiAllilouxia= strcat(SimbliromatikiAllilouxia, "T")
    AntistrofiAllilouxia=strcat("T",AntistrofiAllilouxia)
     elseif(newStr=="G")
     SimbliromatikiAllilouxia= strcat(SimbliromatikiAllilouxia, "C")
     AntistrofiAllilouxia=strcat("C",AntistrofiAllilouxia)
     elseif(newStr=="C")
    SimbliromatikiAllilouxia= strcat(SimbliromatikiAllilouxia, "G")
    AntistrofiAllilouxia=strcat("G",AntistrofiAllilouxia)
     elseif(newStr=="T")
     SimbliromatikiAllilouxia= strcat(SimbliromatikiAllilouxia, "A")
     AntistrofiAllilouxia=strcat("A",AntistrofiAllilouxia)
     endif
      i=i+1
     
     fprintf("1",SimbliromatikiAllilouxia); 
  
end

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.