How can i compare these two protein sequences?
Show older comments
I am trying to compare two cell arrays that contain a protein sequence fragmented up into chunks of two. I am comparing them to see if there are any matches between the sections of two in one sequence to the other, but i keep bumping into this error...
x=length(Prot_H_cell);
y=length(Prot_M_cell);
for ii=Prot_H_cell(1:x);
for jj=Prot_M_cell(1:y);
W(ii,jj)={strcmp(Prot_H_cell(ii),Prot_M_cell(jj))}
end
end
Function 'subsindex' is not defined for values of class 'cell'.- error message
Accepted Answer
More Answers (1)
KSSV
on 6 Dec 2016
Try
W{ii,jj}=strcmp(Prot_H_cell(ii),Prot_M_cell(jj)) ;
5 Comments
Toby Pendlebury
on 6 Dec 2016
KSSV
on 6 Dec 2016
what is class of Prot_H_cell and Prot_M_cell...
Try this once..
W{ii,jj}=strcmp(Prot_H_cell{ii},Prot_M_cell{jj})
Toby Pendlebury
on 6 Dec 2016
KSSV
on 6 Dec 2016
class of Prot_H_cell and Prot_M_cell...
Toby Pendlebury
on 6 Dec 2016
Categories
Find more on Data Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!