clear all x = py.numpy.linspace(0,10,101); y = py.numpy.sin(x); z = py.numpy.cos(x); xm = cellfun(@double,cell(x.tolist())); ym = cellfun(@double,cell(y.tolist())); zm = cellfun(@double,cell(z.tolist())); plot(xm,ym,'b-') hold on plot(xm,zm,'r--') legend('sin(x)','cos(x)')