1> help vis_floating 1> help vis_floating `vis_floating' is a function from the file C:\Documents and Settings\rudiger.achilles\desktop\vis_floating.m Visualizza i numeri floating point F(b,t,L,U) 1> help vis_floating `vis_floating' is a function from the file C:\Documents and Settings\rudiger.achilles\desktop\vis_floating.m Visualizza i numeri floating point F(b,t,L,U) Additional help for built-in functions and operators is available in the on-line version of the manual. Use the command `doc ' to search the manual index. Help and information about Octave is also available on the WWW at http://www.octave.org and via the help@octave.org mailing list. 2> vis_floating(2,3,-1,2) 3> x error: `x' undefined near line 3 column 1 3> x=3 x = 3 4> x x = 3 5> clear x 6> x error: `x' undefined near line 6 column 1 6> clear all 7> "x" ans = x 8> stringa = "x"; 9> stringa stringa = x 10> disp(stringa) x 11> if 0 disp("falso") else disp("vero") end vero 12> if 1 disp("falso") else disp("vero") end falso 13> if pi disp("falso") else disp("vero") end falso 14> if 1 < 2 disp("falso") else disp("vero") end falso 15> if 2 < 1 disp("falso") else disp("vero") end vero 16> if 2 < 1 disp("vero") else disp("falso") end falso 17> if 2 == 1 disp("vero") else disp("falso") end falso 18> if pi == pi disp("vero") else disp("falso") end vero 19> if pi ~= pi disp("vero") else disp("falso") end falso 20> car("~") error: `car' undefined near line 20 column 1 20> asci Dec Hex Chr Dec Hex Chr Dec Hex Chr Dec Hex Chr ---------------------------------------------------- 32 20 56 38 8 80 50 P 104 68 h 33 21 ! 57 39 9 81 51 Q 105 69 i 34 22 " 58 3A : 82 52 R 106 6A j 35 23 # 59 3B ; 83 53 S 107 6B k 36 24 $ 60 3C < 84 54 T 108 6C l 37 25 % 61 3D = 85 55 U 109 6D m 38 26 & 62 3E > 86 56 V 110 6E n 39 27 ' 63 3F ? 87 57 W 111 6F o 40 28 ( 64 40 @ 88 58 X 112 70 p 41 29 ) 65 41 A 89 59 Y 113 71 q 42 2A * 66 42 B 90 5A Z 114 72 r 43 2B + 67 43 C 91 5B [ 115 73 s 44 2C , 68 44 D 92 5C \ 116 74 t 45 2D - 69 45 E 93 5D ] 117 75 u 46 2E . 70 46 F 94 5E ^ 118 76 v 47 2F / 71 47 G 95 5F _ 119 77 w 48 30 0 72 48 H 96 60 ` 120 78 x 49 31 1 73 49 I 97 61 a 121 79 y 50 32 2 74 4A J 98 62 b 122 7A z 51 33 3 75 4B K 99 63 c 123 7B { 52 34 4 76 4C L 100 64 d 124 7C | 53 35 5 77 4D M 101 65 e 125 7D } 54 36 6 78 4E N 102 66 f 126 7E ~ 55 37 7 79 4F O 103 67 g 127 7F 56 38 8 80 50 P 104 68 h 128 80 € 21> char("~") ans = ~ 22> help char `char' is a built-in function -- Built-in Function: char (X) -- Built-in Function: char (X, ...) -- Built-in Function: char (S1, S2, ...) -- Built-in Function: char (CELL_ARRAY) Create a string array from one or more numeric matrices, character matrices, or cell arrays. Arguments are concatenated vertically. The returned values are padded with blanks as needed to make each row of the string array have the same length. Empty input strings are significant and will concatenated in the output. For numerical input, each element is converted to the corresponding ASCII character. A range error results if an input is outside the ASCII range (0-255). For cell arrays, each element is concatenated separately. Cell arrays converted through `char' can mostly be converted back with `cellstr'. For example, char ([97, 98, 99], "", {"98", "99", 100}, "str1", ["ha", "lf"]) => ["abc " " " "98 " "99 " "d " "str1 " "half "] See also: strvcat, cellstr Additional help for built-in functions and operators is available in the on-line version of the manual. Use the command `doc ' to search the manual index. Help and information about Octave is also available on the WWW at http://www.octave.org and via the help@octave.org mailing list. 23> f = inline("a.^2", "a") f = f(a) = a.^2 24> f(4) ans = 16 25> v = [1 2 3 4 5 6 7 8] v = 1 2 3 4 5 6 7 8 26> f(v) ans = 1 4 9 16 25 36 49 64 27> sin(pi/2) ans = 1 28> x= [0 pi/6 pi/4 pi/3 pi/2] x = 0.00000 0.52360 0.78540 1.04720 1.57080 29> sin(x) ans = 0.00000 0.50000 0.70711 0.86603 1.00000 30> asin(pi/2) ans = 1.5708 - 1.0232i 31> asin(sqrt(2)/2) ans = 0.78540 32> e ans = 2.7183 33> log(e) ans = 1 34> log10(e) ans = 0.43429 35> v = [1 2 3 4 5 6 7 8] v = 1 2 3 4 5 6 7 8 36> v = 1 : 8 v = 1 2 3 4 5 6 7 8 37> v = 1 : 0.5 : 8 v = Columns 1 through 7: 1.0000 1.5000 2.0000 2.5000 3.0000 3.5000 4.0000 Columns 8 through 14: 4.5000 5.0000 5.5000 6.0000 6.5000 7.0000 7.5000 Column 15: 8.0000 38> v = 1 : 3 : 8 v = 1 4 7 39> v = 1 : -3 : 8 v = [](1x0) 40> v = 8 : -3 : 2 v = 8 5 2 41> v = 8 : -3 : 3 v = 8 5 42> media_arit= inline("sqrt(a*b)"); 43> media_arit= inline("sqrt(a*b)", "a", "b"); 44> media_arit(67*11) error: `b' undefined near line 43 column 16 error: evaluating argument list element number 1 error: evaluating argument list element number 1 error: called from: error: at line -1, column -1 44> media_arit(67,11) ans = 27.148 45> edit R.m 46> R ret = 8.3145 ans = 8.3145 47> edit R.m 48> R ans = 8.3145 49> edit R.m 50> vol = inline("T*n*R/p","T","n","p") vol = f(T, n, p) = T*n*R/p 51> edit R.m 52> vesercizio = vol(298, 0.1, 10e5) vesercizio = 2.4777e-004 53> vesercizio = vol(298, 0.1, 1e5) vesercizio = 0.0024777 54> quit