Содержание
- 2. Operatory arytmetyczne + - * / \ ^ ‘ >> a=2,b=4 a = 2 b =
- 3. Operatory arytmetyczne + - * / \ ^ ‘ >> a=5,b=[1 2 3] a = 5
- 4. Operatory arytmetyczne + - * / \ ^ ‘ >> a=5,b=[1 2 3] a = 5
- 5. Operatory arytmetyczne + - * / \ ^ ‘ >> a=5,b=[1 2 3] a = 5
- 6. Operatory arytmetyczne + - * / \ ^ ‘ >> a=[1 2 3],b=[1;2;3] a = 1
- 7. Operatory arytmetyczne + - * / \ ^ ‘ >> A=[1 2; 3 4],B=[5 6; 7
- 8. Liczby zespolone >> a=1+2i,b=-3-4i a = 1.0000 + 2.0000i b = -3.0000 - 4.0000i >> a+b
- 9. Operatory relacji > = >> a=[1 2 3 4 5] a = 1 2 3 4
- 10. Operatory logiczne & | ~ && || >> a=[1 1 0 0], b=[1 0 1 0]
- 11. Operator : >> a=1:1:5 a = 1 2 3 4 5 >> b=5:-1:1 b = 5
- 12. Priorytety operatorów
- 13. Instrukcje sterujące - if n=input('Podaj liczbe '); if n>0 disp('Liczba dodatnia'); elseif n disp('Liczba ujemna'); else
- 14. Instrukcje sterujące - switch n=input('Podaj liczbe '); switch n case 1 disp('Jeden'); case 2 disp('Dwa'); otherwise
- 15. Instrukcje sterujące - switch n=input('Podaj liczbe '); switch n case {1 2 3} disp('Jeden lub dwa
- 16. Instrukcje sterujące - switch n=0.1; switch n case 0.1 disp('Jedena dziesiata'); case 0.2 disp('Dwie dziesiate'); otherwise
- 17. Instrukcje sterujące - switch n=0.1; m=0.1; k=0.2; switch n case m disp('m'); case k disp('k'); otherwise
- 18. Pętle - for for i=1:5 disp(i); end x=5:-1:1; for i=x disp(i); end for i=1:Inf disp(i); end
- 19. Pętle - while j=0; while j disp(j); j=j+1; end while 1 disp(j); j=j+1; end Nie ma
- 20. Instrukcje sterujące - break for i=1:5 disp(i); if i==3 break; end end j=0; while j disp(j);
- 21. Instrukcje sterujące - continue for i=1:5 if i==3 continue; end disp(i); end j=0; while j j=j+1;
- 22. Instrukcje sterujące goto – w Matlabie nie występuje exit, quit – kończy działanie Matlaba error –
- 23. Typy numeryczne Rzeczywiste: double – 8B single – 4B Całkowite ze znakiem int8, int16, int32, int64
- 24. Funkcje wykonujące operacje bitowe >> a=uint8(1), b=uint8(3) a = 1 b = 3 >> bitand(a,b) ans
- 25. Funkcje wykonujące operacje bitowe >> a=1, b=3 a = 1 b = 3 >> bitand(a,b) ans
- 26. Funkcje wykonujące operacje bitowe >> a=uint8(1), b=uint16(1), c=uint32(1), d=uint64(1) a = 1 b = 1 c
- 28. Скачать презентацию