Advertisement
Guest User

hejhej

a guest
Mar 29th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.93 KB | None | 0 0
  1. load minidigits.mat
  2.  
  3.  
  4. x = C\testdata(:,2);
  5. b = C*x;
  6.  
  7.  
  8. subplot(2,2,1), plotdigit(b(:,5)), title('kolumn 2');
  9. subplot(2,2,2), plotdigit(testdata(:,5)), title('kolumn 3');
  10.  
  11.  
  12.  
  13.  
  14. %i våran matris C så vill vi ta första kolumnen för att testa dne mot
  15. %plotdigit för att se hur den ser ut.
  16. %{
  17. tva = C(:,2);
  18.  
  19. tre = C(:,3);
  20.  
  21. fem = C(:,5);
  22.  
  23. fyra = C(:,4);
  24.  
  25. sex = C(:,10);
  26.  
  27. sju = C(:,15);
  28.  
  29. atta = C(:,25);
  30.  
  31. nio = C(:,35);
  32.  
  33. tio = C(:,45);
  34.  
  35.  
  36.  
  37. subplot(3,3,1), plotdigit(tva), title('kolumn 2')
  38. subplot(3,3,2), plotdigit(tre), title('kolumn 3')
  39. subplot(3,3,3), plotdigit(fyra), title('kolumn 4')
  40. subplot(3,3,4), plotdigit(fem), title('kolumn 5')
  41. subplot(3,3,5), plotdigit(sex), title('kolumn 10')
  42. subplot(3,3,6), plotdigit(sju), title('kolumn 15')
  43. subplot(3,3,7), plotdigit(atta), title('kolumn 25')
  44. subplot(3,3,8), plotdigit(nio), title('kolumn 35')
  45. subplot(3,3,9), plotdigit(tio),, title('kolumn 45')
  46. %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement