شرح كود

السلام عليكـم …
مسـاء الخير
لو سمحتو أنـا اريد شـرح الكود هذا
وشكراً لكــم اذا تكرمتــو

 
 
 

for jj=1:lengthofseq:50*lengthofseq
the_test_seq=the_all_new_seq(:,jj:jj+(lengthofseq-1))
the_corrected_seq(1,:)=the_test_seq(1,:);
gf=2;
while gf<=numseq
the_line_seq=the_test_seq(gf,:)
[COLOR=red]the_ref_seq=The_original(gf,:);[/color]
[COLOR=red]gapsloc=findstr(the_line_seq,'_');[/color]
[COLOR=red]the_line_seq(gapsloc)=[];[/color]
x=strcmp(the_ref_seq,the_line_seq);
if x==1
disp(' it is okey')
the_line_seq=the_test_seq(gf,:);
else
disp('it must be corrected')
the_line_seq=the_test_seq(gf,:);
[the_line_seq]=correct(the_line_seq,the_ref_seq,numofgap)
end
the_corrected_seq(gf,:)= the_line_seq;

gf=gf+1;
end
the_corrected_seq
score_of_the_corected_seq=calculatescore(the_corrected_seq,1,-1,-2)
the_all_new_corected_seq(:,jj:jj+(lengthofseq-1))=the_corrected_seq;
end
the_all_new_corected_seq

وخاصه الكود المكتوب بالون الاحمر , وشكراً

اعتقد ان الكود ناقص لان فى متغيرات غير معرفة
lengthofseq
و
numseq

فى الجزء الاول

for jj=1:lengthofseq:50*lengthofseq

بيولد القيم
وبعدين يوجد هذا المتغير the_test_seq عبارة عن عمود بيضع قيمه فى العمود التى قيمته من jj الى jj+(lengthofseq-1)

ساشرح الكودب باللون الاحمر فقط
اولا هو في فور لووب ياخذ كل مرة صف من المصفوفة (الاوريجنال) ويسميه (الريفرينس) ابتداءا من الصف الثاني
ثانيا هو يبحث عن مكان وجود القاب في السلسلة (ذا لاين)
ثالثا هو يشطب امكان وجود القاب
وبعد ذلك يقارنها مع مصفوفة الريفرينس

شكراً لكــم جميعاً
ربنا يعطيكم العافيه ,