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