C=[1;6;7;8] C = 1 6 7 8 pi ans = 3.1416 sin(pi) ans = 1.2246e-016 realmin ans = 2.2251e-308 realmax ans = 1.7977e+308 1/0 ans = Inf eps ans = 2.2204e-016 0/0 ans = NaN i ans = 0 + 1.0000i j ans = 0 + 1.0000i c=5-8i c = 5.0000 - 8.0000i d=1+2i d = 1.0000 + 2.0000i e=c+d e = 6.0000 - 6.0000i % Matlab pracuje s komplexnimi cisly 1+2 % scitani ans = 3 A=[1,2,3,4,5.6] A = 1.0000 2.0000 3.0000 4.0000 5.6000 B=[1,2,3;4,5,6] B = 1 2 3 4 5 6 f=[7;8] f = 7 8 G=[B,f] G = 1 2 3 7 4 5 6 8 H=[G,f] H = 1 2 3 7 7 4 5 6 8 8 K=[H;A] K = 1.0000 2.0000 3.0000 7.0000 7.0000 4.0000 5.0000 6.0000 8.0000 8.0000 1.0000 2.0000 3.0000 4.0000 5.6000 R1=8 R1 = 8 R2=2 R2 = 2 R3=3 R3 = 3 R=R1+R2+R3 R = 13 Odpory=[8,2,3] Odpory = 8 2 3 sum(Odpory) ans = 13 diary off