clear all;%read SeqDNA file
Seq_Out_File='./Seq_Out.txt';fileID=fopen(Seq_Out_File);C=textscan(fileID, '%s');NAA=(strfind(C{1},'AA'));x=cellfun('length', NAA);
MATLAB: How to count the total number ‘AA’ repeats in the text? I managed to count how many times it appears in each cell, but don’t know how to add it up.
number of repeats
Best Answer