General ⇒ "-shell -escape" error / inserting matlab .eps plot
Re: how to set: "-shell -escape" ? (inserting matlab eps plo
how to export these datasets? i'm not that into matlab at all ;o
NEW: TikZ book now 40% off at Amazon.com for a short time.

- 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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
"-shell -escape" error / inserting matlab .eps plot
actually i'm doing this:
matlab plot export to .eps + .tex with matlabfrag
include them:
then (this was i think the last what i thought about) i compile the way Latex => PS and watch it/open it with adobe distiller! (GS sux ;o )
the way latex => pdf ist'n working for me so far
matlab plot export to .eps + .tex with matlabfrag
include them:
Code: Select all
Code, edit and compile here:
\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}
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
Can you provide the data files for these plots? As I already mentioned they could be plotted with a graphics package.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: "-shell -escape" error / inserting matlab .eps plot
i just zipped the img folder
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
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 346 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
"-shell -escape" error / inserting matlab .eps plot
I did not ask for the image files, but for the data files. These are meant to be those files which contain the raw data (several numbers in columns). Those pairs of coordinates form the resulting curves that can be seen in the diagrams. The finished images are not of interest. In case you plotted functions you may tell us which ones.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
"-shell -escape" error / inserting matlab .eps plot
i did not use any data files ?! ;o
---------------------------------------------------
maybe this ?
leads to this:
---------------------------------------------------
maybe this ?
Code: Select all
clear all; close all; clc;plot(hamming(1000))hold onplot(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 ?! […]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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