it is difficult to say what went wrong in your example. Could you please post the relevant code? Do you use $$-enviroment? For me, superscripts work perfectly.
Regards,
Ralf
05 Oct 2011
matlabfrag to pdf
Small script using matlabfrag to create a latex formatted pdf file.
Author: Martin
Good work! There is a problem with superscript letters though. I was trying to plot a graph with 'Hm³' in the x-axis text and couldn't get the export to run. I have no idea how to fix this, but I thought it would be nice if someone did.
Oh, that's no problem tobsen. You were quicker than I. What you just figured out by yourself I wanted to suggest you.
You not need to set the interpreter, because mlf2pdf is using pdflatex anyway.
Have fun with Matlab and LaTeX.
Ralf
Comment only
06 Oct 2011
matlabfrag to pdf
Small script using matlabfrag to create a latex formatted pdf file.
UPDATE -----
Just found out it works with
xlabel('Flow ($m^3/s$)','Interpreter','Tex');
or
xlabel('Flow ($m^3/s$)','Interpreter','LaTex');
Sorry for wasting your time :)
Comment only
06 Oct 2011
matlabfrag to pdf
Small script using matlabfrag to create a latex formatted pdf file.
Thanks Ralf for the quick reply, I'm rather new to Matlab, so maybe I did something wrong, but the code that doesn't work is this:
% plot water level over flow (Q)
Q = 200:100:50000;
h = zeros(498,1);
j = 1;
for i=200:100:50000
h(j) = river_stage(i);
j = j + 1;
end
figH=figure;
plot(Q,h);
xlabel('Flow (m³/s)');
ylabel('Stage (m above sea level)');
colormap summer;
mlf2pdf(figH,'rating-curve');
Regards,
Tobsen
Comment only
05 Oct 2011
matlabfrag to pdf
Small script using matlabfrag to create a latex formatted pdf file.
Hi tobsen,
it is difficult to say what went wrong in your example. Could you please post the relevant code? Do you use $$-enviroment? For me, superscripts work perfectly.
Regards,
Ralf
Comment only
05 Oct 2011
matlabfrag to pdf
Small script using matlabfrag to create a latex formatted pdf file.
Good work! There is a problem with superscript letters though. I was trying to plot a graph with 'Hm³' in the x-axis text and couldn't get the export to run. I have no idea how to fix this, but I thought it would be nice if someone did.
Comment only