<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1897</id>
	<title>Nabble - Octave - General</title>
	<updated>2009-11-23T23:11:59Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Octave---General-f1897.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Octave---General-f1897.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26491396</id>
	<title>Re: keyboard does not provide local context</title>
	<published>2009-11-23T23:11:59Z</published>
	<updated>2009-11-23T23:11:59Z</updated>
	<author>
		<name>Jaroslav Hajek-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 20, 2009 at 5:01 PM, John W. Eaton &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26491396&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jwe@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;On 20-Nov-2009, Eric Chassande-Mottin wrote:&lt;br&gt;
&lt;br&gt;
| using foo.m below,&lt;br&gt;
| if I say foo(1) from prompt I get access to local vars&lt;br&gt;
|&lt;br&gt;
| octave3.2:1&amp;gt; foo(1)&lt;br&gt;
| keyboard: stopped in /home/ecm/foo.m&lt;br&gt;
| a =  1&lt;br&gt;
| debug&amp;gt; whos&lt;br&gt;
| Variables in the current scope:&lt;br&gt;
|&lt;br&gt;
|   Attr Name        Size                     Bytes  Class&lt;br&gt;
|   ==== ====        ====                     =====  =====&lt;br&gt;
|        a           1x1                          8  double&lt;br&gt;
|        argn        1x1                          1  char&lt;br&gt;
|    f   x           1x1                          8  double&lt;br&gt;
|&lt;br&gt;
| Total is 3 elements using 17 bytes&lt;br&gt;
|&lt;br&gt;
| but when calling foo() from a script I don&amp;#39;t&lt;br&gt;
|&lt;br&gt;
| octave3.2:1&amp;gt; test&lt;br&gt;
| keyboard: stopped in /home/ecm/foo.m&lt;br&gt;
| b =  2&lt;br&gt;
| a =  1&lt;br&gt;
| debug&amp;gt; whos&lt;br&gt;
| Variables in the current scope:&lt;br&gt;
|&lt;br&gt;
|   Attr Name        Size                     Bytes  Class&lt;br&gt;
|   ==== ====        ====                     =====  =====&lt;br&gt;
|        ans         1x30                        30  char&lt;br&gt;
|        b           1x1                          8  double&lt;br&gt;
|&lt;br&gt;
| Total is 31 elements using 38 bytes&lt;br&gt;
|&lt;br&gt;
| why is that? is there a way to access local vars when calling from a script?&lt;br&gt;
|&lt;br&gt;
| I am using&lt;br&gt;
|&lt;br&gt;
| GNU Octave, version 3.2.3&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;It&amp;#39;s best to report bugs to the &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26491396&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bug@...&lt;/a&gt; list.&lt;br&gt;
&lt;br&gt;
This problem has been reported several times now and it is fixed in&lt;br&gt;
the current development version of Octave.&lt;br&gt;
&lt;br&gt;
I think the relevant patches are&lt;br&gt;
&lt;br&gt;
  &lt;a href=&quot;http://hg.savannah.gnu.org/hgweb/octave/rev/fb22dd5d6242&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://hg.savannah.gnu.org/hgweb/octave/rev/fb22dd5d6242&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;http://hg.savannah.gnu.org/hgweb/octave/rev/25c2e92ee03c&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://hg.savannah.gnu.org/hgweb/octave/rev/25c2e92ee03c&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;http://hg.savannah.gnu.org/hgweb/octave/rev/bbe033dcfe13&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://hg.savannah.gnu.org/hgweb/octave/rev/bbe033dcfe13&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Jaroslav, I think it is safe to apply the first two to the 3.2.x&lt;br&gt;
branch.  I&amp;#39;m not so sure about the third one though as it removes some&lt;br&gt;
variables from a class and changes at least one function signature,&lt;br&gt;
which might cause some binary compatibility problems.&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;These don&amp;#39;t apply due to unwind_protect changes. I think the second one reverts the first one, so maybe it would suffice to adapt the second one for 3.2.x. Does it make sense without also taking the third one?&lt;br&gt;
&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;RNDr. Jaroslav Hajek&lt;br&gt;computing expert &amp;amp; GNU Octave developer&lt;br&gt;Aeronautical Research and Test Institute (VZLU)&lt;br&gt;Prague, Czech Republic&lt;br&gt;url: &lt;a href=&quot;http://www.highegg.matfyz.cz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.highegg.matfyz.cz&lt;/a&gt;&lt;br&gt;

&lt;br /&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26491396&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/keyboard-does-not-provide-local-context-tp26445056p26491396.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26489634</id>
	<title>Re: playaduio in octave 3.2.3</title>
	<published>2009-11-23T18:31:02Z</published>
	<updated>2009-11-23T18:31:02Z</updated>
	<author>
		<name>Henry F. Mollet</name>
	</author>
	<content type="html">on 11/23/09 5:19 AM, Jaroslav Hajek at &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489634&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;highegg@...&lt;/a&gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sat, Nov 21, 2009 at 6:39 AM, Adrian pamin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489634&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;relleradrian@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt; Im a little new to using octave and GNU systems but there seems to be a
&lt;br&gt;&amp;gt;&amp;gt; problem with the playaudio() function in the Octave 3.2.3 patch. When trying
&lt;br&gt;&amp;gt;&amp;gt; to use the playaudio(x) the error &amp;quot;The system cannot find the path
&lt;br&gt;&amp;gt;&amp;gt; specified.&amp;quot; I have tried this in a Vista and Win XP system yielding the same
&lt;br&gt;&amp;gt;&amp;gt; results. Below is the code used:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; t = [0:1/8000:2]
&lt;br&gt;&amp;gt;&amp;gt; sig3 = 0.8*sin(2*pi*3*t)
&lt;br&gt;&amp;gt;&amp;gt; plot(t,sig3)
&lt;br&gt;&amp;gt;&amp;gt; playaudio(sig3)
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; My friends and professor are stumped with this error as they can use the
&lt;br&gt;&amp;gt;&amp;gt; function without problems on a Linux and Mac OS. Is this possibly a Windows
&lt;br&gt;&amp;gt;&amp;gt; problem? would switching to a VM or dual booting help? Thanks in advance...
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm afraid the current playaudio is only designed to run on Unix systems,
&lt;br&gt;&amp;gt; because all it does is send data to /dev/dsp or /dev/audio. There could
&lt;br&gt;&amp;gt; probably be an alternative path for Windows, using a temporary wav file or
&lt;br&gt;&amp;gt; something similar.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; hth
&lt;/div&gt;&lt;br&gt;I cannot find /dev/dsp or /dev/audio on my mac:
&lt;br&gt;&amp;nbsp;[/dev] -bash-2.05b 504$ locate /dev/dsp
&lt;br&gt;&lt;br&gt;&amp;nbsp;[/dev] -bash-2.05b 505$ locate /dev/audio
&lt;br&gt;&lt;br&gt;&amp;nbsp;[/dev] -bash-2.05b 506$
&lt;br&gt;&lt;br&gt;Accordingly? :
&lt;br&gt;octave-3.2.2:1&amp;gt; t = [0:1/8000:2];
&lt;br&gt;octave-3.2.2:2&amp;gt; sig3 = 0.8*sin(2*pi*3*t);
&lt;br&gt;octave-3.2.2:3&amp;gt; plot(t,sig3)
&lt;br&gt;octave-3.2.2:4&amp;gt; playaudio(sig3)
&lt;br&gt;sh: line 1: /dev/dsp: Permission denied
&lt;br&gt;octave-3.2.2:5&amp;gt; help playaudio
&lt;br&gt;`playaudio' is a function from the file
&lt;br&gt;/Applications/Octave.app/Contents/Resources/share/octave/3.2.2/m/audio/playa
&lt;br&gt;udio.m
&lt;br&gt;&lt;br&gt;&amp;nbsp;-- Function File: &amp;nbsp;playaudio (NAME, EXT)
&lt;br&gt;&amp;nbsp;-- Function File: &amp;nbsp;playaudio (X)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Plays the audio file `NAME.EXT' or the audio data stored in the
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;vector X.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;See also: lin2mu, mu2lin, loadaudio, saveaudio, setaudio, record
&lt;br&gt;&lt;br&gt;Henry
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489634&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/playaduio-in-octave-3.2.3-tp26477798p26489634.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26489493</id>
	<title>Re: Need help with nelder_mead_min.m</title>
	<published>2009-11-23T18:07:12Z</published>
	<updated>2009-11-23T18:07:12Z</updated>
	<author>
		<name>Etienne Grossmann-6</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Hello,
&lt;br&gt;&lt;br&gt;something like
&lt;br&gt;&lt;br&gt;octave:408&amp;gt; function val = foo (xyz), val = sum (xyz .^ 2); endfunction
&lt;br&gt;octave:409&amp;gt; help nelder_mead_min
&lt;br&gt;[snip]
&lt;br&gt;### Start nelder_mead_min() from a random point
&lt;br&gt;octave:410&amp;gt; [xyz0, val0, nev] = nelder_mead_min (&amp;quot;foo&amp;quot;, randn(1,3))
&lt;br&gt;xyz0 =
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; 2.1237e-08 &amp;nbsp; 1.0243e-08 &amp;nbsp;-4.4610e-09
&lt;br&gt;&lt;br&gt;val0 = &amp;nbsp;5.7582e-16
&lt;br&gt;nev = &amp;nbsp;201
&lt;br&gt;### Start nelder_mead_min() from the minimum
&lt;br&gt;octave:411&amp;gt; [xyz0, val0, nev] = nelder_mead_min (&amp;quot;foo&amp;quot;, [0 0 0])
&lt;br&gt;xyz0 =
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 0 &amp;nbsp; 0
&lt;br&gt;&lt;br&gt;val0 = 0
&lt;br&gt;nev = &amp;nbsp;236
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Hth,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Etienne
&lt;br&gt;&lt;br&gt;Quoting ???????? ???????
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489493&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chainreactionerator@...&lt;/a&gt;&amp;gt; (Mon, 23 Nov 2009 21:43:57 +0300):
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I can't figure out how to work with this function. I will be very
&lt;br&gt;&amp;gt; glad if one could explain the subject.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For an example lets see the problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; function y = foo (x, y, z)
&lt;br&gt;&amp;gt;     y = x**2 + y**2 + z**2;
&lt;br&gt;&amp;gt; endfunction
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I need to find a minima of the foo in [-1;1]*[-1;1]*[-1;1] region.
&lt;br&gt;&amp;gt; I know the answer, but how I must set up an options and arguments
&lt;br&gt;&amp;gt; for nelder_mead_min.m?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; Grigory 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.isr.ist.utl.pt/~etienne&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.isr.ist.utl.pt/~etienne&lt;/a&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------
&lt;br&gt;This message was sent using IMP, the Internet Messaging Program.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489493&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-help-with-nelder_mead_min.m-tp26483786p26489493.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26489140</id>
	<title>Re: Sound File Images?</title>
	<published>2009-11-23T17:25:33Z</published>
	<updated>2009-11-23T17:25:33Z</updated>
	<author>
		<name>Jordi Gutiérrez Hermoso</name>
	</author>
	<content type="html">2009/11/20 rs-232 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489140&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rs@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; Pardon the Noob question, but does anyone know the best method for
&lt;br&gt;&amp;gt; transferring the data from a range of samples of a sound file into a
&lt;br&gt;&amp;gt; printable image file?
&lt;br&gt;&lt;br&gt;Have you tried using the functions from the audio package in Octave Forge?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://octave.sourceforge.net/doc/funref_audio.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://octave.sourceforge.net/doc/funref_audio.html&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489140&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Sound-File-Images--tp26447356p26489140.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26489124</id>
	<title>Re: imshow is slow on Mac OSX 10.5</title>
	<published>2009-11-23T17:22:58Z</published>
	<updated>2009-11-23T17:22:58Z</updated>
	<author>
		<name>Todd Rovito</name>
	</author>
	<content type="html">After more examination I realize that the display range being double
&lt;br&gt;won't have much effect on performance.
&lt;br&gt;&lt;br&gt;On Mon, Nov 23, 2009 at 12:04 PM, Todd Rovito &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489124&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rovitotv@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Carlo,
&lt;br&gt;&amp;gt;   Thanks for the information!  For sure the FLTK backend is much
&lt;br&gt;&amp;gt; faster.  I was looking at the imshow command to GNUPlot and was
&lt;br&gt;&amp;gt; surprised to see that the code seems to be converting the data to
&lt;br&gt;&amp;gt; double.  Here is the code snippet from imshow.m:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ========================================================
&lt;br&gt;&amp;gt; ## Set default display range if display_range not set yet.
&lt;br&gt;&amp;gt;  if (isempty (display_range))
&lt;br&gt;&amp;gt;    display_range = [min(im(:)), max(im(:))];
&lt;br&gt;&amp;gt;  elseif (isna (display_range))
&lt;br&gt;&amp;gt;    t = class (im);
&lt;br&gt;&amp;gt;    switch (t)
&lt;br&gt;&amp;gt;      case {&amp;quot;double&amp;quot;, &amp;quot;single&amp;quot;, &amp;quot;logical&amp;quot;}
&lt;br&gt;&amp;gt;        display_range = [0, 1];
&lt;br&gt;&amp;gt;      case {&amp;quot;int8&amp;quot;, &amp;quot;int16&amp;quot;, &amp;quot;int32&amp;quot;, &amp;quot;uint8&amp;quot;, &amp;quot;uint16&amp;quot;, &amp;quot;uint32&amp;quot;}
&lt;br&gt;&amp;gt;        ## For compatibility, uint8 data should not be handled as
&lt;br&gt;&amp;gt;        ## double.  Doing so is a quick fix to allow the images to be
&lt;br&gt;&amp;gt;        ## displayed correctly.
&lt;br&gt;&amp;gt;        display_range = double ([intmin(t), intmax(t)]);
&lt;br&gt;&amp;gt;      otherwise
&lt;br&gt;&amp;gt;        error (&amp;quot;imshow: invalid data type for image&amp;quot;);
&lt;br&gt;&amp;gt;    endswitch
&lt;br&gt;&amp;gt;  endif
&lt;br&gt;&amp;gt; ======================================================
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Notice that the uint8 data is actually converted to double.  If I read
&lt;br&gt;&amp;gt; the code correctly that would make the transmission to GNU Plot over
&lt;br&gt;&amp;gt; the pipe much slower.  I will have to look into the FLTK backend too.
&lt;br&gt;&amp;gt; Again thanks for the help.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Mon, Nov 23, 2009 at 2:16 AM, Carlo de Falco &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489124&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;carlo.defalco@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 23 Nov 2009, at 12:30, Todd Rovito wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I just started to use Octave for some image processing work and have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; noticed how slow Octave is to display images in gnu-plot.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On my 1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; year old Mac Book Pro it can take 5 seconds to display a 4 mega-pixel
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 8 bit image.  Attached is the function I use to read such image.  I am
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; wondering if I have something installed wrong or this is a natural
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; behavior or Octave?  Please understand I am not complaining about
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Octave's performance, it seems speedy on everything except for image
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; display.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks for the help.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I am afraid this is due to the way communication between Octave and gnuplot
&lt;br&gt;&amp;gt;&amp;gt; is implemented.
&lt;br&gt;&amp;gt;&amp;gt; As communication is implemented via pipes, transferring the image data to
&lt;br&gt;&amp;gt;&amp;gt; gnuplot takes about
&lt;br&gt;&amp;gt;&amp;gt; the same time as writing the whole uncompressed image data to a file and
&lt;br&gt;&amp;gt;&amp;gt; then reading it back.
&lt;br&gt;&amp;gt;&amp;gt; This is one of the reasons why a new graphics backend based on OpenGL is
&lt;br&gt;&amp;gt;&amp;gt; currently under
&lt;br&gt;&amp;gt;&amp;gt; developement.
&lt;br&gt;&amp;gt;&amp;gt; To get an idea of the speed improvement given by the new backend you can
&lt;br&gt;&amp;gt;&amp;gt; try:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; sombrero (500)
&lt;br&gt;&amp;gt;&amp;gt; close all
&lt;br&gt;&amp;gt;&amp;gt; backend ('fltk')
&lt;br&gt;&amp;gt;&amp;gt; sombrero (500)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The difference is really impressive on my own white plastic Core 2 Duo
&lt;br&gt;&amp;gt;&amp;gt; MacBook.
&lt;br&gt;&amp;gt;&amp;gt; unfortunately the new backend does not yet support imshow in the current
&lt;br&gt;&amp;gt;&amp;gt; stable release.
&lt;br&gt;&amp;gt;&amp;gt; If this feature is important to you might want to consider joining the
&lt;br&gt;&amp;gt;&amp;gt; developers mailing list
&lt;br&gt;&amp;gt;&amp;gt; and helping get Octave 3.4 out soon.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; HTH,
&lt;br&gt;&amp;gt;&amp;gt; c.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489124&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/imshow-is-slow-on-Mac-OSX-10.5-tp26476386p26489124.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26486932</id>
	<title>Re: imshow is slow on Mac OSX 10.5</title>
	<published>2009-11-23T14:04:28Z</published>
	<updated>2009-11-23T14:04:28Z</updated>
	<author>
		<name>Todd Rovito</name>
	</author>
	<content type="html">Carlo,
&lt;br&gt;&amp;nbsp; &amp;nbsp;Thanks for the information! &amp;nbsp;For sure the FLTK backend is much
&lt;br&gt;faster. &amp;nbsp;I was looking at the imshow command to GNUPlot and was
&lt;br&gt;surprised to see that the code seems to be converting the data to
&lt;br&gt;double. &amp;nbsp;Here is the code snippet from imshow.m:
&lt;br&gt;&lt;br&gt;========================================================
&lt;br&gt;## Set default display range if display_range not set yet.
&lt;br&gt;&amp;nbsp; if (isempty (display_range))
&lt;br&gt;&amp;nbsp; &amp;nbsp; display_range = [min(im(:)), max(im(:))];
&lt;br&gt;&amp;nbsp; elseif (isna (display_range))
&lt;br&gt;&amp;nbsp; &amp;nbsp; t = class (im);
&lt;br&gt;&amp;nbsp; &amp;nbsp; switch (t)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; case {&amp;quot;double&amp;quot;, &amp;quot;single&amp;quot;, &amp;quot;logical&amp;quot;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display_range = [0, 1];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; case {&amp;quot;int8&amp;quot;, &amp;quot;int16&amp;quot;, &amp;quot;int32&amp;quot;, &amp;quot;uint8&amp;quot;, &amp;quot;uint16&amp;quot;, &amp;quot;uint32&amp;quot;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ## For compatibility, uint8 data should not be handled as
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ## double. &amp;nbsp;Doing so is a quick fix to allow the images to be
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ## displayed correctly.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display_range = double ([intmin(t), intmax(t)]);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; otherwise
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error (&amp;quot;imshow: invalid data type for image&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; endswitch
&lt;br&gt;&amp;nbsp; endif
&lt;br&gt;======================================================
&lt;br&gt;&lt;br&gt;Notice that the uint8 data is actually converted to double. &amp;nbsp;If I read
&lt;br&gt;the code correctly that would make the transmission to GNU Plot over
&lt;br&gt;the pipe much slower. &amp;nbsp;I will have to look into the FLTK backend too.
&lt;br&gt;Again thanks for the help.
&lt;br&gt;&lt;br&gt;On Mon, Nov 23, 2009 at 2:16 AM, Carlo de Falco &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26486932&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;carlo.defalco@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 23 Nov 2009, at 12:30, Todd Rovito wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I just started to use Octave for some image processing work and have
&lt;br&gt;&amp;gt;&amp;gt; noticed how slow Octave is to display images in gnu-plot.
&lt;br&gt;&amp;gt;&amp;gt; On my 1
&lt;br&gt;&amp;gt;&amp;gt; year old Mac Book Pro it can take 5 seconds to display a 4 mega-pixel
&lt;br&gt;&amp;gt;&amp;gt; 8 bit image.  Attached is the function I use to read such image.  I am
&lt;br&gt;&amp;gt;&amp;gt; wondering if I have something installed wrong or this is a natural
&lt;br&gt;&amp;gt;&amp;gt; behavior or Octave?  Please understand I am not complaining about
&lt;br&gt;&amp;gt;&amp;gt; Octave's performance, it seems speedy on everything except for image
&lt;br&gt;&amp;gt;&amp;gt; display.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks for the help.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am afraid this is due to the way communication between Octave and gnuplot
&lt;br&gt;&amp;gt; is implemented.
&lt;br&gt;&amp;gt; As communication is implemented via pipes, transferring the image data to
&lt;br&gt;&amp;gt; gnuplot takes about
&lt;br&gt;&amp;gt; the same time as writing the whole uncompressed image data to a file and
&lt;br&gt;&amp;gt; then reading it back.
&lt;br&gt;&amp;gt; This is one of the reasons why a new graphics backend based on OpenGL is
&lt;br&gt;&amp;gt; currently under
&lt;br&gt;&amp;gt; developement.
&lt;br&gt;&amp;gt; To get an idea of the speed improvement given by the new backend you can
&lt;br&gt;&amp;gt; try:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; sombrero (500)
&lt;br&gt;&amp;gt; close all
&lt;br&gt;&amp;gt; backend ('fltk')
&lt;br&gt;&amp;gt; sombrero (500)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The difference is really impressive on my own white plastic Core 2 Duo
&lt;br&gt;&amp;gt; MacBook.
&lt;br&gt;&amp;gt; unfortunately the new backend does not yet support imshow in the current
&lt;br&gt;&amp;gt; stable release.
&lt;br&gt;&amp;gt; If this feature is important to you might want to consider joining the
&lt;br&gt;&amp;gt; developers mailing list
&lt;br&gt;&amp;gt; and helping get Octave 3.4 out soon.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; HTH,
&lt;br&gt;&amp;gt; c.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26486932&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/imshow-is-slow-on-Mac-OSX-10.5-tp26476386p26486932.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26484326</id>
	<title>Re: Need help with nelder_mead_min.m</title>
	<published>2009-11-23T11:23:35Z</published>
	<updated>2009-11-23T11:23:35Z</updated>
	<author>
		<name>macy-3</name>
	</author>
	<content type="html">I got this to work:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; function w=foo(x); w=x.*x+2;endfunction;
&lt;br&gt;&amp;gt;&amp;gt; x=[-1:.01:1];
&lt;br&gt;&amp;gt;&amp;gt; nelder_mead_min(&amp;quot;foo&amp;quot;,&amp;quot;x&amp;quot;)
&lt;br&gt;Answer &amp;nbsp; 2
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I can't figure out how to work with this function. I will be very glad if
&lt;br&gt;&amp;gt; one could explain the subject.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For an example lets see the problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; function y = foo (x, y, z)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; y = x**2 + y**2 + z**2;
&lt;br&gt;&amp;gt; endfunction
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I need to find a minima of the foo in [-1;1]*[-1;1]*[-1;1] region. I know
&lt;br&gt;&amp;gt; the answer, but how I must set up an options and arguments for
&lt;br&gt;&amp;gt; nelder_mead_min.m?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; Grigory
&lt;/div&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26484326&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-help-with-nelder_mead_min.m-tp26483786p26484326.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26484187</id>
	<title>Re: playaduio in octave 3.2.3</title>
	<published>2009-11-23T11:09:47Z</published>
	<updated>2009-11-23T11:09:47Z</updated>
	<author>
		<name>Sergei Steshenko-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;--- On Mon, 11/23/09, Jaroslav Hajek &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26484187&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;highegg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: Jaroslav Hajek &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26484187&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;highegg@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: Re: playaduio in octave 3.2.3
&lt;br&gt;&amp;gt; To: &amp;quot;Adrian pamin&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26484187&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;relleradrian@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26484187&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Date: Monday, November 23, 2009, 5:19 AM
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Sat, Nov 21, 2009 at 6:39 AM,
&lt;br&gt;&amp;gt; Adrian pamin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26484187&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;relleradrian@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; Im a little new to using octave and GNU systems but there
&lt;br&gt;&amp;gt; seems to be a problem with the playaudio() function in the
&lt;br&gt;&amp;gt; Octave 3.2.3 patch. When trying to use the playaudio(x) the
&lt;br&gt;&amp;gt; error &amp;quot;The system cannot find the path specified.&amp;quot;
&lt;br&gt;&amp;gt; I have tried this in a Vista and Win XP system yielding the
&lt;br&gt;&amp;gt; same results. Below is the code used:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; t = [0:1/8000:2]
&lt;br&gt;&amp;gt; sig3 = 0.8*sin(2*pi*3*t)
&lt;br&gt;&amp;gt; plot(t,sig3)
&lt;br&gt;&amp;gt; playaudio(sig3)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; My friends and professor are stumped with this error as
&lt;br&gt;&amp;gt; they can use the function without problems on a Linux and
&lt;br&gt;&amp;gt; Mac OS. Is this possibly a Windows problem? would switching
&lt;br&gt;&amp;gt; to a VM or dual booting help? Thanks in advance...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; I'm afraid the current playaudio is only designed to
&lt;br&gt;&amp;gt; run on Unix systems, because all it does is send data to
&lt;br&gt;&amp;gt; /dev/dsp or /dev/audio. There could probably be an
&lt;br&gt;&amp;gt; alternative path for Windows, using a temporary wav file or
&lt;br&gt;&amp;gt; something similar.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; hth
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; RNDr. Jaroslav Hajek
&lt;br&gt;&amp;gt; computing expert &amp; GNU Octave developer
&lt;br&gt;&amp;gt; Aeronautical Research and Test Institute (VZLU)
&lt;br&gt;&amp;gt; Prague, Czech Republic
&lt;br&gt;&amp;gt; url: www.highegg.matfyz.cz
&lt;/div&gt;&lt;br&gt;&lt;br&gt;'sox' works both on Linux and Windows and can accept data from stdin.
&lt;br&gt;&lt;br&gt;Under Windows sox' needs CYGWIN dll, but, I think, 'sox' is distributed in
&lt;br&gt;binary for with the dll. I.e. in practical terms it behaves like regular
&lt;br&gt;Windows console application - it doesn't need full fledged CYGWIN.
&lt;br&gt;&lt;br&gt;It might make sense to implement octave -&amp;gt; sox interface.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&amp;nbsp; Sergei.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26484187&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/playaduio-in-octave-3.2.3-tp26477798p26484187.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26483786</id>
	<title>Need help with nelder_mead_min.m</title>
	<published>2009-11-23T10:43:57Z</published>
	<updated>2009-11-23T10:43:57Z</updated>
	<author>
		<name>Григорий Полётов</name>
	</author>
	<content type="html">&lt;div&gt;Hi all!&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I can&amp;#39;t figure out how to work with this function. I will be very glad if one could explain the subject.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;For an example lets see the problem.&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;function y = foo (x, y, z)&lt;/div&gt;&lt;div&gt;    y = x**2 + y**2 + z**2;&lt;/div&gt;&lt;div&gt;endfunction&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I need to find a minima of the foo in [-1;1]*[-1;1]*[-1;1] region. I know the answer, but how I must set up an options and arguments for nelder_mead_min.m?&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Best regards,&lt;/div&gt;&lt;div&gt;Grigory &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26483786&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-help-with-nelder_mead_min.m-tp26483786p26483786.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26483135</id>
	<title>Re: Printing a figure as a png... This should be basic!</title>
	<published>2009-11-23T10:04:58Z</published>
	<updated>2009-11-23T10:04:58Z</updated>
	<author>
		<name>George Barrick</name>
	</author>
	<content type="html">&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2009.11.23.13:04:51 EST
&lt;br&gt;&lt;br&gt;Hi Kristen (and octave folks),
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I've been using only the 'print' command
&lt;br&gt;in octave-3.2.3 to do the kind of thing that
&lt;br&gt;you need:
&lt;br&gt;&lt;br&gt;print(handle,&amp;quot;graph.png&amp;quot;,&amp;quot;-dpng&amp;quot;,&amp;quot;-S429,348&amp;quot;);
&lt;br&gt;&lt;br&gt;I've trained myself to stay off the gnuplot
&lt;br&gt;calls. &amp;nbsp;The octave developers keep saying
&lt;br&gt;'gnuplot calls deprecated'. 
&lt;br&gt;&lt;br&gt;It is likely that the 'handle' argument is not
&lt;br&gt;needed when the current graph is the only one.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I've been using double-quotes for the
&lt;br&gt;arguments. &amp;nbsp;Again, I'm not certain that this is
&lt;br&gt;absolutely required, but it works for me under
&lt;br&gt;the CygWin/bash/octave environment with the
&lt;br&gt;Xwin.exe version of x11.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The last argument is how I force the
&lt;br&gt;image exporter (I believe that this is
&lt;br&gt;ImageMagick ?) to give my output image the
&lt;br&gt;correct proportions.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Try the 'print' call as above. &amp;nbsp;If it
&lt;br&gt;does not work, then perhaps you have found
&lt;br&gt;a bug.
&lt;br&gt;&lt;br&gt;George &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26483135&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gbarrick@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26483135&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Printing-a-figure-as-a-png...-This-should-be-basic%21-tp26448695p26483135.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26482840</id>
	<title>Re: Passing an array from java to octave</title>
	<published>2009-11-23T09:42:32Z</published>
	<updated>2009-11-23T09:42:32Z</updated>
	<author>
		<name>George Kousiouris</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
&lt;br&gt;
Hi Kim,all&lt;br&gt;
&lt;br&gt;
thanks, I have been using this, however the problem is when you want to
pass values from an existing java array to an octave array. The fact
that the octave array type is an OctaveMatrix type (extension of&amp;nbsp;
OctaveType), complicates a bit things. So I have&amp;nbsp; written this somehow
crude but effective&amp;nbsp; script for&amp;nbsp; copying one by one the&amp;nbsp; elements of
the java array to the&amp;nbsp; octave workspace. I&amp;nbsp; attach the code, it
creates&amp;nbsp; a&amp;nbsp; 10x5 array (easily made as parameters) , initializes the
values&amp;nbsp; to 5 and then passes it to&amp;nbsp; octave. Just for future reference
if someone else needs it.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; OctaveEngine octave = new
OctaveEngineFactory().getScriptEngine();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int rows=10;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int columns=5;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; OctaveMatrix arr=new OctaveMatrix(rows,columns);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int octave_array_index_offset_r,octave_array_index_offset_c;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //Creation and initialization of test array&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int[][] a2 = new int[10][5];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // print array in rectangular form&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (int r=0; r&amp;lt;a2.length; r++) {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (int c=0; c&amp;lt;a2[r].length; c++) {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; a2[r][c]=5;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.print(&quot; &quot; + a2[r][c]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; octave_array_index_offset_r=r+1; //octave measures
array indexes from 1, java from 0&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; octave_array_index_offset_c=c+1;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; //Passing of array to octave workspace&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
octave.eval(&quot;arr(&quot;+octave_array_index_offset_r+&quot;,&quot;+octave_array_index_offset_c+&quot;)=&quot;+a2[r][c]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;&quot;);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //Saving of variables to octave file&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; octave.eval(&quot;save params.m arr&quot;);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; octave.close();&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Kim Hansen wrote:
&lt;blockquote cite=&quot;mid:c878e2290911220420n230356b8g78e7c34c7849b92c@mail.gmail.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;2009/11/2 George Kousiouris &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482840&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gkousiou@...&lt;/a&gt;:
  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;Hi all,

I want to pass a Java array to Octave, so that I can process the data
inside. Does anyone have an idea how this can be done? I have tried a
java to octave bridge (javaoctave-0.4.0.jar) however this seems to be
only for executing Octave commands inside a Java program and not
actually passing data from Java to Octave...
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
JavaOctave can transfer many different types of data between Java and Octave.

In the following simple example &quot;a&quot; is a 2x2 matrix that is passed
from Java to Octave and &quot;b&quot; is pulled out of Octave.

The example is from:
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://kenai.com/projects/javaoctave/pages/SimpleExampleOfJavaOctaveUsage&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://kenai.com/projects/javaoctave/pages/SimpleExampleOfJavaOctaveUsage&lt;/a&gt;
==============
 final OctaveEngine octave = new OctaveEngineFactory().getScriptEngine();
 final OctaveMatrix a = new OctaveMatrix(new double[] { 1, 2, 3, 4 }, 2, 2);
 octave.put(&quot;a&quot;, a);
 final String func = &quot;&quot; //
         + &quot;function res = my_func(a)\n&quot; //
         + &quot; res = 2 * a;\n&quot; //
         + &quot;endfunction\n&quot; //
         + &quot;&quot;;
 octave.eval(func);
 octave.eval(&quot;b = my_func(a);&quot;);
 final OctaveMatrix b = octave.get(&quot;b&quot;);
 octave.close();
==============

  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482840&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Passing-an-array-from-java-to-octave-tp26167686p26482840.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26482046</id>
	<title>RE: Printing a figure as a png... This should be basic!</title>
	<published>2009-11-23T08:56:30Z</published>
	<updated>2009-11-23T08:56:30Z</updated>
	<author>
		<name>Frie, Eddie J</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=utf-8&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Here is some working example code I use in Octave:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;figure(4);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;plot (freq_dev_array/1e9,ild,&amp;quot;;insertion loss
deviation;&amp;quot;, freq_dev_array/1e9, -il_max, &amp;quot;;bottom
limit;&amp;quot;,freq_dev_array/1e9,il_max,&amp;quot;;top limit;&amp;quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;title('Insertion loss deviation');&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;xlabel('Freq (Ghz)');&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;ylabel('ILD (db)');&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;grid on&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;print -dpng x.png&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;in gnuplot I use:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;set terminal png  font &amp;quot;arial, 30&amp;quot; size 3200, 2400
transparent&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;set output ‘foo.png’&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;I hope this helps.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;-Eddie Frie&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;(Not speaking for Intel)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt; Kristen Richter
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482046&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;christy1865@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Friday, November 20, 2009 11:06 AM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482046&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;help@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Printing a figure as a png... This should be basic!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;Hi Octave family,&lt;br&gt;
&lt;br&gt;
I feel rather embarrassed, but I have been unable to print a figure as a png
despite several searches on help forums.&lt;br&gt;
&lt;br&gt;
The commands I am using are as follows:&lt;br&gt;
print('graph.png','-dpng')&lt;br&gt;
&lt;br&gt;
And I get the following error:&lt;br&gt;
&lt;br&gt;
octave:13&amp;gt; print('graph1','-dpng')&lt;br&gt;
&lt;br&gt;
gnuplot&amp;gt; set terminal png enhanced&amp;nbsp; size 1200,900&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
^&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line 0: unknown or ambiguous
terminal type; type just 'set terminal' for a list&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line 0: No terminal defined&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
gnuplot&amp;gt; plot &amp;quot;-&amp;quot; binary format='%float64' record=15 using
($1):($2) axes x1y1 title &amp;quot;&amp;quot; with lines linestyle 1 , &amp;quot;-&amp;quot;
binary format='%float64' record=15 using ($1):($2) axes x1y1 title &amp;quot;&amp;quot;
with lines linestyle 2 , &amp;quot;-&amp;quot; binary format='%float64' record=15 using
($1):($2) axes x1y1 title &amp;quot;&amp;quot; with lines linestyle 3 , &amp;quot;-&amp;quot;
binary format='%float64' record=15 using ($1):($2) axes x1y1 title &amp;quot;&amp;quot;
with lines linestyle 4 , &amp;quot;-&amp;quot; binary format='%float64' record=15 using
($1):($2) axes x1y1 title &amp;quot;&amp;quot; with lines linestyle 5 , &amp;quot;-&amp;quot;
binary format='%float64' record=15 using ($1):($2) axes x1y1 title &amp;quot;&amp;quot;
with lines linestyle 6 ;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
^&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line 0: use 'set term' to set
terminal type first&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
gnuplot&amp;gt; @&lt;span style='font-family:&quot;Arial Unicode MS&quot;,&quot;sans-serif&quot;'&gt;������&lt;/span&gt;g@&lt;span style='font-family:&quot;Arial Unicode MS&quot;,&quot;sans-serif&quot;'&gt;��&lt;/span&gt;~&lt;span style='font-family:&quot;Arial Unicode MS&quot;,&quot;sans-serif&quot;'&gt;���&lt;/span&gt;(@&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line 0: invalid character @&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
gnuplot&amp;gt; &lt;span style='font-family:&quot;Arial Unicode MS&quot;,&quot;sans-serif&quot;'&gt;��&lt;/span&gt;#)@&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line 0: invalid character &lt;span style='font-family:&quot;Arial Unicode MS&quot;,&quot;sans-serif&quot;'&gt;�&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
This error also applies to attempting to print as a jpeg, but not as an eps...
Perhaps because it doesn't have to convert the file?&lt;br&gt;
&lt;br&gt;
Searching google for the first two lines of the error message gives results
reporting problems related to a multitude of plotting functionalities in
multiple versions of Octave on different operating systems. Is there something
simple I can correct to print a png (running Octave 3.2.2 and Ubuntu)?&lt;br&gt;
&lt;br&gt;
Thank you in advance for your help. I'd appreciate any advice.&lt;br&gt;
&lt;br&gt;
-Kristen&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482046&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Printing-a-figure-as-a-png...-This-should-be-basic%21-tp26448695p26482046.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26479874</id>
	<title>Re: bwlabeln or 3d version of bwlabel</title>
	<published>2009-11-23T07:10:23Z</published>
	<updated>2009-11-23T07:10:23Z</updated>
	<author>
		<name>tinku99</name>
	</author>
	<content type="html">&lt;br&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;&amp;gt; Is there an opensource implementation for multidimensional connected&lt;br&gt;


&amp;gt; component labeling?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Not that I know of. If you find one or decides to implement yourself,&lt;br&gt;
please let me know, as that would be a valuable contribution to the&lt;br&gt;
&amp;#39;image&amp;#39; package.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;div&gt;The scipy.ndimage has a label function.  &lt;br&gt;&lt;br&gt;
&lt;a href=&quot;http://www.google.com/codesearch/p?hl=en&amp;amp;sa=N&amp;amp;cd=1&amp;amp;ct=rc#sL5YdHMOlIg/scipy-0.4.9/Lib/ndimage/src/ni_measure.c&amp;amp;q=ndimage%20numpy&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/codesearch/p?hl=en&amp;amp;sa=N&amp;amp;cd=1&amp;amp;ct=rc#sL5YdHMOlIg/scipy-0.4.9/Lib/ndimage/src/ni_measure.c&amp;amp;q=ndimage%20numpy&lt;/a&gt;&lt;br&gt;


&lt;br&gt;
&lt;a href=&quot;http://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.measurements.label.html#scipy.ndimage.measurements.label&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.measurements.label.html#scipy.ndimage.measurements.label&lt;/a&gt;&lt;br&gt;


&lt;br&gt;
the ndimage is advertised for multidimensional arrays.  The label function does not specifically list any limitations for dim &amp;gt; 2.  I will see if I can translate it to octave, but i haven&amp;#39;t been able to compile octave on mingw yet... Had trouble finding the glob library that is supposed to be on the octave website : &lt;a href=&quot;http://hg.savannah.gnu.org/hgweb/octave/file/8d9e4752441a/README.MSVC&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hg.savannah.gnu.org/hgweb/octave/file/8d9e4752441a/README.MSVC&lt;/a&gt;&lt;br&gt;

&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26479874&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bwlabeln-or-3d-version-of-bwlabel-tp26472425p26479874.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26477927</id>
	<title>Re: playaduio in octave 3.2.3</title>
	<published>2009-11-23T05:19:10Z</published>
	<updated>2009-11-23T05:19:10Z</updated>
	<author>
		<name>Jaroslav Hajek-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Nov 21, 2009 at 6:39 AM, Adrian pamin &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26477927&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;relleradrian@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;&lt;div style=&quot;font-family: tahoma,new york,times,serif; font-size: 8pt;&quot;&gt;&lt;div&gt;Hi,&lt;br&gt;Im a little new to using octave and GNU systems but there seems to be a problem with the playaudio() function in the Octave 3.2.3 patch. When trying to use the playaudio(x) the error &amp;quot;The system cannot find the path specified.&amp;quot; I have tried this in a Vista and Win XP system yielding the same results. Below is the code used:&lt;br&gt;
&lt;br&gt;t = [0:1/8000:2]&lt;br&gt;sig3 = 0.8*sin(2*pi*3*t)&lt;br&gt;plot(t,sig3)&lt;br&gt;playaudio(sig3)&lt;br&gt;&lt;br&gt;My friends and professor are stumped with this error as they can use the function without problems on a Linux and Mac OS. Is this possibly a Windows problem? would switching to a VM or dual booting help? Thanks in advance...&lt;br&gt;
&lt;/div&gt;

&lt;/div&gt;&lt;br&gt;

      &lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;I&amp;#39;m afraid the current playaudio is only designed to run on Unix systems, because all it does is send data to /dev/dsp or /dev/audio. There could probably be an alternative path for Windows, using a temporary wav file or something similar.&lt;br clear=&quot;all&quot;&gt;
&lt;br&gt;hth&lt;br&gt;&lt;br&gt;-- &lt;br&gt;RNDr. Jaroslav Hajek&lt;br&gt;computing expert &amp;amp; GNU Octave developer&lt;br&gt;Aeronautical Research and Test Institute (VZLU)&lt;br&gt;Prague, Czech Republic&lt;br&gt;url: &lt;a href=&quot;http://www.highegg.matfyz.cz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.highegg.matfyz.cz&lt;/a&gt;&lt;br&gt;

&lt;br /&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26477927&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/playaduio-in-octave-3.2.3-tp26477798p26477927.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26477178</id>
	<title>Re: imshow is slow on Mac OSX 10.5</title>
	<published>2009-11-23T04:16:37Z</published>
	<updated>2009-11-23T04:16:37Z</updated>
	<author>
		<name>Carlo de Falco-2</name>
	</author>
	<content type="html">&lt;br&gt;On 23 Nov 2009, at 12:30, Todd Rovito wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I just started to use Octave for some image processing work and have
&lt;br&gt;&amp;gt; noticed how slow Octave is to display images in gnu-plot.
&lt;br&gt;&amp;gt; On my 1
&lt;br&gt;&amp;gt; year old Mac Book Pro it can take 5 seconds to display a 4 mega-pixel
&lt;br&gt;&amp;gt; 8 bit image. &amp;nbsp;Attached is the function I use to read such image. &amp;nbsp;I am
&lt;br&gt;&amp;gt; wondering if I have something installed wrong or this is a natural
&lt;br&gt;&amp;gt; behavior or Octave? &amp;nbsp;Please understand I am not complaining about
&lt;br&gt;&amp;gt; Octave's performance, it seems speedy on everything except for image
&lt;br&gt;&amp;gt; display.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for the help.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;I am afraid this is due to the way communication between Octave and &amp;nbsp;
&lt;br&gt;gnuplot is implemented.
&lt;br&gt;As communication is implemented via pipes, transferring the image data &amp;nbsp;
&lt;br&gt;to gnuplot takes about
&lt;br&gt;the same time as writing the whole uncompressed image data to a file &amp;nbsp;
&lt;br&gt;and then reading it back.
&lt;br&gt;This is one of the reasons why a new graphics backend based on OpenGL &amp;nbsp;
&lt;br&gt;is currently under
&lt;br&gt;developement.
&lt;br&gt;To get an idea of the speed improvement given by the new backend you &amp;nbsp;
&lt;br&gt;can try:
&lt;br&gt;&lt;br&gt;sombrero (500)
&lt;br&gt;close all
&lt;br&gt;backend ('fltk')
&lt;br&gt;sombrero (500)
&lt;br&gt;&lt;br&gt;The difference is really impressive on my own white plastic Core 2 Duo &amp;nbsp;
&lt;br&gt;MacBook.
&lt;br&gt;unfortunately the new backend does not yet support imshow in the &amp;nbsp;
&lt;br&gt;current stable release.
&lt;br&gt;If this feature is important to you might want to consider joining the &amp;nbsp;
&lt;br&gt;developers mailing list
&lt;br&gt;and helping get Octave 3.4 out soon.
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;c.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26477178&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/imshow-is-slow-on-Mac-OSX-10.5-tp26476386p26477178.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26476386</id>
	<title>imshow is slow on Mac OSX 10.5</title>
	<published>2009-11-23T03:30:17Z</published>
	<updated>2009-11-23T03:30:17Z</updated>
	<author>
		<name>Todd Rovito</name>
	</author>
	<content type="html">I just started to use Octave for some image processing work and have
&lt;br&gt;noticed how slow Octave is to display images in gnu-plot. &amp;nbsp;On my 1
&lt;br&gt;year old Mac Book Pro it can take 5 seconds to display a 4 mega-pixel
&lt;br&gt;8 bit image. &amp;nbsp;Attached is the function I use to read such image. &amp;nbsp;I am
&lt;br&gt;wondering if I have something installed wrong or this is a natural
&lt;br&gt;behavior or Octave? &amp;nbsp;Please understand I am not complaining about
&lt;br&gt;Octave's performance, it seems speedy on everything except for image
&lt;br&gt;display.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks for the help.
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476386&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;ReadRawImage.m&lt;/strong&gt; (446 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26476386/0/ReadRawImage.m&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/imshow-is-slow-on-Mac-OSX-10.5-tp26476386p26476386.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26473882</id>
	<title>Re: bwlabeln or 3d version of bwlabel</title>
	<published>2009-11-22T23:43:40Z</published>
	<updated>2009-11-22T23:43:40Z</updated>
	<author>
		<name>Søren Hauberg</name>
	</author>
	<content type="html">søn, 22 11 2009 kl. 22:37 -0500, skrev Naveen Garg:
&lt;br&gt;&amp;gt; Is there an opensource implementation for multidimensional connected
&lt;br&gt;&amp;gt; component labeling? 
&lt;br&gt;&lt;br&gt;Not that I know of. If you find one or decides to implement yourself,
&lt;br&gt;please let me know, as that would be a valuable contribution to the
&lt;br&gt;'image' package.
&lt;br&gt;&lt;br&gt;Søren
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473882&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bwlabeln-or-3d-version-of-bwlabel-tp26472425p26473882.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26472506</id>
	<title>Re: fltk backend and undefined gluOrtho2D</title>
	<published>2009-11-22T20:00:44Z</published>
	<updated>2009-11-22T20:00:44Z</updated>
	<author>
		<name>JSampaio57</name>
	</author>
	<content type="html">I had the same problem. I could compile with no problem after installing libftgl-dev.
&lt;br&gt;Cheers...
&lt;br&gt;Jorge
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Jeff Keacher wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;John W. Eaton-3 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;On 21-Jul-2009, teuobk wrote:
&lt;br&gt;&lt;br&gt;| John W. Eaton-3 wrote:
&lt;br&gt;| &amp;gt; 
&lt;br&gt;| &amp;gt; On 16-Jul-2009, Alexander Barth wrote:
&lt;br&gt;| &amp;gt; 
&lt;br&gt;| &amp;gt; | Hi all,
&lt;br&gt;| &amp;gt; | I try to compile a recent checkout of octave (from
&lt;br&gt;| &amp;gt; | &lt;a href=&quot;http://www.octave.org/hg/octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.octave.org/hg/octave&lt;/a&gt;). The compilation fails at:
&lt;br&gt;| &amp;gt; | 
&lt;br&gt;| &amp;gt; | ./DLD-FUNCTIONS/fltk_backend.cc: In member function �3u=1rxvirtual void
&lt;br&gt;| &amp;gt; | OpenGL_fltk::draw_overlay()�3u=1ry:
&lt;br&gt;| &amp;gt; | ./DLD-FUNCTIONS/fltk_backend.cc:145: error: �3u=1rxgluOrtho2D�3u=1ry was not
&lt;br&gt;| &amp;gt; | declared in this scope
&lt;br&gt;| &amp;gt; | 
&lt;br&gt;| &amp;gt; | I have fltk version 1.1.7. Is this version recent enough? On my system
&lt;br&gt;| &amp;gt; | gluOrtho2D is declared in /usr/include/GL/glu.h but this file is not
&lt;br&gt;| &amp;gt; | included in fltk_backend.cc.
&lt;br&gt;| &amp;gt; 
&lt;br&gt;| &amp;gt; On my system, /usr/include/GL/glu.h is part of the libglu1-mesa-dev
&lt;br&gt;| &amp;gt; package, and the version of that package is 7.0.3. &amp;nbsp;I also have
&lt;br&gt;| &amp;gt; version 1.1.9 of libfltk1.1-dev. 
&lt;br&gt;| &amp;gt; 
&lt;br&gt;| 
&lt;br&gt;| Ran into this problem, too. &amp;nbsp;I have fltk 1.1.9 on an Intrepid-release Ubuntu
&lt;br&gt;| box, and I was trying to compile Octave 3.2.0 from source. &amp;nbsp;My solution was
&lt;br&gt;| to edit fltk_backend.cc to #include &amp;lt;FL/glu.h&amp;gt; . &amp;nbsp;Now everything builds
&lt;br&gt;| fine, and all of the integrated tests pass.
&lt;br&gt;&lt;br&gt;Strange that you need to include this file and I don't. &amp;nbsp;Does anyone
&lt;br&gt;know why that might be?
&lt;br&gt;&lt;br&gt;At least on my system, the file FL/glu.h doesn't appear to declare
&lt;br&gt;gluOrtho2D directly, but gets the declaration when it includes
&lt;br&gt;GL/glu.h.
&lt;br&gt;&lt;br&gt;The file src/DLD-FUNCTIONS/fltk_backend.cc includes gl-render.h which
&lt;br&gt;includes GL/glu.h if it exists. &amp;nbsp;So if everything is configured
&lt;br&gt;correctly, I think the symbol gluOrtho2D should be defined correctly,
&lt;br&gt;and no changes should be required.
&lt;br&gt;&lt;br&gt;Does your system have GL/glu.h? &amp;nbsp;Does it provide a declaration for
&lt;br&gt;the gluOrtho2D function? &amp;nbsp;Does Octave's configure script find GL/glu.h
&lt;br&gt;and define HAVE_GL_GLU_H on your system?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Indeed, gluOrtho2D is declared in GL/glu.h. &amp;nbsp;I included it (indirectly) via FL/glu.h mainly for consistency with the other includes in that file, which tend to pull from the FL directory.
&lt;br&gt;&lt;br&gt;Curiously, Octave's configuration script seems to find GL/glu.h, as it defines HAVE_GL_GLU_H. &amp;nbsp;Since that is defined, GL/glu.h should be included via gl-render.h, which of course is included conditionally if HAVE_GL_GLU_H is defined -- but that didn't seem to be happening.
&lt;br&gt;&lt;br&gt;To make matters worse, I backed out the change to fltk_backend.cc, ran make clean, and tried the build again in an attempt to reproduce the problem. &amp;nbsp;This time the build completed without errors. &amp;nbsp;Odd. &amp;nbsp;I assume that something is sticking around from the previous builds, but I'm not sure what it could be.
&lt;br&gt;&lt;br&gt;Jeff
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fltk-backend-and-undefined-gluOrtho2D-tp24513000p26472506.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26472425</id>
	<title>bwlabeln or 3d version of bwlabel</title>
	<published>2009-11-22T19:37:26Z</published>
	<updated>2009-11-22T19:37:26Z</updated>
	<author>
		<name>tinku99</name>
	</author>
	<content type="html">Is there an opensource implementation for multidimensional connected component labeling? &lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472425&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bwlabeln-or-3d-version-of-bwlabel-tp26472425p26472425.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26471817</id>
	<title>Re: calling octave from C</title>
	<published>2009-11-22T18:04:25Z</published>
	<updated>2009-11-22T18:04:25Z</updated>
	<author>
		<name>Judd Storrs</name>
	</author>
	<content type="html">On Sun, Nov 22, 2009 at 4:04 PM, Jaroslav Hajek &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471817&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;highegg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; As a matter of fact, I do *not* really understand how this conclusion
&lt;br&gt;&amp;gt; follows from the text of GPL 3, I just trust the FAQ. I respect the opinion
&lt;br&gt;&lt;br&gt;I can't say that I do either. I think the FSF avoids specific language
&lt;br&gt;within the FAQ statements purposefully to avoid helping scumbags find
&lt;br&gt;holes in the licenses.
&lt;br&gt;&lt;br&gt;Based on the FAQ entry it may be that if someone were to create a new
&lt;br&gt;program that combines octave, pytave and python into a new
&lt;br&gt;GPL-licensed single work then it may be possible to monkey with what
&lt;br&gt;has been said in the FAQ. That said, the FAQ is not the GPL so who
&lt;br&gt;knows if that would be successful at all anyway.
&lt;br&gt;&lt;br&gt;In any case octave+pytave+python is not currently a single work and
&lt;br&gt;the FAQ entry applies immediately to pytave's relationship to python.
&lt;br&gt;Again, sorry for the noise.
&lt;br&gt;&lt;br&gt;&lt;br&gt;--judd
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471817&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-octave-from-C-tp26410988p26471817.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26471101</id>
	<title>Re: exporting sparse matrix or inverse of spconvert</title>
	<published>2009-11-22T16:19:47Z</published>
	<updated>2009-11-22T16:19:47Z</updated>
	<author>
		<name>dbateman</name>
	</author>
	<content type="html">tinku99 wrote:
&lt;br&gt;&amp;gt; I want access to the 3 vectors representing rows, columns, and values of my
&lt;br&gt;&amp;gt; sparse matrix. 
&lt;br&gt;&amp;gt; Is there a way to get at these easier than having to iterate through the
&lt;br&gt;&amp;gt; nonsparse matrix? 
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;Is there anything wrong with
&lt;br&gt;&lt;br&gt;[r, c, v] = find (S);
&lt;br&gt;&lt;br&gt;D.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471101&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/exporting-sparse-matrix-or-inverse-of-spconvert-tp26471004p26471101.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26471050</id>
	<title>Re: exporting sparse matrix or inverse of spconvert</title>
	<published>2009-11-22T16:17:01Z</published>
	<updated>2009-11-22T16:17:01Z</updated>
	<author>
		<name>tinku99</name>
	</author>
	<content type="html">ok, find does it... 
&lt;br&gt;&amp;nbsp; [i, j, v] = find (a);
&lt;br&gt;somehow i skipped over that in the octave manual
&lt;br&gt;luckily searching the matlab google group found it easily
&lt;br&gt;&lt;a href=&quot;http://www.google.com/groups/search?ie=UTF-8&amp;q=spconvert&amp;btnG=Search&amp;sitesearch=groups.google.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/groups/search?ie=UTF-8&amp;q=spconvert&amp;btnG=Search&amp;sitesearch=groups.google.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;tinku99 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;I want access to the 3 vectors representing rows, columns, and values of my sparse matrix. 
&lt;br&gt;Is there a way to get at these easier than having to iterate through the nonsparse matrix? 
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/exporting-sparse-matrix-or-inverse-of-spconvert-tp26471004p26471050.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26471004</id>
	<title>exporting sparse matrix or inverse of spconvert</title>
	<published>2009-11-22T16:08:37Z</published>
	<updated>2009-11-22T16:08:37Z</updated>
	<author>
		<name>tinku99</name>
	</author>
	<content type="html">I want access to the 3 vectors representing rows, columns, and values of my sparse matrix. 
&lt;br&gt;Is there a way to get at these easier than having to iterate through the nonsparse matrix? 
&lt;br&gt;&lt;br&gt;I am trying to find the orientation of the largest connected region in a binary image as follows: 
&lt;br&gt;&lt;br&gt;I need a column and row vectors of the sparse matrix to feed fitellipse.m &amp;nbsp;by fitzgibbon here: 
&lt;br&gt;&lt;a href=&quot;http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/FITZGIBBON/ELLIPSE/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/FITZGIBBON/ELLIPSE/&lt;/a&gt;&lt;br&gt;&lt;br&gt;I am able to get the largest connected region with the following: 
&lt;br&gt;&lt;br&gt;% Copyright 2009 Naveen Garg (naveen.garg@gmail.com)
&lt;br&gt;% GPL V2 &lt;a href=&quot;http://www.gnu.org/licenses/gpl-2.0.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gnu.org/licenses/gpl-2.0.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;function largest_blob = maxregion(binary_image)
&lt;br&gt;% $$$ &amp;nbsp; return region with largest area for given binary image
&lt;br&gt;&amp;nbsp; [labeled_image, num] = bwlabel(binary_image);
&lt;br&gt;&amp;nbsp; [N, X]=imhist(labeled_image, num + 1);
&lt;br&gt;&amp;nbsp; N(1) = 0;
&lt;br&gt;&amp;nbsp; [max,index_max] = max(N);
&lt;br&gt;&amp;nbsp; largest_blob = (labeled_image == (index_max - 1)); 
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/exporting-sparse-matrix-or-inverse-of-spconvert-tp26471004p26471004.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26469502</id>
	<title>Re: calling octave from C</title>
	<published>2009-11-22T13:04:12Z</published>
	<updated>2009-11-22T13:04:12Z</updated>
	<author>
		<name>Jaroslav Hajek-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sun, Nov 22, 2009 at 5:54 PM, Judd Storrs &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26469502&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;storrsjm@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Sorry, I think it&amp;#39;s pretty clear I was being dense. It&amp;#39;s pretty&lt;br&gt;
obvious that using pytave is a binary link into octave and should&lt;br&gt;
invoke the full GPL on python scripts that use it. Using pytave is&lt;br&gt;
equivalent to using the .oct interface not m-files. Which should have&lt;br&gt;
been pretty obvious to me. How embarrassing. Sorry for the noise.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
&lt;br&gt;
--judd&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;Now I don&amp;#39;t know if you&amp;#39;re serious :)&lt;br&gt;Maybe there was some confusion that is to be blamed. You thought (or at least said) that we&amp;#39;re adding new restrictions to the GPL in Pytave; we&amp;#39;re not. We&amp;#39;re just using the GPL, and also respect the FSF&amp;#39;s authority regarding specific licensing implications.&lt;br&gt;
And the FSF&amp;#39;s FAQ states that if a script uses Pytave, it is &amp;quot;effectively linked to&amp;quot; Octave (hence must comply with GPL).&lt;br&gt;As a matter of fact, I do *not* really understand how this conclusion follows from the text of GPL 3, I just trust the FAQ. I respect the opinion of FSF because they probably studied GPL-related issues more than most GPL developers, and as creators they should think in accordance with the &amp;quot;spirit&amp;quot; of GPL. But of course even FSF can be wrong.&lt;br&gt;
&lt;br&gt;If the licensing issues pose a problem for your work; I&amp;#39;d suggest you still contact the FSF; maybe they can advise something. &lt;br&gt;&lt;br&gt;best regards&lt;br&gt;&lt;br&gt;-- &lt;br&gt;RNDr. Jaroslav Hajek&lt;br&gt;computing expert &amp;amp; GNU Octave developer&lt;br&gt;
Aeronautical Research and Test Institute (VZLU)&lt;br&gt;Prague, Czech Republic&lt;br&gt;url: &lt;a href=&quot;http://www.highegg.matfyz.cz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.highegg.matfyz.cz&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26469502&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-octave-from-C-tp26410988p26469502.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26467073</id>
	<title>Re: calling octave from C</title>
	<published>2009-11-22T08:54:43Z</published>
	<updated>2009-11-22T08:54:43Z</updated>
	<author>
		<name>Judd Storrs</name>
	</author>
	<content type="html">Sorry, I think it's pretty clear I was being dense. It's pretty
&lt;br&gt;obvious that using pytave is a binary link into octave and should
&lt;br&gt;invoke the full GPL on python scripts that use it. Using pytave is
&lt;br&gt;equivalent to using the .oct interface not m-files. Which should have
&lt;br&gt;been pretty obvious to me. How embarrassing. Sorry for the noise.
&lt;br&gt;&lt;br&gt;&lt;br&gt;--judd
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467073&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-octave-from-C-tp26410988p26467073.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26466705</id>
	<title>Re: CUDA acceleration in GNU Octave</title>
	<published>2009-11-22T08:21:27Z</published>
	<updated>2009-11-22T08:21:27Z</updated>
	<author>
		<name>Chengqi Chang</name>
	</author>
	<content type="html">Well, I've underestimated Nv's plot.
&lt;br&gt;-- 
&lt;br&gt;Best Regards
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sincerely Yours
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Chengqi Chang
&lt;br&gt;-------------------------------
&lt;br&gt;China Center for Economic Research
&lt;br&gt;Peking University, P.R. China
&lt;br&gt;Gtalk/MSN: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26466705&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;XaeroChina@...&lt;/a&gt;
&lt;br&gt;Personal Website: &lt;a href=&quot;http://Macro2.cn&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://Macro2.cn&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26466705&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CUDA-acceleration-in-GNU-Octave-tp26443596p26466705.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26466894</id>
	<title>Re: CUDA acceleration in GNU Octave</title>
	<published>2009-11-22T08:02:22Z</published>
	<updated>2009-11-22T08:02:22Z</updated>
	<author>
		<name>David Grundberg-2</name>
	</author>
	<content type="html">Chengqi Chang skrev:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sun, 22 Nov 2009 21:39:44 +0800, John W. Eaton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26466894&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jwe@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; On 22-Nov-2009, Chengqi Chang wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; | I think it would be great if someone can provide a &amp;quot;bridge&amp;quot; -- like MPI
&lt;br&gt;&amp;gt;&amp;gt; | toolbox(&lt;a href=&quot;http://atc.ugr.es/javier-bin/mpitb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://atc.ugr.es/javier-bin/mpitb&lt;/a&gt;) -- connecting Octave and &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; CUDA
&lt;br&gt;&amp;gt;&amp;gt; | computing libraries. Besides, in my opinion, it matters little whether
&lt;br&gt;&amp;gt;&amp;gt; | this &amp;quot;bridge&amp;quot; is universal or tied to a single vendor (Nv/ATI). Both of
&lt;br&gt;&amp;gt;&amp;gt; | the two choices have merits and drawbacks. If it is tied to a single
&lt;br&gt;&amp;gt;&amp;gt; | vendor, it can be easier to take advantage of some special features of &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt; | GPU and it also has a larger possibility to get donation from that &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; vendor.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Are the libraries that take advantage of this single vendor
&lt;br&gt;&amp;gt;&amp;gt; distributed under a license that is compatible with the GPL?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If so, then I think this would be acceptable, but not great as it is
&lt;br&gt;&amp;gt;&amp;gt; still ties you to a single vendor.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If not, then you would not be able to distribute .oct files that
&lt;br&gt;&amp;gt;&amp;gt; require these libraries, and such an extension would never become a
&lt;br&gt;&amp;gt;&amp;gt; part of the core Octave itself. &amp;nbsp;The Octave project is about software
&lt;br&gt;&amp;gt;&amp;gt; freedom, not about promoting links to proprietary software, or
&lt;br&gt;&amp;gt;&amp;gt; encouraging users to lock themselves into single-vendor solutions.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; jwe
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; GPL compatibility depends on how the libraries use CUDA -- if the libs &amp;nbsp;
&lt;br&gt;&amp;gt; only call them, GPL can be retained.
&lt;br&gt;&amp;gt; Since there are limited numbers of popular vendors, it is possible to &amp;nbsp;
&lt;br&gt;&amp;gt; initialize different projects. Once you buy your graphic card, you are &amp;nbsp;
&lt;br&gt;&amp;gt; actually tied to a vendor.
&lt;br&gt;&amp;gt; BTW, I like the freedom philosophy as well, while I think whether the &amp;nbsp;
&lt;br&gt;&amp;gt; freedom is pure or conditional on some exogenous constraints can be &amp;nbsp;
&lt;br&gt;&amp;gt; equally acceptable.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;So freedom has a price, and it is parallel computing? Come on!
&lt;br&gt;&lt;br&gt;Besides, I think you are underestimating the license clash between 
&lt;br&gt;Nvidia's CUDA license and the GNU GPL.
&lt;br&gt;&lt;br&gt;I think OpenCL will be a more vendor-agnostic way to go.
&lt;br&gt;&lt;br&gt;David
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26466894&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CUDA-acceleration-in-GNU-Octave-tp26443596p26466894.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26466438</id>
	<title>Re: CUDA acceleration in GNU Octave</title>
	<published>2009-11-22T07:50:59Z</published>
	<updated>2009-11-22T07:50:59Z</updated>
	<author>
		<name>John W. Eaton-3</name>
	</author>
	<content type="html">On 22-Nov-2009, Chengqi Chang wrote:
&lt;br&gt;&lt;br&gt;| GPL compatibility depends on how the libraries use CUDA -- if the libs &amp;nbsp;
&lt;br&gt;| only call them, GPL can be retained.
&lt;br&gt;&lt;br&gt;I don't think that is correct, nor is it the interpretation of the GPL
&lt;br&gt;that the FSF has.
&lt;br&gt;&lt;br&gt;| Once you buy your graphic card, you are &amp;nbsp;
&lt;br&gt;| actually tied to a vendor.
&lt;br&gt;&lt;br&gt;That does not have to be true. &amp;nbsp;If there were one high-level free
&lt;br&gt;software library that supported multiple types of hardware, you would
&lt;br&gt;not be tied to a single vendor for software support or future hardware
&lt;br&gt;purchases.
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26466438&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CUDA-acceleration-in-GNU-Octave-tp26443596p26466438.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26466186</id>
	<title>Re: CUDA acceleration in GNU Octave</title>
	<published>2009-11-22T07:25:04Z</published>
	<updated>2009-11-22T07:25:04Z</updated>
	<author>
		<name>Chengqi Chang</name>
	</author>
	<content type="html">On Sun, 22 Nov 2009 21:39:44 +0800, John W. Eaton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26466186&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jwe@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 22-Nov-2009, Chengqi Chang wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; | I think it would be great if someone can provide a &amp;quot;bridge&amp;quot; -- like MPI
&lt;br&gt;&amp;gt; | toolbox(&lt;a href=&quot;http://atc.ugr.es/javier-bin/mpitb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://atc.ugr.es/javier-bin/mpitb&lt;/a&gt;) -- connecting Octave and &amp;nbsp;
&lt;br&gt;&amp;gt; CUDA
&lt;br&gt;&amp;gt; | computing libraries. Besides, in my opinion, it matters little whether
&lt;br&gt;&amp;gt; | this &amp;quot;bridge&amp;quot; is universal or tied to a single vendor (Nv/ATI). Both of
&lt;br&gt;&amp;gt; | the two choices have merits and drawbacks. If it is tied to a single
&lt;br&gt;&amp;gt; | vendor, it can be easier to take advantage of some special features of &amp;nbsp;
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; | GPU and it also has a larger possibility to get donation from that &amp;nbsp;
&lt;br&gt;&amp;gt; vendor.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Are the libraries that take advantage of this single vendor
&lt;br&gt;&amp;gt; distributed under a license that is compatible with the GPL?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If so, then I think this would be acceptable, but not great as it is
&lt;br&gt;&amp;gt; still ties you to a single vendor.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If not, then you would not be able to distribute .oct files that
&lt;br&gt;&amp;gt; require these libraries, and such an extension would never become a
&lt;br&gt;&amp;gt; part of the core Octave itself. &amp;nbsp;The Octave project is about software
&lt;br&gt;&amp;gt; freedom, not about promoting links to proprietary software, or
&lt;br&gt;&amp;gt; encouraging users to lock themselves into single-vendor solutions.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; jwe
&lt;/div&gt;GPL compatibility depends on how the libraries use CUDA -- if the libs &amp;nbsp;
&lt;br&gt;only call them, GPL can be retained.
&lt;br&gt;Since there are limited numbers of popular vendors, it is possible to &amp;nbsp;
&lt;br&gt;initialize different projects. Once you buy your graphic card, you are &amp;nbsp;
&lt;br&gt;actually tied to a vendor.
&lt;br&gt;BTW, I like the freedom philosophy as well, while I think whether the &amp;nbsp;
&lt;br&gt;freedom is pure or conditional on some exogenous constraints can be &amp;nbsp;
&lt;br&gt;equally acceptable.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Best Regards!
&lt;br&gt;---------------------------
&lt;br&gt;Sincerely Yours &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Chengqi Chang
&lt;br&gt;China Center for Economic Research
&lt;br&gt;Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26466186&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;XaeroChina@...&lt;/a&gt;
&lt;br&gt;Personal Website: &lt;a href=&quot;http://macro2.cn&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://macro2.cn&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26466186&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CUDA-acceleration-in-GNU-Octave-tp26443596p26466186.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26465422</id>
	<title>Re: CUDA acceleration in GNU Octave</title>
	<published>2009-11-22T05:39:44Z</published>
	<updated>2009-11-22T05:39:44Z</updated>
	<author>
		<name>John W. Eaton-3</name>
	</author>
	<content type="html">On 22-Nov-2009, Chengqi Chang wrote:
&lt;br&gt;&lt;br&gt;| I think it would be great if someone can provide a &amp;quot;bridge&amp;quot; -- like MPI &amp;nbsp;
&lt;br&gt;| toolbox(&lt;a href=&quot;http://atc.ugr.es/javier-bin/mpitb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://atc.ugr.es/javier-bin/mpitb&lt;/a&gt;) -- connecting Octave and CUDA &amp;nbsp;
&lt;br&gt;| computing libraries. Besides, in my opinion, it matters little whether &amp;nbsp;
&lt;br&gt;| this &amp;quot;bridge&amp;quot; is universal or tied to a single vendor (Nv/ATI). Both of &amp;nbsp;
&lt;br&gt;| the two choices have merits and drawbacks. If it is tied to a single &amp;nbsp;
&lt;br&gt;| vendor, it can be easier to take advantage of some special features of the &amp;nbsp;
&lt;br&gt;| GPU and it also has a larger possibility to get donation from that vendor.
&lt;br&gt;&lt;br&gt;Are the libraries that take advantage of this single vendor
&lt;br&gt;distributed under a license that is compatible with the GPL?
&lt;br&gt;&lt;br&gt;If so, then I think this would be acceptable, but not great as it is
&lt;br&gt;still ties you to a single vendor.
&lt;br&gt;&lt;br&gt;If not, then you would not be able to distribute .oct files that
&lt;br&gt;require these libraries, and such an extension would never become a
&lt;br&gt;part of the core Octave itself. &amp;nbsp;The Octave project is about software
&lt;br&gt;freedom, not about promoting links to proprietary software, or
&lt;br&gt;encouraging users to lock themselves into single-vendor solutions.
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26465422&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CUDA-acceleration-in-GNU-Octave-tp26443596p26465422.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464881</id>
	<title>Re: Passing an array from java to octave</title>
	<published>2009-11-22T04:20:20Z</published>
	<updated>2009-11-22T04:20:20Z</updated>
	<author>
		<name>Kim Hansen-5</name>
	</author>
	<content type="html">2009/11/2 George Kousiouris &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464881&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gkousiou@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to pass a Java array to Octave, so that I can process the data
&lt;br&gt;&amp;gt; inside. Does anyone have an idea how this can be done? I have tried a
&lt;br&gt;&amp;gt; java to octave bridge (javaoctave-0.4.0.jar) however this seems to be
&lt;br&gt;&amp;gt; only for executing Octave commands inside a Java program and not
&lt;br&gt;&amp;gt; actually passing data from Java to Octave...
&lt;br&gt;&lt;br&gt;JavaOctave can transfer many different types of data between Java and Octave.
&lt;br&gt;&lt;br&gt;In the following simple example &amp;quot;a&amp;quot; is a 2x2 matrix that is passed
&lt;br&gt;from Java to Octave and &amp;quot;b&amp;quot; is pulled out of Octave.
&lt;br&gt;&lt;br&gt;The example is from:
&lt;br&gt;&lt;a href=&quot;http://kenai.com/projects/javaoctave/pages/SimpleExampleOfJavaOctaveUsage&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://kenai.com/projects/javaoctave/pages/SimpleExampleOfJavaOctaveUsage&lt;/a&gt;&lt;br&gt;==============
&lt;br&gt;&amp;nbsp;final OctaveEngine octave = new OctaveEngineFactory().getScriptEngine();
&lt;br&gt;&amp;nbsp;final OctaveMatrix a = new OctaveMatrix(new double[] { 1, 2, 3, 4 }, 2, 2);
&lt;br&gt;&amp;nbsp;octave.put(&amp;quot;a&amp;quot;, a);
&lt;br&gt;&amp;nbsp;final String func = &amp;quot;&amp;quot; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;function res = my_func(a)\n&amp;quot; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot; res = 2 * a;\n&amp;quot; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;endfunction\n&amp;quot; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;quot;&amp;quot;;
&lt;br&gt;&amp;nbsp;octave.eval(func);
&lt;br&gt;&amp;nbsp;octave.eval(&amp;quot;b = my_func(a);&amp;quot;);
&lt;br&gt;&amp;nbsp;final OctaveMatrix b = octave.get(&amp;quot;b&amp;quot;);
&lt;br&gt;&amp;nbsp;octave.close();
&lt;br&gt;==============
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kim Hansen
&lt;br&gt;Vadgårdsvej 3, 2.tv
&lt;br&gt;2860 Søborg
&lt;br&gt;Fastnet: 3956 2437 &amp;nbsp;-- &amp;nbsp;Mobil: 3091 2437
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464881&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Passing-an-array-from-java-to-octave-tp26167686p26464881.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26463342</id>
	<title>Re: CUDA acceleration in GNU Octave</title>
	<published>2009-11-21T23:38:35Z</published>
	<updated>2009-11-21T23:38:35Z</updated>
	<author>
		<name>Chengqi Chang</name>
	</author>
	<content type="html">I think it would be great if someone can provide a &amp;quot;bridge&amp;quot; -- like MPI &amp;nbsp;
&lt;br&gt;toolbox(&lt;a href=&quot;http://atc.ugr.es/javier-bin/mpitb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://atc.ugr.es/javier-bin/mpitb&lt;/a&gt;) -- connecting Octave and CUDA &amp;nbsp;
&lt;br&gt;computing libraries. Besides, in my opinion, it matters little whether &amp;nbsp;
&lt;br&gt;this &amp;quot;bridge&amp;quot; is universal or tied to a single vendor (Nv/ATI). Both of &amp;nbsp;
&lt;br&gt;the two choices have merits and drawbacks. If it is tied to a single &amp;nbsp;
&lt;br&gt;vendor, it can be easier to take advantage of some special features of the &amp;nbsp;
&lt;br&gt;GPU and it also has a larger possibility to get donation from that vendor.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Best Regards!
&lt;br&gt;---------------------------
&lt;br&gt;Sincerely Yours &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Chengqi Chang
&lt;br&gt;China Center for Economic Research
&lt;br&gt;Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463342&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;XaeroChina@...&lt;/a&gt;
&lt;br&gt;Personal Website: &lt;a href=&quot;http://macro2.cn&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://macro2.cn&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463342&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CUDA-acceleration-in-GNU-Octave-tp26443596p26463342.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26463025</id>
	<title>Re: calling octave from C</title>
	<published>2009-11-21T21:46:41Z</published>
	<updated>2009-11-21T21:46:41Z</updated>
	<author>
		<name>Jaroslav Hajek-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Nov 21, 2009 at 9:53 PM, Judd Storrs &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463025&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;storrsjm@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
On Sat, Nov 21, 2009 at 3:26 PM, Jaroslav Hajek &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463025&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;highegg@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; Why?&lt;br&gt;
&lt;br&gt;
Because non-GPL scripts are either allowed in both octave and python&lt;br&gt;
or they are forbidden in both octave and python. They are covered by&lt;br&gt;
exactly the same license. The GPL must apply everywhere equally.&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Octave and Python are not covered by the same license. Besides, you&amp;#39;re getting of the point, because (according to FSF&amp;#39;s FAQ) it&amp;#39;s not Octave or Python, but Pytave (the &amp;quot;bindings&amp;quot; to external software) that makes the difference. And Pytave is not a part of Python.&lt;br&gt;
 &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Proposing that an interpreter that embeds octave is free to impose new&lt;br&gt;
restrictions on octave is the kind of doublethink you would expect&lt;br&gt;
from a corporate entity trying to circumvent the GPL.&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Oh my. So please tell that to FSF, and how they are screwing the license they invented.&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

Unless I missed a change in octave&amp;#39;s licensing, pytave does not have&lt;br&gt;
the authority to alter the license of octave.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
&lt;br&gt;
--judd&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;In fact Pytave could add additional terms under section 7, but you have been told that Pytave just uses GPL 3, so I don&amp;#39;t understand why you keep saying that.&lt;br&gt;&lt;br&gt;Unlike its predecessor, GPL 3 does not talk about scripts, interpreters and libraries, not even derivative works. It simply says that a covered work (modified, or based on the source GPL work in question) is anything that would normally require a copyright permission under applicable law.&lt;br&gt;
&lt;br&gt;So ultimately the question is whether a script using Pytave would require copyright permission if Pytave and Octave were proprietary. Apparently, the FSF thinks that the answer is yes.&lt;br&gt;&lt;br&gt;-- &lt;br&gt;RNDr. Jaroslav Hajek&lt;br&gt;
computing expert &amp;amp; GNU Octave developer&lt;br&gt;Aeronautical Research and Test Institute (VZLU)&lt;br&gt;Prague, Czech Republic&lt;br&gt;url: &lt;a href=&quot;http://www.highegg.matfyz.cz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.highegg.matfyz.cz&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463025&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-octave-from-C-tp26410988p26463025.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26460390</id>
	<title>Re: calling octave from C</title>
	<published>2009-11-21T13:10:40Z</published>
	<updated>2009-11-21T13:10:40Z</updated>
	<author>
		<name>David Grundberg-2</name>
	</author>
	<content type="html">Judd Storrs skrev:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I understand your position. But fundamentally, pytave is clearly a
&lt;br&gt;&amp;gt; derivative work of octave and is bound to octave's license.
&lt;br&gt;&amp;gt; Restrictions on octave by derivative works are incompatible with the
&lt;br&gt;&amp;gt; GPL. That is both the beauty and the curse of the GPL. I guess the
&lt;br&gt;&amp;gt; clearest way to express my consern is that one of these two cases must
&lt;br&gt;&amp;gt; be true:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1) Pytave's restriction limiting use of octave to only GPL-compatible
&lt;br&gt;&amp;gt; interpreter scripts is a novel GPL-incompatible restriction on
&lt;br&gt;&amp;gt; octave's code
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;I think your word &amp;quot;GPL-incompatible&amp;quot; is misleading. Calling it a &amp;quot;novel 
&lt;br&gt;GPL-incompatible restriction on Octave's code&amp;quot; is plain wrong. It's not 
&lt;br&gt;novel. It's not &amp;quot;GPL-incompatible&amp;quot;. Pytave is a derivate of Octave. 
&lt;br&gt;That's why it is licensed under GPLv3. And it's not a restriction of 
&lt;br&gt;Octave's code. You can do the same thing with Pytave that you can do 
&lt;br&gt;with Octave to begin with. In fact, the GPL license is there to 
&lt;br&gt;guarantee it.
&lt;br&gt;&lt;br&gt;The GNU GPL is not a random set of rules regarding distribution. I think 
&lt;br&gt;this is essential to truly understanding the license. It is there with 
&lt;br&gt;the explicit purpose of preserving the four freedoms of the users. 
&lt;br&gt;Hypothetically, if Pytave somehow weren't GPL, the hole it with leave 
&lt;br&gt;open would be big enough to drive a truck through.
&lt;br&gt;&lt;br&gt;&amp;gt; OR
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2) Use of GPL-incompatible interpreter code (m-files) was already
&lt;br&gt;&amp;gt; forbidden within the octave interpreter.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My opinion is that the FSF FAQ makes it clear that #2 is false.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;The Octave interpreter can be used to interpret any m-file. You can 
&lt;br&gt;interpret any m-file through Pytave too. You can run Pytave or Octave 
&lt;br&gt;however you wish, it is freedom 0. (Freedom to run the software for any 
&lt;br&gt;purpose)
&lt;br&gt;&lt;br&gt;David
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26460390&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-octave-from-C-tp26410988p26460390.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26460253</id>
	<title>Re: calling octave from C</title>
	<published>2009-11-21T12:53:08Z</published>
	<updated>2009-11-21T12:53:08Z</updated>
	<author>
		<name>Judd Storrs</name>
	</author>
	<content type="html">On Sat, Nov 21, 2009 at 3:26 PM, Jaroslav Hajek &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26460253&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;highegg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Why?
&lt;br&gt;&lt;br&gt;Because non-GPL scripts are either allowed in both octave and python
&lt;br&gt;or they are forbidden in both octave and python. They are covered by
&lt;br&gt;exactly the same license. The GPL must apply everywhere equally.
&lt;br&gt;Proposing that an interpreter that embeds octave is free to impose new
&lt;br&gt;restrictions on octave is the kind of doublethink you would expect
&lt;br&gt;from a corporate entity trying to circumvent the GPL.
&lt;br&gt;&lt;br&gt;Unless I missed a change in octave's licensing, pytave does not have
&lt;br&gt;the authority to alter the license of octave.
&lt;br&gt;&lt;br&gt;&lt;br&gt;--judd
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26460253&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www-old.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-octave-from-C-tp26410988p26460253.html" />
</entry>

</feed>
