Sharedsupport / 2015-02-03-octave.ipynbOpen in CoCalc
Authors: Harald Schilly, ℏal Snyder, William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
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]
{"metadata":{},"output_type":"display_data","text":["test =\n","\n","       -1        1       -1        1\n","        1       -1        1       -1\n","        1        1       -1       -1\n","       -1       -1        1       -1"]}
In [4]:
%%octave test * test
{"metadata":{},"output_type":"display_data","text":["ans =\n","\n","        0       -4        4       -2\n","        0        4       -4        2\n","        0        0        0        2\n","        2        2       -2        0"]}
In [ ]: