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
setappdata(0, "MKernel_plot_format", "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!')