



























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




























































































X = [1 2 3 4 5 6 7 8 9 10 ] X = 1 2 3 4 5 6 7 8 9 10 X(5) ans = 5 X(4:10) ans = 4 5 6 7 8 9 10 X(2:2:10) ans = 2 4 6 8 10 K = [1 3 4 6]; X(K) ans = 1 3 4 6
A = [1,3;4,2] A = 1 3 4 2
eye(3) ans = 1 0 0 0 1 0 0 0 1 ones(3,2) ans = 1 1 1 1 1 1 zeros(2) ans = 0 0 0 0
A = magic(5) A = 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 12 19 21 3 11 18 25 2 9 A(1,:) ans = 17 24 1 8 15 A(:,2) ans = 24 5 6 12 18