5 ans = 5 8.9 ans = 8.9000 8,9 ans = 8 ans = 9 +6 ans = 6 -2 ans = -2 3e2 ans = 300 3e-2 ans = 0.0300 456987e2 ans = 45698700 -5e-2 ans = -0.0500 -5 e-2 -5 e-2 | {Error: Unexpected MATLAB expression. } i ans = 0.0000 + 1.0000i 5i2 5i2 | {Error: Unexpected MATLAB expression. } 5+2i ans = 5.0000 + 2.0000i 3e2 ans = 300 3e2 ans = 300 3e-2 ans = 0.0300 456987e2 ans = 45698700 -5e-2 ans = -0.0500 -5 e-2 -5 e-2 | {Error: Unexpected MATLAB expression. } ahoj {Undefined function or variable 'ahoj'. } 'ahoj' ans = ahoj 5+8 ans = 13 2+9-1 ans = 10 2*3 ans = 6 9/3 ans = 3 9\3 ans = 0.3333 2^3 ans = 8 5+3-2*3^2 ans = -10 5+3-(2*3)^2 ans = -28 5+3i-4 ans = 1.0000 + 3.0000i 9^1/2 ans = 4.5000 9^(1/2) ans = 3 5a=7 5a=7 | {Error: Unexpected MATLAB expression. } a5=7 a5 = 7 A=8 A = 8 neco=-5 neco = -5 Neco=-6 Neco = -6 namelengtmax {Undefined function or variable 'namelengtmax'. } namelengthmax ans = 63 who Your variables are: A Neco a a5 ans neco whos Name Size Bytes Class Attributes A 1x1 8 double Neco 1x1 8 double a 1x1 8 double a5 1x1 8 double ans 1x1 8 double neco 1x1 8 double text1='ahoj' text1 = ahoj whos Name Size Bytes Class Attributes A 1x1 8 double Neco 1x1 8 double a 1x1 8 double a5 1x1 8 double ans 1x1 8 double neco 1x1 8 double text1 1x4 8 char 1/3 ans = 0.3333 format long 1/3 ans = 0.333333333333333 realmin ans = 2.225073858507201e-308 realmax ans = 1.797693134862316e+308 format short realmax ans = 1.7977e+308 intmax ans = 2147483647 intmin ans = -2147483648 aa=uint8(5) aa = 5 whos Name Size Bytes Class Attributes A 1x1 8 double Neco 1x1 8 double a 1x1 8 double a5 1x1 8 double aa 1x1 1 uint8 ans 1x1 4 int32 neco 1x1 8 double text1 1x4 8 char help uint8 uint8 - Convert to 8-bit unsigned integer This MATLAB function converts the elements of an array into unsigned 8-bit (1-byte) integers of class uint8. intArray = uint8(array) Reference page for uint8 See also double, int16, int32, int64, int8, intmax, intmin, single, uint16, uint32, uint64 Other functions named uint8 fixedpoint/uint8 a=1 a = 1 b=2 b = 2 c=3 c = 3 d=4; e=5;f=6;g=7; % vzorce prvni=(a+b)/(c-d) prvni = -3 druhy=(a+c/d)/(b+e^2) druhy = 0.0648 treti=a*b/(c+d) treti = 0.2857 ctvrty=a+(b/(c+(d/(e+(f/g))))) ctvrty = 1.5430 paty=(a-(b-(d+1)^0.5/c^2)^(1/6) paty=(a-(b-(d+1)^0.5/c^2)^(1/6) | {Error: Expression or statement is incorrect--possibly unbalanced (, {, or [. } paty=(a-(b-(d+1)^0.5)/c^2)^(1/6) paty = 1.0043 help save save - Save workspace variables to file This MATLAB function saves all variables from the current workspace in a MATLAB formatted binary file (MAT-file) called filename. save(filename) save(filename,variables) save(filename,variables,fmt) save(filename,variables,version) save(filename,variables,'-append') save filename save prom1 diary off