→ ejialan:if那行改成 if symbol(k)==inseq(m) 02/01 18:23
→ Rasin:count(1)=sum(inseq==symbol(1)) 02/01 19:01
→ Rasin:% follow bellow 02/01 19:02
→ Rasin:len=length(inseq); 02/01 19:03
→ Rasin:for i=1:len 02/01 19:03
→ Rasin:count(i)=sum(inseq==symbol(i)); 02/01 19:04
→ Rasin:end 02/01 19:04
→ Rasin:% set the size of count if massive 02/01 19:09
推 Raymond0710:symbol = [885;995;997;1000]; % 由小到大 02/01 23:15
→ Raymond0710:histc(inseq,symbol) % ans = [2;7;1;2] 02/01 23:15
→ zxxch123:感謝e大~謝謝R大 這樣又改進我統計的方式 THX!!! 02/03 14:34