Testing the Jupyter MATLAB Kernel#

Interact with MATLAB in Notebook the using the MATLAB engine for Python. All commands are interpreted by MATLAB. Since this is a MetaKernel, a standard set of magics are available. Help on commands is available using the %help magic or using ? with a command.

% Use inline SVG graphics
imatlab_export_fig('print-svg')
t = linspace(0,6*pi,100);
plot(sin(t))
grid on
hold on
plot(cos(t), 'r')
%plot -s 200,150
b = 10*cos(t)+30; plot(b); grid on
a = [1,2,3]
b = a + 3;
disp(b)
%lsmagic
print('Hello, world!')