function sliding_matrix clear countMatrix = zeros(50, 6, 4, 3, 6); %initialize a small matrix for t = 1 : 50 for bm =1 : 6 % 5 bm for bw =1 : 4 % 4 bw for lv = 1 : 3 % 5 lv for ta=1 : 6 % 200 ta countMatrix(t,bm,bw,lv,ta) = ceil(101*rand(1)); %initialze the values end end end end end % % perform necessary operations on the matrix % for i = 1:9950 %slde the window 10 times %call function to add new data countMatrix = SlideMatrix(countMatrix, i); % % perform necessary operations on the matrix % end end function A = SlideMatrix(A, i) A(1,:,:,:,:) = []; %Reduce the the first dimension by 1 for bm = 1:6 for bw = 1:4 for lv = 1:3 for ta = 1:6 A(50, bm, bw, lv, ta) = i; %add a new elements along the first dimension i = i + 1; end end end end end
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.