Savelyev_Vyacheslav

lesson1

Sep 6th, 2021 (edited)
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.30 KB | None | 0 0
  1. clear
  2. clc
  3. a = rand (6,11);
  4. b = rand (17,28);
  5. a1 = a(2:5,6:8);
  6. b1 = b(4:7,1:3);
  7. acat = cat(1,a1,b1); %cat склеивание 1 по горизонтали
  8. bcat = cat(2,a1,b1); %cat склеивание 2 по вертикали
  9.  
  10. % разность матриц
  11. A5 = [a1;b1];
  12. A3 = A5;
  13. res = A3 - A5
Add Comment
Please, Sign In to add comment