General"-shell -escape" error / inserting matlab .eps plot

General information and discussion about TeXnicCenter
hologfx
Posts: 10
Joined: Mon Aug 02, 2010 10:51 pm

"-shell -escape" error / inserting matlab .eps plot

Post by hologfx »

actually i'm doing this:

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}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: "-shell -escape" error / inserting matlab .eps plot

Post by localghost »

Can you provide the data files for these plots? As I already mentioned they could be plotted with a graphics package.
hologfx
Posts: 10
Joined: Mon Aug 02, 2010 10:51 pm

Re: "-shell -escape" error / inserting matlab .eps plot

Post by hologfx »

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 :)
Attachments
img.zip
zipppppi
(30.85 KiB) Downloaded 336 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

"-shell -escape" error / inserting matlab .eps plot

Post by localghost »

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.
hologfx
Posts: 10
Joined: Mon Aug 02, 2010 10:51 pm

"-shell -escape" error / inserting matlab .eps plot

Post by hologfx »

i did not use any data files ?! ;o

---------------------------------------------------

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');
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
leads to this:
wint.png
wint.png (9.76 KiB) Viewed 8188 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

"-shell -escape" error / inserting matlab .eps plot

Post by localghost »

hologfx wrote:i did not use any data files ?! […]
That's what I wanted to know.
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

"-shell -escape" error / inserting matlab .eps plot

Post by CrazyHorse »

hologfx wrote:i did not use any data files ?! ;o
there is no need for gnuplot, that can be done
with PSTricks inside LaTeX

Herbert
Post Reply