Since it's your first time here, let us show you how Trendy works.

Close-button

Bar for Видео: Ускорение расчетов в MATLAB с Parallel Computing Toolbox

  • Created by: Mikhail
  • Latest result: Plot created
  • Created on: 12 Dec 2012

Plot Image
% Видео: Ускорение расчетов в MATLAB с Parallel Computing Toolbox
%   time vector is: time1866
%   data vector is: data1866
data_weekday = [data1866(1); data1866];
watch_diff = diff(data_weekday);

num_weekday = weekday(time1866);
weekday=1:7;

weekday_amount = zeros(1,7);
for i=1:7
weekday_amount(1+mod(5+i,7)) = sum(watch_diff(num_weekday==i));
end

bar(weekday,weekday_amount);
xlabel('days of week: Mon-Sun');
ylabel('amount of views');
Tags:

    Add Tags


    0 comments