Advertisement
warcislawtez

Untitled

Feb 21st, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. clc;
  2. clear;
  3. disp('Zad. 14')
  4. W=[1,2,3;4,5,6;7,8,9]
  5. E=[2:2:6;1:1:3;5:2:9]
  6. A=[3,4,5;6,5,8;2,5,3]
  7. a=A(:,2)
  8. B=randn(5,4)
  9. n=input('Podaj który wiesz z macierzy B ma być wyznaczony (z zakresu <1,5>): ');
  10. while n<1 || n>5 || n~=round(n)
  11. n=input('Zła wartość. Podaj ponownie: ');
  12. end
  13. b=B(n,:)
  14. C=a*b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement