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.

In [1]:
t = linspace(0,6*pi,100);
plot(sin(t))
grid on
hold on
plot(cos(t), 'r')
Out[1]:
In [2]:
%plot -s 200,150
In [3]:
b = 10*cos(t)+30; plot(b); grid on
Out[3]:
In [4]:
a = [1,2,3]
Out[4]:
a =

     1     2     3
In [5]:
b = a + 3;
Out[5]:
In [6]:
disp(b)
Out[6]:
4     5     6
In [7]:
%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
In [8]:
%%python
print('Hello, world!')
Hello, world!
In [ ]:

In [ ]: