(how to) change to MATLAB mode
Russell jarvis
colouredstatic at gmail.com
Fri Aug 29 23:52:19 CDT 2008
I wonder if anyone knows how to change Octave-3.0.1 to MATLAB mode.
I tried to follow some out of date information on the internet.
I ended up changing a file:
/usr/local/share/octave/3.0.1/m/startup/octaverc
The changes that I made just ended up generating error messages about
unused variables PS1 and PS2 etc.
If anyone can refer me to recent information on changing to MATLAB
mode that would be great.
Thanks.
Russell.
On Sat, Aug 30, 2008 at 11:24 AM, <help-octave-request at octave.org> wrote:
> Send Help-octave mailing list submissions to
> help-octave at octave.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
> or, via email, send a message with subject or body 'help' to
> help-octave-request at octave.org
>
> You can reach the person managing the list at
> help-octave-owner at octave.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Help-octave digest..."
>
>
> Today's Topics:
>
> 1. unfilled bars in histogram (Stephen Bijansky)
> 2. saving as .pdf files (asha g)
> 3. Plot Problems (Marize Simoes)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 29 Aug 2008 17:16:25 -0500
> From: "Stephen Bijansky" <stephenb08 at gmail.com>
> Subject: unfilled bars in histogram
> To: help-octave at octave.org
> Message-ID:
> <459be6b60808291516s21763afdr505efad967cd7b9d at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Octave users and developers,
>
> Can someone tell me how to create a histogram with unfilled bars (as opposed
> to the solid bars)?
>
> Currently, I'm just using the manual example hist (randn (10000, 1), 30);
>
> I believe the default in octave 2.1 was unfilled, and while the filled bars
> are great for viewing on a monitor, I prefer the unfilled bars for printing.
>
> I'm using octave 3.0.0 and gnuplot 4.2.2.
>
> In gnuplot, I think the function would be "set style fill empty". So I
> tried grep -ri "set style" /usr/local/share/octave, and looking through
> hist.m, bar.m, __bar__.m, __bars__.m, ... But I have not been able to
> figure this out.
>
> Thanks for any help with this,
> Steve Bijansky
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080829/e785175c/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Fri, 29 Aug 2008 17:43:41 -0700 (PDT)
> From: asha g <dend_15 at yahoo.com>
> Subject: saving as .pdf files
> To: help at octave.org
> Message-ID: <468480.88175.qm at web51711.mail.re2.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
>
>
>
> How do I save my plots as .pdf files in Octave. I normally save as .eps. I need the .pdf for use in LaTeX.
>
> Thanks
> Asha
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 29 Aug 2008 22:23:41 -0300 (Hora oficial do Brasil)
> From: "Marize Simoes" <rizesimoes at uol.com.br>
> Subject: Plot Problems
> To: <help-octave at octave.org>
> Message-ID: <48B8A11D.000001.02728 at MARIZE-PC>
> Content-Type: text/plain; charset="utf-8"
>
>
>
> -------Mensagem original-------
>
> De: Marize Simoes
> Data: 29/08/2008 22:04:34
> Para: help-octave at octave.org
> Assunto: Plot Problems
>
> Hi user's
>
> I need help for plotting
> I don't know save plot
> I need to save in eps..
> I'm use octave 3.0.0
> My program is.....
> Why don't save eps????
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> % wavelet de Batle-Lemarie %
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> close all
> clear all
> clc
>
>
>
> %GAMA
> gama2=[-0.4635797105 0.8409668205 -0.4635797105 0.002475957549 0.03872014803
> 0.01189047808 -0.009820383628 -0.002320434165 0.002063424725 0.0005998870197
> -0.0004905807506 -0.0001457430704 -0.0001175190853 0.00003644943411 -0
> 00002884828695 -0.000009149625089];
> gama3=[-0.6982039311 1.093504740 -0.6982039311 0.1067636030 0.04157237841 0
> 03344218155 -0.03408059105 -0.005051746849 0.008917848757 0.003554291285 -0
> 003865855446 -0.001198514983 0.001407777305 0.0005323656132 -0.0005646593665
> -0.0002070307864];
> gama4=[1.002605289 1.445867055 1.002605289 0.2711395073 -0.006035702811 0
> 07204433308 -0.07295624620 0.001509181419 0.01417196409 0.009574629656 -0
> 011 23099156 -0.002482451693 0.004165162504 0.001926453123 -0.02352521366];
> %gama5=[]
> %gama6=[]
> %gama7=[]
> %gama9=[]
> %gama10=[]
> gama8=[-4.118882910 5.002466701 -4.118882910 2.383541834 -1.243498182 0
> 9103832872 -0.7099010602 0.3895514128 -0.2013127237 0.1969221774 -0
> 1719501984 0.07805884517 -0.03288650044 0.05210296102 -0.05021436082 0
> 01522532735];
>
>
> %ordem da fun????o
> ordem=input('Entre com a ordem desejada de 2 a 10: ');
> ordem
>
> %Considerando o GAMA
> switch(ordem)
> case 2
> gama=gama2;
> case 3
> gama=gama3;
> case 4
> gama=gama4;
> case 5
> gama=gama5;
> case 6
> gama=gama6;
> case 7
> gama=gama7;
> case 8
> gama=gama8;
> case 9
> gama=gama9;
> case 10
> gama=gama10;
> otherwise
> printf('Erro');
> endswitch
>
> t=linspace(-2*pi,2*pi,1024);
> invpsi=zeros(1,length(t));
>
>
> %calculo de Bm(w)
> for w=1:length(t)
> for k=1:15
> Bm=(sin(t(w)/4)/(t(w)/4))^ordem;
> invpsi(w)=invpsi(w)+gama(k)*exp(-i*k*t(w))*Bm;
> end
> end
>
>
>
> % inv1=ifft(psi);
> psi=ifft(invpsi);
>
> %Deslocamento da Sa??da
> for i=1:length(psi)/2
> coef1(i)=psi(i);
> end
> for i=(length(psi)/2)+1:length(psi)
> coef2(i-(length(psi)/2))=psi(i);
> end
> coef1=fliplr(coef1);
> coef2=fliplr(coef2);
> psi=horzcat(coef1,coef2);
> psi=fliplr(psi);
>
>
> %**** Plot ****
> __gnuplot_set__ ("terminal postscript color enhanced")
> __gnuplot_set__ ("output 'gama2.eps'")
> __gnuplot_set__ ("xlabel 't'");
> __gnuplot_set__ ("ylabel 'psi'");
>
> plot (t,psi)
> switch(ordem)
> case 2
> x=0.2;
> case 3
> x=0.5;
> case 4
> x=0.5;
> case 5
> x=0.4;
> case 6
> x=0.4;
> case 7
> x=0.5;
> case 8
> x=0.5;
> case 9
> x=0.5;
> case 10
> x=0.5;
> otherwise
> disp("\n 'Erro '")
> endswitch
> axis ([-x x])
>
>
>
>
>
>
> ?
> Marize Sim?es
> Mestranda em Computa??o Aplicada
> Instituto Nacional de Pesquisas Espaciais - INPE
> Tel: +55 12 3945-6356
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080829/1d23725e/attachment.html
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: image/gif
> Size: 34757 bytes
> Desc: not available
> Url : https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080829/1d23725e/attachment.gif
>
> ------------------------------
>
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
>
> End of Help-octave Digest, Vol 29, Issue 55
> *******************************************
>
More information about the Help-octave
mailing list