Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

Some Visualizations using CoCalc

Views: 1342
Kernel: Octave

Use the Octave Jupyter kernel to make this whole notebook use Octave

  • make sure the kernel is Octave.

%plot -f svg -s 800,600
rand(5)
ans = 0.7432006 0.7233892 0.1103088 0.3423000 0.7887614 0.3470651 0.8206399 0.1748952 0.1707156 0.3171469 0.7850865 0.0070984 0.9598948 0.2678819 0.5154067 0.6352794 0.1351065 0.3858992 0.2652377 0.1866060 0.3562657 0.3317308 0.9221238 0.6199625 0.3735255
eye(3)
ans = Diagonal Matrix 1 0 0 0 1 0 0 0 1
plot([1,2,3], [4,5,7]) set(gca, "fontsize", 16);
Image in a Jupyter notebook
x = 0:0.01:20; y = (1 + sqrt(x)) .* sin (x); plot (x, y); set(gca, "fontsize", 16); xlabel ("x"); ylabel ("(1 + sqrt(x)) * sin (x)"); title ("Simple 2-D Plot");
Image in a Jupyter notebook

Also, 3d graphics:

tx = ty = linspace (-8, 8, 41)'; [xx, yy] = meshgrid (tx, ty); r = sqrt (xx .^ 2 + yy .^ 2) + eps; tz = sin (r) ./ r; mesh (tx, ty, tz); set(gca, "fontsize", 16);
Image in a Jupyter notebook