coding improvement for huge data
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
hello
I need to improve this code please, any idea !
a =donne_basic(:,colper); % before filteration unv = unique(a); % unique sorted values of alias/filtred occurance = [unv histc(a,unv)]; % count occurrences lP =length(a) ; % size of pure matrix l =length(unv); % size of filtered alias vector/filtered moyenne=zeros(l,2); deltta =zeros(l,2); time=zeros(lP,2); for i =1:l name =unv(i); for j=1:lP if(donne_basic(j,colper)==name) time(j)=donne_basic(j,1); end end if (occurance(i)==1) deltaV=0; moy =0; else V1 =time(1:end-1); V2 =time(2:end); deltaV =V2-V1; % les pas de temps delta_t ss =sum(deltaV); moy =(ss/occurance(i)); % les pas de temps delta_t end
thanks in advance
suhad
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!