Since you are new, let us show you how Trendy works.

Close-button

Bar for Видео: Распараллеливание алгоритмов MATLAB на GPU

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

Plot Image
% Видео: Распараллеливание алгоритмов MATLAB на GPU
%   time vector is: time1865
%   data vector is: data1865

data_weekday = [data1865(1); data1865];
watch_diff = diff(data_weekday);

num_weekday = weekday(time1865);
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