Questions tagged [matlab]
{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 algebra) based storage and calculations.
307
questions
0
votes
0
answers
39
views
PDF file generated by Latex, how to extract (matlab/python) source code (verbatim/listings)
This is a bit bizarre. I have to review a bunch of PDF files, generated by Latex (but I don't have access to the source files) and that includes
matlab or python code, that was included with listings ...
3
votes
1
answer
35
views
Code shows in Greek letters
I have been trying to insert an Octave function in my paper but when I build the pdf the letters are all turned into greek.(The rest of the paper is written in greek). What is even weirder is that ...
0
votes
0
answers
40
views
Get Tikz/pgfplot figure (quiver+contour) as seen in MATLAB
I have a rather involved MATLAB script that plots the gradient field vectors to be exactly the lengths between the contours of a surface.
I want to be able to have this graph natively drawn in LaTeX. ...
0
votes
1
answer
47
views
problem with the trasposition symbol '
I'm new to latex and I should do an assignment with some matlab code. I wrote the latex file but when I make it into pdf there's a problem with the symbol ' which is the symbol of trasposition in ...
0
votes
1
answer
60
views
Matlab2tikz and alignment: i need help
I made matlab2tikz convert two matlab graps into .tex files, the first image generated the following code:
\definecolor{mycolor1}{rgb}{0.00000,0.44700,0.74100}%
\definecolor{mycolor2}{rgb}{0.85000,0....
1
vote
0
answers
72
views
Wrapping inserted code from MATLAB
I am attempting to insert a very long code that I wrote in MATLAB into my thesis document written on Overleaf. Several of the lines have long equations or comments that extend beyond the page and I ...
0
votes
0
answers
73
views
SVG font rendered offset
I'm generating figures in MATLAB (MWE below), loading them into LaTeX (Overleaf), and then making them very small.
Is there something I can/should be doing to control the text anchoring such that the ...
1
vote
0
answers
81
views
Dotted line changes to solid line when matlab fig save as .eps
I have some matlab figures which I would like to put in a table in LaTeX (as shown in figure). The issue is, when I try to save my matlab figures as .eps and then try to insert in LaTeX, the dotted ...
0
votes
0
answers
75
views
Pdf picture altered when included in a LaTeX document
I have a weird problem. I am using pdf files for pictures in my LaTeX document. Sometimes directly exported from Matlab, sometimes with a bit of post-treatment in PowerPoint (it's convenient for me ...
-2
votes
1
answer
186
views
Changing variables in a Latex file using Matlab
I'm trying to import an excel sheet to Matlab, then I use the data to change variables using Matlab then I generate a new tex file as below (found the code online).Everythig is working except for the ...
0
votes
0
answers
794
views
How can I use text and latex simultaneously in matlab legend?
I am trying to set my legend in a Matlab picture as $K_{\text{C}}$, which can be built with pdflatex as this:
When I practice in the Matlab, I use the following code
figure
plot(1:10,10:10:100,'ro-')...
1
vote
2
answers
209
views
listings does not ignore comment character inside a string
I'm trying to insert a matlab code file in my tex document using listings but the output is messy because I'm using % inside a string with fprintf which is also a comment character.
In the line ...
1
vote
2
answers
201
views
Include MATLAB code listing compiled into HTML with correct colors
I am compiling a LaTeX file my_document.tex into an HTML page my_document.html using htlatex with the following command:
htlatex my_document.tex "xhtml,mathml-" " -cmozhtf"
I have ...
1
vote
1
answer
458
views
MATLAB-typeset command within LaTeX paragraph
I would like to know if there is a way to include a MATLAB command within a sentence in LaTeX such that the command is in the MATLAB typeset format. I have seen examples using the matlab_prettifier ...
0
votes
0
answers
107
views
Systematic way to export cropped surface plot as png from Matlab and put into pgfplots axis
I know that Matlab related questions are not popular on the site but I am sure it can be helpful to a lot of people.
Suppose that one have really large plot generated in Matlab. Lets talk about ...