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.
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]
a = 1 2 3
b = a + 3;
disp(b)
4 5 6
%lsmagic
Available line magics: %cd %connect_info %download %edit %get %help %html %install %install_magic %javascript %kernel %kx %latex %load %ls %lsmagic %magic %parallel %plot %pmap %px %python %reload_magics %restart %run %set %shell %spell Available cell magics: %%debug %%file %%help %%html %%javascript %%kx %%latex %%processing %%px %%python %%shell %%show %%spell %%time
%%python
print('Hello, world!')
Hello, world!