matlab2tikzext

버전 1.0.0.0 (2.21 KB) 작성자: Thomas Bosse
A script to use matlab2tikz with tikzexternalize.
다운로드 수: 764
업데이트 날짜: 2013/10/22

라이선스 보기

matlab2tikzext(path,filename,width,height) exports a figure/plot by using
Nico Schlömer's matlab2tikz (File ID: #22022) to Latex/tikz.

Right before it checks by using Suresh Joel's md5 (File ID: #3432)
if the figure/plot-file has changed. If using tiksexternalize in Latex only
then a new plot will be compiled.

Many thanks to Nico Schlömer and Suresh Joel!

Inputs:

path: (String) e.g. '../latex/'
filename: (String) e.g. 'sine.tikz'
width: (Real) e.g. 6
height: (Real) e.g. 2.57

A simple example:

Matlab:

x = 0:.1:2*pi;
y = sin(x);
plot(x,y);
axis tight;
matlab2tikzext('../latex/','sine.tikz', 6, 2.57);

Latex:

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9}
\usepgfplotslibrary{external}
\tikzexternalize[prefix=TikzPictures/]

\begin{document}

\begin{figure}
\centering
\input{sine.tikz}
\caption{Sine}
\end{figure}

\end{document}

Needs:

- matlab2tikz (File ID: #22022),
- md5 (File ID: #3432).

인용 양식

Thomas Bosse (2024). matlab2tikzext (https://www.mathworks.com/matlabcentral/fileexchange/44044-matlab2tikzext), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 File Operations에 대해 자세히 알아보기
도움

받음: matlab2tikz/matlab2tikz

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0