Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- load minidigits.mat
- x = C\testdata(:,2);
- b = C*x;
- subplot(2,2,1), plotdigit(b(:,5)), title('kolumn 2');
- subplot(2,2,2), plotdigit(testdata(:,5)), title('kolumn 3');
- %i våran matris C så vill vi ta första kolumnen för att testa dne mot
- %plotdigit för att se hur den ser ut.
- %{
- tva = C(:,2);
- tre = C(:,3);
- fem = C(:,5);
- fyra = C(:,4);
- sex = C(:,10);
- sju = C(:,15);
- atta = C(:,25);
- nio = C(:,35);
- tio = C(:,45);
- subplot(3,3,1), plotdigit(tva), title('kolumn 2')
- subplot(3,3,2), plotdigit(tre), title('kolumn 3')
- subplot(3,3,3), plotdigit(fyra), title('kolumn 4')
- subplot(3,3,4), plotdigit(fem), title('kolumn 5')
- subplot(3,3,5), plotdigit(sex), title('kolumn 10')
- subplot(3,3,6), plotdigit(sju), title('kolumn 15')
- subplot(3,3,7), plotdigit(atta), title('kolumn 25')
- subplot(3,3,8), plotdigit(nio), title('kolumn 35')
- subplot(3,3,9), plotdigit(tio),, title('kolumn 45')
- %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement