@@ diff for cell 2 @@ --- 0_old_cell +++ 1_new_cell @@ -0,0 +1 @@ +this is an added markdown cell @@ diff for cell 4 @@ --- 1_old_cell +++ 1_new_cell @@ -1,4 +1,3 @@ The `octavemagic` extension provides the ability to interact with Octave. It depends on the `oct2py` package, which may be installed using `easy_install`. - -To enable the extension, load it as follows: + @@ diff for cell 5 @@ --- 1_old_cell +++ 1_new_cell @@ -1,4 +1,2 @@ -The `octavemagic` extension provides the ability to interact with Octave. It depends on the `oct2py` package, -which may be installed using `easy_install`. - + To enable the extension, load it as follows: %load_ext octavemagic @@ diff for cell 9 @@ --- 1_old_cell +++ 1_new_cell @@ -1,2 +1,3 @@ x = %octave [1 2; 3 4]; -x +# here I change x to print x +print x a = [1, 2, 3] %octave_push a %octave a = a * 2; %octave_pull a a @@ diff for cell 12 @@ --- 2_old_cells +++ 1_new_cell @@ -1,3 +1,6 @@ %%octave -i x -o y y = x + 3; +# this should have been merge with the cell below +# and this text added, the merge script is smart enough to detect that and only see +# thoses added lines y @@ diff for cell 14 @@ --- 1_old_cell +++ 1_new_cell @@ -1,7 +1,8 @@ +#deleted cell above, no way to see it yet %%octave -f svg p = [12 -2.5 -8 -0.1 8]; x = 0:0.01:1; polyout(p, 'x') plot(x, polyval(p, x)); %%octave -s 500,500 # butterworth filter, order 2, cutoff pi/2 radians b = [0.292893218813452 0.585786437626905 0.292893218813452]; a = [1 0 0.171572875253810]; freqz(b, a, 32); %%octave -s 600,200 -f png subplot(121); [x, y] = meshgrid(0:0.1:3); r = sin(x - 0.5).^2 + cos(y - 0.5).^2; surf(x, y, r); subplot(122); sombrero()