Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News Sign UpSign In
| Download

IPython notebook support/2015-02-03-octave.ipynb

Views: 98
Kernel: Unknown Kernel
%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"]}