Advertisement
lalkaed

Kolos_2

Jul 3rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.37 KB | None | 0 0
  1. Z = [1 9 2 3 4 5 2 7 2 5 2 3 9 6 5 4 2 5 7 3 5 6 2 7 6 5 2 5 3 6 2 1 9 2 3 4 5 2 7 2 5 2 3 9 1 9 2 3 4 5 2 7 2 5 2 3 9 1 9 2 3 4 5 2 7 2 5 2 3 9 3]
  2. x = mean(Z)
  3. sd = std(Z)
  4. Y = Z(Z>x+sd|Z<x-sd);
  5. Z(Z>x+sd|Z<x-sd)=[];
  6. while length(Z)>12
  7.       A=Z(1:12);
  8.       A = reshape(A,[4,3])
  9.       Z(1:12)=[];
  10. endwhile
  11. q = 12 - length(Z)
  12. Q = zeros(1,q)
  13. F =[Z,Q]
  14. X = reshape(F,[4,3])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement