occrency text array number
显示 更早的评论
Hey every one , a small question :)
how can i determine the umber of occrancy in big arraw (481* 81)
I give a little exemple , with my primary script for that :)
Any help please :)
tableau_string=textdata
nb_rows=length(tableau_string(:,1)) %481 nb_col=length(tableau_string(1,:)) %80
count=0
for s=1:1:nb_rows
for i=1:1:nb_rows for j=1:1:nb_col if tableau_string(i,j)== tableau_string(s,1) count=count+1 end end end
tableau_string(s,2)= count
end
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
