How can I use accumarray in order to evaluate the place where users spend most of their time?
2 views (last 30 days)
Hello everybody, I would like to make a question. I have the array Z with
For each user I compute the most visited location as
% L = accumarray(Z(:,1),Z(:,2),[max(Z(:,1)) 1],@mode);
How can I evaluate the location in which users spend most of their time? For each location visited by each user I should evaluate the timespan in days and then choose the location where this timespan is maximum.
Thanks for your support.