i have this data
i want to group\sort them to be something like this:
how i can do this ?

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2015년 5월 23일
편집: Andrei Bobrov 2015년 5월 23일

1 개 추천

[~,~,z] = xlsread('20150523.xlsx');
c = z(cellfun('isempty',regexp(z,'\')));
[y,~] = datevec(c);
[~,~,c0] = unique(y);
c1 = accumarray(c0,(1:numel(c0))',[],@(ii){c(ii)});
c2 = [c1,repmat({{[]}},size(c1))]';
out = cat(1,c2{1:end-1});
xlswrite('20150523.xlsx',out,1,'B1')

댓글 수: 3

Amr Hashem
Amr Hashem 2015년 5월 23일
it works...thanks
Andrei Bobrov
Andrei Bobrov 2015년 5월 23일
corrected
Amr Hashem
Amr Hashem 2015년 8월 24일
Thanks... its amazing

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

질문:

2015년 5월 23일

댓글:

2015년 8월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by