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

Re: how to set: "-shell -escape" ? (inserting matlab eps plo

Post by hologfx »

how to export these datasets? i'm not that into matlab at all ;o

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by localghost »

hologfx wrote:how to export these datasets? i'm not that into matlab at all ;o
I don't know. Never used it. But if the plots are already based on external data sets, this step is obsolete.
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

\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
%

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
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 342 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');
leads to this:
wint.png
wint.png (9.76 KiB) Viewed 8316 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