General ⇒ "-shell -escape" error / inserting matlab .eps plot
Re: how to set: "-shell -escape" ? (inserting matlab eps plo
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
"-shell -escape" error / inserting matlab .eps plot
I don't know. Never used it. But if the plots are already based on external data sets, this step is obsolete.hologfx wrote:how to export these datasets? i'm not that into matlab at all ;o
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
"-shell -escape" error / inserting matlab .eps plot
matlab plot export to .eps + .tex with matlabfrag
include them:
Code: Select all
\documentclass[a4paper]{scrartcl}
\usepackage{ngerman}
\usepackage[latin9]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{pstool}
\usepackage{makeidx}
\usepackage[ps2pdf,bookmarksnumbered]{hyperref}
\hypersetup{
pdfauthor={Vorname Nachname},
pdftitle={Titel Ihrer Arbeit},
pdfsubject={Dissertation},
pdfkeywords={Schlagwort1 | Schlagwort2 | Schlagwort3 | Schlagwort4 | Schlagwort5}}
\title{Erstes Beispiel}
\author{Dein Name}
\begin{document}
\maketitle
\tableofcontents
\printindex
\section{Unser erstes Beispiel} Dies ist das erste Beispieldokument.
TEXT
\begin{figure}[htbp]
\centering
\psfragfig[width=0.75\textwidth]{img/f}
\caption{f.eps}
\label{fig:f}
\end{figure}
\begin{figure}
\centering
\psfragfig{img/nons}
\caption{nons.eps}
\label{fig:nons}
\end{figure}
nons.eps
\psfragfig{img/win}
%
\end{document}
%
% EOF
%
the way latex => pdf ist'n working for me so far
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: "-shell -escape" error / inserting matlab .eps plot
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: "-shell -escape" error / inserting matlab .eps plot
im sure you cant use your usual graphics pack because of the missing plot text (included in the .tex files)
ah, just try it ;o
-----
dont complain about stupid text and strange plot textes

- Attachments
-
- img.zip
- zipppppi
- (30.85 KiB) Downloaded 342 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
"-shell -escape" error / inserting matlab .eps plot
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
"-shell -escape" error / inserting matlab .eps plot
---------------------------------------------------
maybe this ?
Code: Select all
clear all; close all; clc;
plot(hamming(1000))
hold on
plot(hanning(1000),'g')
plot(blackman(1000),'r')
plot(kaiser(1000,2.5),'k')
plot(chebwin(1000),'m')
plot(bartlett(1000),'c')
legend('hamming','hanning','blackman','kaiser (2.5)','chebwin','bartlett');
title('Fensterfunktionen');
xlabel('xlabel');
ylabel('ylabel');
text(500,0.5,'Text mittig','horizontalalignment','center');
a = hanning(1000);
text(200,a(200),...
'\leftarrow hanning');
matlabfrag('win');
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
"-shell -escape" error / inserting matlab .eps plot
That's what I wanted to know.hologfx wrote:i did not use any data files ?! […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 351
- Joined: Sat Aug 02, 2008 8:47 am
"-shell -escape" error / inserting matlab .eps plot
there is no need for gnuplot, that can be donehologfx wrote:i did not use any data files ?! ;o
with PSTricks inside LaTeX
Herbert