Identification of Row-wise bi-cluster
이전 댓글 표시
The row wise bi-clusters are stored in a vector. Each location of a vector represents a bi-cluster having the information of column start index, column end index and row number.
Code written by (but not working properly)
%function rowcluster() array=input('Enter the input array : ') [row,col]=size(array); %k=1; j=1; for i=1:row while j<=col while array(i,j)==0 & j<=col j=j+1; end if j<col rowindex=i; colstart=j; while array(i,j)==1 & j<col colend=j; j=j+1; end end %vector(k,1)=rowindex; %vector(k,1)=colstart; %vector(k,1)=colend; %k=k+1; rowindex colstart colend end end %vector;
The Pseudo code for obtaining row-wise biclusters is as follows: for each row i { While (j<=ColSize) { while (Array[i][j] ==0 AND j <= ColSize) ++j; If ( j < ColSize) { RowNum[index]= i ColStart = j; While( Array [i][j] = = 1 && j<=ColSize) j++; ColEnd=j; Bicluster(ColStart, ColEnd, RowNum) Vector. push (Bicluster) } } } I want to implement this in Mat Lab. Please help me. Thanks in advance.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!