help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

epstk (size and resolution of image)


From: mimo
Subject: epstk (size and resolution of image)
Date: Fri, 18 Jun 2004 11:11:08 +0200
User-agent: KMail/1.5.4

Hi there,

seem to aks quite often here :-| .
Using epst (www.epstk.de) i tried to plot the ouptut of the '[S,f,t] = 
specgram' command via a contour plot. Now the problem is that i can adjust 
nearly everything(via eopen.m ) regarding the eps file but the size and 
resolution of the image. That ends up in somewhat useful eps file but it is 
nothing compared to the ouput of the 'specgram' itself. But i didn't find 
anything to get axes on the 'specgram' image. So got to stick with the epstk 
solutions.


function [y] = myspec(x,filename,title)

[A,f,t] = specgram(x,256,44100);
eopen(filename,0,180,140);%this is where it should be possible to alter size 
of image
eglobpar; %no idea what this does
ePlotTitleText=title; %title
ePlotTitleDistance=15; %title abstand
ePlotAreaPos=[20 ,20]; % 40,40 ist schon draussen
eXAxisSouthLabelText='Zeit in ms'; %axis label
eYAxisWestLabelText='Frequenz in Hz';  %axis label
eImageLegendLabelText='Farb Legende'; %legend label not more 
eaxes([round(t(1)),round(t(1,round(length(t)/2))*100),round(t(1,length(t))*100)],
[round(f(1)),round(f(1,round(length(f)/2))),round(f(1,length(f)))]);  
eimagesc(20*log10(flipud(abs(A))),rainbow(2048),'e');  
eclose(1,0);
eview

endfunction 


cheers, Thomas



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]