nschloe/matlab2tikz — Issue #50: plot3/fill3 commands don't work properly
Author: yuip
Created: 2011-11-01 13:30:57+00:00
State: open

Hello there.

I've drawn a 2D sheet in a 3D enviroment (either with plot3 or fill3) and then exportir to tikz, but the program only generates a 3D plot. Here is a little example:

x1 = -10:0.1:10;
x2 = -10:0.1:10;
p = sin(x1);
d = zeros(1,numel(p));
d(2:2:end) = 1;
h = p.*d;
figure;hold on;grid on;
fill3(x1,x2,h,'k');
view(45,22.5);
matlab2tikz('Memoria.tex', 'height', '\figureheight',...
'width', '\figurewidth');

Or is there anything I'm doing wrong? I would appreciate any help.