{matlab} is a high-level scientific programming language with JAVA based interactive environment that enables you to perform computationally intensive tasks as done with traditional programming languages such as C, C++, and Fortran. Its full form is MATrix LABoratory as it uses matrix (linear ...
10
votes
2answers
1k views
Octave to LaTeX
Is there anything (command/script/function) that can convert a Octave expression to LaTeX.
What I am asking for is something like this:
I type
a = eye(3,3); %Identity Matrix
and then do something ...
4
votes
4answers
627 views
Matlab to pdflatex with text properties
I know that this might be more a detail rather than a serious problem but I've already Googled it like crazy and I can't find the solution.
Is it possible to achieve a MATLAB plot in pdflatex with ...
6
votes
2answers
132 views
Input Auto-Generated Figures Captions
I'm trying to include an Matlab-auto-generated figure-caption tex-file using
\caption{\input{Spectrogram-2011-09-28-S003.title.tex}}
but if fails with error
ERROR: Argument of \@caption has an ...
4
votes
1answer
1k views
Problem using matlab2tikz
I'm trying to get matlab2tikz to work. I want to use it for prettyfying output of Matlab's image() command.
In Matlab I tried
imagesc(rand(100));
xlabel('X');
ylabel('Y');
title('Random Colors');
...
0
votes
1answer
376 views
Laprint causing end of file during psfrag call
I am attempting to create and use file in my TeX document using laprint.m. The laprint function call produces the .tex and .eps files as expected. When I try to use \input{filename} though I get an ...
0
votes
2answers
936 views
Rotate eps image without the whole page
I have a eps file printed out from a Simulink model using the Matlab command print -deps. However, the image is rotated +90 degrees to portrait. When I include it into my latex document, the whole ...
5
votes
1answer
919 views
How to sweave Matlab or Mathematica code into LaTeX.
There is a package called pgfsweave for R. It can sweave R code into a LaTeX document. I found we can gain some advantage from this method.
The report document can reproduce.
The font in figure ...
12
votes
3answers
3k views
How to export matlab figures to (pdf) LaTeX?
I am writing a student thesis in LaTeX and need to import several figures created in Matlab. I found some programs to do this task:
matfig2pgf
matlab2tikz
fig2texPS
The problem is that using one ...
7
votes
2answers
436 views
Including published Matlab code and figures in separate LaTeX document
I'm writing up a homework set in LaTeX. I'm writing the theoretical parts of the homework using LaTeX, and the implementation in Matlab. I want to combine these two easily. My problem is:
How do ...
4
votes
1answer
189 views
Implementing Moving Graphics from Computational Software Packages
I know that you can implement movies into your LaTeX document, but I wanted to know is there a way to implement moving graphics after source code is compiled in Matlab?
This questions can really ...
3
votes
1answer
2k views
Include MATLAB code via package mcode
I am trying to include MATLAB code in my thesis using a very handy package called mcode.sty, http://www.mathworks.com/matlabcentral/fileexchange/8015-m-code-latex-package
This package works great on ...
6
votes
1answer
570 views
Problem about program code included in LaTeX
I have some Matlab code which I
would like to include in my LaTeX
document.
I use fancyvrb package, based on
which I define a new environment
called code. An complete and minimum
example is:
...
3
votes
1answer
1k views
Transparent shapes in Matlab to TeX when using Matlab Fill
I want to export figures with transparent shapes in Matlab to TeX. For the following code, the triangle will appear transparent in Matlab but will be solid blue when I generate the tex file using ...
11
votes
1answer
4k views
Using listing for displaying Matlab code
I'm trying to display matlab code in a LaTeX document and the comments are typeset with an ugly space between letters:
\documentclass{article}
\usepackage{listings}
\lstset{language=Matlab}
...
23
votes
10answers
11k views
How to avoid large margins around Matlab plot in PDF
I am preparing image files to be included in a latex document. The image file is generated by printing a Matlab plot.
If I print the plot in eps format, the content of the eps file is fully occupied ...
27
votes
9answers
9k views
What is the best way to include Matlab graphics?
Which way of exporting Matlab graphics delivers the best result for inclusion in LaTeX? Is it possible to export scalable vector graphics, or even LaTeX graphics?
10
votes
8answers
2k views
What do people use for modifying figures?
I usually create figures for my articles in Matlab: various plots of numerical and analytical solutions. One thing that I don't like about it is that the font is different in the figure and in the ...