Sharedsupport / 2015-02-03-octave.htmlOpen in CoCalc
Authors: Harald Schilly, ℏal Snyder, William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
2015-02-03-octave
In [1]:
%load_ext oct2py.ipython
In [2]:
%%octave
test = [-1 1 -1 1 ; 1 -1 1 -1 ; 1 1 -1 -1 ; -1 -1 1 -1]
test =

       -1        1       -1        1
        1       -1        1       -1
        1        1       -1       -1
       -1       -1        1       -1
In [4]:
%%octave
test * test
ans =

        0       -4        4       -2
        0        4       -4        2
        0        0        0        2
        2        2       -2        0
In []: