1> edit script.m 2> script 3> a a = 10 4> b b = 31.416 5> pwd ans = /home/achilles 6> path Octave's search path contains the following directories: . programmi_matlab/Programmi_CS4a programmi_matlab/esempi programmi_matlab /usr/lib/octave/3.6.2/site/oct/i686-pc-cygwin /usr/lib/octave/site/oct/api-v48+/i686-pc-cygwin /usr/lib/octave/site/oct/i686-pc-cygwin /usr/share/octave/3.6.2/site/m /usr/share/octave/site/api-v48+/m /usr/share/octave/site/m /usr/share/octave/site/m/startup /usr/lib/octave/3.6.2/oct/i686-pc-cygwin /usr/share/octave/3.6.2/m /usr/share/octave/3.6.2/m/audio /usr/share/octave/3.6.2/m/deprecated /usr/share/octave/3.6.2/m/elfun /usr/share/octave/3.6.2/m/general /usr/share/octave/3.6.2/m/geometry /usr/share/octave/3.6.2/m/help /usr/share/octave/3.6.2/m/image /usr/share/octave/3.6.2/m/io /usr/share/octave/3.6.2/m/linear-algebra /usr/share/octave/3.6.2/m/miscellaneous /usr/share/octave/3.6.2/m/optimization /usr/share/octave/3.6.2/m/path /usr/share/octave/3.6.2/m/pkg /usr/share/octave/3.6.2/m/plot /usr/share/octave/3.6.2/m/polynomial /usr/share/octave/3.6.2/m/prefs /usr/share/octave/3.6.2/m/set /usr/share/octave/3.6.2/m/signal /usr/share/octave/3.6.2/m/sparse /usr/share/octave/3.6.2/m/specfun /usr/share/octave/3.6.2/m/special-matrix /usr/share/octave/3.6.2/m/startup /usr/share/octave/3.6.2/m/statistics /usr/share/octave/3.6.2/m/statistics/base /usr/share/octave/3.6.2/m/statistics/distributions /usr/share/octave/3.6.2/m/statistics/models /usr/share/octave/3.6.2/m/statistics/tests /usr/share/octave/3.6.2/m/strings /usr/share/octave/3.6.2/m/testfun /usr/share/octave/3.6.2/m/time 7> edit proiezione.m 8> help proiezione `proiezione' is a function from the file /home/achilles/proiezione.m proiezione 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. 9> edit proiezione.m 10> a = [1 0 -1] a = 1 0 -1 11> b = [2 -3 4] b = 2 -3 4 12> c = proiezione(a,b) error: `versore_di_' undefined near line 27 column 4 error: called from: error: /home/achilles/proiezione.m at line 27, column 4 12> edit proiezione.m 13> c = proiezione(a,b) c = -0.13793 0.20690 -0.27586 14> p error: `p' undefined near line 14 column 1 14> format long 15> c c = -0.137931034482759 0.206896551724138 -0.275862068965517 16> % operazioni con le matrici 16> A = [1 - 2 3; 0 4 5; -1 2 2] error: vertical dimensions mismatch (1x2 vs 1x3) 16> A = [1 -2 3; 0 4 5; -1 2 2] A = 1 -2 3 0 4 5 -1 2 2 17> B = [1 2; 3 4; 5 6] B = 1 2 3 4 5 6 18> A + B error: operator +: nonconformant arguments (op1 is 3x3, op2 is 3x2) 18> size(A) ans = 3 3 19> size(B) ans = 3 2 20> A * B ans = 10 12 37 46 15 18 21> B' ans = 1 3 5 2 4 6 22> B B = 1 2 3 4 5 6 23> C = [1-i, i] C = 1 - 1i 0 + 1i 24> C' ans = 1 + 1i 0 - 1i 25> C.' ans = 1 - 1i 0 + 1i 26> D = ones(3,2) D = 1 1 1 1 1 1 27> B B = 1 2 3 4 5 6 28> B + D ans = 2 3 4 5 6 7 29> B - D ans = 0 1 2 3 4 5 30> zeros(3,2) ans = 0 0 0 0 0 0 31> quit