Sharedsupport / 2015-02-03-octave.ipynbOpen in CoCalc
Examples for support purposes...
%load_ext oct2py.ipython
%%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"]}
%%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"]}