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.

MATLAB® is a high-level technical computing language and interactive environment for algorithm development, data visualization, data analysis, and numerical computation. Using MATLAB, you can solve technical computing problems faster than with traditional programming languages, such as C, C++, and Fortran.

You can use MATLAB in a wide range of applications, including signal and image processing, communications, control design, test and measurement, financial modeling and analysis, and computational biology. Add-on toolboxes (collections of special-purpose MATLAB functions) extend the MATLAB environment to solve particular classes of problems in these application areas.

MATLAB provides a number of features for documenting and sharing your work. You can integrate your MATLAB code with other languages and applications, and distribute your MATLAB algorithms and applications.

Key Features

  • High-level language for technical computing
  • Development environment for managing code, files, and data
  • Interactive tools for iterative exploration, design, and problem solving
  • Mathematical functions for linear algebra, statistics, Fourier analysis, filtering, optimization, and numerical integration
  • 2-D and 3-D graphics functions for visualizing data
  • Tools for building custom graphical user interfaces
  • Functions for integrating MATLAB based algorithms with external applications and languages, such as C, C++, Fortran, Java™, COM, and Microsoft® Excel®

enter image description here

305 questions
5
votes
2 answers

Getting rid of \vspace{1em} from MATLAB LaTeX publish

When publishing an m-file from MATLAB to LaTeX, a vertical space of 1em is inserted after each text paragraph. I frequently input these published files directly into a master document by using the standalone package, but the 1em vspace doesn't look…
Anders
  • 117
5
votes
2 answers

A\b Using mcode package

How do I typeset "x=A\b" in mcode, which represents "matrix division" in MATLAB? Here is a MWE: \documentclass[12pt]{report} \usepackage{amsthm,amsmath, amssymb, paralist, fancybox, listings, mathtools, verbatim,…
DJJerome
  • 4,056
3
votes
1 answer

MATLAB Command Window Output

I want the Matlab code output to be printed in my LaTeX file. What is the best and most efficient way to do that? Export results as .txt and then call it in LaTeX or are there other (better) methods to achieve this?
3
votes
1 answer

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 its own, but I can't get it to work with my…
bcoss
  • 183
2
votes
0 answers

Weaving MATLAB m-file into a LaTeX File

Hopefully this is a simple question: is there a simple, fast, and general method of porting the the text of an m-file verbatim into LaTeX and have it appear as it does in VI, i.e. ignore all of the MATLAB nomenclature, like % and so on, to appear as…
2
votes
1 answer

Is there a way to converting matlab codes to latex?

I have some complicated codes and I want to convert them in equation format. After that, I will write them using LaTeX. I am sharing following part of code: Dx = hypot(bsxfun(@minus,x,x'),bsxfun(@minus,y,y'));
2
votes
2 answers

What is the best way of including Matlab code in a LaTeX document?

I know this is a popular problem. I have read that the matlab-prettifier package yields good results. My Editor told me, I am missing this package, though. I don't know how to download the package to ubuntu. Apparently, I have to do it…
user123551
2
votes
0 answers

Matlab code listing

I am using listing \lstset{language=Matlab,% %basicstyle=\color{red}, breaklines=false,% morekeywords={matlab2tikz}, keywordstyle=\color{blue},% morekeywords=[2]{1}, keywordstyle=[2]{\color{black}}, …
2
votes
1 answer

matlab-prettifier code not showing correctly

In the MWE below, the text (fonts and colors) from the Matlab Code read from \lstinputlisting do not show up like that from the Matlab generated from the lstlisting…
Joe
  • 9,080
1
vote
1 answer

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 package but that was for whole sections of code and…
JDS
  • 13
1
vote
0 answers

Include matlab .m file for donwload

I was just wondering if there was a way for including a matlab.m file in latex, so you would be able to click a hyperlink in the pdf and then get a .m file ready for use. I know you can import the .m file into lstlisting and then from there people…
mriisa
  • 540
1
vote
2 answers

MuPAD (MATLAB symbolic toolbox) export to LaTeX

Is it possible to export a entire MuPAD notebook into LaTeX in the same fashion like Mathematica does? I am familiar with MuPAD latex command but it seems (at least on the first glance) that it is less convenient than export command in…
1
vote
1 answer

Open a .tex file, modify it in MATLAB, and then save it in a .tex file again (+ possibly compile it)

[This question requires the knowledge of both tex and MATLAB, and probably this is not the write place to ask it, but maybe someone has experience of both these program and can come up with an idea] Let's say I have a tex file, say MWE.tex, whose…
Nicola
  • 711
  • 3
  • 16
1
vote
2 answers

MATLAB output into tex

Is there any way to import raw MATLAB output into .tex documents? I have already seen verbatim package as a solution, but it does not meet my demands for 2 reasons: Matrix elements are not aligned, especially when some elements have decimal digits…
1
vote
0 answers

error:out of memory error in matlab

I am trying to write a matlab code for image morphing . I have to prewarp the images first , i have used imwarp function with the tform as follows , the code is , function []= min_view_morphing(im1,im2) F = findfundmat(im1,im2) [ H1, H2 ] =…
1
2