From ratulloch at gmail.com Fri Apr 1 01:13:58 2011 From: ratulloch at gmail.com (Rick T) Date: Thu, 31 Mar 2011 20:13:58 -1000 Subject: Interpolating signal from 4 sec to 1 sec Message-ID: Interpolating signal from 4 sec to 1 sec tia sal22 Greetings All I have a signal that cycles twice from 0 to 4 seconds and would like to interpolate the signal to cycle twice when it goes from 0 to 1 second. I know it's an issue with my xi variable I'm just not sure how to fix it. PS: the example is just a simple sine wave equation but I'll be importing an audio wav file, that's why I chose to use interpolate %Interpolation test clear all, clc,clf,tic x= linspace(0,2*pi,400); %from 0 to 4 sec fs_rate=100 freq=2; y=sin(freq*(x)); xo=linspace(0,length(y)/fs_rate,length(y)); %go from 0 to x sec xi=linspace(0,1,length(y)); %go from 0 to 1 sec new_y=interp1(xo,y,xi,'linear'); subplot(2,2,1),plot(xo,y),title('Orginal signal over 4 sec') subplot(2,2,3),plot(xi,new_y),title('Entire signal over 1 sec') tia sal22 -- - -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at juliensalort.org Fri Apr 1 03:11:38 2011 From: lists at juliensalort.org (Julien Salort) Date: Fri, 1 Apr 2011 10:11:38 +0200 Subject: Norm problem in Octave 3.4.0 (Mac?) In-Reply-To: References: <643B10A9-D83B-457B-93D0-25A7C85F2EBE@norton.name> Message-ID: Hello, Pantxo Diribarne and myself have tried also this test on an executable compiled against Fink libraries instead of self-compiled libraries and Vic's problem seems to have disappeared on this version... So maybe this has something to do with the compilation options that I used when I compiled the dependencies... We'll keep trying other compile options... Bests, Julien Le 1 avr. 2011 ? 02:01, Moo a ?crit : > On Thu, Mar 31, 2011 at 8:39 AM, Vic Norton wrote: > I have compared the speed of the instructions "norm(x)" and > "sqrt(sum(x .* x))" on Thomas Treichl's Octave.app (3.2.3) and Julien > Salort's Octave.app (3.4.0). These versions of octave can be found at > http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary/ > 2011-03-27 binary of Octave 3.4.0 (2011-03-27) > 2009-10-03 binary of Octave 3.2.3 (2010-11-23) > > Here is a summary of the results I observed. > 1. Octave 3.4.0 is a bit slower than Octave 3.2.3 on sqrt(sum(x .* x)). > 2. On Octave 3.2.3, norm(x) is a bit faster than sqrt(sum(x .* x)). This > is as it should be since NRM2 is a BLAS. > 3. On Octave 3.4.0, sqrt(sum(x .* x)) is four times as fast as norm(x). > This is not as it should be for the reason cited in 2. > 4. norm(x) on Octave 3.2.3 is nine times as fast as norm(x) on Octave > 3.4.0. > > My test script and my results appear below. > > Regards, > > Vic > > The test script. The two different shebang lines placed at the top > test the two different versions of octave. > #!/usr/local/bin/octave323 > > # norm2test.m > > #!/usr/local/bin/octave323 > #!/usr/local/bin/octave340 > > ntests = 20; n = 1e6; x = rand(n, 1); > test1 = zeros(ntests, 1); test2 = zeros(ntests, 1); > > for i = 1 : ntests > tic; > norm(x); > test1(i) = toc; > endfor > for i = 1 : ntests > tic; > sqrt(sum(x .* x)); > test2(i) = toc; > endfor > > printf ("norm2 speed test - octave %s\n", version); > printf ("%40s\n","ellapsed times"); > printf ("%30s%10s\n", "mean", "stdv"); > printf ("%-20s", "norm(x)"); > printf ("%10.2e", mean(test1)); > printf ("%10.2e", std(test1)); > printf ("\n"); > printf ("%-20s", "sqrt(sum(x .* x))"); > printf ("%10.2e", mean(test2)); > printf ("%10.2e", std(test2)); > printf ("\n"); > > > The output. > --- > GNU Octave, version 3.2.3 > Copyright (C) 2009 John W. Eaton and others. > This is free software; see the source code for copying conditions. > There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or > FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'. > > Octave was configured for "i386-apple-darwin8.11.1". > > Additional information about Octave is available at http://www.octave.org. > > Please contribute if you find this software useful. > For more information, visit http://www.octave.org/help-wanted.html > > Report bugs to (but first, please read > http://www.octave.org/bugs.html to learn how to write a helpful report). > > For information about changes from previous versions, type `news'. > > norm2 speed test - octave 3.2.3 > ellapsed times > mean stdv > norm(x) 7.06e-03 2.62e-05 > sqrt(sum(x .* x)) 1.06e-02 1.98e-03 > --- > > > I copied your test code and ran it in Octave 3.4.0, compiled myself with all the libraries, running in Ubuntu 10.04. Here's my numbers. I didn't get an order of magnitude difference like you did, but it was roughly 3x faster for vector size n=1e6 (these are my typical results): > > ellapsed times > mean stdv > norm(x) 7.89e-04 2.82e-05 > sqrt(sum(x .* x)) 2.66e-04 4.30e-05 > > I noticed you didn't change the value for n in your tests. Just out of curiosity I upped it to n=1e7; my reults were: > > ellapsed times > mean stdv > norm(x) 7.81e-02 1.95e-04 > sqrt(sum(x .* x)) 8.11e-02 3.94e-04 > > For n=1e8: > > ellapsed times > mean stdv > norm(x) 7.89e-01 1.30e-02 > sqrt(sum(x .* x)) 8.56e-01 2.29e-02 > > > Another curious thing happens for me when you pause slightly between iterations: > > for i = 1 : ntests > tic; > norm(x); > test1(i) = toc; > pause(0.01) > endfor > for i = 1 : ntests > tic; > sqrt(sum(x.*x)); > test2(i) = toc; > pause(0.01) > endfor > > For n=1e6 the results ended up noticeably different: > > ellapsed times > mean stdv > norm(x) 1.28e-02 3.68e-03 > sqrt(sum(x .* x)) 9.49e-03 2.79e-03 > > I'm no expert in the inner workings of Octave, but maybe this can help draw some conclusions? Can you try putting pauses in at the end of your loops like I did and see the results? From Thomas.Treichl at gmx.net Fri Apr 1 03:34:17 2011 From: Thomas.Treichl at gmx.net (Thomas Treichl) Date: Fri, 01 Apr 2011 10:34:17 +0200 Subject: Norm problem in Octave 3.4.0 (Mac?) In-Reply-To: <643B10A9-D83B-457B-93D0-25A7C85F2EBE@norton.name> References: <643B10A9-D83B-457B-93D0-25A7C85F2EBE@norton.name> Message-ID: <4D958E09.4060304@gmx.net> Am 31.03.11 16:39, schrieb Vic Norton: > Last week I installed Julien Salort's Octave 3.4.0 for Mac OSX 10.6. It > seemed to work perfectly until I tried some heavy duty computation. Now > I see that Julien's Octave 3.4.0 compilation has the slow norm2 problem > that afflicted versions of Octave prior to version 2.9.15 (Oct 2007). I > don't know whether this is an Octave 3.4.0 problem per se or a problem > with Julien's Mac compilation of Octave 3.4.0. > > I have compared the speed of the instructions "norm(x)" and > "sqrt(sum(x .* x))" on Thomas Treichl's Octave.app (3.2.3) and Julien > Salort's Octave.app (3.4.0). These versions of octave can be found at > http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary/ > 2011-03-27 binary of Octave 3.4.0 (2011-03-27) > 2009-10-03 binary of Octave 3.2.3 (2010-11-23) > > Here is a summary of the results I observed. > 1. Octave 3.4.0 is a bit slower than Octave 3.2.3 on sqrt(sum(x .* x)). > 2. On Octave 3.2.3, norm(x) is a bit faster than sqrt(sum(x .* x)). This > is as it should be since NRM2 is a BLAS. > 3. On Octave 3.4.0, sqrt(sum(x .* x)) is four times as fast as norm(x). > This is not as it should be for the reason cited in 2. > 4. norm(x) on Octave 3.2.3 is nine times as fast as norm(x) on Octave > 3.4.0. > > My test script and my results appear below. > > Regards, > > Vic > > The test script. The two different shebang lines placed at the top > test the two different versions of octave. > #!/usr/local/bin/octave323 > > # norm2test.m > > #!/usr/local/bin/octave323 > #!/usr/local/bin/octave340 > > ntests = 20; n = 1e6; x = rand(n, 1); > test1 = zeros(ntests, 1); test2 = zeros(ntests, 1); > > for i = 1 : ntests > tic; > norm(x); > test1(i) = toc; > endfor > for i = 1 : ntests > tic; > sqrt(sum(x .* x)); > test2(i) = toc; > endfor > > printf ("norm2 speed test - octave %s\n", version); > printf ("%40s\n","ellapsed times"); > printf ("%30s%10s\n", "mean", "stdv"); > printf ("%-20s", "norm(x)"); > printf ("%10.2e", mean(test1)); > printf ("%10.2e", std(test1)); > printf ("\n"); > printf ("%-20s", "sqrt(sum(x .* x))"); > printf ("%10.2e", mean(test2)); > printf ("%10.2e", std(test2)); > printf ("\n"); > > > The output. > --- > GNU Octave, version 3.2.3 > Copyright (C) 2009 John W. Eaton and others. > This is free software; see the source code for copying conditions. > There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or > FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'. > > Octave was configured for "i386-apple-darwin8.11.1". > > Additional information about Octave is available at http://www.octave.org. > > Please contribute if you find this software useful. > For more information, visit http://www.octave.org/help-wanted.html > > Report bugs to (but first, please read > http://www.octave.org/bugs.html to learn how to write a helpful report). > > For information about changes from previous versions, type `news'. > > norm2 speed test - octave 3.2.3 > ellapsed times > mean stdv > norm(x) 7.06e-03 2.62e-05 > sqrt(sum(x .* x)) 1.06e-02 1.98e-03 > --- > > GNU Octave, version 3.4.0 > Copyright (C) 2011 John W. Eaton and others. > This is free software; see the source code for copying conditions. > There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or > FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'. > > Octave was configured for "i386-apple-darwin10.6.0". > > Additional information about Octave is available at http://www.octave.org. > > Please contribute if you find this software useful. > For more information, visit http://www.octave.org/help-wanted.html > > Read http://www.octave.org/bugs.html to learn how to submit bug reports. > > For information about changes from previous versions, type `news'. > > norm2 speed test - octave 3.4.0 > ellapsed times > mean stdv > norm(x) 6.48e-02 3.78e-04 > sqrt(sum(x .* x)) 1.46e-02 1.21e-04 > --- Hi Vic, if I can remember correctly then there have been some bug-fixes by David which had been applied and the modification, that I compiled the APP with very high optimization since then, ie. I tried several compiler flags to improve the speed, eg. I used -O3 and the -march=i686 flags etc. (there is no Mac with an Intel processor < i686). You can take a look which options I used if you take an old Octave.app and type the command octave_config_info () Best regards Thomas From pantxo.diribarne at gmail.com Fri Apr 1 05:58:58 2011 From: pantxo.diribarne at gmail.com (pantxo diribarne) Date: Fri, 1 Apr 2011 12:58:58 +0200 Subject: Norm problem in Octave 3.4.0 (Mac?) (Moo) Message-ID: Hello, I have also built an a 32bit Octave.app version on Mac OX X 10.5.8 with self-compiled dependencies and it used to exhibit the same norm problem. This speed problem is solved by setting optimization flags to "-O3" or "-O2" : running Vic's test gives similar results on my version and ThomasTreichl's Octave.app (3.2.3) norm2 speed test - octave 3.4.0 ellapsed times mean stdv norm(x) 8.76e-03 2.07e-04 sqrt(sum(x .* x)) 1.52e-02 1.04e-03 norm2 speed test - octave 3.2.3 ellapsed times mean stdv norm(x) 8.93e-03 3.20e-04 sqrt(sum(x .* x)) 1.65e-02 2.31e-03 Now the problem is that I obtain an error while launching make check: "invalid assignment to cs-list outside multiple assignment". This problem was reported and discussed previously for 3.3.90 version ( http://octave.1599824.n4.nabble.com/Octave-3-3-55-and-Octave-3-3-90-on-OSX-td3247286i60.html#a3336641) but no solution was found. I also noticed that a with optimization flags set to "-O2" or "-O3" I obtain a warning at compilation time (liboctave) that doesn't appear if compiled without optimization flag : Array.h:183: warning: ?__base_ctor ? is deprecated (declared at Array.h:179) I don't know wether it is related but I wanted to give all elements I had. Pantxo -------------- next part -------------- An HTML attachment was scrubbed... URL: From tlange at gwdg.de Fri Apr 1 05:32:31 2011 From: tlange at gwdg.de (Torsten Lange) Date: Fri, 1 Apr 2011 12:32:31 +0200 Subject: background color of printed figures Message-ID: <201104011232.31126.tlange@gwdg.de> Hello! Can I change somehow the background color when printing to png-format? I plot a my graphs using the loop variable (<=6) for colors. When i=6 then the symbol color is white, which is ok for the plots (grey background) but not for the png-prints where background is white. I have to print 100s of raw figures for visual evaluation. No need for high quality. GNU Octave, version 3.0.2 used print command is: print -dpng "file.png" Thanks, Torsten From bpabbott at mac.com Fri Apr 1 06:54:05 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 01 Apr 2011 07:54:05 -0400 Subject: background color of printed figures In-Reply-To: <201104011232.31126.tlange@gwdg.de> References: <201104011232.31126.tlange@gwdg.de> Message-ID: <5168798C-61D9-49FF-9C8D-D399B24BD03D@mac.com> On Apr 1, 2011, at 6:32 AM, Torsten Lange wrote: > Hello! > > Can I change somehow the background color when printing to png-format? I plot > a my graphs using the loop variable (<=6) for colors. When i=6 then the symbol > color is white, which is ok for the plots (grey background) but not for the > png-prints where background is white. > > I have to print 100s of raw figures for visual evaluation. No need for high > quality. > > GNU Octave, version 3.0.2 > used print command is: > print -dpng "file.png" > > Thanks, Torsten Would placing a colored patch in the background solve your problem? help patch Ben From huubvanniekerk at gmail.com Fri Apr 1 07:20:35 2011 From: huubvanniekerk at gmail.com (Huub van Niekerk) Date: Fri, 1 Apr 2011 14:20:35 +0200 Subject: printing mesh with unequal ranges Message-ID: Hi, I'm trying to plot a function along a meshgrid using x = 0 : 6 and y = 0 : 10, and e.g. function f = 2 * x * sin(2*pi*y) + 4 * x * cos(2*pi*y) I'm getting the error that the matrix A^b must be square. I understand that, but then how can I get what I want? Reading the documentation it only deals with 1 variable in the function. Can somebody please tell me what mistake I make? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpabbott at mac.com Fri Apr 1 07:29:35 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 01 Apr 2011 08:29:35 -0400 Subject: printing mesh with unequal ranges In-Reply-To: References: Message-ID: <7C543EA4-668F-4791-AA1A-848C3C8E0C0D@mac.com> On Apr 1, 2011, at 8:20 AM, Huub van Niekerk wrote: > Hi, > > I'm trying to plot a function along a meshgrid using x = 0 : 6 and y = 0 : 10, and e.g. function f = 2 * x * sin(2*pi*y) + 4 * x * cos(2*pi*y) > I'm getting the error that the matrix A^b must be square. I understand that, but then how can I get what I want? Reading the documentation it only deals with 1 variable in the function. Can somebody please tell me what mistake I make? > > Thanks Is this what you'd like to do? x = 0 : 0.1 : 6; y = 0 : 0.1 : 10; [x, y] = meshgrid (x, y); f = 2 * x .* sin(2*pi*y) + 4 * x .* cos(2*pi*y); mesh (x,y,f) Notice the use of ".*" instead of "*" Ben From tlange at gwdg.de Fri Apr 1 08:13:19 2011 From: tlange at gwdg.de (Torsten Lange) Date: Fri, 1 Apr 2011 15:13:19 +0200 Subject: background color of printed figures In-Reply-To: <5168798C-61D9-49FF-9C8D-D399B24BD03D@mac.com> References: <201104011232.31126.tlange@gwdg.de> <5168798C-61D9-49FF-9C8D-D399B24BD03D@mac.com> Message-ID: <201104011513.19097.tlange@gwdg.de> Am Freitag, 1. April 2011 13:54:05 schrieb Ben Abbott: > On Apr 1, 2011, at 6:32 AM, Torsten Lange wrote: > > Hello! > > > > Can I change somehow the background color when printing to png-format? I > > plot a my graphs using the loop variable (<=6) for colors. When i=6 then > > the symbol color is white, which is ok for the plots (grey background) > > but not for the png-prints where background is white. > > > > I have to print 100s of raw figures for visual evaluation. No need for > > high quality. > > > > GNU Octave, version 3.0.2 > > used print command is: > > print -dpng "file.png" > > > > Thanks, Torsten > > Would placing a colored patch in the background solve your problem? > > help patch > > Ben Thanks, Ben! I had to pre-iterate through all data sets to find min/max of the plot area. Its an ok-workaround and the pngs now come with a darker background!!! Although, it makes the figures even more ugly ;))) The grid disappeared unfortunately. I guess it's below the patch. Have a nice weekend, Torsten From WKrekeler at cleanearthtech.com Fri Apr 1 08:42:07 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Fri, 1 Apr 2011 13:42:07 +0000 Subject: Interpolating signal from 4 sec to 1 sec In-Reply-To: References: Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB212C4ECC@CETEX1.cleanearth.ceprivate> From: help-octave-bounces at octave.org [mailto:help-octave-bounces at octave.org] On Behalf Of Rick T Sent: Friday, April 01, 2011 1:14 AM To: help-octave at octave.org Subject: Interpolating signal from 4 sec to 1 sec Interpolating signal from 4 sec to 1 sec tia sal22 Greetings All I have a signal that cycles twice from 0 to 4 seconds and would like to interpolate the signal to cycle twice when it goes from 0 to 1 second. I know it's an issue with my xi variable I'm just not sure how to fix it. PS: the example is just a simple sine wave equation but I'll be importing an audio wav file, that's why I chose to use interpolate %Interpolation test clear all, clc,clf,tic x= linspace(0,2*pi,400); %from 0 to 4 sec fs_rate=100 freq=2; y=sin(freq*(x)); xo=linspace(0,length(y)/fs_rate,length(y)); %go from 0 to x sec xi=linspace(0,1,length(y)); %go from 0 to 1 sec new_y=interp1(xo,y,xi,'linear'); subplot(2,2,1),plot(xo,y),title('Orginal signal over 4 sec') subplot(2,2,3),plot(xi,new_y),title('Entire signal over 1 sec') tia sal22 -- - Not sure why you would only want to interpolate a portion of the signal as you would then have two different effective sample rates which will impact your ability to analyze the data. A quick interpolation method is the function spline. Bill Krekeler -------------- next part -------------- An HTML attachment was scrubbed... URL: From WKrekeler at cleanearthtech.com Fri Apr 1 08:48:19 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Fri, 1 Apr 2011 13:48:19 +0000 Subject: background color of printed figures In-Reply-To: <201104011513.19097.tlange@gwdg.de> References: <201104011232.31126.tlange@gwdg.de> <5168798C-61D9-49FF-9C8D-D399B24BD03D@mac.com> <201104011513.19097.tlange@gwdg.de> Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB212C4EF1@CETEX1.cleanearth.ceprivate> -----Original Message----- From: help-octave-bounces at octave.org [mailto:help-octave-bounces at octave.org] On Behalf Of Torsten Lange Sent: Friday, April 01, 2011 8:13 AM To: Octave Help Subject: Re: background color of printed figures Am Freitag, 1. April 2011 13:54:05 schrieb Ben Abbott: > On Apr 1, 2011, at 6:32 AM, Torsten Lange wrote: > > Hello! > > > > Can I change somehow the background color when printing to png-format? I > > plot a my graphs using the loop variable (<=6) for colors. When i=6 then > > the symbol color is white, which is ok for the plots (grey background) > > but not for the png-prints where background is white. > > > > I have to print 100s of raw figures for visual evaluation. No need for > > high quality. > > > > GNU Octave, version 3.0.2 > > used print command is: > > print -dpng "file.png" > > > > Thanks, Torsten > > Would placing a colored patch in the background solve your problem? > > help patch > > Ben Thanks, Ben! I had to pre-iterate through all data sets to find min/max of the plot area. Its an ok-workaround and the pngs now come with a darker background!!! Although, it makes the figures even more ugly ;))) The grid disappeared unfortunately. I guess it's below the patch. Have a nice weekend, Torsten _______________________________________________ Help-octave mailing list Help-octave at octave.org https://mailman.cae.wisc.edu/listinfo/help-octave Torsten, Try FaceAlpha or similar to set the patch transparency. Bill Krekeler From huubvanniekerk at gmail.com Fri Apr 1 09:05:30 2011 From: huubvanniekerk at gmail.com (Huub van Niekerk) Date: Fri, 1 Apr 2011 16:05:30 +0200 Subject: printing mesh with unequal ranges In-Reply-To: <7C543EA4-668F-4791-AA1A-848C3C8E0C0D@mac.com> References: <7C543EA4-668F-4791-AA1A-848C3C8E0C0D@mac.com> Message-ID: On Fri, Apr 1, 2011 at 2:29 PM, Ben Abbott wrote: > On Apr 1, 2011, at 8:20 AM, Huub van Niekerk wrote: > > > Hi, > > > > I'm trying to plot a function along a meshgrid using x = 0 : 6 and y = 0 > : 10, and e.g. function f = 2 * x * sin(2*pi*y) + 4 * x * cos(2*pi*y) > > I'm getting the error that the matrix A^b must be square. I understand > that, but then how can I get what I want? Reading the documentation it only > deals with 1 variable in the function. Can somebody please tell me what > mistake I make? > > > > Thanks > > > Is this what you'd like to do? > > x = 0 : 0.1 : 6; > y = 0 : 0.1 : 10; > [x, y] = meshgrid (x, y); > f = 2 * x .* sin(2*pi*y) + 4 * x .* cos(2*pi*y); > mesh (x,y,f) > > Notice the use of ".*" instead of "*" > Ok, thank you. This works. Now, after this function I try this one: f = exp(-((x .- 6 / 3)^2)) * sin(2 * pi * y / 10); Instead of ".*" it has ".-". The "A must be square" message is directed at the "=" sign. As far as I can see from the docs, this function should be no problem. What could be wrong here? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tlange at gwdg.de Fri Apr 1 09:13:21 2011 From: tlange at gwdg.de (Torsten Lange) Date: Fri, 1 Apr 2011 16:13:21 +0200 Subject: background color of printed figures In-Reply-To: <6765D38A4FDFC347A2934D0D5AB0F1AB212C4EF1@CETEX1.cleanearth.ceprivate> References: <201104011232.31126.tlange@gwdg.de> <201104011513.19097.tlange@gwdg.de> <6765D38A4FDFC347A2934D0D5AB0F1AB212C4EF1@CETEX1.cleanearth.ceprivate> Message-ID: <201104011613.21359.tlange@gwdg.de> Am Freitag, 1. April 2011 15:48:19 schrieb William Krekeler: > -----Original Message----- > From: help-octave-bounces at octave.org > [mailto:help-octave-bounces at octave.org] On Behalf Of Torsten Lange Sent: > Friday, April 01, 2011 8:13 AM > To: Octave Help > Subject: Re: background color of printed figures > > Am Freitag, 1. April 2011 13:54:05 schrieb Ben Abbott: > > On Apr 1, 2011, at 6:32 AM, Torsten Lange wrote: > > > Hello! > > > > > > Can I change somehow the background color when printing to png-format? > > > I plot a my graphs using the loop variable (<=6) for colors. When i=6 > > > then the symbol color is white, which is ok for the plots (grey > > > background) but not for the png-prints where background is white. > > > > > > I have to print 100s of raw figures for visual evaluation. No need for > > > high quality. > > > > > > GNU Octave, version 3.0.2 > > > used print command is: > > > print -dpng "file.png" > > > > > > Thanks, Torsten > > > > Would placing a colored patch in the background solve your problem? > > > > help patch > > > > Ben > > Thanks, Ben! > > I had to pre-iterate through all data sets to find min/max of the plot > area. Its an ok-workaround and the pngs now come with a darker > background!!! Although, it makes the figures even more ugly ;))) > The grid disappeared unfortunately. I guess it's below the patch. > > Have a nice weekend, > Torsten > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > > Torsten, > > Try FaceAlpha or similar to set the patch transparency. > > Bill Krekeler Hi Bill, seems not to do transparency. No error, no transparency... Anyway, think I can live with it for the time being. Thank you, Torsten From andybuckle at gmail.com Fri Apr 1 09:34:36 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Fri, 1 Apr 2011 15:34:36 +0100 Subject: printing mesh with unequal ranges In-Reply-To: References: <7C543EA4-668F-4791-AA1A-848C3C8E0C0D@mac.com> Message-ID: On Fri, Apr 1, 2011 at 3:05 PM, Huub van Niekerk wrote: > On Fri, Apr 1, 2011 at 2:29 PM, Ben Abbott wrote: >> >> On Apr 1, 2011, at 8:20 AM, Huub van Niekerk wrote: >> >> > Hi, >> > >> > I'm trying to plot a function along a meshgrid using x = 0 : 6 and y = 0 >> > : 10, and e.g. function f = 2 * x * sin(2*pi*y) + 4 * x * cos(2*pi*y) >> > I'm getting the error that the matrix A^b must be square. I understand >> > that, but then how can I get what I want? Reading the documentation it only >> > deals with 1 variable in the function. Can somebody please tell me what >> > mistake I make? >> > >> > Thanks >> >> >> Is this what you'd like to do? >> >> ? ? ? ?x = 0 : 0.1 : 6; >> ? ? ? ?y = 0 : 0.1 : 10; >> ? ? ? ?[x, y] = meshgrid (x, y); >> ? ? ? ?f = 2 * x .* sin(2*pi*y) + 4 * x .* cos(2*pi*y); >> ? ? ? ?mesh (x,y,f) >> >> Notice the use of ".*" instead of "*" > > Ok, thank you. This works. Now, after this function I try this one: > > f = exp(-((x .- 6 / 3)^2)) * sin(2 * pi * y / 10); > > Instead of ".*" it has ".-". The "A must be square" message is directed at > the "=" sign. As far as I can see from the docs, this function should be no > problem. What could be wrong here? > > Thank you. f = exp(-((x - 6 / 3).^2)) .* sin(2 * pi * y / 10) read this http://www.network-theory.co.uk/docs/octave3/octave_74.html to learn the difference between dotted and undotted versions of the operators. -- /* andy buckle */ From Potorti at isti.cnr.it Fri Apr 1 05:01:03 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Fri, 01 Apr 2011 12:01:03 +0200 Subject: load sparse matrix from matlab hdf5 file In-Reply-To: <1301609248.2571.12.camel@linux-uhdl> References: <4D94AED2.1020609@itm.uni-stuttgart.de> <1301609248.2571.12.camel@linux-uhdl> Message-ID: >Am Donnerstag, den 31.03.2011, 18:41 +0200 schrieb Christian Fischer: >> Hi >> >> I want to load a sparse matrix from hdf5 file created by matlab. >> I ended up with a struct like: >> >> octave3.3.54:3> a >> a = >> { >> data = >> 1 2 3 >> ir = >> 0 1 2 >> jc = >> 0 1 2 3 >> } >> >> Is it possible to load the matrix as sparse matrix? Or is there a quick way to >> convert the struct into a sparse matrix in octave. Hve you looked at spconvert? -- Francesco Potort? (ricercatore) Voice: +39 050 315 3058 (op.2111) ISTI - Area della ricerca CNR Fax: +39 050 315 2040 via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/ From huubvanniekerk at gmail.com Fri Apr 1 10:46:28 2011 From: huubvanniekerk at gmail.com (Huub van Niekerk) Date: Fri, 1 Apr 2011 17:46:28 +0200 Subject: printing mesh with unequal ranges In-Reply-To: References: <7C543EA4-668F-4791-AA1A-848C3C8E0C0D@mac.com> Message-ID: On Fri, Apr 1, 2011 at 4:20 PM, Pertti P??kk?nen wrote: > Hello, > > > > Use ().^2 instead of ()^2 for element-by-element squared. ()^2 is a matrix > powered 2, but ().^2 is matrix/vector element values powered to 2. Matrix > square always requires a square matrix. > > > > FYI, x.-6 equals x-6 since matrix subtraction is always an > element-by-element operation. > Thank you. The combination of your and Ben's comments did the trick. Working great now. Regards, Huub -------------- next part -------------- An HTML attachment was scrubbed... URL: From pr.nienhuis at hccnet.nl Fri Apr 1 13:04:15 2011 From: pr.nienhuis at hccnet.nl (Philip Nienhuis) Date: Fri, 01 Apr 2011 20:04:15 +0200 Subject: What does this error mean? [WAS: csvwrite text] Message-ID: <4D96139F.1050705@hccnet.nl> Hi Jonathan, senator wrote: > all my packages are indeed installed , I am copying and pasting the command > out of octave forge function file so it should work right? but i am gettin > errors. I am going to copy the error report below. > it seems i have no excel support.. I am use Windows and I have excel 2007 > and csvwrite works great for sending files to excels csv file > > Let me know if you know what these errors mean: > > arr=[23;34] > xlswrite ('test4.xls', 'arr', 'Third_sheet', 'C3:AB40'); > > command window output: > > ncols=26 > Creating file test4.xls > warning: No support for Excel .xls I/O > error: oct2xls unknown Excel .xls interface - NONE. > error: called from: > error: C\Documents.......... > ..... > error:C\Documnets.....line 2, column 1 > > thanks for still reading my messages Where I wrote that: Philip Nienhuis wrote: > Perhaps .... I vaguely remember reading something like that on the Mathworks > site or in comp.soft-sys.matlab, but I cannot find it now. I have no > MS-Office 2007 so I couldn't test it myself, but here's the very first > report about failure although the Excel support scripts for Octave exist for > over a year. ... it seems this is not due to the io package or MS-Excel 97, but rather due to Windows issues. I'm guessing you have Windows 7, don't you? (BTW is it 32 or 64 bit?) See here for similar problems: https://mailman.cae.wisc.edu/pipermail/help-octave/2010-July/041542.html It seems Microsoft silently changed something which broke ActiveX / COM support. Not only for Octave, but for that matter also for Matlab. I think TMW has fixed this now, but the (octave-forge) windows package might need an update as well. Currently your only resort is Java based spreadsheet I/O. Philip From martin at mhelm.de Fri Apr 1 16:29:09 2011 From: martin at mhelm.de (Martin Helm) Date: Fri, 01 Apr 2011 23:29:09 +0200 Subject: load sparse matrix from matlab hdf5 file In-Reply-To: References: <4D94AED2.1020609@itm.uni-stuttgart.de> <1301609248.2571.12.camel@linux-uhdl> Message-ID: <1301693349.2528.1.camel@linux-uhdl> Am Freitag, den 01.04.2011, 12:01 +0200 schrieb Francesco Potort?: > >Am Donnerstag, den 31.03.2011, 18:41 +0200 schrieb Christian Fischer: > >> Hi > >> > >> I want to load a sparse matrix from hdf5 file created by matlab. > >> I ended up with a struct like: > >> > >> octave3.3.54:3> a > >> a = > >> { > >> data = > >> 1 2 3 > >> ir = > >> 0 1 2 > >> jc = > >> 0 1 2 3 > >> } > >> > >> Is it possible to load the matrix as sparse matrix? Or is there a quick way to > >> convert the struct into a sparse matrix in octave. > > Hve you looked at spconvert? > spconvert does something completely different it takes the same input as sparse itself just put together into one matrix instead of a vector for the row, column index and the values respectively. It is not usable to convert CCS or CCR. From martin at mhelm.de Fri Apr 1 16:31:08 2011 From: martin at mhelm.de (Martin Helm) Date: Fri, 01 Apr 2011 23:31:08 +0200 Subject: load sparse matrix from matlab hdf5 file In-Reply-To: <1301693349.2528.1.camel@linux-uhdl> References: <4D94AED2.1020609@itm.uni-stuttgart.de> <1301609248.2571.12.camel@linux-uhdl> <1301693349.2528.1.camel@linux-uhdl> Message-ID: <1301693468.2528.2.camel@linux-uhdl> Am Freitag, den 01.04.2011, 23:29 +0200 schrieb Martin Helm: > It is not usable to convert CCS or CCR. ^^^ CRS of course From daniel_torre_h at hotmail.com Fri Apr 1 16:51:44 2011 From: daniel_torre_h at hotmail.com (veryhappy) Date: Fri, 1 Apr 2011 16:51:44 -0500 (CDT) Subject: Octave json creator In-Reply-To: <1295777117370-3232379.post@n4.nabble.com> References: <1291459118497-3072273.post@n4.nabble.com> <4CFBF3C8.8030208@gmail.com> <1291631769845-3074255.post@n4.nabble.com> <1291632413.1830.79.camel@hauberg-laptop> <1291673366370-3075432.post@n4.nabble.com> <1295777117370-3232379.post@n4.nabble.com> Message-ID: <1301694704710-3421238.post@n4.nabble.com> A quick bugfix (now colum vectors should work correctly) : %% Copyright (C) 2010 Torre Herrera, Daniel de %% %% This program is free software; you can redistribute it and/or modify %% it under the terms of the GNU General Public License as published by %% the Free Software Foundation; either version 2 of the License, or %% (at your option) any later version. %% %% This program is distributed in the hope that it will be useful, %% but WITHOUT ANY WARRANTY; without even the implied warranty of %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the %% GNU General Public License for more details. %% %% You should have received a copy of the GNU General Public License %% along with Octave; see the file COPYING. If not, see %% <http://www.gnu.org/licenses/>. %% object2json.m %% Created: 2010-12-06 %% Updates: %% 2011-01-23 Added support for especial chars and escaped sequences %% 2011-04-01 Fixed error: Column vectors not working correctly function json=object2json(object) % function json=object2json(object) % This function returns a valid json string that will describe object % The string will be in a compact form (i.e. no spaces or line breaks) % % It will map simple octave values this way: % function handles: string with the name of the function % double (numbers): depends: % If it's real it will map to a string representing that number % If it's complex it will map to an object with the next properties: % real: real part of the number % imag: imaginary part of the number % char: A string enclosed by double quotes representing that character % And will map more complex octave values this other way: % struct: an object with properties equal to the struct's field names % and value equal to the json counterpart of that field % cell: it will be mapped depending on the value of the cell (for % example {i} will be mapped to an object with real=0 and imag=1) % vectors or cell arrays: it will map them to a corresponding js % array (same size) with the values transformed to their json % counterpart (Note: that in javascript all arrays are like octave's % cells ,i.e. they can store different type and size variables) % strings or char vectors: they will be mapped to the same string % enclosed by double quotes % Other octave values will be mapped to a string enclosed by double % quuotes with the value that the class() function returns % It can handle escape sequences and special chars automatically. % If they're valid in JSON it will keep them if not they'll be % escaped so they can become valid s=size(object); if(all(s==1)) % It's not a vector so we must check how to map it % Depending on the class of the object we must do one or another thing switch(class(object)) case 'function_handle' % For a function handle we will only print the name fun=functions(object); json=['"',fun.function,'"']; case 'struct' fields=fieldnames(object); results=cellfun(@object2json,struct2cell(object),"UniformOutput",false); json='{'; if(numel(fields)>1) sep=','; else sep=''; endif for(tmp=1:numel(fields)) json=[json,'"',fields{tmp},'":',results{tmp},sep]; if(tmp>=numel(fields)-1) sep=''; endif endfor json(end+1)='}'; case 'cell' % We dereference the cell and use it as a new value json=object2json(object{1}); case 'double' if(isreal(object)) json=num2str(object); else if(iscomplex(object)) json=['{"real":',num2str(real(object)),',"imag":',num2str(imag(object)),'}']; endif endif case 'char' % Here we handle a single char % JSON only admits the next escape sequences: % \", \\, \/, \b, \f, \n, \r, \t and \u four-hex-digits % so we must be sure that every other sequence gets replaced object=replace_non_JSON_escapes(object); json=['"',object,'"']; otherwise % We don't know what is it so we'll put the class name json=['"',class(object),'"']; endswitch else % It's a vector so it maps to an array sep=''; if(numel(s)>2) json='['; for(tmp=1:s(1)) json=[json,sep,object2json(reshape(object(tmp,:),s(2:end)))]; sep=','; endfor json(end+1)=']'; else % We can have three cases here: % Object is a row -> array with all the elements % Object is a column -> each element is an array in it's own % Object is a 2D matrix -> separate each row if(s(1)==1) % Object is a row if(ischar(object)) % If it's a row of chars we will take it as a string % JSON only admits the next escape sequences: % \", \\, \/, \b, \f, \n, \r, \t and \u four-hex-digits % so we must be sure that every other sequence gets replaced object=replace_non_JSON_escapes(object); json=['"',object,'"']; else json='['; for(tmp=1:s(2)) json=[json,sep,object2json(object(1,tmp))]; sep=','; endfor json(end+1)=']'; endif elseif(s(2)==1) % Object is a column json='['; for(tmp=1:s(1)) json=[json,sep,'[',object2json(object(tmp,1)),']']; sep=','; endfor json(end+1)=']'; else % Object is a 2D matrix json='['; for(tmp=1:s(1)) json=[json,sep,object2json(object(tmp,:))]; sep=','; endfor json(end+1)=']'; endif endif endif endfunction % JSON only admits the next escape sequences: % \", \\, \/, \b, \f, \n, \r, \t and \u four-hex-digits % This function replace every escaped sequence that isn't on that list % with a compatible version % Note that this function uses typeinfo so it may need to be updated % with each octave release function object=replace_non_JSON_escapes(object) if(strcmp(typeinfo(object),'string')) % It's a double quoted string so newlines and other chars need % to be converted back into escape sequences before anything object=undo_string_escapes(object); endif % This first regex handles double quotes and slashes that are not % after a backslash and thus aren't escaped object=regexprep(object,'(? Hello, (I know octave-3.0.5 is outdated) when I run the following piece of code: [ \ measured_burst_delay_in_samples, \ max_cross_correlation ] = \ measure_burst_delay_through_correlation\ (\ burst_period, burst, analysis_step_in_samples, input_data, burst_window_begin_sample_number, burst_window_end_sample_number ); , everything works as expected. If I remove backslash after "measured_burst_delay_in_samples,", I'm getting the following error message: " parse error near line 74 of file /home/sergei/GenericBinauralFFTW/octave/explore_sync_burst.m syntax error >>> ] = \ ^ parse error near line 74 of file /home/sergei/GenericBinauralFFTW/octave/explore_sync_burst.m syntax error >>> ] = \ ^ error: near line 83 of file `/home/sergei/GenericBinauralFFTW/octave/explore_sync_burst.m' error: source: error sourcing file `/home/sergei/GenericBinauralFFTW/octave/explore_sync_burst.m' ". My point also is that function arguments are on separate lines and this works just fine without any backslash (as well as with backslashes). So, why do I need backslash where in practice in the above example I need it ? Do newer versions of 'octave' have the same requirement WRT backslash ? If yes, are there clearly defined rules explaining when backslash is really needed ? Thanks, Sergei. From ficmatin10 at gmail.com Sat Apr 2 07:50:41 2011 From: ficmatin10 at gmail.com (ficmatin10 at gmail.com) Date: Sat, 2 Apr 2011 09:50:41 -0300 Subject: octave local compilation Message-ID: <201104020950.41612.ficmatin10@gmail.com> Hi I am using octave-3.4.0 and intel mkl petsc-3.1-p8. ?what is my error? The local ./configure fail. the generated config.log is here: http://sites.google.com/site/ficmatinf/Home/config.log?attredirects=0&d=1 the files libfblas.a libflapack.a libfmpich.a libmpich.a libmpichf90.a libpetsc.a are in /home/user/directory/lib octave do not find it. Also try with non intel blas lapack and also ./configure fail. ?what is my error? Thanks in advance. From andybuckle at gmail.com Sat Apr 2 09:43:38 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Sat, 2 Apr 2011 15:43:38 +0100 Subject: octave local compilation In-Reply-To: <201104020950.41612.ficmatin10@gmail.com> References: <201104020950.41612.ficmatin10@gmail.com> Message-ID: On Sat, Apr 2, 2011 at 1:50 PM, wrote: > Hi > > I am using octave-3.4.0 and intel mkl petsc-3.1-p8. > > ?what is my error? > > The local ./configure fail. > > the generated config.log is here: > > http://sites.google.com/site/ficmatinf/Home/config.log?attredirects=0&d=1 > > the files > > libfblas.a > libflapack.a > libfmpich.a > libmpich.a > libmpichf90.a > libpetsc.a > > are in /home/user/directory/lib > > octave do not find it. > > Also try with non intel blas lapack and also ./configure fail. > > ?what is my error? > > Thanks in advance. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > do you have the headers too? eg the versions of the packages with dev or devel on the end? -- /* andy buckle */ From ficmatin10 at gmail.com Sat Apr 2 13:45:49 2011 From: ficmatin10 at gmail.com (ficmatin10 at gmail.com) Date: Sat, 2 Apr 2011 15:45:49 -0300 Subject: octave local compilation In-Reply-To: References: <201104020950.41612.ficmatin10@gmail.com> Message-ID: <201104021545.49432.ficmatin10@gmail.com> On Saturday 02 April 2011 11:43:38 you wrote: > do you have the headers too? eg the versions of the packages with dev > or devel on the end? No. The package (intel mkl petsc-3.1-p8) do not provide any file with the string "devel" in teh include directory. It provides three files with petscblaslapack_uscore.h:# define BLASgemm_ sgemm_ petscblaslapack_c.h:# define BLASgemm_ sgemm petscblaslapack_qd.h:# define BLASgemm_ sgemm_ Thanks for your answer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ratulloch at gmail.com Sat Apr 2 17:02:32 2011 From: ratulloch at gmail.com (Rick T) Date: Sat, 2 Apr 2011 12:02:32 -1000 Subject: FFT and changing frequency and vectorizing for loop Message-ID: FFT and changing frequency and vectorizing for loop Greetings All I can increase and decrease the frequency of the signal using the combination of fft and a series expansion for loop in the code below but if the signal/array is to large it becomes extremely slow (an array that's 1x44100 takes about 2 mins to complete) I'm sure it has to do with the for loop but I'm not exactly sure how to vectorize them to improve performance Any recommendations tia sal22 %create signal clear all, clc,clf,tic x= linspace(0,2*pi,44100)'; %Used in exporting to ycalc audio file make sure in sync with above freq_orig=1; freq_new=4 vertoff=0; vertoffConj=0; vertoffInv=0; vertoffInvConj=0; phaseshift=(0)*pi/180 ; %can use mod to limit to 180 degrees y=sin(freq_orig*(x)); [size_r,size_c]=size(y); N=size_r; %to test make 50 T=2*pi; dt=T/N; t=linspace(0,T-dt,N)'; phase = 0; f0 = 1/T; % Exactly, one period y=(y/max(abs(y))*.8)/2; %make the max amplitude here C = fft(y)/N; % No semicolon to display output A = real(C); B = imag(C)*-1; %I needed to multiply by -1 to get the correct sign % Single-Sided (f >= 0) An = [A(1); 2*A(2:round(N/2)); A(round(N/2)+1)]; %needed to put the ' to get vaules in rows Bn = [B(1); 2*B(2:round(N/2)); B(round(N/2)+1)]; %needed to put the ' to get vaules in ro pmax=N/2; ycalc=zeros(N,1); %preallocating space for ycalc w=0; for p=2:pmax % %%1 step) re-create signal using equation ycalc=ycalc+An(p)*cos(freq_new*(p-1).*t-phaseshift)+Bn(p)*sin(freq_new*(p-1).*t-phaseshift)+(vertoff/pmax); w=w+(360/(pmax-1)); %used to create phaseshift phaseshift=w; end; fprintf('\n- Completed in %4.4fsec or %4.4fmins\n',toc,toc/60); subplot(2,1,1), plot(y),title('Orginal Signal'); subplot(2,1,2),plot(ycalc),title('FFT new signal'); -- - -------------- next part -------------- An HTML attachment was scrubbed... URL: From ficmatin10 at gmail.com Sat Apr 2 17:48:01 2011 From: ficmatin10 at gmail.com (ficmatin10 at gmail.com) Date: Sat, 2 Apr 2011 19:48:01 -0300 Subject: octave local compilation In-Reply-To: References: <201104020950.41612.ficmatin10@gmail.com> Message-ID: <201104021948.01272.ficmatin10@gmail.com> > > I am using octave-3.4.0 and intel mkl petsc-3.1-p8. Also atlas3.8.3.tar.gz do not put any ".h" file in include directory. The config.log for atlas is not equal to config.log for intel mkl: http://sites.google.com/site/ficmatinf/Home/config_atlas.log?attredirects=0&d=1 From martin at mhelm.de Sat Apr 2 18:00:50 2011 From: martin at mhelm.de (Martin Helm) Date: Sun, 03 Apr 2011 01:00:50 +0200 Subject: octave local compilation In-Reply-To: <201104021948.01272.ficmatin10@gmail.com> References: <201104020950.41612.ficmatin10@gmail.com> <201104021948.01272.ficmatin10@gmail.com> Message-ID: <1301785250.4282.2.camel@linux-uhdl> Am Samstag, den 02.04.2011, 19:48 -0300 schrieb ficmatin10 at gmail.com: > > > I am using octave-3.4.0 and intel mkl petsc-3.1-p8. > > Also atlas3.8.3.tar.gz do not put any ".h" file in include directory. > > The config.log for atlas is not equal to config.log for intel mkl: > > http://sites.google.com/site/ficmatinf/Home/config_atlas.log?attredirects=0&d=1 > In your log file it looks like if you simply pass the directory of your blas library, while the ./configure --help says that you have to pass the path/name of the library --with-blas= use BLAS library --with-lapack= use LAPACK library from your log --with-blas=/home/user/directory/lib --with-lapack=/home/user/directory/lib this does not look correct. From martin at mhelm.de Sat Apr 2 18:37:40 2011 From: martin at mhelm.de (Martin Helm) Date: Sun, 03 Apr 2011 01:37:40 +0200 Subject: octave local compilation In-Reply-To: <201104021948.01272.ficmatin10@gmail.com> References: <201104020950.41612.ficmatin10@gmail.com> <201104021948.01272.ficmatin10@gmail.com> Message-ID: <1301787460.9390.1.camel@linux-uhdl> Am Samstag, den 02.04.2011, 19:48 -0300 schrieb ficmatin10 at gmail.com: > > > I am using octave-3.4.0 and intel mkl petsc-3.1-p8. > > Also atlas3.8.3.tar.gz do not put any ".h" file in include directory. > > The config.log for atlas is not equal to config.log for intel mkl: > > http://sites.google.com/site/ficmatinf/Home/config_atlas.log?attredirects=0&d=1 To give you a more concrete example I looked up what the configure script takes on my machine --with-blas="-L/usr/lib64/atlas -lptf77blas -lptcblas -latlas" --with-lapack="-L/usr/lib64/atlas -llapack" put your folders into it instead of /usr/lib64/atlas and check if that helps. From sergstesh at yahoo.com Sat Apr 2 19:41:42 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Sat, 2 Apr 2011 17:41:42 -0700 (PDT) Subject: FFT and changing frequency and vectorizing for loop Message-ID: <522647.86699.qm@web112104.mail.gq1.yahoo.com> --- On Sat, 4/2/11, Rick T wrote: From: Rick T Subject: FFT and changing frequency and vectorizing for loop To: help-octave at octave.org Date: Saturday, April 2, 2011, 3:02 PM FFT and changing frequency and vectorizing for loop Greetings All I can increase and decrease the frequency of thesignal using the combination of fft and a series expansion for loop in the code below but if the signal/array is to large it becomes extremelyslow (an array that's 1x44100 takes about 2 mins to complete) I'm sure it has to do with the for loop butI'm not exactly sure how to vectorize them to improve performance Any recommendations tia sal22? %create signalclear all, clc,clf,ticx= linspace(0,2*pi,44100)';? %Used in exporting to ycalc audio file make sure in sync with above freq_orig=1;freq_new=4vertoff=0;vertoffConj=0;vertoffInv=0;vertoffInvConj=0;phaseshift=(0)*pi/180 ; %can use mod to limit to 180 degrees y=sin(freq_orig*(x));?[size_r,size_c]=size(y); N=size_r; %to test make 50T=2*pi;dt=T/N;t=linspace(0,T-dt,N)';phase = 0; f0 = 1/T; % Exactly, one period? y=(y/max(abs(y))*.8)/2; %make the max amplitude hereC = fft(y)/N; % No semicolon to display output? A = real(C);? B = imag(C)*-1; %I needed to multiply by -1 to get the correct sign % Single-Sided (f >= 0)?An = [A(1); 2*A(2:round(N/2)); A(round(N/2)+1)]; %needed to put the ' to get vaules in rows? Bn = [B(1); 2*B(2:round(N/2)); B(round(N/2)+1)]; %needed to put the ' to get vaules in ro pmax=N/2;ycalc=zeros(N,1); %preallocating space for ycalcw=0;for p=2:pmax ?? ? ? ? ? ? ? ?%?? ? ? ?%%1 step) re-create signal using equation??? ? ? ? ycalc=ycalc+An(p)*cos(freq_new*(p-1).*t-phaseshift)+Bn(p)*sin(freq_new*(p-1).*t-phaseshift)+(vertoff/pmax); ?? ? ? ? w=w+(360/(pmax-1)); %used to create phaseshift?? ? ? ? phaseshift=w;?? ? ? ?end;fprintf('\n- Completed in %4.4fsec or %4.4fmins\n',toc,toc/60); subplot(2,1,1), plot(y),title('Orginal Signal');?subplot(2,1,2),plot(ycalc),title('FFT new signal');? -- - -----Inline Attachment Follows----- _______________________________________________ Help-octave mailing list Help-octave at octave.org https://mailman.cae.wisc.edu/listinfo/help-octave I don't think you are doing a right thing - not WRT loop/vectorization, but WRT final result. If I understand correctly your code, you multiply by 4 each individual frequency. If so, your signal will appear in your output 4 times in a row. Try a simple example with, say, just 16 samples. There is a package for 'octave' doing polyphase resampling: http://octave.sourceforge.net/signal/function/resample.html . Regards, Sergei. From ratulloch at gmail.com Sat Apr 2 21:00:09 2011 From: ratulloch at gmail.com (Rick T) Date: Sat, 2 Apr 2011 16:00:09 -1000 Subject: FFT and changing frequency and vectorizing for loop In-Reply-To: <522647.86699.qm@web112104.mail.gq1.yahoo.com> References: <522647.86699.qm@web112104.mail.gq1.yahoo.com> Message-ID: It works it's just slow due to the for loop here's an example of the output which is correct http://dl.dropbox.com/u/6576402/questions/q1.png On Sat, Apr 2, 2011 at 2:41 PM, Sergei Steshenko wrote: > > --- On Sat, 4/2/11, Rick T wrote: > > From: Rick T > Subject: FFT and changing frequency and vectorizing for loop > To: help-octave at octave.org > Date: Saturday, April 2, 2011, 3:02 PM > > FFT and changing frequency and vectorizing for loop > Greetings All > I can increase and decrease the frequency of thesignal using the > combination of fft and a series expansion for loop in the code below > > but if the signal/array is to large it becomes extremelyslow (an array > that's 1x44100 takes about 2 mins to complete) I'm sure it has to do with > the for loop butI'm not exactly sure how to vectorize them to improve > performance > > > Any recommendations > tia sal22 > %create signalclear all, clc,clf,ticx= linspace(0,2*pi,44100)'; > %Used in exporting to ycalc audio file make sure in sync with above > > freq_orig=1;freq_new=4vertoff=0;vertoffConj=0;vertoffInv=0;vertoffInvConj=0;phaseshift=(0)*pi/180 > ; %can use mod to limit to 180 degrees > > > y=sin(freq_orig*(x)); [size_r,size_c]=size(y); > N=size_r; %to test make 50T=2*pi;dt=T/N;t=linspace(0,T-dt,N)';phase = 0; > > f0 = 1/T; % Exactly, one period > y=(y/max(abs(y))*.8)/2; %make the max amplitude hereC = fft(y)/N; % No > semicolon to display output > A = real(C); > > B = imag(C)*-1; %I needed to multiply by -1 to get the correct sign > % Single-Sided (f >= 0) An = [A(1); 2*A(2:round(N/2)); A(round(N/2)+1)]; > %needed to put the ' to get vaules in rows > > Bn = [B(1); 2*B(2:round(N/2)); B(round(N/2)+1)]; %needed to put the ' to > get vaules in ro > pmax=N/2;ycalc=zeros(N,1); %preallocating space for ycalcw=0;for p=2:pmax > > % %%1 step) re-create signal using equation > ycalc=ycalc+An(p)*cos(freq_new*(p-1).*t-phaseshift)+Bn(p)*sin(freq_new*(p-1).*t-phaseshift)+(vertoff/pmax); > > w=w+(360/(pmax-1)); %used to create phaseshift > phaseshift=w; end;fprintf('\n- Completed in %4.4fsec or > %4.4fmins\n',toc,toc/60); > > > subplot(2,1,1), plot(y),title('Orginal > Signal'); subplot(2,1,2),plot(ycalc),title('FFT new signal'); > > -- > - > > > -----Inline Attachment Follows----- > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > > I don't think you are doing a right thing - not WRT loop/vectorization, > but WRT final result. > > If I understand correctly your code, you multiply by 4 each individual > frequency. If so, your signal will appear in your output 4 times in a row. > > Try a simple example with, say, just 16 samples. > > There is a package for 'octave' doing polyphase resampling: > > http://octave.sourceforge.net/signal/function/resample.html > . > > Regards, > Sergei. > > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From pertti.paakkonen at uef.fi Sun Apr 3 01:21:34 2011 From: pertti.paakkonen at uef.fi (Pertti Paakkonen) Date: Sun, 3 Apr 2011 01:21:34 -0500 (CDT) Subject: FFT and changing frequency and vectorizing for loop In-Reply-To: References: Message-ID: <1301811694889-3423091.post@n4.nabble.com> Rick, Probably vectorization does not help here. This is how your for p=2:pmax loop is vectorized (with comments on some oddities): p = (2:pmax)'; %Fix An and Bn to correct size. The first and last elements in the original code were never used. An = 2*A(p); Bn = 2*B(p); phaseshift = 360/(pmax-1)*(p-2); %Why not in radians? M = (An*ones(1,N)).*cos(freq_new*(p-1)*t'-phaseshift*ones(1,N)); M += (Bn*ones(1,N)).*sin(freq_new*(p-1)*t'-phaseshift*ones(1,N)); %Matlab incompatible notation ycalc2 = sum(M)+(pmax-1)*vertoff/pmax; %Take vertoff/pmax out from summation. Result is the same with maximum error of 5e-15. Vectorization involves expanding your frequency components and time vector to at least five 22049 times 44100 matrices with 7.2 GB each. Unless you have a huge physical memory this will fail. Even with smaller time vectors the looping is more efficient than vectorization. This is probably a memory handling issue because number of sin() and cos() executions remain the same and with very small time vectors (say, less than 1000) vectorized code runs faster. In my test Rick's original looped code took 5.72 seconds to run while code above took 8.16 seconds when N was "only" 8192. Case N=16328 ran out of memory. System was octave 2.1.57-7 (i686-pc-linux-gnu) on a 12 GB quad-core. If one finds better way to vectorze this please let us know :-) Pertti -- View this message in context: http://octave.1599824.n4.nabble.com/FFT-and-changing-frequency-and-vectorizing-for-loop-tp3422784p3423091.html Sent from the Octave - General mailing list archive at Nabble.com. From sergstesh at yahoo.com Sun Apr 3 01:19:29 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Sat, 2 Apr 2011 23:19:29 -0700 (PDT) Subject: FFT and changing frequency and vectorizing for loop Message-ID: <171429.24695.qm@web112107.mail.gq1.yahoo.com> --- On Sat, 4/2/11, Rick T wrote: From: Rick T Subject: Re: FFT and changing frequency and vectorizing for loop To: "Sergei Steshenko" Cc: help-octave at octave.org Date: Saturday, April 2, 2011, 7:00 PM It works it's just slow due to the for loop here's an example of the output which is correcthttp://dl.dropbox.com/u/6576402/questions/q1.png On Sat, Apr 2, 2011 at 2:41 PM, Sergei Steshenko wrote: --- On Sat, 4/2/11, Rick T wrote: From: Rick T Subject: FFT and changing frequency and vectorizing for loop To: help-octave at octave.org Date: Saturday, April 2, 2011, 3:02 PM FFT and changing frequency and vectorizing for loop Greetings All I can increase and decrease the frequency of thesignal using the combination of fft and a series expansion for loop in the code below but if the signal/array is to large it becomes extremelyslow (an array that's 1x44100 takes about 2 mins to complete) I'm sure it has to do with the for loop butI'm not exactly sure how to vectorize them to improve performance Any recommendations tia sal22? %create signalclear all, clc,clf,ticx= linspace(0,2*pi,44100)';? %Used in exporting to ycalc audio file make sure in sync with above freq_orig=1;freq_new=4vertoff=0;vertoffConj=0;vertoffInv=0;vertoffInvConj=0;phaseshift=(0)*pi/180 ; %can use mod to limit to 180 degrees y=sin(freq_orig*(x));?[size_r,size_c]=size(y); N=size_r; %to test make 50T=2*pi;dt=T/N;t=linspace(0,T-dt,N)';phase = 0; f0 = 1/T; % Exactly, one period? y=(y/max(abs(y))*.8)/2; %make the max amplitude hereC = fft(y)/N; % No semicolon to display output? A = real(C);? B = imag(C)*-1; %I needed to multiply by -1 to get the correct sign % Single-Sided (f >= 0)?An = [A(1); 2*A(2:round(N/2)); A(round(N/2)+1)]; %needed to put the ' to get vaules in rows? Bn = [B(1); 2*B(2:round(N/2)); B(round(N/2)+1)]; %needed to put the ' to get vaules in ro pmax=N/2;ycalc=zeros(N,1); %preallocating space for ycalcw=0;for p=2:pmax ?? ? ? ? ? ? ? ?%?? ? ? ?%%1 step) re-create signal using equation??? ? ? ? ycalc=ycalc+An(p)*cos(freq_new*(p-1).*t-phaseshift)+Bn(p)*sin(freq_new*(p-1).*t-phaseshift)+(vertoff/pmax); ?? ? ? ? w=w+(360/(pmax-1)); %used to create phaseshift?? ? ? ? phaseshift=w;?? ? ? ?end;fprintf('\n- Completed in %4.4fsec or %4.4fmins\n',toc,toc/60); subplot(2,1,1), plot(y),title('Orginal Signal');?subplot(2,1,2),plot(ycalc),title('FFT new signal');? -- - -----Inline Attachment Follows----- _______________________________________________ Help-octave mailing list Help-octave at octave.org https://mailman.cae.wisc.edu/listinfo/help-octave I don't think you are doing a right thing - not WRT loop/vectorization, but WRT final result. If I understand correctly your code, you multiply by 4 each individual frequency. If so, your signal will appear in your output 4 times in a row. Try a simple example with, say, just 16 samples. There is a package for 'octave' doing polyphase resampling: http://octave.sourceforge.net/signal/function/resample.html . Regards, ?Sergei. -- No, your example doesn't prove it works. I.e. the image shows one original 'sin' period, and four 'sin' periods in the "upsampled" signal. Take as input signal, for example, a triangle pulse - you'll see four triangle pulsed after your "upsampling". So, if you want to upsample a song this way, you'll hear it four times. What you did is simple replication in time domain - can be done quickly using just several lines of code without any FFT in the first place. Regards, Sergei. P.S. Please do not use HTML; P.P.S. Please do no top post - this list prefers bottom posting. From yury.tarasievich at gmail.com Sun Apr 3 02:28:54 2011 From: yury.tarasievich at gmail.com (Yury Tarasievich) Date: Sun, 03 Apr 2011 10:28:54 +0300 Subject: showing graphics from command line run Message-ID: <4D9821B6.3040502@gmail.com> Hi all, This might be the common knowledge by now, but somehow I can't find the answer either in octave info or in list archives or in Google database. How do I get the graphics (plot) window showing if octave script is executed from command line? I.e., the sombrero instruction seems to go through the correct stages (AFAICT from the `octave -V -x` output) but shows no graphics window. -Yury From martin.ecarnot at free.fr Mon Apr 4 06:48:11 2011 From: martin.ecarnot at free.fr (martin.ecarnot at free.fr) Date: Mon, 4 Apr 2011 13:48:11 +0200 (CEST) Subject: uigetfile Message-ID: <410093913.3729271301917691073.JavaMail.root@zimbra22-e3.priv.proxad.net> Hello, I installed octave 3.4.0 (OS : Ubuntu 10.04), and tried uigetfile I got: >>> DIRNAME = uigetfile () error: `__fltk_uigetfile__' undefined near line 154 column 37 error: called from: error: /usr/local/share/octave/3.4.0/m/plot/uigetfile.m at line 154, column 35 However, __fltk_uigetfile__ is found: >>> exist("__fltk_uigetfile__") ans = 3 What can I do? Thanks. Martin From 50295 at web.de Mon Apr 4 09:45:28 2011 From: 50295 at web.de (Olumide) Date: Mon, 04 Apr 2011 15:45:28 +0100 Subject: Which algorithm does Octave use to invert the following positive semidefinite matrix? Message-ID: <4D99D988.3040008@web.de> Can someone tell me what algorithm Octave uses to invert the following positive semidefinite matrix, that has zeros along its diagonal. Matrices of this sort that arise in scattered data interpolation with radial basis functions. [ 0.000000 529.831737 1198.292909 529.831737 1.000000 10.000000 0.000000 ] [ 529.831737 0.000000 529.831737 1198.292909 1.000000 0.000000 10.000000 ] [ 1198.292909 529.831737 0.000000 529.831737 1.000000 -10.000000 0.000000 ] [ 529.831737 1198.292909 529.831737 0.000000 1.000000 0.000000 -10.000000 ] [ 1.000000 1.000000 1.000000 1.000000 0.000000 0.000000 0.000000 ] [ 10.000000 0.000000 -10.000000 0.000000 0.000000 0.000000 0.000000 ] [ 0.000000 10.000000 0.000000 -10.000000 0.000000 0.000000 0.000000 ] Whereas the LAPACK routines DPOTRI and DGETRI fail because the matrix has zero elements along its diagonal, Octave successfully computes the inverts the matrix to be [ 1.8034e-003 -1.8034e-003 1.8034e-003 -1.8034e-003 2.5000e-001 5.0000e-002 -2.2854e-018 ] [ -1.8034e-003 1.8034e-003 -1.8034e-003 1.8034e-003 2.5000e-001 -1.4014e-017 5.0000e-002 ] [ 1.8034e-003 -1.8034e-003 1.8034e-003 -1.8034e-003 2.5000e-001 -5.0000e-002 -1.1356e-017 ] [ -1.8034e-003 1.8034e-003 -1.8034e-003 1.8034e-003 2.5000e-001 -1.2975e-017 -5.0000e-002 ] [ 2.5000e-001 2.5000e-001 2.5000e-001 2.5000e-001 -5.6449e+002 1.6031e-015 -2.2001e-015 ] [ 5.0000e-002 1.5053e-017 -5.0000e-002 1.1470e-017 -1.6031e-015 5.9915e+000 2.3211e-016 ] [ 1.3878e-017 5.0000e-002 5.8566e-018 -5.0000e-002 1.4668e-015 -1.6985e-017 5.9915e+000 ] I've verified that the product of both matrices is the identify matrix. Thanks, - Olumide From martin at mhelm.de Mon Apr 4 10:53:51 2011 From: martin at mhelm.de (Martin Helm) Date: Mon, 4 Apr 2011 17:53:51 +0200 Subject: Which algorithm does Octave use to invert the following positive semidefinite matrix? In-Reply-To: <4D99D988.3040008@web.de> References: <4D99D988.3040008@web.de> Message-ID: <201104041753.51911.martin@mhelm.de> Am Montag, 4. April 2011, 16:45:28 schrieb Olumide: > Can someone tell me what algorithm Octave uses to invert the following > positive semidefinite matrix, that has zeros along its diagonal. > Matrices of this sort that arise in scattered data interpolation with > radial basis functions. > > [ 0.000000 529.831737 1198.292909 529.831737 1.000000 > 10.000000 0.000000 ] > [ 529.831737 0.000000 529.831737 1198.292909 1.000000 > 0.000000 10.000000 ] > [ 1198.292909 529.831737 0.000000 529.831737 1.000000 > -10.000000 0.000000 ] > [ 529.831737 1198.292909 529.831737 0.000000 1.000000 > 0.000000 -10.000000 ] > [ 1.000000 1.000000 1.000000 1.000000 0.000000 > 0.000000 0.000000 ] > [ 10.000000 0.000000 -10.000000 0.000000 0.000000 > 0.000000 0.000000 ] > [ 0.000000 10.000000 0.000000 -10.000000 0.000000 > 0.000000 0.000000 ] > > Whereas the LAPACK routines DPOTRI and DGETRI fail because the matrix > has zero elements along its diagonal, Octave successfully computes > the inverts the matrix to be > > [ 1.8034e-003 -1.8034e-003 1.8034e-003 -1.8034e-003 2.5000e-001 > 5.0000e-002 -2.2854e-018 ] > [ -1.8034e-003 1.8034e-003 -1.8034e-003 1.8034e-003 2.5000e-001 > -1.4014e-017 5.0000e-002 ] > [ 1.8034e-003 -1.8034e-003 1.8034e-003 -1.8034e-003 2.5000e-001 > -5.0000e-002 -1.1356e-017 ] > [ -1.8034e-003 1.8034e-003 -1.8034e-003 1.8034e-003 2.5000e-001 > -1.2975e-017 -5.0000e-002 ] > [ 2.5000e-001 2.5000e-001 2.5000e-001 2.5000e-001 -5.6449e+002 > 1.6031e-015 -2.2001e-015 ] > [ 5.0000e-002 1.5053e-017 -5.0000e-002 1.1470e-017 -1.6031e-015 > 5.9915e+000 2.3211e-016 ] > [ 1.3878e-017 5.0000e-002 5.8566e-018 -5.0000e-002 1.4668e-015 > -1.6985e-017 5.9915e+000 ] > > I've verified that the product of both matrices is the identify > matrix. > > Thanks, > > - Olumide > Just one question: Why do you think your matrix is positiv semidefinite? It has positive and negative eigen values! From martin at mhelm.de Mon Apr 4 11:05:02 2011 From: martin at mhelm.de (Martin Helm) Date: Mon, 4 Apr 2011 18:05:02 +0200 Subject: Which algorithm does Octave use to invert the following positive semidefinite matrix? In-Reply-To: <201104041753.51911.martin@mhelm.de> References: <4D99D988.3040008@web.de> <201104041753.51911.martin@mhelm.de> Message-ID: <201104041805.02843.martin@mhelm.de> Am Montag, 4. April 2011, 17:53:51 schrieb Martin Helm: > Am Montag, 4. April 2011, 16:45:28 schrieb Olumide: > > > Whereas the LAPACK routines DPOTRI and DGETRI fail because the matrix > > has zero elements along its diagonal, Octave successfully computes > > the inverts the matrix to be dpotri will of course fail since the matrix violates the conditions (not positve semidefinite), dgetri should work, BUT did you call degtrf before? From martin at mhelm.de Mon Apr 4 11:06:10 2011 From: martin at mhelm.de (Martin Helm) Date: Mon, 4 Apr 2011 18:06:10 +0200 Subject: Which algorithm does Octave use to invert the following positive semidefinite matrix? In-Reply-To: <201104041805.02843.martin@mhelm.de> References: <4D99D988.3040008@web.de> <201104041753.51911.martin@mhelm.de> <201104041805.02843.martin@mhelm.de> Message-ID: <201104041806.10735.martin@mhelm.de> Am Montag, 4. April 2011, 18:05:02 schrieb Martin Helm: > Am Montag, 4. April 2011, 17:53:51 schrieb Martin Helm: > > Am Montag, 4. April 2011, 16:45:28 schrieb Olumide: > > > Whereas the LAPACK routines DPOTRI and DGETRI fail because the matrix > > > has zero elements along its diagonal, Octave successfully computes > > > the inverts the matrix to be > > dpotri will of course fail since the matrix violates the conditions (not > positve semidefinite), dgetri should work, BUT did you call degtrf before? Typo: should read: dpotri will of course fail since the matrix violates the conditions (not positve definite) From jordigh at octave.org Mon Apr 4 15:28:32 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Mon, 4 Apr 2011 15:28:32 -0500 Subject: showing graphics from command line run In-Reply-To: <4D9821B6.3040502@gmail.com> References: <4D9821B6.3040502@gmail.com> Message-ID: On 3 April 2011 01:28, Yury Tarasievich wrote: > How do I get the graphics (plot) window showing if octave script is executed > from command line? I.e., the sombrero instruction seems to go through the > correct stages (AFAICT from the `octave -V -x` output) but shows no graphics > window. (I really need to add this to the official FAQ...) What's most likely happening is that the Octave process is finishing when it finishes executing your script, so it also closes the window it spawned. Tell Octave to wait by adding a pause command to your script after the plot command. If that doesn't work, tell me what happens and what version of Octave you're using on what OS. HTH, - Jordi G. H. From ratulloch at gmail.com Mon Apr 4 16:11:04 2011 From: ratulloch at gmail.com (Rick T) Date: Mon, 4 Apr 2011 11:11:04 -1000 Subject: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 Message-ID: How can I increase/decrease (frequency/pitch) and phase using fft/ifft I think I have the basic code but I?m not sure what to do next PS: Thanks for the help on the last question everyone I decided not to use the FOR loop and sin/cos values and just use fft/ifft to see if this will work. Example I have a signal that repeats 1 time every second and I want to have it repeat 3 times a second instead. %Voiceprint raise lower freq phase conjugate signal tic clear all, clc,clf,tic %% Sound /beep calculation complete filerawbeepStr='calculations_complete.wav'; filerawbeeppathStr='/home/rat/Documents/octave/raw/'; filevoiceprepathStr='/home/rat/Documents/octave/eq_research/main/ transform/voice/'; filewavpathStr='/home/rat/Documents/octave/eq_research/main/transform/ wav/'; [ybeep, Fsbeep, nbitsbeep] = wavread(strcat(filerawbeeppathStr,filerawbeepStr)); %addpath(?/home/rat/Documents/octave/eq_research/main/transform/?); %add path to location of functions %1a voice print import [vp_sig_orig, fs_rate, nbitsraw] = wavread(strcat(filevoiceprepathStr,'voice8000fs.wav')); %vp_sig_orig=vp_sig_orig?; vp_sig_len=length(vp_sig_orig); %2a create frequency domain ya_fft = fft(vp_sig_orig); vp_sig_phase_orig = unwrap(angle(ya_fft)); %get Magnitude ya_fft_mag = abs(ya_fft); %3a frequency back to time domain ya_ifft=real(ifft(ya_fft)); %adjust frequency/phase here? How? vp_sig_new=real(ifft(ya_fft_mag.*exp(i*vp_sig_phase_orig))); subplot(3,1,1), plot(vp_sig_orig),title('1 original time domain') subplot(3,1,2), plot(ya_ifft),title('2 rebuild time domain') subplot(3,1,3), plot(vp_sig_new),title('3 adjusted time') -------------- next part -------------- An HTML attachment was scrubbed... URL: From sergstesh at yahoo.com Mon Apr 4 16:33:31 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Mon, 4 Apr 2011 14:33:31 -0700 (PDT) Subject: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 Message-ID: <145723.25904.qm@web112113.mail.gq1.yahoo.com> --- On Mon, 4/4/11, Rick T wrote: From: Rick T Subject: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 To: help-octave at octave.org Date: Monday, April 4, 2011, 2:11 PM How can I increase/decrease (frequency/pitch) and phase using fft/ifft I think I have the basic code but I?m not sure what to do next PS: Thanks for the help on the last question everyone I decided not to use the FOR loop and sin/cos values and just use fft/ifft to see if this will work. Example I have a signal that repeats 1 time every second and I want to have it repeat 3 times a second instead. ?%Voiceprint raise lower freq phase conjugate signal tic clear all, clc,clf,tic %% Sound /beep calculation complete filerawbeepStr='calculations_complete.wav'; filerawbeeppathStr='/home/rat/Documents/octave/raw/'; filevoiceprepathStr='/home/rat/Documents/octave/eq_research/main/ transform/voice/'; filewavpathStr='/home/rat/Documents/octave/eq_research/main/transform/ wav/'; [ybeep, Fsbeep, nbitsbeep] = wavread(strcat(filerawbeeppathStr,filerawbeepStr)); %addpath(?/home/rat/Documents/octave/eq_research/main/transform/?); %add path to location of functions %1a voice print import [vp_sig_orig, fs_rate, nbitsraw] = wavread(strcat(filevoiceprepathStr,'voice8000fs.wav')); %vp_sig_orig=vp_sig_orig?; vp_sig_len=length(vp_sig_orig); %2a create frequency domain ya_fft = fft(vp_sig_orig); vp_sig_phase_orig = unwrap(angle(ya_fft)); %get Magnitude ya_fft_mag = abs(ya_fft); %3a frequency back to time domain ya_ifft=real(ifft(ya_fft)); %adjust frequency/phase here? How? vp_sig_new=real(ifft(ya_fft_mag.*exp(i*vp_sig_phase_orig))); subplot(3,1,1), plot(vp_sig_orig),title('1 original time domain') subplot(3,1,2), plot(ya_ifft),title('2 rebuild time domain') subplot(3,1,3), plot(vp_sig_new),title('3 adjusted time') -----Inline Attachment Follows----- _______________________________________________ Help-octave mailing list Help-octave at octave.org https://mailman.cae.wisc.edu/listinfo/help-octave So, regarding your " Example I have a signal that repeats 1 time every second and I want to have it repeat 3 times a second instead. " - why do you need FFT in the first place ? I.e. if 'x' is your signal, why not simply write x = linspace(0, 1, 10); % or whatever other way to generate your signal y = [x x x]; % repeat x 3 times plot(y); ? Regards, Sergei. From ratulloch at gmail.com Mon Apr 4 17:37:05 2011 From: ratulloch at gmail.com (Rick T) Date: Mon, 4 Apr 2011 12:37:05 -1000 Subject: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 In-Reply-To: <145723.25904.qm@web112113.mail.gq1.yahoo.com> References: <145723.25904.qm@web112113.mail.gq1.yahoo.com> Message-ID: I need fft/ifft due to the fact that I have to alter various cells in the array the signal is stored in (in the frequency domain. The script is very long. In my experience if you post hundreds of lines of code people will not look at it. That's why I kept it simple and basic. And asked How can I increase/decrease (frequency/pitch) and phase using fft/ifft. PS: Unfortunately Sergei the nice solution you sent won't work, I'm dealing with large arrays that are exported back out as audio files and fft/ifft seems to be the fastest. On Mon, Apr 4, 2011 at 11:33 AM, Sergei Steshenko wrote: > > --- On Mon, 4/4/11, Rick T wrote: > > From: Rick T > Subject: How can I increase/decrease (frequency/pitch) and phase using > fft/ifft tia sal22 > To: help-octave at octave.org > Date: Monday, April 4, 2011, 2:11 PM > > How can I increase/decrease (frequency/pitch) and phase using fft/ifft > I think I have the basic code but I?m not sure what to do next > > PS: Thanks for the help on the last question everyone I decided not to use > the FOR loop and sin/cos values and just use fft/ifft > > > to see if this will work. > Example I have a signal that repeats 1 time every second and I want to > have it repeat 3 times a second instead. > %Voiceprint raise lower freq phase conjugate signal > tic > > > clear all, clc,clf,tic > %% Sound /beep calculation complete > filerawbeepStr='calculations_complete.wav'; > filerawbeeppathStr='/home/rat/Documents/octave/raw/'; > filevoiceprepathStr='/home/rat/Documents/octave/eq_research/main/ > > > transform/voice/'; > filewavpathStr='/home/rat/Documents/octave/eq_research/main/transform/ > wav/'; > [ybeep, Fsbeep, nbitsbeep] = > wavread(strcat(filerawbeeppathStr,filerawbeepStr)); > %addpath(?/home/rat/Documents/octave/eq_research/main/transform/?); > > > %add path to location of functions > %1a voice print import > [vp_sig_orig, fs_rate, nbitsraw] = > wavread(strcat(filevoiceprepathStr,'voice8000fs.wav')); > %vp_sig_orig=vp_sig_orig?; > > > vp_sig_len=length(vp_sig_orig); > %2a create frequency domain > ya_fft = fft(vp_sig_orig); > vp_sig_phase_orig = unwrap(angle(ya_fft)); > %get Magnitude > ya_fft_mag = abs(ya_fft); > > > %3a frequency back to time domain > ya_ifft=real(ifft(ya_fft)); > %adjust frequency/phase here? How? > vp_sig_new=real(ifft(ya_fft_mag.*exp(i*vp_sig_phase_orig))); > subplot(3,1,1), plot(vp_sig_orig),title('1 original time domain') > > > subplot(3,1,2), plot(ya_ifft),title('2 rebuild time domain') > subplot(3,1,3), plot(vp_sig_new),title('3 adjusted time') > > > > > -----Inline Attachment Follows----- > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > > So, regarding your > > > " > Example I have a signal that repeats 1 time every second and I want to > have it repeat 3 times a second instead. > " > > - why do you need FFT in the first place ? > > I.e. if 'x' is your signal, why not simply write > > x = linspace(0, 1, 10); % or whatever other way to generate your signal > y = [x x x]; % repeat x 3 times > plot(y); > > > ? > > Regards, > Sergei. > -- -- |======================================================| |http://www.onewithall.net/ |======================================================| |"Knowledge may be the Key" |"But wisdom unlocks the door" |"Absolute Power demands absolutely nothing" "The bourgeois today burns as heretics and hangs as criminals those to whom he erects monuments tomorrow" ('Steppenwolf') |======================================================| -------------- next part -------------- An HTML attachment was scrubbed... URL: From sergstesh at yahoo.com Mon Apr 4 18:17:17 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Mon, 4 Apr 2011 16:17:17 -0700 (PDT) Subject: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 Message-ID: <84275.863.qm@web112109.mail.gq1.yahoo.com> --- On Mon, 4/4/11, Rick T wrote: From: Rick T Subject: Re: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 To: "Sergei Steshenko" Cc: help-octave at octave.org Date: Monday, April 4, 2011, 3:37 PM I need fft/ifft due to the fact that I have to alter various cells in the array the signal is stored in (in the frequency domain.? The script is very long.? In my experience if you post hundreds of lines of code people will not look at it.? That's why I kept it simple and basic.? And asked How can I increase/decrease (frequency/pitch) and phase using fft/ifft.? PS: Unfortunately Sergei the nice solution you sent won't work, I'm dealing with large arrays that are exported back out as audio files and fft/ifft seems to be the fastest. ? On Mon, Apr 4, 2011 at 11:33 AM, Sergei Steshenko wrote: --- On Mon, 4/4/11, Rick T wrote: From: Rick T Subject: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 To: help-octave at octave.org Date: Monday, April 4, 2011, 2:11 PM How can I increase/decrease (frequency/pitch) and phase using fft/ifft ?I think I have the basic code but I?m not sure what to do next PS: Thanks for the help on the last question everyone I decided not to use the FOR loop and sin/cos values and just use fft/ifft to see if this will work. Example I have a signal that repeats 1 time every second and I want to ?have it repeat 3 times a second instead. ??%Voiceprint raise lower freq phase conjugate signal ?tic ?clear all, clc,clf,tic ?%% Sound /beep calculation complete ?filerawbeepStr='calculations_complete.wav'; ?filerawbeeppathStr='/home/rat/Documents/octave/raw/'; ?filevoiceprepathStr='/home/rat/Documents/octave/eq_research/main/ ?transform/voice/'; ?filewavpathStr='/home/rat/Documents/octave/eq_research/main/transform/ ?wav/'; ?[ybeep, Fsbeep, nbitsbeep] = ?wavread(strcat(filerawbeeppathStr,filerawbeepStr)); ?%addpath(?/home/rat/Documents/octave/eq_research/main/transform/?); ?%add path to location of functions ?%1a voice print import ?[vp_sig_orig, fs_rate, nbitsraw] = ?wavread(strcat(filevoiceprepathStr,'voice8000fs.wav')); ?%vp_sig_orig=vp_sig_orig?; ?vp_sig_len=length(vp_sig_orig); ?%2a create frequency domain ?ya_fft = fft(vp_sig_orig); ?vp_sig_phase_orig = unwrap(angle(ya_fft)); ?%get Magnitude ?ya_fft_mag = abs(ya_fft); %3a frequency back to time domain ?ya_ifft=real(ifft(ya_fft)); ?%adjust frequency/phase here? How? ?vp_sig_new=real(ifft(ya_fft_mag.*exp(i*vp_sig_phase_orig))); ?subplot(3,1,1), plot(vp_sig_orig),title('1 original time domain') ?subplot(3,1,2), plot(ya_ifft),title('2 rebuild time domain') ?subplot(3,1,3), plot(vp_sig_new),title('3 adjusted time') -----Inline Attachment Follows----- _______________________________________________ Help-octave mailing list Help-octave at octave.org https://mailman.cae.wisc.edu/listinfo/help-octave So, regarding your " Example I have a signal that repeats 1 time every second and I want to ?have it repeat 3 times a second instead. " - why do you need FFT in the first place ? I.e. if 'x' is your signal, why not simply write x = linspace(0, 1, 10); % or whatever other way to generate your signal y = [x x x]; % repeat x 3 times plot(y); ? Regards, ?Sergei. -- -- |======================================================| |http://www.onewithall.net/? ? ? ? ? ? ? ? ? ? ? ? ? ? |======================================================| |"Knowledge may be the Key" |"But wisdom unlocks the door" |"Absolute Power demands absolutely nothing" "The bourgeois today burns as heretics and hangs as criminals those to whom he erects monuments tomorrow" ('Steppenwolf') |======================================================| Sorry, but this is mostly nonsense. FFT can't be faster than just moving data in memory - the latter is my solution. If your audio comes in frequency domain, then by just _one_ 'ifft' you convert it into time domain, and then my solution works. You have already been given a link to 'resample' function. You appear not to understand fundamental things regarding pitch shift. If your signal gets repeated a number of times, it is not pitch shift. Pitch shift does not imply signal repetitions and does not imply change of number of output samples. AFAIK pitch shift is implemented through overlapping relatively (compared to the length of the whole musical piece) short FFTs, and the spectrum is shifted (rather, scaled - you typically need all spectral componenets to be multiplied by the same factor) in order to achieve pitch shift - number of samples, as I said, does _not_ change. Start from http://en.wikipedia.org/wiki/Audio_timescale-pitch_modification -> http://en.wikipedia.org/wiki/Audio_timescale-pitch_modification#Pitch_scaling . Regards, Sergei. From tmDetman at earthlink.net Mon Apr 4 19:24:53 2011 From: tmDetman at earthlink.net (Thomas Detman) Date: Mon, 04 Apr 2011 18:24:53 -0600 Subject: can't install octcdf-1.0.13 package Message-ID: <4D9A6155.7080909@earthlink.net> I love octave! I just upgraded my Lenovo T61 Linux notebook from Ubuntu 8.04LTS to 10.04LTS. I had installed octave with the Synaptic Package Manager under 8.04. The upgrade automatically tried to upgrade my octave to octave-3.2.3 in the process, but failed with error message ~ "subprocess installed post-installation script returned error exit". ... Package octave-3.2 failed to install or upgrade. I clicked [report to developers]. After rebooting into Ubuntu 10.04, I still had octave-3.0. I may have messed things up long ago. I originally had octave-2.9, and with it the package octcdf-1.0.7, and it worked. But to get around a graphics bug in 2.9, I had downloaded and installed separately octave-3.0. I tried but failed to install the octcdf package into my octave-3.0. So I kept and used both. (I'm only 90% sure of those version numbers.) After the OS upgrade, I used Synaptic to upgrade octave to 3.2.3, and that succeeded. But when I tried to install the octcdf-1.0.13 package with Synaptic, I ran into problems. Synaptic seemed to be successful, but when I ran octave, it told me the octcdf package was not installed (pkg list). I used Synaptic to see what files it installed, and looked at some of the new "tree" branches; they were there. I tried several things with the pkg command, but got nowhere. I think my octave-3.2.3 file tree or configuration must be messed up, but I don't really know what's wrong or how to fix it. (Help) I suppose I could download the octcdf-1.0.13.tar.gz package and use pkg install to try to install it that way; that might work, but it is a work around and does not fix the underlying configuration(?) problem. Thanks, Thomas From jordigh at octave.org Mon Apr 4 19:44:34 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Mon, 4 Apr 2011 19:44:34 -0500 Subject: can't install octcdf-1.0.13 package In-Reply-To: <4D9A6155.7080909@earthlink.net> References: <4D9A6155.7080909@earthlink.net> Message-ID: On 4 April 2011 19:24, Thomas Detman wrote: > I may have messed things up long ago. ?I originally had octave-2.9, and with > it the package octcdf-1.0.7, and it worked. ?But to get around a graphics > bug in 2.9, I had downloaded and installed separately octave-3.0. ?I tried > but failed to install the octcdf package into my octave-3.0. ?So I kept and > used both. > (I'm only 90% sure of those version numbers.) I see you tried to provide debug info, but you omitted the most important information. What were the error messages? They are probably gone by now. So try, from the command line, sudo apt-get install octave3.2 and post the results here. That might give us a starting point. Thanks, - Jordi G. H. From guggus_adieu at yahoo.de Tue Apr 5 03:03:06 2011 From: guggus_adieu at yahoo.de (Sina Calmote) Date: Tue, 5 Apr 2011 09:03:06 +0100 (BST) Subject: Octave 3.4 for Ubuntu Message-ID: <440785.24365.qm@web29711.mail.ird.yahoo.com> Hey there octave community I just put kUbuntu on my laptop and tried to get octave 3.4 over the software installtion assistant but it doesn't appear on the software list. I saw that there is a .tar file on the gnu webpage but I don't know how to install and I just don't understand the readme file... Does anyone know by when a debian for ubuntu will be available or what the easiest way is to get octave 3.4? THANKS :) From yury.tarasievich at gmail.com Tue Apr 5 03:27:27 2011 From: yury.tarasievich at gmail.com (Yury Tarasievich) Date: Tue, 05 Apr 2011 11:27:27 +0300 Subject: showing graphics from command line run In-Reply-To: References: <4D9821B6.3040502@gmail.com> Message-ID: <4D9AD26F.8080001@gmail.com> Thank you! With 'pause' the script actually shows the graphics; sleep(1) serves fine, too. Without either of those, I couldn't notice even a blink of a window 'happening'. Yes, this needs to go into the FAQ, as it might be a source of a certain confusion (on fairly fast systems). -Yury On 04/04/2011 11:28 PM, Jordi Guti?rrez Hermoso wrote: > On 3 April 2011 01:28, Yury Tarasievich wrote: >> How do I get the graphics (plot) window showing if octave script is executed >> from command line? I.e., the sombrero instruction seems to go through the >> correct stages (AFAICT from the `octave -V -x` output) but shows no graphics >> window. > > (I really need to add this to the official FAQ...) > > What's most likely happening is that the Octave process is finishing > when it finishes executing your script, so it also closes the window > it spawned. Tell Octave to wait by adding a pause command to your > script after the plot command. ... From nuncio.m at gmail.com Tue Apr 5 04:06:09 2011 From: nuncio.m at gmail.com (nuncio m) Date: Tue, 5 Apr 2011 14:36:09 +0530 Subject: memory Message-ID: Hi list, What is the maximum size of a matrix that octave can hold. Why I am asking this is, I am getting a memory when I try to find the eigen values of a matrix of 348 rows and 29898 columns. I am using a 32 bit open suse on pentium 4 processor having 2 GB of RAM and a swap of 4.6 GB. Any help would be greatly appreciated. nuncio -- Nuncio.M Research Scientist National Center for Antarctic and Ocean research Head land Sada Vasco da Gamma Goa-403804 -------------- next part -------------- An HTML attachment was scrubbed... URL: From andybuckle at gmail.com Tue Apr 5 04:13:57 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Tue, 5 Apr 2011 10:13:57 +0100 Subject: Octave 3.4 for Ubuntu In-Reply-To: <440785.24365.qm@web29711.mail.ird.yahoo.com> References: <440785.24365.qm@web29711.mail.ird.yahoo.com> Message-ID: On Tue, Apr 5, 2011 at 9:03 AM, Sina Calmote wrote: > Hey there octave community > > I just put kUbuntu on my laptop and tried to get octave 3.4 over the software > installtion assistant but it doesn't appear on the software list. I saw that > there is a .tar file on the gnu webpage but I don't know how to install and I > just don't understand the readme file... > > Does anyone know by when a debian for ubuntu will be available or ?what the > easiest way is to get octave 3.4? > > THANKS :) compile it yourself from the tar file, or a pulled mercurial working copy. Its pretty standard. ./autogen.sh ./configure make sudo make install The autogen and configure steps will tell you what dependencies you are missing. (Also search the archive of this list, there has been plenty of help given) If this is too tricky for you, then you have to what for someone to package it for kubuntu. -- /* andy buckle */ From martin at mhelm.de Tue Apr 5 05:56:25 2011 From: martin at mhelm.de (Martin Helm) Date: Tue, 5 Apr 2011 12:56:25 +0200 Subject: memory In-Reply-To: References: Message-ID: <201104051256.25657.martin@mhelm.de> Am Dienstag, 5. April 2011, 11:06:09 schrieb nuncio m: > Hi list, > What is the maximum size of a matrix that octave can hold. Why I am > asking this is, I am getting a memory when I try to find the eigen values > of a matrix of 348 rows and 29898 columns. I am using a 32 bit open suse > on pentium 4 processor having 2 GB of RAM and a swap of 4.6 GB. Any help > would be greatly appreciated. > > nuncio Your matrix is fairly small around 80 MB memory consumption, so no problem in itself at all. The amount of memory you can use depends on your system architecture. With 32 bit you can use up to 2GB for a matrix, with a 64 bit (linux) system you can have a matrix up to 16 GB, this limit does not exist if octave is built with 64 bit indexing enabled (but this is still experimental I think). You say you run out of memory calculating the eigen values of a nonsquare matrix (?). can you show us a short code snippet how you do that? I am not sure if I really understand. Do you calculate something like eig(a'*a) or eig(a*a')? If yes you are better served with looking at the svd command instead of calculating a matrix product. From nuncio.m at gmail.com Tue Apr 5 06:13:21 2011 From: nuncio.m at gmail.com (nuncio m) Date: Tue, 5 Apr 2011 16:43:21 +0530 Subject: memory In-Reply-To: <201104051256.25657.martin@mhelm.de> References: <201104051256.25657.martin@mhelm.de> Message-ID: Hi martin, Here is the code snippet R=f' * f ---------------------------------(1) [C,L]=eigs(R);-----------------------(2) [C1,Lambda,CC]=svd(f);-------------(3) memory error is shown at 1 thanks nuncio On Tue, Apr 5, 2011 at 4:26 PM, Martin Helm wrote: > Am Dienstag, 5. April 2011, 11:06:09 schrieb nuncio m: > > Hi list, > > What is the maximum size of a matrix that octave can hold. Why I am > > asking this is, I am getting a memory when I try to find the eigen values > > of a matrix of 348 rows and 29898 columns. I am using a 32 bit open > suse > > on pentium 4 processor having 2 GB of RAM and a swap of 4.6 GB. Any help > > would be greatly appreciated. > > > > nuncio > > Your matrix is fairly small around 80 MB memory consumption, so no problem > in > itself at all. The amount of memory you can use depends on your system > architecture. With 32 bit you can use up to 2GB for a matrix, with a 64 bit > (linux) system you can have a matrix up to 16 GB, this limit does not exist > if > octave is built with 64 bit indexing enabled (but this is still > experimental I > think). > > You say you run out of memory calculating the eigen values of a nonsquare > matrix (?). can you show us a short code snippet how you do that? I am not > sure if I really understand. > Do you calculate something like eig(a'*a) or eig(a*a')? If yes you are > better > served with looking at the svd command instead of calculating a matrix > product. > -- Nuncio.M Research Scientist National Center for Antarctic and Ocean research Head land Sada Vasco da Gamma Goa-403804 -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at cs.york.ac.uk Tue Apr 5 06:17:03 2011 From: john at cs.york.ac.uk (John A. Murdie) Date: Tue, 05 Apr 2011 12:17:03 +0100 Subject: Octave (3.4.0) native graphics on Linux with FLTK 2 and libGL Message-ID: <4D9AFA2F.8020406@cs.york.ac.uk> I've just built Octave 3.4.0 on 64-bit Slackware Linux 13.1, not having built it for a while. I always seem to have trouble with native graphics! First I tried just './configure', but although our OpenGL Mesa (7.8.1) library was found that didn't find FLTK, so I then tried './configure --with-fltk-prefix=/usr' and FLTK was then found - but I saw the message: "configure: WARNING: FLTK does not have OpenGL support. Native graphics will be disabled." We have 64-bit FLTK 2.2.0 installed - the configuration reporting script is fltk2-config. I appreciate that the Octave developers are working hard to improve and extend the program, but I can't find a 'HOWTO' for native graphics (though there are several postings in the mailing lists - most recently http://octave.1599824.n4.nabble.com/how-to-enable-native-graphics-td2969416.html#a2969547 - though, alas, the HTML links there are broken). I wish I had the knowledge to write something for the Octave FAQ answers on this subject. Can anyone suggest how I can make progress with building Octave 3.4.0 with native graphics, please? From mafaraxas at gmail.com Tue Apr 5 06:38:57 2011 From: mafaraxas at gmail.com (Moo) Date: Tue, 5 Apr 2011 05:38:57 -0600 Subject: memory In-Reply-To: References: <201104051256.25657.martin@mhelm.de> Message-ID: On Tue, Apr 5, 2011 at 5:13 AM, nuncio m wrote: > Hi martin, > Here is the code snippet > R=f' * f ---------------------------------(1) > [C,L]=eigs(R);-----------------------(2) > [C1,Lambda,CC]=svd(f);-------------(3) > > memory error is shown at 1 > thanks > nuncio > I assume you mean f is size of 348 rows and 29898 columns. In that case, the result R = f' * f would be 29898 x 29898, rather than 348 x 348 (which I expect is what you want). If I did the calculation right, the square matrix of dimension 29898 would take roughly 6.6GB in memory, which explains your memory problem. The solution is: either take the transpose of f before those lines; f = f'; or change (1) to R = f * f', which computes the normal matrix size 348 x 348 you want. Hope that helps. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nuncio.m at gmail.com Tue Apr 5 06:44:24 2011 From: nuncio.m at gmail.com (nuncio m) Date: Tue, 5 Apr 2011 17:14:24 +0530 Subject: memory In-Reply-To: References: <201104051256.25657.martin@mhelm.de> Message-ID: Thanks, but if I increase the swap would that help nuncio On Tue, Apr 5, 2011 at 5:08 PM, Moo wrote: > On Tue, Apr 5, 2011 at 5:13 AM, nuncio m wrote: > >> Hi martin, >> Here is the code snippet >> R=f' * f ---------------------------------(1) >> [C,L]=eigs(R);-----------------------(2) >> [C1,Lambda,CC]=svd(f);-------------(3) >> >> memory error is shown at 1 >> thanks >> nuncio >> > > I assume you mean f is size of 348 rows and 29898 columns. In that case, > the result R = f' * f would be 29898 x 29898, rather than 348 x 348 (which I > expect is what you want). If I did the calculation right, the square matrix > of dimension 29898 would take roughly 6.6GB in memory, which explains your > memory problem. > > The solution is: either take the transpose of f before those lines; f = f'; > or change (1) to R = f * f', which computes the normal matrix size 348 x 348 > you want. > > Hope that helps. > -- Nuncio.M Research Scientist National Center for Antarctic and Ocean research Head land Sada Vasco da Gamma Goa-403804 -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at mhelm.de Tue Apr 5 07:03:45 2011 From: martin at mhelm.de (Martin Helm) Date: Tue, 5 Apr 2011 14:03:45 +0200 Subject: memory In-Reply-To: References: <201104051256.25657.martin@mhelm.de> Message-ID: <201104051403.45984.martin@mhelm.de> Am Dienstag, 5. April 2011, 13:13:21 schrieb nuncio m: > Hi martin, > Here is the code snippet > R=f' * f ---------------------------------(1) > [C,L]=eigs(R);-----------------------(2) > [C1,Lambda,CC]=svd(f);-------------(3) > > memory error is shown at 1 > thanks > nuncio > > On Tue, Apr 5, 2011 at 4:26 PM, Martin Helm wrote: > > Am Dienstag, 5. April 2011, 11:06:09 schrieb nuncio m: > > > Hi list, > > > > > > What is the maximum size of a matrix that octave can hold. Why I am > > > > > > asking this is, I am getting a memory when I try to find the eigen > > > values of a matrix of 348 rows and 29898 columns. I am using a 32 > > > bit open > > > > suse > > > > > on pentium 4 processor having 2 GB of RAM and a swap of 4.6 GB. Any > > > help would be greatly appreciated. > > > > > > nuncio > > > > Your matrix is fairly small around 80 MB memory consumption, so no > > problem in > > itself at all. The amount of memory you can use depends on your system > > architecture. With 32 bit you can use up to 2GB for a matrix, with a 64 > > bit (linux) system you can have a matrix up to 16 GB, this limit does > > not exist if > > octave is built with 64 bit indexing enabled (but this is still > > experimental I > > think). > > > > You say you run out of memory calculating the eigen values of a nonsquare > > matrix (?). can you show us a short code snippet how you do that? I am > > not sure if I really understand. > > Do you calculate something like eig(a'*a) or eig(a*a')? If yes you are > > better > > served with looking at the svd command instead of calculating a matrix > > product. R is a matrix with 29898^2 entries which is about 7 GB of memory! What's wrong with simply using svd(f), you just need to square the singular values. From martin at mhelm.de Tue Apr 5 07:06:09 2011 From: martin at mhelm.de (Martin Helm) Date: Tue, 5 Apr 2011 14:06:09 +0200 Subject: memory In-Reply-To: References: Message-ID: <201104051406.09598.martin@mhelm.de> Am Dienstag, 5. April 2011, 13:44:24 schrieb nuncio m: > Thanks, but if I increase the swap would that help > nuncio > > If you are on a linux system with 64 bit it will help, but it simply makes no sense to calculate that way, it is waste of memory and cpu cycles to get a result which can be easier calculated with the svd's. From jordigh at octave.org Tue Apr 5 08:56:43 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Tue, 5 Apr 2011 08:56:43 -0500 Subject: Octave 3.4 for Ubuntu In-Reply-To: <440785.24365.qm@web29711.mail.ird.yahoo.com> References: <440785.24365.qm@web29711.mail.ird.yahoo.com> Message-ID: On 5 April 2011 03:03, Sina Calmote wrote: > Does anyone know by when a debian for ubuntu will be available WIR, RSN, SIYH. We've fallen behind with the Debian packaging. Note that nobody in Ubuntu is specifically working on Octave. Also see this discussion: http://lists.alioth.debian.org/pipermail/pkg-octave-devel/2011-February/thread.html#7706 - Jordi G. H. From ma00101 at surrey.ac.uk Tue Apr 5 10:51:49 2011 From: ma00101 at surrey.ac.uk (dirac) Date: Tue, 5 Apr 2011 10:51:49 -0500 (CDT) Subject: Two lined title on plot Message-ID: <1302018709599-3428433.post@n4.nabble.com> hi there, I have been trying to put a two lined title on to a plot I am working on at the moment. I have seen some suggestions from the matlab forum already: title({'line1','line2'}) and title('line1 \newline line2') But they both don't work. I don't know if it is because I am using a macbook or if these commands don't work in Octave. I also saw another solution from the Octave (this!) forum: title("foo\nbar") But this doesn't work for my problem where I am concatenating things in the command: title(cstrcat('Normalised Histogram and Gaussian fit of the ',num2str(days),' daily returns for the stock AstraZeneca PLC')) Is there a way to put this on two lines? Thanks Martin ----- Still learning everyday. -- View this message in context: http://octave.1599824.n4.nabble.com/Two-lined-title-on-plot-tp3428433p3428433.html Sent from the Octave - General mailing list archive at Nabble.com. From martin at mhelm.de Tue Apr 5 11:16:06 2011 From: martin at mhelm.de (Martin Helm) Date: Tue, 5 Apr 2011 18:16:06 +0200 Subject: Two lined title on plot In-Reply-To: <1302018709599-3428433.post@n4.nabble.com> References: <1302018709599-3428433.post@n4.nabble.com> Message-ID: <201104051816.06833.martin@mhelm.de> Am Dienstag, 5. April 2011, 17:51:49 schrieb dirac: > hi there, > > I have been trying to put a two lined title on to a plot I am working on at > the moment. I have seen some suggestions from the matlab forum already: > > title({'line1','line2'}) > > and > > title('line1 \newline line2') > > But they both don't work. I don't know if it is because I am using a > macbook or if these commands don't work in Octave. I also saw another > solution from the Octave (this!) forum: > > title("foo\nbar") > > But this doesn't work for my problem where I am concatenating things in the > command: > > title(cstrcat('Normalised Histogram and Gaussian fit of the > ',num2str(days),' daily returns for the stock AstraZeneca PLC')) > > > > Is there a way to put this on two lines? > Thanks > Martin > This example works well with 3.4 title(cstrcat("Normalised Histogram and Gaussian fit \nof the ",num2str(days)," daily returns\n for the stock AstraZeneca PLC")) (Just for fun I used 3 lines) You have to use "" for the strings. -------------- next part -------------- A non-text attachment was scrubbed... Name: test.gif Type: image/gif Size: 4992 bytes Desc: not available URL: From WKrekeler at cleanearthtech.com Tue Apr 5 11:48:11 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Tue, 5 Apr 2011 16:48:11 +0000 Subject: Two lined title on plot In-Reply-To: <201104051816.06833.martin@mhelm.de> References: <1302018709599-3428433.post@n4.nabble.com> <201104051816.06833.martin@mhelm.de> Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB212C5297@CETEX1.cleanearth.ceprivate> -----Original Message----- From: help-octave-bounces at octave.org [mailto:help-octave-bounces at octave.org] On Behalf Of Martin Helm Sent: Tuesday, April 05, 2011 11:16 AM To: help-octave at octave.org Cc: dirac Subject: Re: Two lined title on plot Am Dienstag, 5. April 2011, 17:51:49 schrieb dirac: > hi there, > > I have been trying to put a two lined title on to a plot I am working > on at the moment. I have seen some suggestions from the matlab forum already: > > title({'line1','line2'}) > > and > > title('line1 \newline line2') > > But they both don't work. I don't know if it is because I am using a > macbook or if these commands don't work in Octave. I also saw another > solution from the Octave (this!) forum: > > title("foo\nbar") > > But this doesn't work for my problem where I am concatenating things > in the > command: > > title(cstrcat('Normalised Histogram and Gaussian fit of the > ',num2str(days),' daily returns for the stock AstraZeneca PLC')) > > > > Is there a way to put this on two lines? > Thanks > Martin > This example works well with 3.4 title(cstrcat("Normalised Histogram and Gaussian fit \nof the ",num2str(days)," daily returns\n for the stock AstraZeneca PLC")) (Just for fun I used 3 lines) You have to use "" for the strings. Why not embed sprintf inside the title command? Then you can control how the days are printed, precision of float values, etc. title( sprintf( 'string1\nstring2' ) ) Bill Krekeler From pr.nienhuis at hccnet.nl Tue Apr 5 13:04:42 2011 From: pr.nienhuis at hccnet.nl (Philip Nienhuis) Date: Tue, 5 Apr 2011 13:04:42 -0500 (CDT) Subject: Two lined title on plot In-Reply-To: <201104051816.06833.martin@mhelm.de> References: <1302018709599-3428433.post@n4.nabble.com> <201104051816.06833.martin@mhelm.de> Message-ID: <1302026682844-3428756.post@n4.nabble.com> martin_helm wrote: > > Am Dienstag, 5. April 2011, 17:51:49 schrieb dirac: > > hi there, > > > > I have been trying to put a two lined title on to a plot I am working > on at > > the moment. I have seen some suggestions from the matlab forum > already: > > > > title({'line1','line2'}) > > > > and > > > > title('line1 \newline line2') > > > > But they both don't work. I don't know if it is because I am using a > > macbook or if these commands don't work in Octave. I also saw another > > solution from the Octave (this!) forum: > > > > title("foo\nbar") > > > > But this doesn't work for my problem where I am concatenating things > in the > > command: > > > > title(cstrcat('Normalised Histogram and Gaussian fit of the > > ',num2str(days),' daily returns for the stock AstraZeneca PLC')) > > > > > > > > Is there a way to put this on two lines? > > Thanks > > Martin > > > > This example works well with 3.4 > > title(cstrcat("Normalised Histogram and Gaussian fit \nof the > ",num2str(days)," > daily returns\n for the stock AstraZeneca PLC")) > > (Just for fun I used 3 lines) > You have to use "" for the strings. > Sure, this works OK in GNUplot, but not so nice in FLTK as the glyph renderer produces hickups on control characters like \n, \t, \r, ..... and on text cell arrays. A while ago I've sent patches for this to the bug tracker (#31468) for both __ axis_label__.m (proposed earlier on by David Bateman) & src/txt-eng-ft.cc (the actual glyph renderer). Hopefully they'll be applied soon or perhaps someone can turn them into a changeset (I'm still trying to find out how to do this myself easily, esp. backing out). Philip -- View this message in context: http://octave.1599824.n4.nabble.com/Two-lined-title-on-plot-tp3428433p3428756.html Sent from the Octave - General mailing list archive at Nabble.com. From daryl at daryllee.com Tue Apr 5 16:44:37 2011 From: daryl at daryllee.com (Daryl Lee) Date: Tue, 05 Apr 2011 15:44:37 -0600 Subject: clf reset Message-ID: <4D9B8D45.6000903@daryllee.com> I am trying to use Octave to learn Matlab, based on the online text "Numerical Computing with Matlab", at http://www.mathworks.com/moler/index_ncm.html. That text provides a "starter kit" of examples in a folder called "ncm". Many of the examples fail because they include lines consisting of "clf reset". Octave pukes on the lines, pointing to line 68 in its own clf.m file. The simplest script I can think of to reproduce the error is: figure(1); clf reset; fplot(@sin, [-10, 10]); Without the "clf reset;" line, the graph result is as expected; with it, I get an error and no graph. The error report is: error: `reset' undefined near line 68 column 5 error: called from: error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\clf.m at line 68, column 5 error: d:\UNM\MatlabTut\trial02.m at line 2, column 1 My operating environment is Windows7-64, running Octave 3.2.4. So far, this is the only problem I've encountered, but I've barely started. Since I am a total newbie to Matlab/Octave, I'm sure this is something very fundamental that I have missed. Where should I be looking to see what that might be? -- Daryl Lee From marco.atzeri at gmail.com Tue Apr 5 17:23:40 2011 From: marco.atzeri at gmail.com (marco atzeri) Date: Wed, 6 Apr 2011 00:23:40 +0200 Subject: clf reset In-Reply-To: <4D9B8D45.6000903@daryllee.com> References: <4D9B8D45.6000903@daryllee.com> Message-ID: On Tue, Apr 5, 2011 at 11:44 PM, Daryl Lee wrote: > I am trying to use Octave to learn Matlab, based on the online text > "Numerical Computing with Matlab", at > http://www.mathworks.com/moler/index_ncm.html. That text provides a > "starter kit" of examples in a folder called "ncm". Many of the examples > fail because they include lines consisting of "clf reset". Octave pukes on > the lines, pointing to line 68 in its own clf.m file. > > The simplest script I can think of to reproduce the error is: > > figure(1); > clf reset; > fplot(@sin, [-10, 10]); > > Without the "clf reset;" line, the graph result is as expected; with it, I > get an error and no graph. > > The error report is: > error: `reset' undefined near line 68 column 5 > error: called from: > error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\clf.m at > line 68, column 5 > error: d:\UNM\MatlabTut\trial02.m at line 2, column 1 > > My operating environment is Windows7-64, running Octave 3.2.4. > > So far, this is the only problem I've encountered, but I've barely started. > > Since I am a total newbie to Matlab/Octave, I'm sure this is something very > fundamental that I have missed. Where should I be looking to see what that > might be? > > -- > Daryl Lee what "help clf" produce ? on octave 3.4.0, clf reset is available: octave:2> help clf `clf' is a function from the file /usr/share/octave/3.4.0/m/plot/clf.m -- Function File: clf () -- Function File: clf ("reset") -- Function File: clf (HFIG) -- Function File: clf (HFIG, "reset") Clear the current figure window. `clf' operates by deleting child graphics objects with visible handles (`handlevisibility' = on). If HFIG is specified operate on it instead of the current figure. If the optional argument `"reset"' is specified, all objects including those with hidden handles are deleted. Regards Marco From daryl at daryllee.com Tue Apr 5 18:03:12 2011 From: daryl at daryllee.com (Daryl Lee) Date: Tue, 05 Apr 2011 17:03:12 -0600 Subject: clf reset In-Reply-To: References: <4D9B8D45.6000903@daryllee.com> Message-ID: <4D9B9FB0.9060705@daryllee.com> On 4/5/2011 4:22 PM, marco atzeri wrote: > On Tue, Apr 5, 2011 at 11:44 PM, Daryl Lee wrote: >> I am trying to use Octave to learn Matlab, based on the online text >> "Numerical Computing with Matlab", at >> http://www.mathworks.com/moler/index_ncm.html. That text provides a >> "starter kit" of examples in a folder called "ncm". Many of the examples >> fail because they include lines consisting of "clf reset". Octave pukes on >> the lines, pointing to line 68 in its own clf.m file. >> >> The simplest script I can think of to reproduce the error is: >> >> figure(1); >> clf reset; >> fplot(@sin, [-10, 10]); >> >> Without the "clf reset;" line, the graph result is as expected; with it, I >> get an error and no graph. >> >> The error report is: >> error: `reset' undefined near line 68 column 5 >> error: called from: >> error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\clf.m at >> line 68, column 5 >> error: d:\UNM\MatlabTut\trial02.m at line 2, column 1 >> >> My operating environment is Windows7-64, running Octave 3.2.4. >> >> So far, this is the only problem I've encountered, but I've barely started. >> >> Since I am a total newbie to Matlab/Octave, I'm sure this is something very >> fundamental that I have missed. Where should I be looking to see what that >> might be? >> >> -- >> Daryl Lee > > what "help clf" produce ? > on octave 3.4.0, clf reset is available: > > octave:2> help clf > `clf' is a function from the file /usr/share/octave/3.4.0/m/plot/clf.m > > -- Function File: clf () > -- Function File: clf ("reset") > -- Function File: clf (HFIG) > -- Function File: clf (HFIG, "reset") > Clear the current figure window. `clf' operates by deleting child > graphics objects with visible handles (`handlevisibility' = on). > If HFIG is specified operate on it instead of the current figure. > If the optional argument `"reset"' is specified, all objects > including those with hidden handles are deleted. > > > Regards > Marco > > I get a similar response to "help clf". And changing 'clf reset' in the three-line script above to 'clf("reset")' changes nothing--I still get the same error. -- Daryl Lee From doug.dastew at gmail.com Tue Apr 5 18:22:58 2011 From: doug.dastew at gmail.com (Doug Stewart) Date: Tue, 5 Apr 2011 19:22:58 -0400 Subject: clf reset In-Reply-To: <4D9B9FB0.9060705@daryllee.com> References: <4D9B8D45.6000903@daryllee.com> <4D9B9FB0.9060705@daryllee.com> Message-ID: On Tue, Apr 5, 2011 at 7:03 PM, Daryl Lee wrote: > On 4/5/2011 4:22 PM, marco atzeri wrote: > >> On Tue, Apr 5, 2011 at 11:44 PM, Daryl Lee wrote: >> >>> I am trying to use Octave to learn Matlab, based on the online text >>> >>> "Numerical Computing with Matlab", at >>> http://www.mathworks.com/moler/index_ncm.html. That text provides a >>> "starter kit" of examples in a folder called "ncm". Many of the examples >>> fail because they include lines consisting of "clf reset". Octave pukes >>> on >>> the lines, pointing to line 68 in its own clf.m file. >>> >>> The simplest script I can think of to reproduce the error is: >>> >>> figure(1); >>> clf reset; >>> fplot(@sin, [-10, 10]); >>> >>> Without the "clf reset;" line, the graph result is as expected; with it, >>> I >>> get an error and no graph. >>> >>> The error report is: >>> error: `reset' undefined near line 68 column 5 >>> error: called from: >>> error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\clf.m at >>> line 68, column 5 >>> error: d:\UNM\MatlabTut\trial02.m at line 2, column 1 >>> >>> My operating environment is Windows7-64, running Octave 3.2.4. >>> >>> So far, this is the only problem I've encountered, but I've barely >>> started. >>> >>> Since I am a total newbie to Matlab/Octave, I'm sure this is something >>> very >>> fundamental that I have missed. Where should I be looking to see what >>> that >>> might be? >>> >>> -- >>> Daryl Lee >>> >> >> what "help clf" produce ? >> on octave 3.4.0, clf reset is available: >> >> octave:2> help clf >> `clf' is a function from the file /usr/share/octave/3.4.0/m/plot/clf.m >> >> -- Function File: clf () >> -- Function File: clf ("reset") >> -- Function File: clf (HFIG) >> -- Function File: clf (HFIG, "reset") >> Clear the current figure window. `clf' operates by deleting child >> graphics objects with visible handles (`handlevisibility' = on). >> If HFIG is specified operate on it instead of the current figure. >> If the optional argument `"reset"' is specified, all objects >> including those with hidden handles are deleted. >> >> >> Regards >> Marco >> >> >> > I get a similar response to "help clf". And changing 'clf reset' in the > three-line script above to 'clf("reset")' changes nothing--I still get the > same error. > > > -- > Daryl Lee > > Daryl -- you have octave 3.2 not 3.4 What you could try is just clf -- not clf reset Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at mhelm.de Tue Apr 5 18:36:40 2011 From: martin at mhelm.de (Martin Helm) Date: Wed, 6 Apr 2011 01:36:40 +0200 Subject: clf reset In-Reply-To: <4D9B9FB0.9060705@daryllee.com> References: <4D9B8D45.6000903@daryllee.com> <4D9B9FB0.9060705@daryllee.com> Message-ID: <201104060136.41970.martin@mhelm.de> Am Mittwoch, 6. April 2011, 01:03:12 schrieb Daryl Lee: > On 4/5/2011 4:22 PM, marco atzeri wrote: > > On Tue, Apr 5, 2011 at 11:44 PM, Daryl Lee wrote: > >> I am trying to use Octave to learn Matlab, based on the online text > >> "Numerical Computing with Matlab", at > >> http://www.mathworks.com/moler/index_ncm.html. That text provides a > >> "starter kit" of examples in a folder called "ncm". Many of the > >> examples fail because they include lines consisting of "clf reset". > >> Octave pukes on the lines, pointing to line 68 in its own clf.m file. > >> > >> The simplest script I can think of to reproduce the error is: > >> > >> figure(1); > >> clf reset; > >> fplot(@sin, [-10, 10]); > >> > >> Without the "clf reset;" line, the graph result is as expected; with it, > >> I get an error and no graph. > >> > >> The error report is: > >> error: `reset' undefined near line 68 column 5 > >> error: called from: > >> error: C: \Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\clf.m at > >> > >> line 68, column 5 > >> > >> error: d:\UNM\MatlabTut\trial02.m at line 2, column 1 > >> > >> My operating environment is Windows7-64, running Octave 3.2.4. > >> > >> So far, this is the only problem I've encountered, but I've barely > >> started. > >> > >> Since I am a total newbie to Matlab/Octave, I'm sure this is something > >> very fundamental that I have missed. Where should I be looking to see > >> what that might be? > >> > >> -- > >> Daryl Lee > > > > what "help clf" produce ? > > on octave 3.4.0, clf reset is available: > > > > octave:2> help clf > > `clf' is a function from the file /usr/share/octave/3.4.0/m/plot/clf.m > > > > -- Function File: clf () > > -- Function File: clf ("reset") > > -- Function File: clf (HFIG) > > -- Function File: clf (HFIG, "reset") > > > > Clear the current figure window. `clf' operates by deleting child > > graphics objects with visible handles (`handlevisibility' = on). > > If HFIG is specified operate on it instead of the current figure. > > If the optional argument `"reset"' is specified, all objects > > including those with hidden handles are deleted. > > > > Regards > > Marco > > I get a similar response to "help clf". And changing 'clf reset' in the > three-line script above to 'clf("reset")' changes nothing--I still get the > same error. You are running 3.2 not 3.4. I am afraid this command was not available in your version. I checked that in 3.4 also the syntax clf reset works. I would say simply remove the reset and simply call clf without option if it is not possible to update. From daryl at daryllee.com Tue Apr 5 19:06:42 2011 From: daryl at daryllee.com (Daryl Lee) Date: Tue, 5 Apr 2011 18:06:42 -0600 Subject: clf reset In-Reply-To: References: <4D9B8D45.6000903@daryllee.com> <4D9B9FB0.9060705@daryllee.com> Message-ID: On Apr 5, 2011, at 5:22 PM, Doug Stewart wrote: > > > On Tue, Apr 5, 2011 at 7:03 PM, Daryl Lee wrote: > On 4/5/2011 4:22 PM, marco atzeri wrote: > On Tue, Apr 5, 2011 at 11:44 PM, Daryl Lee wrote: > I am trying to use Octave to learn Matlab, based on the online text > > "Numerical Computing with Matlab", at > http://www.mathworks.com/moler/index_ncm.html. That text provides a > "starter kit" of examples in a folder called "ncm". Many of the examples > fail because they include lines consisting of "clf reset". Octave pukes on > the lines, pointing to line 68 in its own clf.m file. > > The simplest script I can think of to reproduce the error is: > > figure(1); > clf reset; > fplot(@sin, [-10, 10]); > > Without the "clf reset;" line, the graph result is as expected; with it, I > get an error and no graph. > > The error report is: > error: `reset' undefined near line 68 column 5 > error: called from: > error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\clf.m at > line 68, column 5 > error: d:\UNM\MatlabTut\trial02.m at line 2, column 1 > > My operating environment is Windows7-64, running Octave 3.2.4. > > So far, this is the only problem I've encountered, but I've barely started. > > Since I am a total newbie to Matlab/Octave, I'm sure this is something very > fundamental that I have missed. Where should I be looking to see what that > might be? > > -- > Daryl Lee > > what "help clf" produce ? > on octave 3.4.0, clf reset is available: > > octave:2> help clf > `clf' is a function from the file /usr/share/octave/3.4.0/m/plot/clf.m > > -- Function File: clf () > -- Function File: clf ("reset") > -- Function File: clf (HFIG) > -- Function File: clf (HFIG, "reset") > Clear the current figure window. `clf' operates by deleting child > graphics objects with visible handles (`handlevisibility' = on). > If HFIG is specified operate on it instead of the current figure. > If the optional argument `"reset"' is specified, all objects > including those with hidden handles are deleted. > > > Regards > Marco > > > > I get a similar response to "help clf". And changing 'clf reset' in the three-line script above to 'clf("reset")' changes nothing--I still get the same error. > > > -- > Daryl Lee > > > Daryl -- you have octave 3.2 not 3.4 > > What you could try is just clf -- not clf reset > > Doug > > Thanks. At least I know one path not to go down. I installed 3.4 (for real) on my Mac OSX and at least got past the clf reset problem. Now all I have to do is learn enough about this to implement "uicontrol", which I ran into next. But that's a story for another day. Thanks again. -- Daryl Lee From tduell at iinet.net.au Tue Apr 5 19:19:53 2011 From: tduell at iinet.net.au (Terry Duell) Date: Wed, 06 Apr 2011 10:19:53 +1000 Subject: Seeking advice re Fedora Octave Message-ID: Hullo, I have been using the Fedora 14 Octave package (octave-3.2.4-3.fc14.x86_64.rpm) and recently encountered the problem (bug) with imread. I have worked around this to some extent by converting and reading my images as plain text files, but this has only really been a stop-gap measure. In an attempt to get past this problem I have built an Octave 3.4 package from the Fedora 15 src.rpm (nothing is available for Fedora 14), but this source package has it's own problems as it appears that the packaging of libs is incorrect or different such that the Octave-Forge package can't find dependent libs and can't be installed. Has anyone managed to successfully build an Octave-3.4 Fedora package (14 or 15) that works correctly and with the current Fedora Octave-Forge package? I would really prefer to work with Fedora packages (rpm) and avoid building and installing from source. If there was a patch available for 3.2.4 that fixed the image read/write problems, I could apply the patch to a rebuild a 3.2.4 package, but it would be preferable to be able to install version 3.4. Any help or suggestions with this will be much appreciated. -- Regards, Terry Duell From tduell at iinet.net.au Wed Apr 6 01:23:08 2011 From: tduell at iinet.net.au (Terry Duell) Date: Wed, 06 Apr 2011 16:23:08 +1000 Subject: Seeking advice re Fedora Octave In-Reply-To: References: Message-ID: Hullo All, On Wed, 06 Apr 2011 10:19:53 +1000, Terry Duell wrote: [snip] > If there was a patch available for 3.2.4 that fixed the image read/write > problems, I could apply the patch to a rebuild a 3.2.4 package > It's Greatcoats off! I found a patch, eventually figured out how to incorporate it into the rpmbuild process, and built a revised version of 3.2.4 (octave-3.2.4-5.fc14.x86_64.rpm)...and the image functions (imread, imshow) are now working. So I have solved my initial problem, now just hopeful that Fedora will release an octave-3.4 package soon. If anyone else has this problem, and would like my 3.2.4-5 rpm (or the src.rpm to build it yourself), please let me know. (the rpm is 8.0 MB). Cheers, -- Regards, Terry Duell From yyamada130 at gmail.com Wed Apr 6 01:43:13 2011 From: yyamada130 at gmail.com (Yoshi Yamada) Date: Tue, 5 Apr 2011 23:43:13 -0700 (PDT) Subject: Installation of miscellaneous-1.0.11 package Message-ID: <1302072193806-3430036.post@n4.nabble.com> Hi everyone, Sorry for asking a basic question, but I was trying to install miscellaneous-1.0.11 package and it wouldn't work, with an error message as below: configure: error: in `/var/tmp/oct-FH3tCL/miscellaneous-1.0.11/src': configure: error: C compiler cannot create executables See `config.log' for more details the configure script returned the following error: checking for gcc... /usr/bin/gcc-4.2 checking whether the C compiler works... no error: called from `pkg>configure_make' in file /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m near line 1320, column 9 error: called from: error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m at line 783, column 5 error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m at line 354, column 9 My working environment is: Mac OS X 10.6.7 (X-code already installed) Octave-3.4.0 Could you tell me how to fix this (and where I can find 'config.log' file)? Thank you in advance for your kind help! Best wishes, Yoshi -- View this message in context: http://octave.1599824.n4.nabble.com/Installation-of-miscellaneous-1-0-11-package-tp3430036p3430036.html Sent from the Octave - General mailing list archive at Nabble.com. From tomsenvoy at gmail.com Wed Apr 6 05:56:06 2011 From: tomsenvoy at gmail.com (tomgg) Date: Wed, 6 Apr 2011 03:56:06 -0700 (PDT) Subject: How work the plot properties if errorbar is used? In-Reply-To: References: <594272.92335.qm@web29708.mail.ird.yahoo.com> Message-ID: <1302087366527-3430476.post@n4.nabble.com> andy buckle wrote: > > How about > > errorbar(...) > hold on > plot(...) > The problem I'm having is that the "errorbar" function draws rays between each of the data points. It's obvious that no one would ever want this; you want error bars at specified data points, not at (seemingly) random points on a horrible piecewise function! I'll try to find the "developer" files but I doubt they're public/easily accessible. Cheers -- View this message in context: http://octave.1599824.n4.nabble.com/How-work-the-plot-properties-if-errorbar-is-used-tp3249891p3430476.html Sent from the Octave - General mailing list archive at Nabble.com. From sergstesh at yahoo.com Wed Apr 6 06:04:04 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Wed, 6 Apr 2011 04:04:04 -0700 (PDT) Subject: Installation of miscellaneous-1.0.11 package In-Reply-To: <1302072193806-3430036.post@n4.nabble.com> Message-ID: <109403.18151.qm@web112114.mail.gq1.yahoo.com> --- On Tue, 4/5/11, Yoshi Yamada wrote: > From: Yoshi Yamada > Subject: Installation of miscellaneous-1.0.11 package > To: help-octave at octave.org > Date: Tuesday, April 5, 2011, 11:43 PM > Hi everyone, > > Sorry for asking a basic question, but I was trying to > install > miscellaneous-1.0.11 package and it wouldn't work, with an > error message as > below: > > configure: error: in > `/var/tmp/oct-FH3tCL/miscellaneous-1.0.11/src': > configure: error: C compiler cannot create executables > See `config.log' for more details > the configure script returned the following error: checking > for gcc... > /usr/bin/gcc-4.2 > checking whether the C compiler works... no > error: called from `pkg>configure_make' in file > /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m > near line 1320, column 9 > error: called from: > error:? > /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m > at line 783, column 5 > error:? > /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m > at line 354, column 9 > > My working environment is: > Mac OS X 10.6.7 (X-code already installed) > Octave-3.4.0 > > Could you tell me how to fix this (and where I can find > 'config.log' file)?? > Thank you in advance for your kind help! > > Best wishes, > Yoshi > > -- > View this message in context: http://octave.1599824.n4.nabble.com/Installation-of-miscellaneous-1-0-11-package-tp3430036p3430036.html > Sent from the Octave - General mailing list archive at > Nabble.com. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > The "C compiler cannot create executables" message is not quite precise. What it actually means is that your "C" compiler with the setting provided by you and 'configure' cannot create executables. E.g. if for whatever reason '-lfoo' is given, and no libfoo.* can be found by linker, the linking part will fail and you'll get the message you've got. You really need to have a look into 'config.log' - in such cases you can find the full command line and the failed test program which caused the failure. There is no common/generic answer for this error message. Regards, Sergei. From guggus_adieu at yahoo.de Wed Apr 6 08:09:41 2011 From: guggus_adieu at yahoo.de (islanzadi) Date: Wed, 6 Apr 2011 06:09:41 -0700 (PDT) Subject: error: memory exhausted or requested size too large for range of Octave's index type -- In-Reply-To: <6765D38A4FDFC347A2934D0D5AB0F1AB212C0922@CETEX1.cleanearth.ceprivate> References: <201103151943.17086.martin@mhelm.de> <4D7FD44F.8090402@nist.gov> <1300227120.4238.12.camel@linux-uhdl> <6765D38A4FDFC347A2934D0D5AB0F1AB212BF350@CETEX1.cleanearth.ceprivate> <201103161441.47846.martin@mhelm.de> <6765D38A4FDFC347A2934D0D5AB0F1AB212C0922@CETEX1.cleanearth.ceprivate> Message-ID: <1302095381941-3430744.post@n4.nabble.com> as well I have the message : memory exhausted or requested size too large for range of ..... but I switched from Windows Vista with octave 3.2.4 to Linux (kubuntu) with octave 3.4 I mena it is the same computer why can there be an exhaust of memory? Sina -- View this message in context: http://octave.1599824.n4.nabble.com/error-memory-exhausted-or-requested-size-too-large-for-range-of-Octave-s-index-type-tp3357172p3430744.html Sent from the Octave - General mailing list archive at Nabble.com. From senator314159 at hotmail.com Wed Apr 6 08:16:54 2011 From: senator314159 at hotmail.com (senator) Date: Wed, 6 Apr 2011 06:16:54 -0700 (PDT) Subject: using xlswrite csvwrite Message-ID: <1302095814802-3430762.post@n4.nabble.com> Hey, I cant find some of the messages that were on this site Friday, I think the site was down and some must have got deleted. There was a message where someone described what I needed to download to be able to use xlsread and xlswrite. I need to uninstall and then reinstall octave with java,io package, windows and maybe something else... There was a very detailed message describing even what java packages i need to install in order to use xls read and write. I need to be able to write and read csv files and csv write and read do work great for me as long as I dont write any text to the file. I would like to be able to find a way to put a field column on the top of my data in a csv file. It works great writing the data to a csv file, but i want to be able to write the field row on the top row in text. In matlab it works by doing 2 seperate csv writes (one for data and one for text). I dont know if that would work however because octave seems to erase everything else in a file before it writes. I dont know if xlswrite will let me write to a csv file, but if it does getting xlswrite to work could solve my problem. thanks -- View this message in context: http://octave.1599824.n4.nabble.com/using-xlswrite-csvwrite-tp3430762p3430762.html Sent from the Octave - General mailing list archive at Nabble.com. From ma00101 at surrey.ac.uk Wed Apr 6 08:44:01 2011 From: ma00101 at surrey.ac.uk (dirac) Date: Wed, 6 Apr 2011 06:44:01 -0700 (PDT) Subject: Two lined title on plot In-Reply-To: <201104051816.06833.martin@mhelm.de> References: <1302018709599-3428433.post@n4.nabble.com> <201104051816.06833.martin@mhelm.de> Message-ID: <1302097441486-3430821.post@n4.nabble.com> Thanks for the replies guys, I really appreciate it. I tried the suggestions but cant get it to work for some reason. It will only ever put the first line of the title. I'm going to try it on my laptop rather than my mac to see if it is due to that. Martin ----- Still learning everyday. -- View this message in context: http://octave.1599824.n4.nabble.com/Two-lined-title-on-plot-tp3428433p3430821.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at octave.org Wed Apr 6 08:56:14 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Wed, 6 Apr 2011 08:56:14 -0500 Subject: How work the plot properties if errorbar is used? In-Reply-To: <1302087366527-3430476.post@n4.nabble.com> References: <594272.92335.qm@web29708.mail.ird.yahoo.com> <1302087366527-3430476.post@n4.nabble.com> Message-ID: On 6 April 2011 05:56, tomgg wrote: > I'll try to find the "developer" files but I doubt they're > public/easily accessible. >From the webpage: http://octave.org If you click on "download" in the left sidebar, you get to http://www.gnu.org/software/octave/download.html and if you scroll down to the bottom, you can find the link: http://www.octave.org/hg/octave along with instructions of how to obtain them. So they're certainly public. If the above instructions to find them seem convoluted, perhaps we can modify the layout of the webpage to make them easier to find. I don't know if this will address your other concerns but at least finding the sources should not have been difficult. Was it? - Jordi G. H. From martin at mhelm.de Wed Apr 6 09:22:15 2011 From: martin at mhelm.de (Martin Helm) Date: Wed, 06 Apr 2011 16:22:15 +0200 Subject: memory In-Reply-To: References: <201104051406.09598.martin@mhelm.de> Message-ID: <1302099735.2678.8.camel@linux-uhdl> Am Mittwoch, den 06.04.2011, 10:11 +0530 schrieb nuncio m: HI martin, > Thanks, but I need to find the covariance matrix > separately. Because as a next step I need to find the svd of coupled > fields. for example atmospheric pressure and temperature. For a > single matrix I can find eigen vectors using SVD but I understand > this > is not possible without computing the covariance matrix for two > separate matrices. > nuncio > Dear Nuncio, sorry that I insist so much. I do of course not know your problem at hand, but have my doubts about the matrix you compute (the product which blows up to about 30000x30000). This matrix contains essentially no information, more than 29000 of its eigen values are exact zero, more than 29000 of its eigen vectors are simply a representation of the null space since it has a maximal rank of 348. Do you really have nearly 30000 variables and only 348 measurements? - Martin From yyamada130 at gmail.com Wed Apr 6 09:22:24 2011 From: yyamada130 at gmail.com (Yoshi Yamada) Date: Wed, 6 Apr 2011 07:22:24 -0700 (PDT) Subject: Installation of miscellaneous-1.0.11 package In-Reply-To: <109403.18151.qm@web112114.mail.gq1.yahoo.com> References: <1302072193806-3430036.post@n4.nabble.com> <109403.18151.qm@web112114.mail.gq1.yahoo.com> Message-ID: <1302099744475-3430886.post@n4.nabble.com> Thanks a lot. Embarrassing to ask, but how can I get to the config.log file? Best, Yoshi -- View this message in context: http://octave.1599824.n4.nabble.com/Installation-of-miscellaneous-1-0-11-package-tp3430036p3430886.html Sent from the Octave - General mailing list archive at Nabble.com. From sergstesh at yahoo.com Wed Apr 6 11:45:34 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Wed, 6 Apr 2011 09:45:34 -0700 (PDT) Subject: Installation of miscellaneous-1.0.11 package In-Reply-To: <1302099744475-3430886.post@n4.nabble.com> Message-ID: <938539.70921.qm@web112109.mail.gq1.yahoo.com> --- On Wed, 4/6/11, Yoshi Yamada wrote: > From: Yoshi Yamada > Subject: Re: Installation of miscellaneous-1.0.11 package > To: help-octave at octave.org > Date: Wednesday, April 6, 2011, 7:22 AM > Thanks a lot. Embarrassing to ask, > but how can I get to the config.log file? > > Best, > Yoshi > > -- > View this message in context: http://octave.1599824.n4.nabble.com/Installation-of-miscellaneous-1-0-11-package-tp3430036p3430886.html > Sent from the Octave - General mailing list archive at > Nabble.com. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > It is created by 'configure' automatically and is typically located in the same directory in which 'configure' is run. By the way, another popular cause of the trouble is a missing library, e.g. 'libfoo' which is present needs 'libbar' which is missing. Regards, Sergei. From pr.nienhuis at hccnet.nl Wed Apr 6 15:42:42 2011 From: pr.nienhuis at hccnet.nl (Philip Nienhuis) Date: Wed, 6 Apr 2011 13:42:42 -0700 (PDT) Subject: using xlswrite csvwrite In-Reply-To: <1302095814802-3430762.post@n4.nabble.com> References: <1302095814802-3430762.post@n4.nabble.com> Message-ID: <1302122562017-3431757.post@n4.nabble.com> senator wrote: > > Hey, > I cant find some of the messages that were on this site Friday, I think > the site was down and some must have got deleted. There was a message > where someone described what I needed to download to be able to use > xlsread and xlswrite. I need to uninstall and then reinstall octave with > java,io package, windows and maybe something else... There was a very > detailed message describing even what java packages i need to install in > order to use xls read and write. > Perhaps you mean this one? https://mailman.cae.wisc.edu/pipermail/help-octave/2011-March/045199.html As far as we could understand, you most probably need to install a Java JRE. Get one here: http://www.oracle.com/technetwork/java/javase/downloads/index.html In message https://mailman.cae.wisc.edu/pipermail/help-octave/2011-April/045230.html I referred to problems with ActiveX on Windows 7 that have been reported last year and that look similar to your problems. Do you run Windows 7? (you didn't tell us your Windows version yet) Please read on... > I need to be able to write and read csv files and csv write and read do > work great for me as long as I dont write any text to the file. I would > like to be able to find a way to put a field column on the top of my data > in a csv file. It works great writing the data to a csv file, but i want > to be able to write the field row on the top row in text. In matlab it > works by doing 2 seperate csv writes (one for data and one for text). I > dont know if that would work however because octave seems to erase > everything else in a file before it writes. > > I dont know if xlswrite will let me write to a csv file, but if it does > getting xlswrite to work could solve my problem. > > thanks > Do you need csv files or xls files? Bill Krekeler suggested to write a csvwrite-like script enabling mixed text/numeric I/O. I've produced a first draft, but it isn't quite as easy as I hoped. Somewhat inspired by your xlswrite woes, I have polished a script I had lying around for checking, debugging and setting up the environment needed for spreadsheet I/O in Octave (and Matlab, as my colleagues needed good spreadsheet I/O support on their Macs so I ported the lot to ML a while ago). A few days ago I've uploaded a first draft to octave-forge svn; I'll try to attach a more recent version to this message (I'm posting tru Nabble so hopefully that works out OK): http://octave.1599824.n4.nabble.com/file/n3431757/chk_spreadsheet_support.m chk_spreadsheet_support.m Just run it from within Octave using chk_spreadsheet_support ('', 3) and tell us what output it gave. (FYI, '' (2 quotes! not a double quote) = an empty string (actually path to Java class libs needed for spreadsheet I/O, but that is not relevant yet), 3 is the (maximum) debug output level.) Good luck, Philip -- View this message in context: http://octave.1599824.n4.nabble.com/using-xlswrite-csvwrite-tp3430762p3431757.html Sent from the Octave - General mailing list archive at Nabble.com. From forkandwait at gmail.com Wed Apr 6 17:06:06 2011 From: forkandwait at gmail.com (fork) Date: Wed, 6 Apr 2011 22:06:06 +0000 (UTC) Subject: using xlswrite csvwrite References: <1302095814802-3430762.post@n4.nabble.com> Message-ID: senator hotmail.com> writes: > I need to be able to write and read csv files and csv write and read do work > great for me as long as I dont write any text to the file. I would like to > be able to find a way to put a field column on the top of my data in a csv > file. It works great writing the data to a csv file, but i want to be able > to write the field row on the top row in text. In matlab it works by doing > 2 seperate csv writes (one for data and one for text). I dont know if that > would work however because octave seems to erase everything else in a file > before it writes. > > I dont know if xlswrite will let me write to a csv file, but if it does > getting xlswrite to work could solve my problem. I don't know if it is helpful, but I can't help but get a little "meta" on your particular problem: I would recommend avoiding excel and other binary / proprietary formats like the plague (which they are). They generally poorly supported in the Free Software world, require lots of dependencies (Java, DDE, etc, etc, etc), and won't be portable outside of a Windows environment. CSV files will ALWAYS be importable, human readable/ editable, and will require the bare minimum of infrastructure to use. If you need to get fancy, look into CDF or HDF (which I don't know much about, or I would try to say something intelligent...) I suggest you use dlmwrite to output CSV files, or perhaps write a function that adds a header line using dlmwrite in conjunction with printf. (csvwrite is a nonstandard wrapper to dlmwrite, as far as I understand.) Octave has enough built in I/O functions you should be able to do anything you want with a little bit of coding (which is good for you anyway ;) ) dlmwrite has lots of useful options, including an "append" flag for putting data after a header row, which you can learn about here: http://www.gnu.org/software/octave/doc/interpreter/Simple-File-I_002fO.html#Simple-File-I_002fO If you just need to save files and communicate between octave scripts, simply use "save" and "load", which can be found on the same page. I would ONLY use xlswrite and friends if you MUST communicate with a (L)user who insists on opening only files that end in ".xls"; even then, some patient explaining about the virtues of simple, non-proprietary CSV formats can save you both 100s of wasted man-hours in the future. If your data is heterogeneous in its columns (some text, some number columns), that is another problem altogether -- if so, please let us know. My apologies if my rant/ tangent is too tangential or vague to be useful.. From forkandwait at gmail.com Wed Apr 6 17:13:33 2011 From: forkandwait at gmail.com (fork) Date: Wed, 6 Apr 2011 22:13:33 +0000 (UTC) Subject: using xlswrite csvwrite References: <1302095814802-3430762.post@n4.nabble.com> Message-ID: senator hotmail.com> writes: > I would like to > be able to find a way to put a field column on the top of my data in a csv > file. It works great writing the data to a csv file, but i want to be able > to write the field row on the top row in text. This link might be helpful in understandign some of the functions which can be used to format your header row(s). Then use dlmwrite with the "append" option to output the data matrix. http://octave.1599824.n4.nabble.com/Equivalent-of-Perl-join-td3090590.html From yyamada130 at gmail.com Wed Apr 6 23:39:27 2011 From: yyamada130 at gmail.com (Yoshi Yamada) Date: Wed, 6 Apr 2011 21:39:27 -0700 (PDT) Subject: Installation of miscellaneous-1.0.11 package In-Reply-To: <938539.70921.qm@web112109.mail.gq1.yahoo.com> References: <1302072193806-3430036.post@n4.nabble.com> <109403.18151.qm@web112114.mail.gq1.yahoo.com> <1302099744475-3430886.post@n4.nabble.com> <938539.70921.qm@web112109.mail.gq1.yahoo.com> Message-ID: <1302151167733-3432467.post@n4.nabble.com> Thank you very much for your reply again. I tried to install the package by typing 'pkg install miscellaneous-1.0.11' in the x-term command line and could not find any files named 'config.log'. Am I searching it in a wrong way? Or should I try another way of installation? Best, Yoshi -- View this message in context: http://octave.1599824.n4.nabble.com/Installation-of-miscellaneous-1-0-11-package-tp3430036p3432467.html Sent from the Octave - General mailing list archive at Nabble.com. From borge.strand at gmail.com Thu Apr 7 03:27:34 2011 From: borge.strand at gmail.com (=?ISO-8859-1?Q?B=F8rge_Strand=2DBergesen?=) Date: Thu, 7 Apr 2011 10:27:34 +0200 Subject: Playrec Message-ID: Hi, anybody having success compiling and using Playrec 2.1.0? I'm struggling to build it with Octave 3.2.4 on Win7/64 with Microsoft Visual Studio 2010 Express. Alternatively, do you have other suggestions for ways to user the computer's soundcard for samples IO? Preferably, the code should be comptatible on Octave and Matlab. Thanks, Borge From borge.strand at gmail.com Thu Apr 7 04:09:50 2011 From: borge.strand at gmail.com (=?ISO-8859-1?Q?B=F8rge_Strand=2DBergesen?=) Date: Thu, 7 Apr 2011 11:09:50 +0200 Subject: rehash() doesn't reread . Message-ID: Hi, I'm struggling to access a access an .m file created after Octave started. The file is created in a folder different from the startup folder. path() reports "." on the very first line. It seems rehash() doesn't reread "." after a cd command. However, if I create a new .m file in the startup folder, it is automatically found, even without the need for a rehash. Here's what happens: - Start Octave-3.2.4 on Win7/64 - Create simple function c:\qwerty.m, a name which doesn't previously exist - In Octave, cd c:/ - rehash(); - qwerty(4,5) - error: `qwerty' undefined near line 13 column 1 I'd appreciate some insight into ensuring "." is properly in the path. Thanks, Borge From sergstesh at yahoo.com Thu Apr 7 04:18:58 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Thu, 7 Apr 2011 02:18:58 -0700 (PDT) Subject: Installation of miscellaneous-1.0.11 package In-Reply-To: <1302151167733-3432467.post@n4.nabble.com> Message-ID: <658252.48366.qm@web112118.mail.gq1.yahoo.com> --- On Wed, 4/6/11, Yoshi Yamada wrote: > From: Yoshi Yamada > Subject: Re: Installation of miscellaneous-1.0.11 package > To: help-octave at octave.org > Date: Wednesday, April 6, 2011, 9:39 PM > Thank you very much for your reply > again. > I tried to install the package by typing > 'pkg install miscellaneous-1.0.11' > in the x-term command line and could not find any files > named 'config.log'. > Am I searching it in a wrong way? > Or should I try another way of installation? > > Best, > Yoshi > > > -- > View this message in context: http://octave.1599824.n4.nabble.com/Installation-of-miscellaneous-1-0-11-package-tp3430036p3432467.html > Sent from the Octave - General mailing list archive at > Nabble.com. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > In may case: build/octave-forge-bundle-20080831/main/miscellaneous-1.0.7/src/config.log . I.e. under 'build' I had octave-forge-bundle-20080831.tar.gz which of course, was unpacked. Probably use 'find' command command - something like find . -name config.log - where '.' is current directory from which you invoke 'octave'. The above is for Linux; I hope under MacOS 'find' basically works the same. Regards, Sergei. From sriv_arvi at yahoo.co.in Wed Apr 6 22:04:40 2011 From: sriv_arvi at yahoo.co.in (ARVIND SRIVASTAVA) Date: Thu, 7 Apr 2011 08:34:40 +0530 (IST) Subject: Not able to find .exe file in octave-3.4.0.tar.gz Message-ID: <359463.2830.qm@web95901.mail.in.yahoo.com> Hi ? I am trying to install latest version of octave on my system which is windows xp operating system.I have downloaded octave-3.4.0.tar.gz file from the octave site.But I am not finding any executable file in that.So I am not?able to install the octave.please help me in installing octave-3.4.0 on windows xp.Thanks in advance. ? Arvind,?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From senator314159 at hotmail.com Thu Apr 7 07:35:04 2011 From: senator314159 at hotmail.com (senator) Date: Thu, 7 Apr 2011 05:35:04 -0700 (PDT) Subject: using xlswrite csvwrite In-Reply-To: References: <1302095814802-3430762.post@n4.nabble.com> Message-ID: <1302179704284-3433226.post@n4.nabble.com> Thanks a lot for your help guys. I want to answer the questions you guys asked me: I have Windows Xp and I am pretty sure this is a 32 bit computer ( I checked in control panel under systems and where it says I have windows XP it does not mention the bits, I am told this usually means I have a 32 bit computer) I Want to use csvwrite and read as a first priority, but I also would like to have xlsread and write ready for use in the near future. I will look into the dlm read and write again as ForkandWait suggested ( I know i researched it briefly before going with the csvread). I will also look into all you other suggestions soon as I stop typing here. Thanks again Phillip , ForkandWait and all the others out there. Jonathan -- View this message in context: http://octave.1599824.n4.nabble.com/using-xlswrite-csvwrite-tp3430762p3433226.html Sent from the Octave - General mailing list archive at Nabble.com. From WKrekeler at cleanearthtech.com Thu Apr 7 07:49:38 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Thu, 7 Apr 2011 12:49:38 +0000 Subject: Not able to find .exe file in octave-3.4.0.tar.gz In-Reply-To: <359463.2830.qm@web95901.mail.in.yahoo.com> References: <359463.2830.qm@web95901.mail.in.yahoo.com> Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB212C54D7@CETEX1.cleanearth.ceprivate> From: help-octave-bounces at octave.org [mailto:help-octave-bounces at octave.org] On Behalf Of ARVIND SRIVASTAVA Sent: Wednesday, April 06, 2011 10:05 PM To: help-octave at octave.org Subject: Not able to find .exe file in octave-3.4.0.tar.gz Hi I am trying to install latest version of octave on my system which is windows xp operating system.I have downloaded octave-3.4.0.tar.gz file from the octave site.But I am not finding any executable file in that.So I am not able to install the octave.please help me in installing octave-3.4.0 on windows xp.Thanks in advance. Arvind, Arvind, Tar is source. You need to download the windows specific binary on the octave downloads page. It should be version 3.2.X as there are few individuals supporting the windows binary so it hasn't been updated to version 3.4.0 yet. Bill Krekeler -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at mhelm.de Thu Apr 7 08:10:30 2011 From: martin at mhelm.de (Martin Helm) Date: Thu, 7 Apr 2011 15:10:30 +0200 Subject: Not able to find .exe file in octave-3.4.0.tar.gz In-Reply-To: <6765D38A4FDFC347A2934D0D5AB0F1AB212C54D7@CETEX1.cleanearth.ceprivate> References: <359463.2830.qm@web95901.mail.in.yahoo.com> <6765D38A4FDFC347A2934D0D5AB0F1AB212C54D7@CETEX1.cleanearth.ceprivate> Message-ID: <201104071510.30422.martin@mhelm.de> Am Donnerstag, 7. April 2011, 14:49:38 schrieb William Krekeler: > From: help-octave-bounces at octave.org > [mailto:help-octave-bounces at octave.org] On Behalf Of ARVIND SRIVASTAVA > Sent: Wednesday, April 06, 2011 10:05 PM > To: help-octave at octave.org > Subject: Not able to find .exe file in octave-3.4.0.tar.gz > > Hi > > I am trying to install latest version of octave on my system which is > windows xp operating system.I have downloaded octave-3.4.0.tar.gz file > from the octave site.But I am not finding any executable file in that.So I > am not able to install the octave.please help me in installing > octave-3.4.0 on windows xp.Thanks in advance. > > Arvind, > > > > Arvind, > > Tar is source. You need to download the windows specific binary on the > octave downloads page. It should be version 3.2.X as there are few > individuals supporting the windows binary so it hasn't been updated to > version 3.4.0 yet. > > Bill Krekeler The link for 3.2.4 (windows) is here http://wiki.octave.org/wiki.pl?OctaveForWindows (Section 1.1) From jwe at octave.org Thu Apr 7 08:33:38 2011 From: jwe at octave.org (John W. Eaton) Date: Thu, 7 Apr 2011 09:33:38 -0400 Subject: rehash() doesn't reread . In-Reply-To: References: Message-ID: <19869.48434.604346.281476@coredump.lan> On 7-Apr-2011, B?rge Strand-Bergesen wrote: | Hi, | | I'm struggling to access a access an .m file created after Octave | started. The file is created in a folder different from the startup | folder. path() reports "." on the very first line. | | It seems rehash() doesn't reread "." after a cd command. However, if I | create a new .m file in the startup folder, it is automatically found, | even without the need for a rehash. | | Here's what happens: | - Start Octave-3.2.4 on Win7/64 | - Create simple function c:\qwerty.m, a name which doesn't previously exist | - In Octave, cd c:/ | - rehash(); | - qwerty(4,5) | - error: `qwerty' undefined near line 13 column 1 | | I'd appreciate some insight into ensuring "." is properly in the path. I think this is a bug and that it was fixed for Octave 3.4. jwe From ericoporto2008 at gmail.com Thu Apr 7 08:59:38 2011 From: ericoporto2008 at gmail.com (=?ISO-8859-1?Q?=C9rico_Porto?=) Date: Thu, 7 Apr 2011 10:59:38 -0300 Subject: print plot is cutting the image Message-ID: I'm having a problem when trying to print to a file I'm using the tradicional plot and print commands ... *plot3* (timet,chant(:,ichan),log10(powert(:,ichan))*10,'color',corcanal,'linewidth',3); ... xlabel("Tempo (s)","fontsize",15); zlabel("Potencia (dBm)","fontsize",15); legend(legendb,"location", "eastoutside"); legend('show'); power=[ "images/", nome, "_power.png"]; *print*('-dpng',power); But I'm getting the cutted in sideways result that is attached ?rico V. Porto -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ponto1_power.jpg Type: image/jpeg Size: 32689 bytes Desc: not available URL: From ronan.scaife at dcu.ie Thu Apr 7 08:40:02 2011 From: ronan.scaife at dcu.ie (Ronan Scaife) Date: Thu, 07 Apr 2011 14:40:02 +0100 Subject: Playrec In-Reply-To: References: Message-ID: <4D9DBEB2.2030701@dcu.ie> Dear all, On 07/04/2011 09:27, B?rge Strand-Bergesen wrote: > Hi, > > anybody having success compiling and using Playrec 2.1.0? > > I'm struggling to build it with Octave 3.2.4 on Win7/64 with Microsoft > Visual Studio 2010 Express. > > Alternatively, do you have other suggestions for ways to user the > computer's soundcard for samples IO? Preferably, the code should be > comptatible on Octave and Matlab. > > > Thanks, > Borge > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > A simpler toolbox (also based on PortAudio, as PlayRec is) is pa_wavplay: I ported this to Scilab a few years ago, but it seems from the above that pa_wavplay already works with Octave. Playrec is a more sophisticated package, but pa_wavplay does the job for me. Best Wishes, -- == Dr. Ronan Scaife =============== ronan.scaife at rince.ie ========== RINCE (Research Inst. for Networks and Communications Engineering), School of Elec Eng, Dublin City University, Dublin 9, IRELAND. http://www.eeng.dcu.ie/~scaifer/ phone (office): +353-1-700-5434 phone (lab): +353-1-700-7623 fax: +353-1-700-5508 ==================================================================== From yyamada130 at gmail.com Thu Apr 7 09:09:02 2011 From: yyamada130 at gmail.com (Yoshi Yamada) Date: Thu, 7 Apr 2011 07:09:02 -0700 (PDT) Subject: Installation of miscellaneous-1.0.11 package In-Reply-To: <658252.48366.qm@web112118.mail.gq1.yahoo.com> References: <1302072193806-3430036.post@n4.nabble.com> <109403.18151.qm@web112114.mail.gq1.yahoo.com> <1302099744475-3430886.post@n4.nabble.com> <938539.70921.qm@web112109.mail.gq1.yahoo.com> <1302151167733-3432467.post@n4.nabble.com> <658252.48366.qm@web112118.mail.gq1.yahoo.com> Message-ID: <1302185342679-3433528.post@n4.nabble.com> Command 'pkg build . miscellaneous-1.0.11.tar' did work on Mac but only to create an empty folder named 'install'... ? But when I ran the same command in another machine, I got a more specific error message in the x-term: -- ld: library not found for -lgfortranbegin collect2: ld returned 1 exit status configure: error: Could not run /Applications/Octave.app/Contents/Resources/bin/mkoctfile-3.4.0 the configure script returned the following error: checking for gcc... /usr/bin/gcc-4.2 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc-4.2 accepts -g... yes checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed checking for mkoctfile... /Applications/Octave.app/Contents/Resources/bin/mkoctfile-3.4.0 error: called from `pkg>configure_make' in file /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m near line 1320, column 9 error: called from: error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m at line 783, column 5 error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m at line 592, column 3 error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m at line 464, column 7 -- Could you tell me how to fix these problems? Thank you for your continuous help and patience. Best, Yoshi -- View this message in context: http://octave.1599824.n4.nabble.com/Installation-of-miscellaneous-1-0-11-package-tp3430036p3433528.html Sent from the Octave - General mailing list archive at Nabble.com. From martin at mhelm.de Thu Apr 7 09:18:19 2011 From: martin at mhelm.de (Martin Helm) Date: Thu, 7 Apr 2011 16:18:19 +0200 Subject: Playrec In-Reply-To: <4D9DBEB2.2030701@dcu.ie> References: <4D9DBEB2.2030701@dcu.ie> Message-ID: <201104071618.19578.martin@mhelm.de> Am Donnerstag, 7. April 2011, 15:40:02 schrieb Ronan Scaife: > Dear all, > > On 07/04/2011 09:27, B?rge Strand-Bergesen wrote: > > Hi, > > > > anybody having success compiling and using Playrec 2.1.0? > > > > I'm struggling to build it with Octave 3.2.4 on Win7/64 with Microsoft > > Visual Studio 2010 Express. > > > > Alternatively, do you have other suggestions for ways to user the > > computer's soundcard for samples IO? Preferably, the code should be > > comptatible on Octave and Matlab. > > > > > > Thanks, > > Borge > > _______________________________________________ > > Help-octave mailing list > > Help-octave at octave.org > > https://mailman.cae.wisc.edu/listinfo/help-octave > > A simpler toolbox (also based on PortAudio, as PlayRec is) is pa_wavplay: > > > > I ported this to Scilab a few years ago, but it seems from the above that > pa_wavplay already works with Octave. > > Playrec is a more sophisticated package, but pa_wavplay does the > job for me. > > Best Wishes, I guess octave 3.2.4 mingw build is used here? Am I wrong? So you will have much trouble using mex compilation for it with Visual Studio, the binaries/dll's are not compatible. You will need to do the compilation with the version of gcc shipped together with the octave windows version. Beside that comment I unfortuneatelly cannot help with playrec, I have just seen that there are no good build instructions for a mingw build on the playrec homepage (or I missed it). From ericoporto2008 at gmail.com Thu Apr 7 09:37:07 2011 From: ericoporto2008 at gmail.com (=?ISO-8859-1?Q?=C9rico_Porto?=) Date: Thu, 7 Apr 2011 11:37:07 -0300 Subject: print plot is cutting the image In-Reply-To: References: Message-ID: I need this is to finish up a report. thanks ?rico V. Porto On Thu, Apr 7, 2011 at 10:59 AM, ?rico Porto wrote: > I'm having a problem when trying to print to a file > > I'm using the tradicional plot and print commands > > ... > *plot3* > (timet,chant(:,ichan),log10(powert(:,ichan))*10,'color',corcanal,'linewidth',3); > ... > xlabel("Tempo (s)","fontsize",15); > zlabel("Potencia (dBm)","fontsize",15); > legend(legendb,"location", "eastoutside"); > legend('show'); > > power=[ "images/", nome, "_power.png"]; > > *print*('-dpng',power); > > But I'm getting the cutted in sideways result that is attached > > ?rico V. Porto > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ratulloch at gmail.com Thu Apr 7 09:43:55 2011 From: ratulloch at gmail.com (Rick T) Date: Thu, 7 Apr 2011 04:43:55 -1000 Subject: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 In-Reply-To: <84275.863.qm@web112109.mail.gq1.yahoo.com> References: <84275.863.qm@web112109.mail.gq1.yahoo.com> Message-ID: Greetings All I went back and did what Sergei recommend and used resample and repmat, but I'm noticing that on some of the values the rows aren't the same as the sample rate, see image link below. notice the top image value for rows says 1000 and the bottom image says rows = 1008. This happens when I change the values of resample and repmat (freq_new) but only for certain values. How can I fix this correctly? I could just delete everything after 1000 but I'm not sure if this is a bug or just the way resample/repmat works. PS: I'm using octave 3.2.4 http://dl.dropbox.com/u/6576402/questions/rows_different.png Here's the test code I used to test this %resample_repmat signal clear all, clf Fs = 1000; % Sampling rate Ts = 1/Fs; %sampling interval t=0:Ts:1-Ts; %sampling period freq_orig=1; y=sin(2*pi*t*freq_orig)'; %gives a short wave freq_new=9; y2=resample(y,1,freq_new); %resample matrix y3=repmat (y2,freq_new,1); %replicate matrix [r_orig,c_orig] = size(y) %get orig number of rows and cols [r_new,c_new] = size(y3) %get new number of rows and cols subplot(2,1,1),plot(y),title('Orginal signal') title(['rows=',num2str(r_orig),' cols=',num2str(c_orig)]) subplot(2,1,2),plot(y3),title('New signal') title(['rows=',num2str(r_new),' cols=',num2str(c_new)]) On Mon, Apr 4, 2011 at 1:17 PM, Sergei Steshenko wrote: > > --- On Mon, 4/4/11, Rick T wrote: > > From: Rick T > Subject: Re: How can I increase/decrease (frequency/pitch) and phase using > fft/ifft tia sal22 > To: "Sergei Steshenko" > Cc: help-octave at octave.org > Date: Monday, April 4, 2011, 3:37 PM > > I need fft/ifft due to the fact that I have to alter various cells in the > array the signal is stored in (in the frequency domain. The script is very > long. In my experience if you post hundreds of lines of code people will > not look at it. That's why I kept it simple and basic. And asked How can I > increase/decrease (frequency/pitch) and phase using fft/ifft. > > > > PS: Unfortunately Sergei the nice solution you sent won't work, I'm dealing > with large arrays that are exported back out as audio files and fft/ifft > seems to be the fastest. > > > > > On Mon, Apr 4, 2011 at 11:33 AM, Sergei Steshenko > wrote: > > > > > --- On Mon, 4/4/11, Rick T wrote: > > > > From: Rick T > > Subject: How can I increase/decrease (frequency/pitch) and phase using > fft/ifft tia sal22 > > To: help-octave at octave.org > > Date: Monday, April 4, 2011, 2:11 PM > > > > How can I increase/decrease (frequency/pitch) and phase using fft/ifft > > I think I have the basic code but I?m not sure what to do next > > > > PS: Thanks for the help on the last question everyone I decided not to use > the FOR loop and sin/cos values and just use fft/ifft > > > > > > to see if this will work. > > Example I have a signal that repeats 1 time every second and I want to > > have it repeat 3 times a second instead. > > %Voiceprint raise lower freq phase conjugate signal > > tic > > > > > > clear all, clc,clf,tic > > %% Sound /beep calculation complete > > filerawbeepStr='calculations_complete.wav'; > > filerawbeeppathStr='/home/rat/Documents/octave/raw/'; > > filevoiceprepathStr='/home/rat/Documents/octave/eq_research/main/ > > > > > > transform/voice/'; > > filewavpathStr='/home/rat/Documents/octave/eq_research/main/transform/ > > wav/'; > > [ybeep, Fsbeep, nbitsbeep] = > > wavread(strcat(filerawbeeppathStr,filerawbeepStr)); > > %addpath(?/home/rat/Documents/octave/eq_research/main/transform/?); > > > > > > %add path to location of functions > > %1a voice print import > > [vp_sig_orig, fs_rate, nbitsraw] = > > wavread(strcat(filevoiceprepathStr,'voice8000fs.wav')); > > %vp_sig_orig=vp_sig_orig?; > > > > > > vp_sig_len=length(vp_sig_orig); > > %2a create frequency domain > > ya_fft = fft(vp_sig_orig); > > vp_sig_phase_orig = unwrap(angle(ya_fft)); > > %get Magnitude > > ya_fft_mag = abs(ya_fft); > > > > > > %3a frequency back to time domain > > ya_ifft=real(ifft(ya_fft)); > > %adjust frequency/phase here? How? > > vp_sig_new=real(ifft(ya_fft_mag.*exp(i*vp_sig_phase_orig))); > > subplot(3,1,1), plot(vp_sig_orig),title('1 original time domain') > > > > > > subplot(3,1,2), plot(ya_ifft),title('2 rebuild time domain') > > subplot(3,1,3), plot(vp_sig_new),title('3 adjusted time') > > > > > > > > > > -----Inline Attachment Follows----- > > > > _______________________________________________ > > Help-octave mailing list > > Help-octave at octave.org > > https://mailman.cae.wisc.edu/listinfo/help-octave > > > > So, regarding your > > > > > > " > > Example I have a signal that repeats 1 time every second and I want to > > have it repeat 3 times a second instead. > > " > > > > - why do you need FFT in the first place ? > > > > I.e. if 'x' is your signal, why not simply write > > > > x = linspace(0, 1, 10); % or whatever other way to generate your signal > > y = [x x x]; % repeat x 3 times > > plot(y); > > > > > > ? > > > > Regards, > > Sergei. > > > > > -- > > > Sorry, but this is mostly nonsense. FFT can't be faster than just moving > data in memory - the latter is my solution. > > If your audio comes in frequency domain, then by just _one_ 'ifft' you > convert it into time domain, and then my solution works. > > You have already been given a link to 'resample' function. > > You appear not to understand fundamental things regarding pitch shift. If > your signal gets repeated a number of times, it is not pitch shift. > > Pitch shift does not imply signal repetitions and does not imply change > of number of output samples. > > AFAIK pitch shift is implemented through overlapping relatively (compared > to the length of the whole musical piece) short FFTs, and the spectrum is > shifted (rather, scaled - you typically need all spectral componenets to be > multiplied by the same factor) in order to achieve pitch shift - number of > samples, as I said, does _not_ change. > > Start from http://en.wikipedia.org/wiki/Audio_timescale-pitch_modification-> > http://en.wikipedia.org/wiki/Audio_timescale-pitch_modification#Pitch_scaling. > > Regards, > Sergei. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sriv_arvi at yahoo.co.in Thu Apr 7 11:09:56 2011 From: sriv_arvi at yahoo.co.in (ARVIND SRIVASTAVA) Date: Thu, 7 Apr 2011 21:39:56 +0530 (IST) Subject: Not able to find .exe file in octave-3.4.0.tar.gz In-Reply-To: <201104071510.30422.martin@mhelm.de> Message-ID: <994636.96267.qm@web95910.mail.in.yahoo.com> Hi Martin, ? Thanks for the response.I have installed octave 3.2.4 on my system .But it seems it doesn't have the control toolbox.when I downloaded and tried installing the control toolbox control-2.0.2.tar.gz it seems it requires higher version like octave-3.3.90.Which in my case I don't have.Can you please provide me the link to suitable control package which I can install on octave 3.2.4. ? Arvind, --- On Thu, 7/4/11, Martin Helm wrote: From: Martin Helm Subject: Re: Not able to find .exe file in octave-3.4.0.tar.gz To: help-octave at octave.org Cc: "William Krekeler" , "ARVIND SRIVASTAVA" Date: Thursday, 7 April, 2011, 6:40 PM Am Donnerstag, 7. April 2011, 14:49:38 schrieb William Krekeler: > From: help-octave-bounces at octave.org > [mailto:help-octave-bounces at octave.org] On Behalf Of ARVIND SRIVASTAVA > Sent: Wednesday, April 06, 2011 10:05 PM > To: help-octave at octave.org > Subject: Not able to find .exe file in octave-3.4.0.tar.gz > > Hi > > I am trying to install latest version of octave on my system which is > windows xp operating system.I have downloaded octave-3.4.0.tar.gz file > from the octave site.But I am not finding any executable file in that.So I > am not able to install the octave.please help me in installing > octave-3.4.0 on windows xp.Thanks in advance. > > Arvind, > > > > Arvind, > > Tar is source. You need to download the windows specific binary on the > octave downloads page. It should be version 3.2.X as there are few > individuals supporting the windows binary so it hasn't been updated to > version 3.4.0 yet. > > Bill Krekeler The link for 3.2.4 (windows) is here http://wiki.octave.org/wiki.pl?OctaveForWindows (Section 1.1) -------------- next part -------------- An HTML attachment was scrubbed... URL: From andybuckle at gmail.com Thu Apr 7 11:18:29 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Thu, 7 Apr 2011 17:18:29 +0100 Subject: print plot is cutting the image In-Reply-To: References: Message-ID: On Thu, Apr 7, 2011 at 3:37 PM, ?rico Porto wrote: > I need this is to finish up a report. > > thanks > > ?rico V. Porto > > > On Thu, Apr 7, 2011 at 10:59 AM, ?rico Porto > wrote: >> >> I'm having a problem when trying to print to a file >> >> I'm using the tradicional plot and print commands >> >> ... >> >> plot3(timet,chant(:,ichan),log10(powert(:,ichan))*10,'color',corcanal,'linewidth',3); >> ... >> xlabel("Tempo (s)","fontsize",15); >> zlabel("Potencia (dBm)","fontsize",15); >> legend(legendb,"location", "eastoutside"); >> legend('show'); >> >> power=[ "images/", nome, "_power.png"]; >> >> print('-dpng',power); >> >> But I'm getting the cutted in sideways result that is attached >> >> ?rico V. Porto Not sure if this is the best way to fix it, but this is the workaround I would use. >plot3([0 1],[0 1],[0 1]) >get(gca,'position') ans = 0.13000 0.11000 0.77500 0.81500 >set(gca,'position',[.13 .11 .6 .815]) %The third number is the width of the plot -- /* andy buckle */ From andybuckle at gmail.com Thu Apr 7 11:25:56 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Thu, 7 Apr 2011 17:25:56 +0100 Subject: Not able to find .exe file in octave-3.4.0.tar.gz In-Reply-To: <994636.96267.qm@web95910.mail.in.yahoo.com> References: <201104071510.30422.martin@mhelm.de> <994636.96267.qm@web95910.mail.in.yahoo.com> Message-ID: On Thu, Apr 7, 2011 at 5:09 PM, ARVIND SRIVASTAVA wrote: > > Hi Martin, > > Thanks for the response.I have installed octave 3.2.4 on my system .But it seems it doesn't have the control toolbox.when I downloaded and tried installing the control toolbox control-2.0.2.tar.gz it seems it requires higher version like octave-3.3.90.Which in my case I don't have.Can you please provide me the link to suitable control package which I can install on octave 3.2.4. > > Arvind, I assume you are using the mingw binary from sf, like Martin suggested. It does include the control package, but this is a non-default option. Run the installer again. Do not install the oct2mat package: It breaks things. The '*' next to control means that control is installed. >OCTAVE_VERSION ans = 3.2.4 >pkg list Package Name?????? | Version | Installation directory -------------------+---------+----------------------- ??????? actuarial *|?? 1.1.0 | ...\share\octave\packages\actuarial-1.1.0 ??????????? audio *|?? 1.1.4 | ...\share\octave\packages\audio-1.1.4 ??????? benchmark *|?? 1.1.1 | ...\share\octave\packages\benchmark-1.1.1 ????????????? bim *|?? 1.0.0 | ...\share\octave\packages\bim-1.0.0 ????????? bioinfo *|?? 0.1.2 | ...\share\octave\packages\bioinfo-0.1.2 ??? combinatorics *|?? 1.0.9 | ...\share\octave\packages\combinatorics-1.0.9 ?? communications? |? 1.0.10 | ...\share\octave\packages\communications-1.0.10 ????????? control *|? 1.0.11 | ...\share\octave\packages\control-1.0.11 .... -- /* andy buckle */ From mahfoudh.tayab at gmail.com Thu Apr 7 12:15:07 2011 From: mahfoudh.tayab at gmail.com (Teyeb KHAYE) Date: Thu, 7 Apr 2011 19:15:07 +0200 Subject: function gamma_inc or gammainc Message-ID: Hi, what the difference beetwen the gamma_inc(x,a) and gammainc(x,a) ??? thank you, Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ericoporto2008 at gmail.com Thu Apr 7 12:36:59 2011 From: ericoporto2008 at gmail.com (=?ISO-8859-1?Q?=C9rico_Porto?=) Date: Thu, 7 Apr 2011 14:36:59 -0300 Subject: print plot is cutting the image In-Reply-To: References: Message-ID: is there a better workaround? This one work only the first time it is used - and the other times I'm just recalling the same code through an bash script... ?rico V. Porto On Thu, Apr 7, 2011 at 1:18 PM, Andy Buckle wrote: > On Thu, Apr 7, 2011 at 3:37 PM, ?rico Porto > wrote: > > I need this is to finish up a report. > > > > thanks > > > > ?rico V. Porto > > > > > > On Thu, Apr 7, 2011 at 10:59 AM, ?rico Porto > > wrote: > >> > >> I'm having a problem when trying to print to a file > >> > >> I'm using the tradicional plot and print commands > >> > >> ... > >> > >> > plot3(timet,chant(:,ichan),log10(powert(:,ichan))*10,'color',corcanal,'linewidth',3); > >> ... > >> xlabel("Tempo (s)","fontsize",15); > >> zlabel("Potencia (dBm)","fontsize",15); > >> legend(legendb,"location", "eastoutside"); > >> legend('show'); > >> > >> power=[ "images/", nome, "_power.png"]; > >> > >> print('-dpng',power); > >> > >> But I'm getting the cutted in sideways result that is attached > >> > >> ?rico V. Porto > > Not sure if this is the best way to fix it, but this is the workaround > I would use. > > >plot3([0 1],[0 1],[0 1]) > >get(gca,'position') > ans = > > 0.13000 0.11000 0.77500 0.81500 > >set(gca,'position',[.13 .11 .6 .815]) > > %The third number is the width of the plot > > -- > /* andy buckle */ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ericoporto2008 at gmail.com Thu Apr 7 12:40:06 2011 From: ericoporto2008 at gmail.com (=?ISO-8859-1?Q?=C9rico_Porto?=) Date: Thu, 7 Apr 2011 14:40:06 -0300 Subject: print plot is cutting the image In-Reply-To: References: Message-ID: and also, I want a ylabel that is vertical instead of horizontal, is it possible? ?rico V. Porto On Thu, Apr 7, 2011 at 2:36 PM, ?rico Porto wrote: > is there a better workaround? This one work only the first time it is used > - and the other times I'm just recalling the same code through an bash > script... > > ?rico V. Porto > > > > On Thu, Apr 7, 2011 at 1:18 PM, Andy Buckle wrote: > >> On Thu, Apr 7, 2011 at 3:37 PM, ?rico Porto >> wrote: >> > I need this is to finish up a report. >> > >> > thanks >> > >> > ?rico V. Porto >> > >> > >> > On Thu, Apr 7, 2011 at 10:59 AM, ?rico Porto >> > wrote: >> >> >> >> I'm having a problem when trying to print to a file >> >> >> >> I'm using the tradicional plot and print commands >> >> >> >> ... >> >> >> >> >> plot3(timet,chant(:,ichan),log10(powert(:,ichan))*10,'color',corcanal,'linewidth',3); >> >> ... >> >> xlabel("Tempo (s)","fontsize",15); >> >> zlabel("Potencia (dBm)","fontsize",15); >> >> legend(legendb,"location", "eastoutside"); >> >> legend('show'); >> >> >> >> power=[ "images/", nome, "_power.png"]; >> >> >> >> print('-dpng',power); >> >> >> >> But I'm getting the cutted in sideways result that is attached >> >> >> >> ?rico V. Porto >> >> Not sure if this is the best way to fix it, but this is the workaround >> I would use. >> >> >plot3([0 1],[0 1],[0 1]) >> >get(gca,'position') >> ans = >> >> 0.13000 0.11000 0.77500 0.81500 >> >set(gca,'position',[.13 .11 .6 .815]) >> >> %The third number is the width of the plot >> >> -- >> /* andy buckle */ >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andybuckle at gmail.com Thu Apr 7 12:52:07 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Thu, 7 Apr 2011 18:52:07 +0100 Subject: print plot is cutting the image In-Reply-To: References: Message-ID: On Thu, Apr 7, 2011 at 6:36 PM, ?rico Porto wrote: > is there a better workaround? This one work only the first time it is used - > and the other times I'm just recalling the same code through an bash > script... I don't understand "only the first time" in this context. Please don't top post. -- /* andy buckle */ From ericoporto2008 at gmail.com Thu Apr 7 13:10:27 2011 From: ericoporto2008 at gmail.com (=?ISO-8859-1?Q?=C9rico_Porto?=) Date: Thu, 7 Apr 2011 15:10:27 -0300 Subject: print plot is cutting the image In-Reply-To: References: Message-ID: If I run this it works, but there are more points tho process, and the others don't work To explain better, if I start octave, manually add the data and try once, it works! But it doesn't when sequentially called through bash. ?rico V. Porto On Thu, Apr 7, 2011 at 2:52 PM, Andy Buckle wrote: > On Thu, Apr 7, 2011 at 6:36 PM, ?rico Porto > wrote: > > is there a better workaround? This one work only the first time it is > used - > > and the other times I'm just recalling the same code through an bash > > script... > > I don't understand "only the first time" in this context. > > Please don't top post. > > -- > /* andy buckle */ > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- 00:1C:10:58:A9:6B -73 1302021113 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021113 10 13 "Dogfood" 00:18:F8:32:A2:D3 -84 1302021113 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -52 1302021113 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -69 1302021113 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -72 1302021113 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -69 1302021113 6 13 "WIFI-CORE-GIGA" 00:90:4C:91:00:01 -82 1302021113 6 13 "linksys_SES_22162" 00:15:6D:56:11:70 -54 1302021113 1 9 "cpqd_outdoor_11" 00:1C:10:58:A9:83 -84 1302021113 10 13 "WIFI-CORE-GIGA-1" C0:CB:38:79:8D:3E -87 1302021113 11 13 "VG" 00:24:01:17:75:91 -90 1302021113 1 13 "confinada-LSF" 06:18:0A:01:5A:3C -92 1302021113 1 13 "cpqd_meraki_wpa" 00:15:6D:56:11:6F -91 1302021113 6 13 "cpqd_outdoor_4" 00:15:6D:56:11:76 -93 1302021113 1 13 "cpqd_outdoor_7" 00:1C:10:58:A9:6B -82 1302021119 11 13 "teste-giga" 00:18:F8:32:9F:85 -74 1302021119 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021119 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -67 1302021119 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -69 1302021119 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -84 1302021119 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021119 6 13 "WIFI-CORE-GIGA" 00:90:4C:91:00:01 -81 1302021119 6 13 "linksys_SES_22162" 00:15:6D:56:11:70 -55 1302021119 1 9 "cpqd_outdoor_11" 00:1C:10:58:A9:83 -83 1302021119 10 13 "WIFI-CORE-GIGA-1" C0:CB:38:79:8D:3E -87 1302021119 11 13 "VG" 00:24:01:17:75:91 -90 1302021119 1 13 "confinada-LSF" 06:18:0A:01:5A:3C -92 1302021119 1 13 "cpqd_meraki_wpa" 00:15:6D:56:11:6F -91 1302021119 6 13 "cpqd_outdoor_4" 00:15:6D:56:11:76 -93 1302021119 1 13 "cpqd_outdoor_7" 00:50:7F:69:FD:08 -90 1302021119 6 13 "DXT-CORP" 00:50:7F:69:FD:09 -88 1302021119 6 13 "DXT-GUEST" 00:50:7F:69:FD:0A -90 1302021119 6 13 "DXT-PERSONAL" 68:7F:74:8A:2D:A8 -90 1302021119 11 13 "lsw" 00:1C:10:58:A9:6B -81 1302021125 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021125 10 13 "Dogfood" 00:18:F8:32:A2:D3 -82 1302021125 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -68 1302021125 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -73 1302021125 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -83 1302021125 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -70 1302021125 6 13 "WIFI-CORE-GIGA" 00:90:4C:91:00:01 -81 1302021125 6 13 "linksys_SES_22162" 00:15:6D:56:11:70 -55 1302021125 1 9 "cpqd_outdoor_11" 00:1C:10:58:A9:83 -84 1302021125 10 13 "WIFI-CORE-GIGA-1" 00:24:01:17:75:91 -90 1302021125 1 13 "confinada-LSF" 00:15:6D:56:11:76 -93 1302021125 1 13 "cpqd_outdoor_7" 00:50:7F:69:FD:08 -90 1302021125 6 13 "DXT-CORP" 00:50:7F:69:FD:09 -88 1302021125 6 13 "DXT-GUEST" 00:50:7F:69:FD:0A -90 1302021125 6 13 "DXT-PERSONAL" 68:7F:74:8A:2D:A8 -90 1302021125 11 13 "lsw" 00:1C:10:58:A9:6B -72 1302021131 11 13 "teste-giga" 00:18:F8:32:9F:85 -75 1302021131 10 13 "Dogfood" 00:18:F8:32:A2:D3 -80 1302021131 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -69 1302021131 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -71 1302021131 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -76 1302021131 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -69 1302021131 6 13 "WIFI-CORE-GIGA" 00:90:4C:91:00:01 -84 1302021131 6 13 "linksys_SES_22162" 00:15:6D:56:11:70 -58 1302021131 1 9 "cpqd_outdoor_11" 00:1C:10:58:A9:83 -84 1302021131 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -75 1302021137 11 13 "teste-giga" 00:18:F8:32:9F:85 -69 1302021137 10 13 "Dogfood" 00:18:F8:32:A2:D3 -78 1302021137 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021137 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -76 1302021137 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -79 1302021137 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -74 1302021137 6 13 "WIFI-CORE-GIGA" 00:90:4C:91:00:01 -84 1302021137 6 13 "linksys_SES_22162" 00:15:6D:56:11:70 -58 1302021137 1 9 "cpqd_outdoor_11" 00:1C:10:58:A9:6B -82 1302021143 11 13 "teste-giga" 00:18:F8:32:9F:85 -70 1302021143 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021143 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -60 1302021143 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -66 1302021143 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -86 1302021143 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -74 1302021143 6 13 "WIFI-CORE-GIGA" 00:90:4C:91:00:01 -88 1302021143 6 13 "linksys_SES_22162" 00:15:6D:56:11:70 -58 1302021143 1 9 "cpqd_outdoor_11" 00:1A:70:68:5E:52 -88 1302021143 6 13 "da" 00:50:7F:69:FD:0A -88 1302021143 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -88 1302021143 6 13 "DXT-MOBILE" 00:1A:1E:A3:37:01 -91 1302021143 11 13 "Padtec-Visitantes" 68:7F:74:8A:2D:A8 -85 1302021143 11 13 "lsw" 00:1C:10:58:A9:6B -72 1302021149 11 13 "teste-giga" 00:18:F8:32:9F:85 -83 1302021149 10 13 "Dogfood" 00:18:F8:32:A2:D3 -80 1302021149 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021149 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -65 1302021149 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -79 1302021149 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -73 1302021149 6 13 "WIFI-CORE-GIGA" 00:90:4C:91:00:01 -85 1302021149 6 13 "linksys_SES_22162" 00:15:6D:56:11:70 -61 1302021149 1 9 "cpqd_outdoor_11" 00:1A:70:68:5E:52 -88 1302021149 6 13 "da" 00:50:7F:69:FD:0A -89 1302021149 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -90 1302021149 6 13 "DXT-MOBILE" 00:1A:1E:A3:37:01 -91 1302021149 11 13 "Padtec-Visitantes" 68:7F:74:8A:2D:A8 -85 1302021149 11 13 "lsw" 00:50:7F:69:FD:08 -89 1302021149 6 13 "DXT-CORP" 00:50:7F:69:FD:09 -91 1302021149 6 13 "DXT-GUEST" 00:1C:10:58:A9:6B -67 1302021155 11 13 "teste-giga" 00:18:F8:32:9F:85 -81 1302021155 10 13 "Dogfood" 00:18:F8:32:A2:D3 -80 1302021155 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -52 1302021155 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -75 1302021155 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -83 1302021155 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -73 1302021155 6 13 "WIFI-CORE-GIGA" 00:90:4C:91:00:01 -79 1302021155 6 13 "linksys_SES_22162" 00:15:6D:56:11:70 -54 1302021155 1 9 "cpqd_outdoor_11" 00:1A:70:68:5E:52 -85 1302021155 6 13 "da" 00:50:7F:69:FD:0A -89 1302021155 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -90 1302021155 6 13 "DXT-MOBILE" 00:50:7F:69:FD:08 -91 1302021155 6 13 "DXT-CORP" 00:50:7F:69:FD:09 -91 1302021155 6 13 "DXT-GUEST" 00:15:6D:54:C8:4D -88 1302021155 11 13 "cpqd_outdoor_12" 00:1C:10:58:A9:6B -74 1302021161 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021161 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021161 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -55 1302021161 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -71 1302021161 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -72 1302021161 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021161 6 13 "WIFI-CORE-GIGA" 00:90:4C:91:00:01 -85 1302021161 6 13 "linksys_SES_22162" 00:15:6D:56:11:70 -55 1302021161 1 9 "cpqd_outdoor_11" 00:1A:70:68:5E:52 -85 1302021161 6 13 "da" 00:50:7F:69:FD:0A -91 1302021161 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -90 1302021161 6 13 "DXT-MOBILE" 00:50:7F:69:FD:08 -91 1302021161 6 13 "DXT-CORP" 00:50:7F:69:FD:09 -88 1302021161 6 13 "DXT-GUEST" 00:15:6D:54:C8:4D -88 1302021161 11 13 "cpqd_outdoor_12" 00:1C:10:58:A9:6B -76 1302021166 11 13 "teste-giga" 00:18:F8:32:9F:85 -70 1302021166 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021166 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021166 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -72 1302021166 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021166 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -73 1302021166 6 13 "WIFI-CORE-GIGA" 00:90:4C:91:00:01 -85 1302021166 6 13 "linksys_SES_22162" 00:15:6D:56:11:70 -54 1302021166 1 9 "cpqd_outdoor_11" 00:50:7F:69:FD:0A -91 1302021166 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -90 1302021166 6 13 "DXT-MOBILE" 00:50:7F:69:FD:08 -91 1302021166 6 13 "DXT-CORP" 00:50:7F:69:FD:09 -88 1302021166 6 13 "DXT-GUEST" 00:15:6D:56:11:76 -91 1302021166 1 13 "cpqd_outdoor_7" 00:1C:10:58:A9:83 -86 1302021166 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -75 1302021172 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021172 10 13 "Dogfood" 00:18:F8:32:A2:D3 -82 1302021172 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021172 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -72 1302021172 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021172 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -74 1302021172 6 13 "WIFI-CORE-GIGA" 00:90:4C:91:00:01 -85 1302021172 6 13 "linksys_SES_22162" 00:15:6D:56:11:70 -56 1302021172 1 9 "cpqd_outdoor_11" 00:15:6D:56:11:76 -91 1302021172 1 13 "cpqd_outdoor_7" 00:1C:10:58:A9:83 -89 1302021172 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -75 1302021178 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021178 10 13 "Dogfood" 00:18:F8:32:A2:D3 -80 1302021178 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -57 1302021178 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -72 1302021178 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021178 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -70 1302021178 6 13 "WIFI-CORE-GIGA" 00:90:4C:91:00:01 -85 1302021178 6 13 "linksys_SES_22162" 00:15:6D:56:11:70 -54 1302021178 1 9 "cpqd_outdoor_11" 00:1C:10:58:A9:83 -86 1302021178 10 13 "WIFI-CORE-GIGA-1" 00:1A:70:68:5E:52 -88 1302021178 6 13 "da" C0:CB:38:79:8D:3E -91 1302021178 11 13 "VG" 00:1C:10:58:A9:6B -74 1302021184 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021184 10 13 "Dogfood" 00:18:F8:32:A2:D3 -77 1302021184 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021184 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -72 1302021184 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -75 1302021184 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -82 1302021184 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -55 1302021184 1 9 "cpqd_outdoor_11" 00:1C:10:58:A9:83 -87 1302021184 10 13 "WIFI-CORE-GIGA-1" C0:CB:38:79:8D:3E -91 1302021184 11 13 "VG" 00:1C:10:58:A9:6B -72 1302021189 11 13 "teste-giga" 00:18:F8:32:9F:85 -82 1302021189 10 13 "Dogfood" 00:18:F8:32:A2:D3 -77 1302021189 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -55 1302021189 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -72 1302021189 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -75 1302021189 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -70 1302021189 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -56 1302021189 1 9 "cpqd_outdoor_11" 00:1C:10:58:A9:83 -85 1302021189 10 13 "WIFI-CORE-GIGA-1" 00:90:4C:91:00:01 -87 1302021189 6 13 "linksys_SES_22162" 00:1C:10:58:A9:6B -76 1302021195 11 13 "teste-giga" 00:18:F8:32:9F:85 -70 1302021195 10 13 "Dogfood" 00:18:F8:32:A2:D3 -80 1302021195 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021195 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -70 1302021195 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -74 1302021195 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -70 1302021195 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -55 1302021195 1 9 "cpqd_outdoor_11" 00:1C:10:58:A9:83 -85 1302021195 10 13 "WIFI-CORE-GIGA-1" 00:90:4C:91:00:01 -87 1302021195 6 13 "linksys_SES_22162" 00:15:6D:56:11:76 -92 1302021195 1 13 "cpqd_outdoor_7" 00:1A:70:68:5E:52 -88 1302021195 6 13 "da" 00:50:7F:69:FD:0B -91 1302021195 6 13 "DXT-MOBILE" 00:1C:10:58:A9:6B -75 1302021201 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021201 10 13 "Dogfood" 00:18:F8:32:A2:D3 -79 1302021201 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021201 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -78 1302021201 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021201 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021201 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021201 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -86 1302021201 6 13 "linksys_SES_22162" 00:15:6D:56:11:76 -92 1302021201 1 13 "cpqd_outdoor_7" 00:1A:70:68:5E:52 -87 1302021201 6 13 "da" 00:50:7F:69:FD:0B -92 1302021201 6 13 "DXT-MOBILE" 06:19:70:29:F6:FA -92 1302021201 1 13 "WxTRAG" 00:50:7F:69:FD:08 -90 1302021201 6 13 "DXT-CORP" 00:1C:10:58:A9:6B -75 1302021207 11 13 "teste-giga" 00:18:F8:32:9F:85 -71 1302021207 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021207 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021207 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -69 1302021207 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -74 1302021207 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021207 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021207 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -88 1302021207 6 13 "linksys_SES_22162" 00:1A:70:68:5E:52 -84 1302021207 6 13 "da" 00:50:7F:69:FD:0B -92 1302021207 6 13 "DXT-MOBILE" 06:19:70:29:F6:FA -92 1302021207 1 13 "WxTRAG" 00:50:7F:69:FD:08 -90 1302021207 6 13 "DXT-CORP" 00:15:6D:54:C8:4D -86 1302021207 11 13 "cpqd_outdoor_12" 00:1C:10:58:A9:6B -72 1302021213 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021213 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021213 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -55 1302021213 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -73 1302021213 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -77 1302021213 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -77 1302021213 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -56 1302021213 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -88 1302021213 6 13 "linksys_SES_22162" 00:1A:70:68:5E:52 -84 1302021213 6 13 "da" 00:15:6D:54:C8:4D -86 1302021213 11 13 "cpqd_outdoor_12" 00:1C:10:58:A9:6B -77 1302021219 11 13 "teste-giga" 00:18:F8:32:9F:85 -77 1302021219 10 13 "Dogfood" 00:18:F8:32:A2:D3 -82 1302021219 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -57 1302021219 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -74 1302021219 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -72 1302021219 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -76 1302021219 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -56 1302021219 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -88 1302021219 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -87 1302021219 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -76 1302021225 11 13 "teste-giga" 00:18:F8:32:9F:85 -74 1302021225 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021225 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -55 1302021225 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -85 1302021225 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -75 1302021225 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -76 1302021225 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -53 1302021225 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -84 1302021225 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -83 1302021225 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -76 1302021231 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021231 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021231 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021231 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -72 1302021231 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021231 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -74 1302021231 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -53 1302021231 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -84 1302021231 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -91 1302021231 10 13 "WIFI-CORE-GIGA-1" 00:50:7F:69:FD:09 -88 1302021231 6 13 "DXT-GUEST" 00:50:7F:69:FD:0A -87 1302021231 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -89 1302021231 6 13 "DXT-MOBILE" C0:CB:38:79:8D:3E -90 1302021231 11 13 "VG" 00:15:6D:54:C8:4D -85 1302021231 11 13 "cpqd_outdoor_12" 00:1C:10:58:A9:6B -76 1302021237 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021237 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021237 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021237 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -70 1302021237 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -79 1302021237 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -75 1302021237 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021237 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -87 1302021237 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -91 1302021237 10 13 "WIFI-CORE-GIGA-1" 00:50:7F:69:FD:09 -88 1302021237 6 13 "DXT-GUEST" 00:50:7F:69:FD:0A -87 1302021237 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -89 1302021237 6 13 "DXT-MOBILE" C0:CB:38:79:8D:3E -90 1302021237 11 13 "VG" 00:15:6D:54:C8:4D -85 1302021237 11 13 "cpqd_outdoor_12" 00:1A:70:68:5E:52 -89 1302021237 6 13 "da" 00:1C:10:58:A9:6B -76 1302021243 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021243 10 13 "Dogfood" 00:18:F8:32:A2:D3 -80 1302021243 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021243 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -74 1302021243 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021243 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -76 1302021243 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021243 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -87 1302021243 6 13 "linksys_SES_22162" 00:50:7F:69:FD:09 -90 1302021243 6 13 "DXT-GUEST" 00:50:7F:69:FD:0B -90 1302021243 6 13 "DXT-MOBILE" 00:15:6D:54:C8:4D -86 1302021243 11 13 "cpqd_outdoor_12" 00:1A:70:68:5E:52 -86 1302021243 6 13 "da" 06:19:70:29:F6:FA -91 1302021243 1 13 "WxTRAG" 00:50:7F:69:FD:08 -90 1302021243 6 13 "DXT-CORP" 00:1C:10:58:A9:6B -77 1302021248 11 13 "teste-giga" 00:18:F8:32:9F:85 -71 1302021248 10 13 "Dogfood" 00:18:F8:32:A2:D3 -80 1302021248 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021248 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -79 1302021248 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -77 1302021248 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -73 1302021248 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021248 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -87 1302021248 6 13 "linksys_SES_22162" 00:50:7F:69:FD:09 -90 1302021248 6 13 "DXT-GUEST" 00:50:7F:69:FD:0B -90 1302021248 6 13 "DXT-MOBILE" 00:15:6D:54:C8:4D -86 1302021248 11 13 "cpqd_outdoor_12" 00:1A:70:68:5E:52 -86 1302021248 6 13 "da" 06:19:70:29:F6:FA -91 1302021248 1 13 "WxTRAG" 00:50:7F:69:FD:08 -90 1302021248 6 13 "DXT-CORP" 00:0B:86:45:98:80 -92 1302021248 1 13 "Padtec" 00:0B:86:45:98:81 -93 1302021248 1 13 "Padtec-Visitantes" 00:1C:10:58:A9:83 -85 1302021248 10 13 "WIFI-CORE-GIGA-1" C0:CB:38:79:8D:3E -89 1302021248 11 13 "VG" 00:1C:10:58:A9:6B -75 1302021254 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021254 10 13 "Dogfood" 00:18:F8:32:A2:D3 -79 1302021254 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -55 1302021254 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -79 1302021254 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021254 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -78 1302021254 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -52 1302021254 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -90 1302021254 6 13 "linksys_SES_22162" 00:15:6D:54:C8:4D -87 1302021254 11 13 "cpqd_outdoor_12" 00:50:7F:69:FD:08 -91 1302021254 6 13 "DXT-CORP" 00:0B:86:45:98:80 -92 1302021254 1 13 "Padtec" 00:0B:86:45:98:81 -93 1302021254 1 13 "Padtec-Visitantes" 00:1C:10:58:A9:83 -85 1302021254 10 13 "WIFI-CORE-GIGA-1" C0:CB:38:79:8D:3E -89 1302021254 11 13 "VG" 00:1C:10:58:A9:6B -76 1302021260 11 13 "teste-giga" 00:18:F8:32:9F:85 -77 1302021260 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021260 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -50 1302021260 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -73 1302021260 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -76 1302021260 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -74 1302021260 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -52 1302021260 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -88 1302021260 6 13 "linksys_SES_22162" 00:15:6D:54:C8:4D -87 1302021260 11 13 "cpqd_outdoor_12" 00:50:7F:69:FD:08 -91 1302021260 6 13 "DXT-CORP" 00:1C:10:58:A9:83 -89 1302021260 10 13 "WIFI-CORE-GIGA-1" C0:CB:38:79:8D:3E -91 1302021260 11 13 "VG" 00:18:F8:32:A5:38 -90 1302021260 6 13 "cpqd-hs" 00:1C:10:58:A9:6B -74 1302021266 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021266 10 13 "Dogfood" 00:18:F8:32:A2:D3 -82 1302021266 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -56 1302021266 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -72 1302021266 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021266 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -73 1302021266 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -52 1302021266 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -88 1302021266 6 13 "linksys_SES_22162" 00:15:6D:54:C8:4D -87 1302021266 11 13 "cpqd_outdoor_12" 00:1C:10:58:A9:83 -89 1302021266 10 13 "WIFI-CORE-GIGA-1" C0:CB:38:79:8D:3E -91 1302021266 11 13 "VG" 00:18:F8:32:A5:38 -90 1302021266 6 13 "cpqd-hs" 00:50:7F:69:FD:09 -91 1302021266 6 13 "DXT-GUEST" 00:50:7F:69:FD:0A -90 1302021266 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -91 1302021266 6 13 "DXT-MOBILE" 00:1C:10:58:A9:6B -73 1302021272 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021272 10 13 "Dogfood" 00:18:F8:32:A2:D3 -85 1302021272 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021272 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -73 1302021272 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -76 1302021272 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -71 1302021272 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021272 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -90 1302021272 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -87 1302021272 10 13 "WIFI-CORE-GIGA-1" 00:50:7F:69:FD:09 -91 1302021272 6 13 "DXT-GUEST" 00:50:7F:69:FD:0A -90 1302021272 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -91 1302021272 6 13 "DXT-MOBILE" 00:1A:70:68:5E:52 -90 1302021272 6 13 "da" 00:1C:10:58:A9:6B -75 1302021278 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021278 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021278 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021278 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -74 1302021278 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -84 1302021278 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021278 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021278 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -87 1302021278 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -85 1302021278 10 13 "WIFI-CORE-GIGA-1" 00:50:7F:69:FD:09 -91 1302021278 6 13 "DXT-GUEST" 00:50:7F:69:FD:0A -90 1302021278 6 13 "DXT-PERSONAL" 00:1A:70:68:5E:52 -88 1302021278 6 13 "da" 00:50:7F:69:FD:08 -91 1302021278 6 13 "DXT-CORP" 00:1C:10:58:A9:6B -72 1302021284 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021284 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021284 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021284 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -70 1302021284 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -75 1302021284 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -75 1302021284 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -53 1302021284 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -85 1302021284 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -85 1302021284 10 13 "WIFI-CORE-GIGA-1" 00:50:7F:69:FD:09 -91 1302021284 6 13 "DXT-GUEST" 00:50:7F:69:FD:0A -91 1302021284 6 13 "DXT-PERSONAL" 00:1A:70:68:5E:52 -88 1302021284 6 13 "da" 00:50:7F:69:FD:08 -91 1302021284 6 13 "DXT-CORP" 00:1C:10:58:A9:6B -78 1302021290 11 13 "teste-giga" 00:18:F8:32:9F:85 -78 1302021290 10 13 "Dogfood" 00:18:F8:32:A2:D3 -78 1302021290 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -50 1302021290 1 9 "cpqd_meraki_wpa" 06:18:0A:01:59:CC -70 1302021290 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -78 1302021290 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -75 1302021290 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -55 1302021290 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -86 1302021290 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -88 1302021290 10 13 "WIFI-CORE-GIGA-1" 00:50:7F:69:FD:0A -91 1302021290 6 13 "DXT-PERSONAL" 00:1C:10:58:A9:6B -76 1302021295 11 13 "teste-giga" 00:18:F8:32:9F:85 -70 1302021295 10 13 "Dogfood" 00:18:F8:32:A2:D3 -78 1302021295 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021295 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -78 1302021295 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -75 1302021295 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -55 1302021295 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -84 1302021295 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -85 1302021295 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -76 1302021301 11 13 "teste-giga" 00:18:F8:32:9F:85 -69 1302021301 10 13 "Dogfood" 00:18:F8:32:A2:D3 -80 1302021301 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021301 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -76 1302021301 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -75 1302021301 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -56 1302021301 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -85 1302021301 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -86 1302021301 10 13 "WIFI-CORE-GIGA-1" 00:50:7F:69:FD:09 -91 1302021301 6 13 "DXT-GUEST" 00:50:7F:69:FD:0A -91 1302021301 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -91 1302021301 6 13 "DXT-MOBILE" 68:7F:74:8A:2D:A8 -90 1302021301 11 13 "lsw" 00:1C:10:58:A9:6B -76 1302021307 11 13 "teste-giga" 00:18:F8:32:9F:85 -78 1302021307 10 13 "Dogfood" 00:18:F8:32:A2:D3 -80 1302021307 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021307 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -74 1302021307 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -75 1302021307 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021307 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -87 1302021307 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -86 1302021307 10 13 "WIFI-CORE-GIGA-1" 00:50:7F:69:FD:09 -91 1302021307 6 13 "DXT-GUEST" 00:50:7F:69:FD:0A -91 1302021307 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -91 1302021307 6 13 "DXT-MOBILE" 68:7F:74:8A:2D:A8 -90 1302021307 11 13 "lsw" 06:18:0A:01:59:CC -75 1302021307 1 9 "cpqd_meraki_wpa" 00:1C:10:58:A9:6B -75 1302021312 11 13 "teste-giga" 00:18:F8:32:9F:85 -70 1302021312 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021312 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021312 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021312 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -73 1302021312 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -53 1302021312 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -89 1302021312 6 13 "linksys_SES_22162" 00:50:7F:69:FD:0B -91 1302021312 6 13 "DXT-MOBILE" 06:18:0A:01:59:CC -72 1302021312 1 9 "cpqd_meraki_wpa" 00:1C:10:58:A9:6B -73 1302021318 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021318 10 13 "Dogfood" 00:18:F8:32:A2:D3 -82 1302021318 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -53 1302021318 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -76 1302021318 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -76 1302021318 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -53 1302021318 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -88 1302021318 6 13 "linksys_SES_22162" 06:18:0A:01:59:CC -72 1302021318 1 9 "cpqd_meraki_wpa" 00:0B:86:45:98:80 -91 1302021318 1 13 "Padtec" 00:0B:86:45:98:81 -92 1302021318 1 13 "Padtec-Visitantes" 00:1C:10:58:A9:6B -75 1302021324 11 13 "teste-giga" 00:18:F8:32:9F:85 -75 1302021324 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021324 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -48 1302021324 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -76 1302021324 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021324 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -52 1302021324 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -87 1302021324 6 13 "linksys_SES_22162" 06:18:0A:01:59:CC -73 1302021324 1 9 "cpqd_meraki_wpa" 00:0B:86:45:98:80 -91 1302021324 1 13 "Padtec" 00:0B:86:45:98:81 -92 1302021324 1 13 "Padtec-Visitantes" 00:50:7F:69:FD:09 -90 1302021324 6 13 "DXT-GUEST" 00:18:F8:32:A5:38 -90 1302021324 6 13 "cpqd-hs" 00:1C:10:58:A9:83 -86 1302021324 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -75 1302021330 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021330 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021330 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -66 1302021330 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -75 1302021330 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -73 1302021330 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021330 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -88 1302021330 6 13 "linksys_SES_22162" 06:18:0A:01:59:CC -70 1302021330 1 9 "cpqd_meraki_wpa" 00:50:7F:69:FD:09 -90 1302021330 6 13 "DXT-GUEST" 00:18:F8:32:A5:38 -89 1302021330 6 13 "cpqd-hs" 00:1C:10:58:A9:83 -86 1302021330 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -75 1302021336 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021336 10 13 "Dogfood" 00:18:F8:32:A2:D3 -78 1302021336 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -50 1302021336 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021336 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -71 1302021336 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -52 1302021336 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -88 1302021336 6 13 "linksys_SES_22162" 06:18:0A:01:59:CC -70 1302021336 1 9 "cpqd_meraki_wpa" 00:18:F8:32:A5:38 -89 1302021336 6 13 "cpqd-hs" 00:1C:10:58:A9:83 -86 1302021336 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -73 1302021342 11 13 "teste-giga" 00:18:F8:32:9F:85 -76 1302021342 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021342 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021342 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -75 1302021342 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -71 1302021342 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021342 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -85 1302021342 6 13 "linksys_SES_22162" 06:18:0A:01:59:CC -74 1302021342 1 9 "cpqd_meraki_wpa" 00:1A:70:68:5E:52 -89 1302021342 6 13 "da" 00:50:7F:69:FD:0B -92 1302021342 6 13 "DXT-MOBILE" C0:CB:38:79:8D:3E -88 1302021342 11 13 "VG" 00:1C:10:58:A9:6B -72 1302021347 11 13 "teste-giga" 00:18:F8:32:9F:85 -70 1302021347 10 13 "Dogfood" 00:18:F8:32:A2:D3 -80 1302021347 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -55 1302021347 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -72 1302021347 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -71 1302021347 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021347 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -87 1302021347 6 13 "linksys_SES_22162" 06:18:0A:01:59:CC -73 1302021347 1 9 "cpqd_meraki_wpa" 00:1A:70:68:5E:52 -89 1302021347 6 13 "da" 00:50:7F:69:FD:0B -92 1302021347 6 13 "DXT-MOBILE" C0:CB:38:79:8D:3E -88 1302021347 11 13 "VG" 00:1C:10:58:A9:83 -86 1302021347 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -74 1302021353 11 13 "teste-giga" 00:18:F8:32:9F:85 -84 1302021353 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021353 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021353 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021353 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -74 1302021353 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021353 1 9 "cpqd_outdoor_11" 00:90:4C:91:00:01 -87 1302021353 6 13 "linksys_SES_22162" 06:18:0A:01:59:CC -73 1302021353 1 9 "cpqd_meraki_wpa" 00:1A:70:68:5E:52 -89 1302021353 6 13 "da" 00:1C:10:58:A9:83 -86 1302021353 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -79 1302021359 11 13 "teste-giga" 00:18:F8:32:9F:85 -74 1302021359 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021359 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -58 1302021359 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -85 1302021359 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -71 1302021359 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021359 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -72 1302021359 1 9 "cpqd_meraki_wpa" 00:1C:10:58:A9:83 -86 1302021359 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -75 1302021365 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021365 10 13 "Dogfood" 00:18:F8:32:A2:D3 -82 1302021365 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021365 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -75 1302021365 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -73 1302021365 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -53 1302021365 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -72 1302021365 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -85 1302021365 6 13 "linksys_SES_22162" 00:1A:70:68:5E:52 -88 1302021365 6 13 "da" 00:1C:10:58:A9:6B -77 1302021371 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021371 10 13 "Dogfood" 00:18:F8:32:A2:D3 -79 1302021371 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021371 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -74 1302021371 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -71 1302021371 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -55 1302021371 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -73 1302021371 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -85 1302021371 6 13 "linksys_SES_22162" 00:1A:70:68:5E:52 -88 1302021371 6 13 "da" 00:1C:10:58:A9:83 -86 1302021371 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -75 1302021377 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021377 10 13 "Dogfood" 00:18:F8:32:A2:D3 -82 1302021377 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021377 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -76 1302021377 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021377 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -53 1302021377 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -73 1302021377 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -85 1302021377 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -86 1302021377 10 13 "WIFI-CORE-GIGA-1" 00:18:F8:32:A5:38 -92 1302021377 6 13 "cpqd-hs" 00:1C:10:58:A9:6B -72 1302021382 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021382 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021382 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -50 1302021382 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -75 1302021382 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021382 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -53 1302021382 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -75 1302021382 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -88 1302021382 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -87 1302021382 10 13 "WIFI-CORE-GIGA-1" 00:18:F8:32:A5:38 -92 1302021382 6 13 "cpqd-hs" 00:1C:10:58:A9:6B -73 1302021388 11 13 "teste-giga" 00:18:F8:32:9F:85 -75 1302021388 10 13 "Dogfood" 00:18:F8:32:A2:D3 -82 1302021388 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021388 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -74 1302021388 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -78 1302021388 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021388 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -73 1302021388 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -85 1302021388 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -87 1302021388 10 13 "WIFI-CORE-GIGA-1" 00:50:7F:69:FD:08 -91 1302021388 6 13 "DXT-CORP" 00:50:7F:69:FD:0A -90 1302021388 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -90 1302021388 6 13 "DXT-MOBILE" 00:1C:10:58:A9:6B -75 1302021394 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021394 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021394 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021394 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -75 1302021394 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -71 1302021394 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021394 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -71 1302021394 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -86 1302021394 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -87 1302021394 10 13 "WIFI-CORE-GIGA-1" 00:50:7F:69:FD:0A -90 1302021394 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -90 1302021394 6 13 "DXT-MOBILE" 00:18:F8:32:A5:38 -91 1302021394 6 13 "cpqd-hs" 00:15:6D:54:C8:4D -87 1302021394 11 13 "cpqd_outdoor_12" 00:1C:10:58:A9:6B -73 1302021400 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021400 10 13 "Dogfood" 00:18:F8:32:A2:D3 -82 1302021400 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -50 1302021400 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021400 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -76 1302021400 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021400 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -73 1302021400 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -86 1302021400 6 13 "linksys_SES_22162" 00:1C:10:58:A9:83 -87 1302021400 10 13 "WIFI-CORE-GIGA-1" 00:50:7F:69:FD:0A -89 1302021400 6 13 "DXT-PERSONAL" 00:18:F8:32:A5:38 -91 1302021400 6 13 "cpqd-hs" 00:15:6D:54:C8:4D -87 1302021400 11 13 "cpqd_outdoor_12" 00:1C:10:58:A9:6B -76 1302021406 11 13 "teste-giga" 00:18:F8:32:9F:85 -72 1302021406 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021406 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021406 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -79 1302021406 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021406 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -53 1302021406 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -72 1302021406 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -86 1302021406 6 13 "linksys_SES_22162" 00:50:7F:69:FD:0A -89 1302021406 6 13 "DXT-PERSONAL" 00:18:F8:32:A5:38 -92 1302021406 6 13 "cpqd-hs" 00:1C:10:58:A9:6B -75 1302021411 11 13 "teste-giga" 00:18:F8:32:9F:85 -76 1302021411 10 13 "Dogfood" 00:18:F8:32:A2:D3 -78 1302021411 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -50 1302021411 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021411 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -73 1302021411 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021411 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -72 1302021411 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -87 1302021411 6 13 "linksys_SES_22162" 00:50:7F:69:FD:0A -87 1302021411 6 13 "DXT-PERSONAL" 00:18:F8:32:A5:38 -92 1302021411 6 13 "cpqd-hs" 00:50:7F:69:FD:08 -89 1302021411 6 13 "DXT-CORP" 00:50:7F:69:FD:09 -88 1302021411 6 13 "DXT-GUEST" 00:1A:1E:A3:37:00 -90 1302021411 11 13 "Padtec" 00:1A:1E:A3:37:01 -90 1302021411 11 13 "Padtec-Visitantes" 00:1C:10:58:A9:6B -76 1302021417 11 13 "teste-giga" 00:18:F8:32:9F:85 -69 1302021417 10 13 "Dogfood" 00:18:F8:32:A2:D3 -84 1302021417 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021417 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021417 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -74 1302021417 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -55 1302021417 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -73 1302021417 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -84 1302021417 6 13 "linksys_SES_22162" 00:50:7F:69:FD:0A -87 1302021417 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:08 -89 1302021417 6 13 "DXT-CORP" 00:50:7F:69:FD:09 -88 1302021417 6 13 "DXT-GUEST" 00:1A:1E:A3:37:00 -90 1302021417 11 13 "Padtec" 00:1A:1E:A3:37:01 -90 1302021417 11 13 "Padtec-Visitantes" 00:1A:70:68:5E:52 -88 1302021417 6 13 "da" 00:15:6D:54:C8:4D -87 1302021417 11 13 "cpqd_outdoor_12" 00:1C:10:58:A9:83 -86 1302021417 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -73 1302021423 11 13 "teste-giga" 00:18:F8:32:9F:85 -75 1302021423 10 13 "Dogfood" 00:18:F8:32:A2:D3 -79 1302021423 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021423 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -75 1302021423 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -76 1302021423 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -53 1302021423 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -78 1302021423 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -90 1302021423 6 13 "linksys_SES_22162" 00:1A:70:68:5E:52 -88 1302021423 6 13 "da" 00:15:6D:54:C8:4D -87 1302021423 11 13 "cpqd_outdoor_12" 00:1C:10:58:A9:83 -86 1302021423 10 13 "WIFI-CORE-GIGA-1" 00:1C:10:58:A9:6B -74 1302021430 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021430 10 13 "Dogfood" 00:18:F8:32:A2:D3 -78 1302021430 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021430 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -75 1302021430 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021430 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -53 1302021430 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -73 1302021430 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -87 1302021430 6 13 "linksys_SES_22162" 00:15:6D:54:C8:4D -86 1302021430 11 13 "cpqd_outdoor_12" C0:CB:38:79:8D:3E -88 1302021430 11 13 "VG" 00:1C:10:58:A9:6B -75 1302021436 11 13 "teste-giga" 00:18:F8:32:9F:85 -71 1302021436 10 13 "Dogfood" 00:18:F8:32:A2:D3 -82 1302021436 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -54 1302021436 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -75 1302021436 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021436 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021436 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -72 1302021436 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -89 1302021436 6 13 "linksys_SES_22162" 00:15:6D:54:C8:4D -86 1302021436 11 13 "cpqd_outdoor_12" C0:CB:38:79:8D:3E -88 1302021436 11 13 "VG" 00:1A:70:68:5E:52 -88 1302021436 6 13 "da" 00:50:7F:69:FD:09 -90 1302021436 6 13 "DXT-GUEST" 00:50:7F:69:FD:0A -89 1302021436 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -90 1302021436 6 13 "DXT-MOBILE" 00:1C:10:58:A9:83 -87 1302021436 10 13 "WIFI-CORE-GIGA-1" 68:7F:74:8A:2D:A8 -87 1302021436 11 13 "lsw" 00:1C:10:58:A9:6B -74 1302021442 11 13 "teste-giga" 00:18:F8:32:9F:85 -74 1302021442 10 13 "Dogfood" 00:18:F8:32:A2:D3 -79 1302021442 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -50 1302021442 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -78 1302021442 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -83 1302021442 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -55 1302021442 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -72 1302021442 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -89 1302021442 6 13 "linksys_SES_22162" 00:1A:70:68:5E:52 -88 1302021442 6 13 "da" 00:50:7F:69:FD:09 -90 1302021442 6 13 "DXT-GUEST" 00:50:7F:69:FD:0A -89 1302021442 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -90 1302021442 6 13 "DXT-MOBILE" 00:1C:10:58:A9:83 -87 1302021442 10 13 "WIFI-CORE-GIGA-1" 68:7F:74:8A:2D:A8 -87 1302021442 11 13 "lsw" 00:1C:10:58:A9:6B -76 1302021448 11 13 "teste-giga" 00:18:F8:32:9F:85 -70 1302021448 10 13 "Dogfood" 00:18:F8:32:A2:D3 -80 1302021448 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021448 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021448 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021448 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -56 1302021448 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -74 1302021448 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -83 1302021448 6 13 "linksys_SES_22162" 00:1A:70:68:5E:52 -89 1302021448 6 13 "da" 00:50:7F:69:FD:09 -91 1302021448 6 13 "DXT-GUEST" 00:1C:10:58:A9:83 -87 1302021448 10 13 "WIFI-CORE-GIGA-1" 68:7F:74:8A:2D:A8 -88 1302021448 11 13 "lsw" 00:50:7F:69:FD:08 -90 1302021448 6 13 "DXT-CORP" 00:1C:10:58:A9:6B -75 1302021454 11 13 "teste-giga" 00:18:F8:32:9F:85 -74 1302021454 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021454 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -57 1302021454 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -74 1302021454 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -72 1302021454 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -54 1302021454 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -71 1302021454 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -83 1302021454 6 13 "linksys_SES_22162" 00:1A:70:68:5E:52 -89 1302021454 6 13 "da" 00:50:7F:69:FD:09 -90 1302021454 6 13 "DXT-GUEST" 00:1C:10:58:A9:83 -87 1302021454 10 13 "WIFI-CORE-GIGA-1" 68:7F:74:8A:2D:A8 -88 1302021454 11 13 "lsw" 00:50:7F:69:FD:08 -90 1302021454 6 13 "DXT-CORP" 00:50:7F:69:FD:0A -89 1302021454 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -89 1302021454 6 13 "DXT-MOBILE" 00:1C:10:58:A9:6B -75 1302021459 11 13 "teste-giga" 00:18:F8:32:9F:85 -73 1302021459 10 13 "Dogfood" 00:18:F8:32:A2:D3 -81 1302021459 1 13 "CPqD-WF2" 06:18:0A:01:59:C5 -51 1302021459 1 9 "cpqd_meraki_wpa" 00:15:6D:56:11:82 -73 1302021459 6 9 "cpqd_outdoor_17" 00:1C:10:58:A9:80 -77 1302021459 6 13 "WIFI-CORE-GIGA" 00:15:6D:56:11:70 -53 1302021459 1 9 "cpqd_outdoor_11" 06:18:0A:01:59:CC -75 1302021459 1 9 "cpqd_meraki_wpa" 00:90:4C:91:00:01 -82 1302021459 6 13 "linksys_SES_22162" 00:50:7F:69:FD:09 -88 1302021459 6 13 "DXT-GUEST" 00:50:7F:69:FD:08 -90 1302021459 6 13 "DXT-CORP" 00:50:7F:69:FD:0A -90 1302021459 6 13 "DXT-PERSONAL" 00:50:7F:69:FD:0B -90 1302021459 6 13 "DXT-MOBILE" -------------- next part -------------- A non-text attachment was scrubbed... Name: calculo.m Type: text/x-objcsrc Size: 2959 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: parse_all.sh Type: application/x-sh Size: 1427 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: scan_parser2.awk Type: application/octet-stream Size: 1498 bytes Desc: not available URL: From borge.strand at gmail.com Thu Apr 7 13:32:11 2011 From: borge.strand at gmail.com (=?ISO-8859-1?Q?B=F8rge_Strand=2DBergesen?=) Date: Thu, 7 Apr 2011 20:32:11 +0200 Subject: rehash() doesn't reread . In-Reply-To: <19869.48434.604346.281476@coredump.lan> References: <19869.48434.604346.281476@coredump.lan> Message-ID: Thanks John, I just installed 3.4.03 on Cygwin. Things just what I expect. Newly saved files appear functional without having to rehash or restart octave. I have gathered three logs below to show what happens. Any news on 3.4 being available in Windows without Cygwin? Cheers, B?rge % go to home folder and save qwerty06.m with function qwerty06(a,b) returning a+b % start cygwin octave 3.4.03 in home folder octave:1> qwerty06(1,2) ans = 3 % expected % save function as qwerty07.m in home folder octave:2> qwerty07(1,2) ans = 3 % expected % saving function as c:/qwerty08.m octave:3> cd /cygdrive/c octave:4> qwerty08(1,2) ans = 3 % All looks good! % saving as C:\programs\Octave\3.2.4_gcc-4.4.0\bin\qwerty09.m % start windows octave 3.2.4 octave-3.2.4.exe:1> qwerty09(1,2) ans = 3 % expected % save function as qwerty10.m in same folder octave-3.2.4.exe:2> qwerty10(1,2) ans = 3 % expected % save function as c:\qwerty11.m, then cd to folder octave-3.2.4.exe:3> cd c:/ octave-3.2.4.exe:4> pwd ans = c:\ octave-3.2.4.exe:5> qwerty11(1,2) ans = 3 % expected % save folder as c:\qwerty12.m without redundant cd octave-3.2.4.exe:6> qwerty12(1,2) error: `qwerty12' undefined near line 6 column 1 % neither rehash() nor cd c:/ will make it found. % restart windows octave 3.2.4 octave-3.2.4.exe:1> cd c:/ octave-3.2.4.exe:2> pwd ans = c:\ octave-3.2.4.exe:3> qwerty12(1,2) ans = 3 % expected On Thu, Apr 7, 2011 at 15:33, John W. Eaton wrote: > On ?7-Apr-2011, B?rge Strand-Bergesen wrote: > > | Hi, > | > | I'm struggling to access a access an .m file created after Octave > | started. The file is created in a folder different from the startup > | folder. path() reports "." on the very first line. > | > | It seems rehash() doesn't reread "." after a cd command. However, if I > | create a new .m file in the startup folder, it is automatically found, > | even without the need for a rehash. > | > | Here's what happens: > | - Start Octave-3.2.4 on Win7/64 > | - Create simple function c:\qwerty.m, a name which doesn't previously exist > | - In Octave, cd c:/ > | - rehash(); > | - qwerty(4,5) > | - error: `qwerty' undefined near line 13 column 1 > | > | I'd appreciate some insight into ensuring "." is properly in the path. > > I think this is a bug and that it was fixed for Octave 3.4. > > jwe > From pr.nienhuis at hccnet.nl Thu Apr 7 13:44:16 2011 From: pr.nienhuis at hccnet.nl (Philip Nienhuis) Date: Thu, 7 Apr 2011 11:44:16 -0700 (PDT) Subject: using xlswrite csvwrite In-Reply-To: References: <1302095814802-3430762.post@n4.nabble.com> Message-ID: <1302201856111-3434232.post@n4.nabble.com> forkandwait wrote: > > senator hotmail.com> writes: > > >> I need to be able to write and read csv files and csv write and read do >> work >> great for me as long as I dont write any text to the file. I would like >> to >> be able to find a way to put a field column on the top of my data in a >> csv >> file. It works great writing the data to a csv file, but i want to be >> able >> to write the field row on the top row in text. In matlab it works by >> doing >> 2 seperate csv writes (one for data and one for text). I dont know if >> that >> would work however because octave seems to erase everything else in a >> file >> before it writes. >> >> I dont know if xlswrite will let me write to a csv file, but if it does >> getting xlswrite to work could solve my problem. > > I don't know if it is helpful, but I can't help but get a little "meta" on > your > particular problem: > > I would recommend avoiding excel and other binary / proprietary formats > like the > plague (which they are). They generally poorly supported in the Free > Software > world, require lots of dependencies (Java, DDE, etc, etc, etc), and won't > be > portable outside of a Windows environment. > Just to set the record straight: xls format *is* supported outside Windows environment: gnumeric, OpenOffice.org, , can read & write xls files. Yep, even Octave can read/write xls / xlsx files on any platform where Java runs. Ironically, Matlab can't ... (... officially yet, that is, as I also have made (GPL-ed) ML versions of Octave's spreadsheet scripts to help colleagues who run ML on their Macbook.) You are right about dependencies. But they are not too bad: there's OpenJDK (maybe not completely "free" I've heard) and there are several GPL-ed or GPL-compatible options for xls I/O. Beside, I have the impression (from this and earlier threads) that the OP isn't quite interested in other platforms than Windows. > CSV files will ALWAYS be importable, > Not completely true. Octave can neither import nor write csv files with mixed text and numerical "cells". (For that matter, ML can't either.) > human readable/ editable, and will require the bare minimum of > infrastructure to > use. If you need to get fancy, look into CDF or HDF (which I don't know > much > about, or I would try to say something intelligent...) > > I suggest you use dlmwrite to output CSV files, or perhaps write a > function that > adds a header line using dlmwrite in conjunction with printf. (csvwrite > is a > nonstandard wrapper to dlmwrite, as far as I understand.) > The same limitation (heterogeneous text/numeric) goes for dlmread / dlmwrite. > Octave has enough built in I/O functions you should be able to do anything > you want with a little > bit of coding (which is good for you anyway ;) ) dlmwrite has lots of > useful > options, including an "append" flag for putting data after a header row, > which > you can learn about here: > > http://www.gnu.org/software/octave/doc/interpreter/Simple-File-I_002fO.html#Simple-File-I_002fO > That's one of the first things the OP wrote - exacly that is his wish. The "append" flag may solve his problems. dlmread has a similar option (starting row) which may help out. But I get the impression that the OP imports csv files back into Excel. That's why I still try to help him to get the spreadsheet I/O operational. > If you just need to save files and communicate between octave scripts, > simply > use "save" and "load", which can be found on the same page. > > I would ONLY use xlswrite and friends if you MUST communicate with a > (L)user who > insists on opening only files that end in ".xls"; even then, some patient > explaining about the virtues of simple, non-proprietary CSV formats can > save you > both 100s of wasted man-hours in the future. > > If your data is heterogeneous in its columns (some text, some number > columns), > that is another problem altogether -- if so, please let us know. > I had a go at writing a csvwrite() replacement for heterogeneous data; it works (somewhat) but upon closer inspection I found there are several sneaky gotchas involved. Maybe later I'll have time to make a more reliable version. A csvread replacement might be even more tricky. > My apologies if my rant/ tangent is too tangential or vague to be useful. > I doubt whether your "rant" will hit target .... ;-) But it is useful as it gives an opportunity to clarify on misperceptions like "xls is poorly supported outside M$" etc. Au contraire, it *is* widely supported. When I did my research before making the Excel/OpenOffice scripts, I hit upon loads and loads of cross-platform options, potential and/or immediately usable - unfortunately many were proprietary/closed source or in some other way of limited use for Octave. If there is so much available, you can bet that there is much demand and -as a consequence- much support. Philip -- View this message in context: http://octave.1599824.n4.nabble.com/using-xlswrite-csvwrite-tp3430762p3434232.html Sent from the Octave - General mailing list archive at Nabble.com. From borge.strand at gmail.com Thu Apr 7 13:56:26 2011 From: borge.strand at gmail.com (=?ISO-8859-1?Q?B=F8rge_Strand=2DBergesen?=) Date: Thu, 7 Apr 2011 20:56:26 +0200 Subject: Playrec In-Reply-To: <201104071618.19578.martin@mhelm.de> References: <4D9DBEB2.2030701@dcu.ie> <201104071618.19578.martin@mhelm.de> Message-ID: Thanks guys, you are absolutely right, I'm using "i686-pc-mingw32". I have downloaded the three packages to compile pa_wavplay. At the moment it doesn't find the right .h file in the include path. Should I change the #include statement, or is there a good way to instruct Octave about the include path? Do you have experience in building this for i686-pc-mingw32? Thanks, B?rge On Thu, Apr 7, 2011 at 16:18, Martin Helm wrote: > Am Donnerstag, 7. April 2011, 15:40:02 schrieb Ronan Scaife: >> Dear all, >> >> On 07/04/2011 09:27, B?rge Strand-Bergesen wrote: >> > Hi, >> > >> > anybody having success compiling and using Playrec 2.1.0? >> > >> > I'm struggling to build it with Octave 3.2.4 on Win7/64 with Microsoft >> > Visual Studio 2010 Express. >> > >> > Alternatively, do you have other suggestions for ways to user the >> > computer's soundcard for samples IO? Preferably, the code should be >> > comptatible on Octave and Matlab. >> > >> > >> > Thanks, >> > Borge >> > _______________________________________________ >> > Help-octave mailing list >> > Help-octave at octave.org >> > https://mailman.cae.wisc.edu/listinfo/help-octave >> >> A simpler toolbox (also based on PortAudio, as PlayRec is) is pa_wavplay: >> >> >> >> I ported this to Scilab a few years ago, but it seems from the above that >> pa_wavplay already works with Octave. >> >> Playrec is a more sophisticated package, but pa_wavplay does the >> job for me. >> >> Best Wishes, > > I guess octave 3.2.4 mingw build is used here? Am I wrong? So you will have > much trouble using mex compilation for it with Visual Studio, the > binaries/dll's are not compatible. > You will need to do the compilation with the version of gcc shipped together > with the octave windows version. > Beside that comment I unfortuneatelly cannot help with playrec, I have just > seen that there are no good build instructions for a mingw build on the > playrec homepage (or I missed it). > From martin at mhelm.de Thu Apr 7 14:07:36 2011 From: martin at mhelm.de (Martin Helm) Date: Thu, 07 Apr 2011 21:07:36 +0200 Subject: using xlswrite csvwrite In-Reply-To: <1302201856111-3434232.post@n4.nabble.com> References: <1302095814802-3430762.post@n4.nabble.com> <1302201856111-3434232.post@n4.nabble.com> Message-ID: <1302203256.6915.3.camel@linux-uhdl> Am Donnerstag, den 07.04.2011, 11:44 -0700 schrieb Philip Nienhuis: > forkandwait wrote: > You are right about dependencies. But they are not too bad: there's OpenJDK > (maybe not completely "free" I've heard) Not sure what you mean exactly. The one and only reliable source about the license (the openjdk home page itself) says it is GPLv2 with CE (classpath exception). See here: http://openjdk.java.net/legal/ From peter at sonderport.dk Thu Apr 7 14:13:21 2011 From: peter at sonderport.dk (Peter) Date: Thu, 07 Apr 2011 21:13:21 +0200 Subject: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 In-Reply-To: References: <84275.863.qm@web112109.mail.gq1.yahoo.com> Message-ID: <1302203601.4141.0.camel@peter-laptop> Try using a phase vocoder: http://labrosa.ee.columbia.edu/matlab/pvoc/ Cheers, Peter. tor, 07 04 2011 kl. 04:43 -1000, skrev Rick T: > Greetings All > > > I went back and did what Sergei recommend and used resample and > repmat, but I'm noticing that on some of the values the rows aren't > the same as the sample rate, see image link below. notice the top > image value for rows says 1000 and the bottom image says rows = 1008. > This happens when I change the values of resample and repmat > (freq_new) but only for certain values. How can I fix this > correctly? I could just delete everything after 1000 but I'm not sure > if this is a bug or just the way resample/repmat works. PS: I'm using > octave 3.2.4 > > > http://dl.dropbox.com/u/6576402/questions/rows_different.png > > > Here's the test code I used to test this > > > %resample_repmat signal > > clear all, clf > > Fs = 1000; % Sampling rate > > Ts = 1/Fs; %sampling interval > > t=0:Ts:1-Ts; %sampling period > > > freq_orig=1; > > y=sin(2*pi*t*freq_orig)'; %gives a short wave > > > freq_new=9; > > y2=resample(y,1,freq_new); %resample matrix > > y3=repmat (y2,freq_new,1); %replicate matrix > > > [r_orig,c_orig] = size(y) %get orig number of rows and cols > > [r_new,c_new] = size(y3) %get new number of rows and cols > > > subplot(2,1,1),plot(y),title('Orginal signal') > > title(['rows=',num2str(r_orig),' cols=',num2str(c_orig)]) > > subplot(2,1,2),plot(y3),title('New signal') > > title(['rows=',num2str(r_new),' cols=',num2str(c_new)]) > > > > On Mon, Apr 4, 2011 at 1:17 PM, Sergei Steshenko > wrote: > > --- On Mon, 4/4/11, Rick T wrote: > > From: Rick T > > Subject: Re: How can I increase/decrease (frequency/pitch) and > phase using fft/ifft tia sal22 > To: "Sergei Steshenko" > Cc: help-octave at octave.org > Date: Monday, April 4, 2011, 3:37 PM > > > I need fft/ifft due to the fact that I have to alter various > cells in the array the signal is stored in (in the frequency > domain. The script is very long. In my experience if you > post hundreds of lines of code people will not look at it. > That's why I kept it simple and basic. And asked How can I > increase/decrease (frequency/pitch) and phase using fft/ifft. > > > > PS: Unfortunately Sergei the nice solution you sent won't > work, I'm dealing with large arrays that are exported back out > as audio files and fft/ifft seems to be the fastest. > > > > > On Mon, Apr 4, 2011 at 11:33 AM, Sergei Steshenko > wrote: > > > > > --- On Mon, 4/4/11, Rick T wrote: > > > > From: Rick T > > Subject: How can I increase/decrease (frequency/pitch) and > phase using fft/ifft tia sal22 > > To: help-octave at octave.org > > Date: Monday, April 4, 2011, 2:11 PM > > > > How can I increase/decrease (frequency/pitch) and phase using > fft/ifft > > I think I have the basic code but I?m not sure what to do > next > > > > PS: Thanks for the help on the last question everyone I > decided not to use the FOR loop and sin/cos values and just > use fft/ifft > > > > > > to see if this will work. > > Example I have a signal that repeats 1 time every second and I > want to > > have it repeat 3 times a second instead. > > %Voiceprint raise lower freq phase conjugate signal > > tic > > > > > > clear all, clc,clf,tic > > %% Sound /beep calculation complete > > filerawbeepStr='calculations_complete.wav'; > > filerawbeeppathStr='/home/rat/Documents/octave/raw/'; > > filevoiceprepathStr='/home/rat/Documents/octave/eq_research/main/ > > > > > > transform/voice/'; > > filewavpathStr='/home/rat/Documents/octave/eq_research/main/transform/ > > wav/'; > > [ybeep, Fsbeep, nbitsbeep] = > > wavread(strcat(filerawbeeppathStr,filerawbeepStr)); > > % > addpath(?/home/rat/Documents/octave/eq_research/main/transform/?); > > > > > > %add path to location of functions > > %1a voice print import > > [vp_sig_orig, fs_rate, nbitsraw] = > > wavread(strcat(filevoiceprepathStr,'voice8000fs.wav')); > > %vp_sig_orig=vp_sig_orig?; > > > > > > vp_sig_len=length(vp_sig_orig); > > %2a create frequency domain > > ya_fft = fft(vp_sig_orig); > > vp_sig_phase_orig = unwrap(angle(ya_fft)); > > %get Magnitude > > ya_fft_mag = abs(ya_fft); > > > > > > %3a frequency back to time domain > > ya_ifft=real(ifft(ya_fft)); > > %adjust frequency/phase here? How? > > vp_sig_new=real(ifft(ya_fft_mag.*exp(i*vp_sig_phase_orig))); > > subplot(3,1,1), plot(vp_sig_orig),title('1 original time > domain') > > > > > > subplot(3,1,2), plot(ya_ifft),title('2 rebuild time domain') > > subplot(3,1,3), plot(vp_sig_new),title('3 adjusted time') > > > > > > > > > > -----Inline Attachment Follows----- > > > > _______________________________________________ > > Help-octave mailing list > > Help-octave at octave.org > > https://mailman.cae.wisc.edu/listinfo/help-octave > > > > So, regarding your > > > > > > " > > Example I have a signal that repeats 1 time every second and I > want to > > have it repeat 3 times a second instead. > > " > > > > - why do you need FFT in the first place ? > > > > I.e. if 'x' is your signal, why not simply write > > > > x = linspace(0, 1, 10); % or whatever other way to generate > your signal > > y = [x x x]; % repeat x 3 times > > plot(y); > > > > > > ? > > > > Regards, > > Sergei. > > > > > -- > > > > Sorry, but this is mostly nonsense. FFT can't be faster than > just moving > data in memory - the latter is my solution. > > If your audio comes in frequency domain, then by just _one_ > 'ifft' you > convert it into time domain, and then my solution works. > > You have already been given a link to 'resample' function. > > You appear not to understand fundamental things regarding > pitch shift. If > your signal gets repeated a number of times, it is not pitch > shift. > > Pitch shift does not imply signal repetitions and does not > imply change > of number of output samples. > > AFAIK pitch shift is implemented through overlapping > relatively (compared > to the length of the whole musical piece) short FFTs, and the > spectrum is > shifted (rather, scaled - you typically need all spectral > componenets to be multiplied by the same factor) in order to > achieve pitch shift - number of samples, as I said, does _not_ > change. > > Start from > http://en.wikipedia.org/wiki/Audio_timescale-pitch_modification -> http://en.wikipedia.org/wiki/Audio_timescale-pitch_modification#Pitch_scaling . > > Regards, > Sergei. > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave From ericoporto2008 at gmail.com Thu Apr 7 14:37:56 2011 From: ericoporto2008 at gmail.com (=?ISO-8859-1?Q?=C9rico_Porto?=) Date: Thu, 7 Apr 2011 16:37:56 -0300 Subject: print plot is cutting the image In-Reply-To: References: Message-ID: does anyone know how to get a string length? ?rico V. Porto On Thu, Apr 7, 2011 at 3:10 PM, ?rico Porto wrote: > If I run this it works, but there are more points tho process, and the > others don't work > > To explain better, if I start octave, manually add the data and try once, > it works! > > But it doesn't when sequentially called through bash. > > ?rico V. Porto > > > > On Thu, Apr 7, 2011 at 2:52 PM, Andy Buckle wrote: > >> On Thu, Apr 7, 2011 at 6:36 PM, ?rico Porto >> wrote: >> > is there a better workaround? This one work only the first time it is >> used - >> > and the other times I'm just recalling the same code through an bash >> > script... >> >> I don't understand "only the first time" in this context. >> >> Please don't top post. >> >> -- >> /* andy buckle */ >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From findtype at gmail.com Thu Apr 7 14:42:55 2011 From: findtype at gmail.com (findtype) Date: Thu, 7 Apr 2011 15:42:55 -0400 Subject: function gamma_inc or gammainc In-Reply-To: References: Message-ID: gammainc(x,a) as documented in the Octave manual is the usual (normalized) incomplete gamma function. Possibly gamma_inc(x,a) is the unnormalized form, i.e. there is no division by gamma(a)? The following link indicates that possibility.... http://www.gnu.org/software/gsl/manual/html_node/Incomplete-Gamma-Functions.html Ted F. On Thu, Apr 7, 2011 at 1:15 PM, Teyeb KHAYE wrote: > Hi, > > what the difference beetwen the gamma_inc(x,a) and gammainc(x,a) ??? > > thank you, > > Best regards. > > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andybuckle at gmail.com Thu Apr 7 14:45:56 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Thu, 7 Apr 2011 20:45:56 +0100 Subject: print plot is cutting the image In-Reply-To: References: Message-ID: On Thu, Apr 7, 2011 at 6:40 PM, ?rico Porto wrote: > and also, I want a ylabel that is vertical instead of horizontal, is it > possible? > > ?rico V. Porto This does not work, and may be worth a bug report h=ylabel("foo") set(h,'rotation',90) A workaround along these lines could work h=text(x,y,'foo'); set(h,'rotation',90) -- /* andy buckle */ From ericoporto2008 at gmail.com Thu Apr 7 14:48:21 2011 From: ericoporto2008 at gmail.com (=?ISO-8859-1?Q?=C9rico_Porto?=) Date: Thu, 7 Apr 2011 16:48:21 -0300 Subject: print plot is cutting the image In-Reply-To: References: Message-ID: is there a ticket system in the octave - to report bugs? ?rico V. Porto On Thu, Apr 7, 2011 at 4:45 PM, Andy Buckle wrote: > On Thu, Apr 7, 2011 at 6:40 PM, ?rico Porto > wrote: > > and also, I want a ylabel that is vertical instead of horizontal, is it > > possible? > > > > ?rico V. Porto > > This does not work, and may be worth a bug report > > h=ylabel("foo") > set(h,'rotation',90) > > A workaround along these lines could work > > h=text(x,y,'foo'); > set(h,'rotation',90) > > > -- > /* andy buckle */ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From WKrekeler at cleanearthtech.com Thu Apr 7 15:06:22 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Thu, 7 Apr 2011 20:06:22 +0000 Subject: print plot is cutting the image In-Reply-To: References: Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB212D35D8@CETEX1.cleanearth.ceprivate> From: help-octave-bounces at octave.org [mailto:help-octave-bounces at octave.org] On Behalf Of ?rico Porto Sent: Thursday, April 07, 2011 2:38 PM To: Andy Buckle Cc: help-octave at octave.org Subject: Re: print plot is cutting the image does anyone know how to get a string length? ?rico V. Porto On Thu, Apr 7, 2011 at 3:10 PM, ?rico Porto > wrote: If I run this it works, but there are more points tho process, and the others don't work To explain better, if I start octave, manually add the data and try once, it works! But it doesn't when sequentially called through bash. ?rico V. Porto On Thu, Apr 7, 2011 at 2:52 PM, Andy Buckle > wrote: On Thu, Apr 7, 2011 at 6:36 PM, ?rico Porto > wrote: > is there a better workaround? This one work only the first time it is used - > and the other times I'm just recalling the same code through an bash > script... I don't understand "only the first time" in this context. Please don't top post. -- /* andy buckle */ you can use the length command to get a string length. if you have a non-char data structure you may need to map the variable to char first to get the appropriate size, as opposed to the size of the data structure. Several examples below. x = 'string' length(x) numel(x) max( size(x) ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpabbott at mac.com Thu Apr 7 15:13:59 2011 From: bpabbott at mac.com (bpabbott) Date: Thu, 07 Apr 2011 20:13:59 +0000 (GMT) Subject: print plot is cutting the image In-Reply-To: Message-ID: <26c9aa48-0d39-6dab-9ead-feb311d67812@me.com> On Apr 07, 2011, at 02:10 PM, ?rico Porto wrote: On Thu, Apr 7, 2011 at 2:52 PM, Andy Buckle wrote: On Thu, Apr 7, 2011 at 6:36 PM, ?rico Porto wrote: > is there a better workaround? This one work only the first time it is used - > and the other times I'm just recalling the same code through an bash > script... I don't understand "only the first time" in this context. Please don't top post. -- /* andy buckle */ If I run this it works, but there are more points tho process, and the others don't work? To explain better, if I start octave, manually add the data and try once, it works! But it doesn't when sequentially called through bash. ?rico V. Porto ? You'll need to issue the command below each time an axes is created. set (gca, 'position', [.13 .11 .6 .815]) Or you can add the following to your ~/.octaverc file set (0, 'defaultaxesposition', [0.13, 0.11, 0.6, 0.815]) Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpabbott at mac.com Thu Apr 7 15:21:02 2011 From: bpabbott at mac.com (bpabbott) Date: Thu, 07 Apr 2011 20:21:02 +0000 (GMT) Subject: print plot is cutting the image In-Reply-To: Message-ID: On Apr 07, 2011, at 03:48 PM, ?rico Porto wrote: On Thu, Apr 7, 2011 at 4:45 PM, Andy Buckle wrote: On Thu, Apr 7, 2011 at 6:40 PM, ?rico Porto wrote: > and also, I want a ylabel that is vertical instead of horizontal, is it > possible? > > ?rico V. Porto This does not work, and may be worth a bug report h=ylabel("foo") set(h,'rotation',90) A workaround along these lines could work h=text(x,y,'foo'); set(h,'rotation',90) is there a ticket system in the octave - to report bugs? ?rico V. Porto ? Please do not respond at the top (called top-posting). Our policy is to encourage responding at the bottom (bottom-posting) so that those arriving late can follow along. There is a bug tracker for Octave. http://savannah.gnuorg/bugs/?group=octave Does anyone know if gnuplot supports rotation of axes labels? Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordigh at octave.org Thu Apr 7 15:48:23 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Thu, 7 Apr 2011 15:48:23 -0500 Subject: rehash() doesn't reread . In-Reply-To: References: <19869.48434.604346.281476@coredump.lan> Message-ID: On 7 April 2011 13:32, B?rge Strand-Bergesen wrote: > Any news on 3.4 being available in Windows without Cygwin? Probably not soon, unless you are able to do it yourself. The Windows packagers have been facing difficulties (and one of them is in Japan, but he assures me he's well). We are already contemplating a 3.4.1 release, so I hope the packaging can pick up then. - Jordi G. H. From dasergatskov at gmail.com Thu Apr 7 17:07:16 2011 From: dasergatskov at gmail.com (Dmitri A. Sergatskov) Date: Thu, 7 Apr 2011 17:07:16 -0500 Subject: print plot is cutting the image In-Reply-To: References: Message-ID: On Thu, Apr 7, 2011 at 3:21 PM, bpabbott wrote: > Does anyone know if gnuplot supports rotation of axes labels? Mine (which is pretty recent CVS snapshot) does. I do not know when was that first implemented. gnuplot> set ylabel "Y" rotate by 0 gnuplot> plot sin(x) gnuplot> set ylabel "Y" rotate by 180 gnuplot> replot > Ben > Dmitri. -- From forkandwait at gmail.com Thu Apr 7 17:19:53 2011 From: forkandwait at gmail.com (fork) Date: Thu, 7 Apr 2011 22:19:53 +0000 (UTC) Subject: using xlswrite csvwrite References: <1302095814802-3430762.post@n4.nabble.com> <1302201856111-3434232.post@n4.nabble.com> Message-ID: Philip Nienhuis hccnet.nl> writes: > Just to set the record straight: > > xls format *is* supported outside Windows environment: gnumeric, > OpenOffice.org, , can read & write xls files. Yep, even Octave can > read/write xls / xlsx files on any platform where Java runs. Ironically, > Matlab can't ... Fair enough, though Java is deal-breaker for me (no offense, but ...). Is there a C library for reading xls binaries directly? > Not completely true. > Octave can neither import nor write csv files with mixed text and numerical > "cells". > (For that matter, ML can't either.) True, sort of. With the latest dlmread, you can retain the structure of a numeric matrix and have an arbitrary value for unreadable cells (default is zero in ML, but that is stupid, so we can set to NaN.) And we can read anything into a cell-array, though what you do with THAT afterward is another question. > But it is useful as it gives an opportunity to clarify on misperceptions > like "xls is poorly supported outside M$" etc. > Au contraire, it *is* widely supported. Let me rephrase: while xls is (sort of) widely supported, there are lots of better, more open, and likely more sustainable options... ;) And thanks for an interesting discussion. My feeling is that the OP just wants to get some work done, but he might find this an interesting introduction to some of the discussions around data formats and dependencies. From bpabbott at mac.com Thu Apr 7 17:26:44 2011 From: bpabbott at mac.com (Ben Abbott) Date: Thu, 07 Apr 2011 18:26:44 -0400 Subject: print plot is cutting the image In-Reply-To: References: Message-ID: <6263FE33-E38B-47B4-AF77-4A45166B0E8E@mac.com> On Apr 7, 2011, at 6:07 PM, Dmitri A. Sergatskov wrote: > On Thu, Apr 7, 2011 at 3:21 PM, bpabbott wrote: > >> Does anyone know if gnuplot supports rotation of axes labels? > > Mine (which is pretty recent CVS snapshot) does. I do not know when was that > first implemented. > > gnuplot> set ylabel "Y" rotate by 0 > gnuplot> plot sin(x) > gnuplot> set ylabel "Y" rotate by 180 > gnuplot> replot > > >> Ben >> > > Dmitri. I'm a bit embarassed. The developers sources to allow the rotation to be specified and display the result correctly. Ben From findtype at gmail.com Thu Apr 7 18:01:23 2011 From: findtype at gmail.com (findtype) Date: Thu, 7 Apr 2011 19:01:23 -0400 Subject: octave updated to 3.4.0-3. Please test In-Reply-To: References: <164142.83765.qm@web111307.mail.gq1.yahoo.com> Message-ID: Hi Marco, Here's two cents' worth of testing.... (1) Function definition and call to imread() worked fine: function [ I ] = readImage() I = imread( "scene1.jpg" ); fprintf( "Image size read in:\n" ); [m,n,k] = size( I ) endfunction (2) Graphing a "chirped" sine wave via plot() failed: function makePlot() m = 1000; a = [1/m:1/m:1]'; b = zeros( size(a) ); for( i=1:m ) b(i,1) = sin( 2*pi/a(i,1) ); end plot(a,b) grid( "on" ); endfunction This drew the following.... error: Invalid call to strcat. Correct usage is: -- function File: strcat (S1, S2, ...) error: called from: error: /usr/share/octave/3.4.0/m/help/print_usage.m at line 87, column 5 etc. etc. So, I must have installed something incorrectly, since it worked previously with cygwin 1.7.8-1, octave 3.4.0-2, libgfortran3 4.3.4-3, libGraphicsMagick3-1.3.12-2. Would you please look into this and let me know what to correct? Regards, Ted F. On Thu, Mar 31, 2011 at 3:30 AM, marco atzeri wrote: > On Thu, Mar 31, 2011 at 7:46 AM, john grant wrote: > > [[I tried sending this to the cygwin list, but the delivery failed.]] > > I guess you need to subscribe. > > > > > On Vista, 32-bit, with the latest packages as shown in your top cygcheck, > > octave runs but does not plot. In the xterm, I see the following error > > messages when trying to plot. Thanks for working on this. > > > > octave:1> plot( linspace(1,10,10) ) > > 2 [main] octave-3.4.0 4020 exception::handle: Exception: > > STATUS_ACCESS_VIOLATION > > 803 [main] octave-3.4.0 4020 open_stackdumpfile: Dumping stack trace > to > > octave-3.4.0.exe.stackdump > > 3 [main] octave-3.4.0 520 exception::handle: Exception: > > STATUS_ACCESS_VIOLATION > > 692 [main] octave-3.4.0 520 open_stackdumpfile: Dumping stack trace > to > > octave-3.4.0.exe.stackdump > > 3 [main] octave-3.4.0 4616 exception::handle: Exception: > > STATUS_ACCESS_VIOLATION > > 699 [main] octave-3.4.0 4616 open_stackdumpfile: Dumping stack trace > to > > octave-3.4.0.exe.stackdump > > 3 [main] octave-3.4.0 4028 exception::handle: Exception: > > STATUS_ACCESS_VIOLATION > > 694 [main] octave-3.4.0 4028 open_stackdumpfile: Dumping stack trace > to > > octave-3.4.0.exe.stackdump > > 2 [main] octave-3.4.0 5608 exception::handle: Exception: > > STATUS_ACCESS_VIOLATION > > 555 [main] octave-3.4.0 5608 open_stackdumpfile: Dumping stack trace > to > > octave-3.4.0.exe.stackdump > > 3 [main] octave-3.4.0 1136 exception::handle: Exception: > > STATUS_ACCESS_VIOLATION > > 695 [main] octave-3.4.0 1136 open_stackdumpfile: Dumping stack trace > to > > octave-3.4.0.exe.stackdump > > 3 [main] octave 856 fork: child -1 - died waiting for longjmp > before > > initialization, retry 0, exit code 0x600, errno 11 > > error: popen2: process creation failed -- Resource temporarily > unavailable > > error: called from: > > error: /usr/share/octave/3.4.0/m/plot/__gnuplot_open_stream__.m at line > > 30, column 44 > > error: /usr/share/octave/3.4.0/m/plot/__gnuplot_drawnow__.m at line 72, > > column 19 > > octave:2> > > I have only Win XP 32 , not Vista32 so I can not try. > > Could you send me the stackdump and the output of ListDlls ? > > http://technet.microsoft.com/en-gb/sysinternals/bb896656 > > Regards > Marco > > > > > > > ________________________________ > > From: marco atzeri > > To: Octave users list > > Sent: Wed, March 30, 2011 10:22:58 PM > > Subject: octave updated to 3.4.0-3. Please test > > > > dear octave user on cygwin, > > > > after some tricking, hacking and polishing the new octave 3.4.0-3 has > > been released for cygwin. > > Also lapack and qrupdate have been updated to solve the > > libgfortran3-4.3.4-4 issue. > > > > This configuration should work : > > > > $ cygcheck -c octave liblapack0 cygwin libqrupdate0 libgfortran3 > > Cygwin Package Information > > Package Version Status > > cygwin 1.7.9-1 OK > > libgfortran3 4.3.4-4 OK > > liblapack0 3.2.2-2 OK > > libqrupdate0 1.1.1-1 OK > > octave 3.4.0-3 OK > > > > and also this one (as I built all the package on cygwin-1.7.8-1 and > > libgfortran3-4.3.4-4 ) > > > > $ cygcheck -c octave liblapack0 cygwin libqrupdate0 libgfortran3 > > Cygwin Package Information > > Package Version Status > > cygwin 1.7.8-1 OK > > libgfortran3 4.3.4-4 OK > > liblapack0 3.2.2-2 OK > > libqrupdate0 1.1.1-1 OK > > octave 3.4.0-3 OK > > > > the configuration before libgfortran3 update, that worked was > > Cygwin Package Information > > Package Version Status > > cygwin 1.7.8-1 OK > > libgfortran3 4.3.4-3 OK > > liblapack0 3.2.2-1 OK > > libqrupdate0 1.1.0-1 OK > > octave 3.4.0-2 OK > > > > please test, including plotting and in case of failures let me know on > > this mailing list or (better) in the cygwin mailing list. > > > > > > Regards > > Marco > > _______________________________________________ > > Help-octave mailing list > > Help-octave at octave.org > > https://mailman.cae.wisc.edu/listinfo/help-octave > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.atzeri at gmail.com Thu Apr 7 19:54:47 2011 From: marco.atzeri at gmail.com (marco atzeri) Date: Fri, 8 Apr 2011 02:54:47 +0200 Subject: octave updated to 3.4.0-3. Please test In-Reply-To: References: <164142.83765.qm@web111307.mail.gq1.yahoo.com> Message-ID: On Fri, Apr 8, 2011 at 1:01 AM, findtype wrote: > Hi Marco, > Here's two cents' worth of testing.... > (1) Function definition and call to imread() worked fine: > ?? ? function [ I ] = readImage() > ?? ? ? ? ?I = imread( "scene1.jpg" ); > ?? ? ? ? ?fprintf( "Image size read in:\n" ); > ?? ? ? ? ?[m,n,k] = size( I ) > ?? ? endfunction > (2) Graphing a "chirped" sine wave via plot() failed: > ?? ? function makePlot() > ?? ? ? ? ?m = 1000; > ?? ? ? ? ?a = [1/m:1/m:1]'; > ?? ? ? ? ?b = zeros( size(a) ); > ?? ? ? ? ?for( i=1:m ) > ?? ? ? ? ? ? ? b(i,1) = sin( 2*pi/a(i,1) ); > ?? ? ? ? ?end > ?? ? ? ? ?plot(a,b) > ?? ? ? ? ?grid( "on" ); > ?? ? endfunction > ?? ? This drew the following.... > ?? ? error: Invalid call to strcat. ?Correct usage is: > ?? ? ? ? ? ? ?-- function File: ?strcat (S1, S2, ...) > ?? ? error: called from: > ?? ? error: /usr/share/octave/3.4.0/m/help/print_usage.m at line 87, column > 5 > ?? ? etc. etc. > So, I must have installed something incorrectly, since it worked previously > with > ?? ? cygwin 1.7.8-1, > ?? ? octave 3.4.0-2, > ?? ? libgfortran3 4.3.4-3, > ?? ? libGraphicsMagick3-1.3.12-2. ?Would you please look into this and let > me know what to correct? > Regards, > Ted F. Hi Ted, could you just try with cygwin 1.7.8-1 not 1.7.9-1 libgfortran3 4.3.4-4 liblapack0 3.2.2-2 libqrupdate0 1.1.1-1 octave 3.4.0-3 we noticed that cygwin-1.7.9-1 have some problem in the communication between octave and gnuplot so plot is failing in all the windows version. Marco From ericoporto2008 at gmail.com Thu Apr 7 23:01:07 2011 From: ericoporto2008 at gmail.com (=?ISO-8859-1?Q?=C9rico_Porto?=) Date: Fri, 8 Apr 2011 01:01:07 -0300 Subject: print plot is cutting the image In-Reply-To: <6263FE33-E38B-47B4-AF77-4A45166B0E8E@mac.com> References: <6263FE33-E38B-47B4-AF77-4A45166B0E8E@mac.com> Message-ID: On Thu, Apr 7, 2011 at 7:26 PM, Ben Abbott wrote: > On Apr 7, 2011, at 6:07 PM, Dmitri A. Sergatskov wrote: > > > On Thu, Apr 7, 2011 at 3:21 PM, bpabbott wrote: > > > >> Does anyone know if gnuplot supports rotation of axes labels? > > > > Mine (which is pretty recent CVS snapshot) does. I do not know when was > that > > first implemented. > > > > gnuplot> set ylabel "Y" rotate by 0 > > gnuplot> plot sin(x) > > gnuplot> set ylabel "Y" rotate by 180 > > gnuplot> replot > > > > > >> Ben > >> > > > > Dmitri. > > I'm a bit embarassed. The developers sources to allow the rotation to be > specified and display the result correctly. > > Ben > > > Ben, I couldn't understand a single word! Bpabbott, took me your second setze to understand what top post is, not very familiar with forum language. Dmitri, it's not working here now, so I will try to update and see if it works - I'm logged on windows right now, so this will have to wait. William, it isn't length, it is sizeof()... Took me a while to figure out this one. Length gave me a undesired 1 as result. I'm getting my text from a text file, than spliting it throught split thaaaan extracting it by selecting from the array {} ... to something like b="string" Thank you all (btw, the best solution from the web is to convert the plot to ascii and then ploting in gnuplot outside octave. Though this is an horrible solution, it works, but I manage to cute the letters from the legend to small it... Couldn't change the legend fontsize though.) -------------- next part -------------- An HTML attachment was scrubbed... URL: From findtype at gmail.com Thu Apr 7 23:15:48 2011 From: findtype at gmail.com (findtype) Date: Fri, 8 Apr 2011 00:15:48 -0400 Subject: octave updated to 3.4.0-3. Please test In-Reply-To: References: <164142.83765.qm@web111307.mail.gq1.yahoo.com> Message-ID: Hi Marco, Yes, that works fine. Thanks! I'll stay with that until you notify to try cygwin 1.7.9-1 again. Regards, Ted F. On Thu, Apr 7, 2011 at 8:54 PM, marco atzeri wrote: > On Fri, Apr 8, 2011 at 1:01 AM, findtype wrote: > > Hi Marco, > > Here's two cents' worth of testing.... > > (1) Function definition and call to imread() worked fine: > > function [ I ] = readImage() > > I = imread( "scene1.jpg" ); > > fprintf( "Image size read in:\n" ); > > [m,n,k] = size( I ) > > endfunction > > (2) Graphing a "chirped" sine wave via plot() failed: > > function makePlot() > > m = 1000; > > a = [1/m:1/m:1]'; > > b = zeros( size(a) ); > > for( i=1:m ) > > b(i,1) = sin( 2*pi/a(i,1) ); > > end > > plot(a,b) > > grid( "on" ); > > endfunction > > This drew the following.... > > error: Invalid call to strcat. Correct usage is: > > -- function File: strcat (S1, S2, ...) > > error: called from: > > error: /usr/share/octave/3.4.0/m/help/print_usage.m at line 87, > column > > 5 > > etc. etc. > > So, I must have installed something incorrectly, since it worked > previously > > with > > cygwin 1.7.8-1, > > octave 3.4.0-2, > > libgfortran3 4.3.4-3, > > libGraphicsMagick3-1.3.12-2. Would you please look into this and > let > > me know what to correct? > > Regards, > > Ted F. > > Hi Ted, > could you just try with > cygwin 1.7.8-1 not 1.7.9-1 > libgfortran3 4.3.4-4 > liblapack0 3.2.2-2 > libqrupdate0 1.1.1-1 > octave 3.4.0-3 > > > we noticed that cygwin-1.7.9-1 have some problem in the > communication between octave and gnuplot so plot is failing in all the > windows version. > > Marco > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sergstesh at yahoo.com Fri Apr 8 02:15:48 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Fri, 8 Apr 2011 00:15:48 -0700 (PDT) Subject: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 Message-ID: <743300.97063.qm@web112120.mail.gq1.yahoo.com> --- On Thu, 4/7/11, Rick T wrote: From: Rick T Subject: Re: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 To: help-octave at octave.org Date: Thursday, April 7, 2011, 7:43 AM Greetings All I went back and did what Sergei recommend and used resample and repmat, but I'm noticing that on some of the values the rows aren't the same as the sample rate, see image link below. ?notice the top image value for rows says 1000 and the bottom image says rows = 1008. ?This happens when I change the values of resample and repmat (freq_new) but only for certain values. ?How can I fix this correctly? ?I could just delete everything after 1000 but I'm not sure if this is a bug or just the way resample/repmat works. ?PS: I'm using octave 3.2.4 http://dl.dropbox.com/u/6576402/questions/rows_different.png Here's the test code I used to test this #yiv21956316 p, #yiv21956316 li {white-space:pre-wrap;} %resample_repmat signal clear all, clf Fs = 1000; % Sampling rate Ts = 1/Fs; %sampling interval t=0:Ts:1-Ts; %sampling period freq_orig=1; y=sin(2*pi*t*freq_orig)'; %gives a short wave freq_new=9; y2=resample(y,1,freq_new); %resample matrix y3=repmat (y2,freq_new,1); %replicate matrix [r_orig,c_orig] = size(y) %get orig number of rows and cols [r_new,c_new] = size(y3) %get new number of rows and cols subplot(2,1,1),plot(y),title('Orginal signal') title(['rows=',num2str(r_orig),' cols=',num2str(c_orig)]) subplot(2,1,2),plot(y3),title('New signal') title(['rows=',num2str(r_new),' cols=',num2str(c_new)]) On Mon, Apr 4, 2011 at 1:17 PM, Sergei Steshenko wrote: --- On Mon, 4/4/11, Rick T wrote: From: Rick T Subject: Re: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 To: "Sergei Steshenko" Cc: help-octave at octave.org Date: Monday, April 4, 2011, 3:37 PM I need fft/ifft due to the fact that I have to alter various cells in the array the signal is stored in (in the frequency domain.? The script is very long.? In my experience if you post hundreds of lines of code people will not look at it.? That's why I kept it simple and basic.? And asked How can I increase/decrease (frequency/pitch) and phase using fft/ifft.? PS: Unfortunately Sergei the nice solution you sent won't work, I'm dealing with large arrays that are exported back out as audio files and fft/ifft seems to be the fastest. ? On Mon, Apr 4, 2011 at 11:33 AM, Sergei Steshenko wrote: --- On Mon, 4/4/11, Rick T wrote: From: Rick T Subject: How can I increase/decrease (frequency/pitch) and phase using fft/ifft tia sal22 To: help-octave at octave.org Date: Monday, April 4, 2011, 2:11 PM How can I increase/decrease (frequency/pitch) and phase using fft/ifft ?I think I have the basic code but I?m not sure what to do next PS: Thanks for the help on the last question everyone I decided not to use the FOR loop and sin/cos values and just use fft/ifft to see if this will work. Example I have a signal that repeats 1 time every second and I want to ?have it repeat 3 times a second instead. ??%Voiceprint raise lower freq phase conjugate signal ?tic ?clear all, clc,clf,tic ?%% Sound /beep calculation complete ?filerawbeepStr='calculations_complete.wav'; ?filerawbeeppathStr='/home/rat/Documents/octave/raw/'; ?filevoiceprepathStr='/home/rat/Documents/octave/eq_research/main/ ?transform/voice/'; ?filewavpathStr='/home/rat/Documents/octave/eq_research/main/transform/ ?wav/'; ?[ybeep, Fsbeep, nbitsbeep] = ?wavread(strcat(filerawbeeppathStr,filerawbeepStr)); ?%addpath(?/home/rat/Documents/octave/eq_research/main/transform/?); ?%add path to location of functions ?%1a voice print import ?[vp_sig_orig, fs_rate, nbitsraw] = ?wavread(strcat(filevoiceprepathStr,'voice8000fs.wav')); ?%vp_sig_orig=vp_sig_orig?; ?vp_sig_len=length(vp_sig_orig); ?%2a create frequency domain ?ya_fft = fft(vp_sig_orig); ?vp_sig_phase_orig = unwrap(angle(ya_fft)); ?%get Magnitude ?ya_fft_mag = abs(ya_fft); %3a frequency back to time domain ?ya_ifft=real(ifft(ya_fft)); ?%adjust frequency/phase here? How? ?vp_sig_new=real(ifft(ya_fft_mag.*exp(i*vp_sig_phase_orig))); ?subplot(3,1,1), plot(vp_sig_orig),title('1 original time domain') ?subplot(3,1,2), plot(ya_ifft),title('2 rebuild time domain') ?subplot(3,1,3), plot(vp_sig_new),title('3 adjusted time') -----Inline Attachment Follows----- _______________________________________________ Help-octave mailing list Help-octave at octave.org https://mailman.cae.wisc.edu/listinfo/help-octave So, regarding your " Example I have a signal that repeats 1 time every second and I want to ?have it repeat 3 times a second instead. " - why do you need FFT in the first place ? I.e. if 'x' is your signal, why not simply write x = linspace(0, 1, 10); % or whatever other way to generate your signal y = [x x x]; % repeat x 3 times plot(y); ? Regards, ??Sergei. -- Sorry, but this is mostly nonsense. FFT can't be faster than just moving data in memory - the latter is my solution. If your audio comes in frequency domain, then by just _one_ 'ifft' you convert it into time domain, and then my solution works. You have already been given a link to 'resample' function. You appear not to understand fundamental things regarding pitch shift. If your signal gets repeated a number of times, it is not pitch shift. Pitch shift does not imply signal repetitions and does not imply change of number of output samples. AFAIK pitch shift is implemented through overlapping relatively (compared to the length of the whole musical piece) short FFTs, and the spectrum is shifted (rather, scaled - you typically need all spectral componenets to be multiplied by the same factor) in order to achieve pitch shift - number of samples, as I said, does _not_ change. Start from http://en.wikipedia.org/wiki/Audio_timescale-pitch_modification -> http://en.wikipedia.org/wiki/Audio_timescale-pitch_modification#Pitch_scaling . Regards, ?Sergei. -----Inline Attachment Follows----- _______________________________________________ Help-octave mailing list Help-octave at octave.org https://mailman.cae.wisc.edu/listinfo/help-octave I do not know the exact cause, but this: t=0:Ts:1-Ts; %sampling period line is silently wrong. Start from _carefully_ reading http://en.wikipedia.org/wiki/Floating_point http://en.wikipedia.org/wiki/Radix . Pay attention to: 1) periodic vs non-periodic fractions -> 2) inevitable loss of precision due to periodic fractions anywhere in the chain of your calculations. Bear in mind that in modern computers working in _binary_ radix many "typical" decimal fractions which are non-periodic in decimal become periodic in binary. ... I do not know why you want to implement pitch shift yourself. There are already a number of FOSS implementations. For example, visit sox.sf.net , read the manual, pay special attention to 'bend' under Supported Effects . SoX is a _very_ powerful tool, but requires careful reading of its manpages. IIRC, 'alsaplayer' has pitch shifting too. Maybe also a 'gstreamer' plugin. ... FWIW, 'octave' has 'wavwrite' and 'wavread' functions, and SoX, of course, supports WAV files (as well as other already mentioned candidates). So if you need pitch shift as a piece of otherwise 'octave'-based flow, there is no problem using an external tool doing the pitch shift part of the flow. Regards, Sergei. From lists at juliensalort.org Fri Apr 8 03:37:46 2011 From: lists at juliensalort.org (Julien Salort) Date: Fri, 08 Apr 2011 10:37:46 +0200 Subject: Octave 3.4.0 for Mac OS X Message-ID: Hello, I've built a new version of Octave-3.4.0 for Mac OS X (i386): It now has been compiled with optimization options and with flags that make it compatible with Mac OS X 10.5 (as far as I know). There is still an issue with the version of gfortran that is packed inside the bundle: it won't start on Mac OS X 10.5. This means that people running Mac OS X 10.5 will have to install their own gfortran if they want to compile packages that requires fortran... Can people confirm if this version launches fine on their macs ? There is also a problem with the fltk backend: it is not possible to resize the window. I've tried to apply some patches that were posted on this list a while ago without much success. In addition, using the Edit->GUI menuitem from the menubar in the fltk window crashes octave. Apart from that, I've been using this version for my work for a couple of days and it seems to work for me... Julien -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on a mailing list? From fotios.kasolis at gmail.com Fri Apr 8 04:42:32 2011 From: fotios.kasolis at gmail.com (GFotios) Date: Fri, 8 Apr 2011 11:42:32 +0200 Subject: Octave 3.4.0 for Mac OS X In-Reply-To: References: Message-ID: On Apr 8, 2011, at 10:37 AM, Julien Salort wrote: > Hello, > > I've built a new version of Octave-3.4.0 for Mac OS X (i386): > > > > It now has been compiled with optimization options and with flags > that > make it compatible with Mac OS X 10.5 (as far as I know). > > There is still an issue with the version of gfortran that is > packed > inside the bundle: it won't start on Mac OS X 10.5. This means > that > people running Mac OS X 10.5 will have to install their own > gfortran if > they want to compile packages that requires fortran... > > Can people confirm if this version launches fine on their macs ? > > There is also a problem with the fltk backend: it is not > possible to > resize the window. I've tried to apply some patches that were > posted on > this list a while ago without much success. > In addition, using the Edit->GUI menuitem from the menubar in the > fltk > window crashes octave. > > Apart from that, I've been using this version for my work for a > couple > of days and it seems to work for me... > > Julien > > -- > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing on a mailing list? > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave It works for me (Mac OX X 10.5.8). Thanks for sharing. /Fotis From guggus_adieu at yahoo.de Fri Apr 8 05:39:34 2011 From: guggus_adieu at yahoo.de (Sina Calmote) Date: Fri, 8 Apr 2011 11:39:34 +0100 (BST) Subject: error: memory exhausted or requested size too large for range of Octave's index type Message-ID: <576093.82821.qm@web29703.mail.ird.yahoo.com> as well I have the message : memory exhausted or requested size too large for range of ..... but I switched from Windows Vista with octave 3.2.4 to Linux (kubuntu) with octave 3.4 I mean it is the same computer why can there be an exhaust of memory? Sina From pr.nienhuis at hccnet.nl Fri Apr 8 06:58:05 2011 From: pr.nienhuis at hccnet.nl (Philip Nienhuis) Date: Fri, 8 Apr 2011 04:58:05 -0700 (PDT) Subject: [OT] Re: using xlswrite csvwrite In-Reply-To: References: <1302095814802-3430762.post@n4.nabble.com> <1302201856111-3434232.post@n4.nabble.com> Message-ID: <1302263885458-3436004.post@n4.nabble.com> forkandwait wrote: > > Philip Nienhuis hccnet.nl> writes: > >> Just to set the record straight: >> >> xls format *is* supported outside Windows environment: gnumeric, >> OpenOffice.org, , can read & write xls files. Yep, even Octave can >> read/write xls / xlsx files on any platform where Java runs. Ironically, >> Matlab can't ... > > Fair enough, though Java is deal-breaker for me (no offense, but ...). Is > there > a C library for reading xls binaries directly? > As Martin pointed out, Java (openjdk) is not such a problem these days - at least as far as licensing goes. I've seen many negative comments on Java itself; I am not so very positive about it either. OTOH I was able to get a lot of work done by invoking ready-baked OSS Java class libs made by other people. The biggest advantage I saw is that Java allows for very good cross-platform support. To repeat myself: Octave beats the competition by far in that respect. If you care to type "xls C++" in Google you'll see many C/C++ "solutions" between the 3,000,000+ hits, but (and here my handicap of little C++ proficiency jumps in) I get the impression that the vast majority is geared towards M$ platforms, commercial and/or very often proprietary. But while *writing* xls can also be very useful, there's much less to be found for that, esp. for OSS. BTW Initially I planned to use the OpenOffice.org C++ stuff, but that proved too complicated - you'll catch the understatement. Currently I'm experimenting with connecting Octave to OOo using the latter's UNO bridge (through Java, sorry for that), but I already now I get the impression that it wouldn't add much to the existing scripts in octave-forge io package. >> Not completely true. >> Octave can neither import nor write csv files with mixed text and >> numerical >> "cells". >> (For that matter, ML can't either.) > > True, sort of. With the latest dlmread, you can retain the structure of a > numeric matrix and have an arbitrary value for unreadable cells (default > is zero > in ML, but that is stupid, so we can set to NaN.) And we can read > anything into > a cell-array, though what you do with THAT afterward is another question. > Well, Octave (/ Matlab) is much more useful than only for pure math. Reading this ML and e.g. ML's forums I'm often (pleasantly) surprised to see the rich and widely varied fields of interest where Octave/ML is applied to. Many people on this ML may primarily see it as mathematics tools; but at the department I work for we primarily use it to manage, visualize and dig around in the vast and heterogeneous data collection as Octave/ML is so extremely flexible compared to all the other stuff around (databases, spreadsheets, etc). In later stages of our analyses (where some math comes in) we use it as pre- and postprocessor for dedicated number-crunching Fortran codes. >> But it is useful as it gives an opportunity to clarify on misperceptions >> like "xls is poorly supported outside M$" etc. >> Au contraire, it *is* widely supported. > > Let me rephrase: while xls is (sort of) widely supported, there are lots > of > better, more open, and likely more sustainable options... ;) > ...Like... ? And why: "better"? I think the issue at hand is that xls is still so very dominantly used these days. It's gonna take a while before all those "better", more open and likely more sustainable options (I don't disagree on those latter two qualifications) are sufficiently widely used to be able to do away with .xls. Until then (perhaps when we have Octave-6.8.x or so) there's clearly still need for .xls I/O. "Worse" yet (for you), I experience that xls' dominant position is slowly replaced by xlsx, rather than real "open" formats. As to "better", particularly ODF: After having delved deeply into .ods (OOo Calc) in the course of the odsread / odswrite stuff I'm not so sure that it is superior (to xls). At least not from a developers POV. And thanks for an interesting discussion. My feeling is that the OP just wants > to get some work done, but he might find this an interesting introduction > to > some of the discussions around data formats and dependencies. > You're welcome. P. -- View this message in context: http://octave.1599824.n4.nabble.com/using-xlswrite-csvwrite-tp3430762p3436004.html Sent from the Octave - General mailing list archive at Nabble.com. From bpabbott at mac.com Fri Apr 8 07:01:23 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 08 Apr 2011 08:01:23 -0400 Subject: Octave 3.4.0 for Mac OS X In-Reply-To: References: Message-ID: <053EE289-86E3-49B3-A0C7-D1D1D61A4AF0@mac.com> On Apr 8, 2011, at 4:37 AM, Julien Salort wrote: > Hello, > > I've built a new version of Octave-3.4.0 for Mac OS X (i386): > > > It now has been compiled with optimization options and with flags that > make it compatible with Mac OS X 10.5 (as far as I know). > > There is still an issue with the version of gfortran that is packed > inside the bundle: it won't start on Mac OS X 10.5. This means that > people running Mac OS X 10.5 will have to install their own gfortran if > they want to compile packages that requires fortran... > > Can people confirm if this version launches fine on their macs ? > > There is also a problem with the fltk backend: it is not possible to > resize the window. I've tried to apply some patches that were posted on > this list a while ago without much success. > In addition, using the Edit->GUI menuitem from the menubar in the fltk > window crashes octave. > > Apart from that, I've been using this version for my work for a couple > of days and it seems to work for me... > > Julien The resize problem has been encountered before. However, I do not recall who reported it or if they were running MacOS or Linux (pretty sure it wasn't Windows). Also, I don't think it occurred for everyone. My faint recollection is that the resize problem is fixed in the developer's sources. There is a discussion on the maintainers list where it has been suggested 3.4.1 incorporate all changes since 3.4.0. Are you up to trying to create a dmg for the developers sources? Regards Ben From martin at mhelm.de Fri Apr 8 07:19:59 2011 From: martin at mhelm.de (Martin Helm) Date: Fri, 8 Apr 2011 14:19:59 +0200 Subject: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <576093.82821.qm@web29703.mail.ird.yahoo.com> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> Message-ID: <201104081420.00215.martin@mhelm.de> Am Freitag, 8. April 2011, 12:39:34 schrieb Sina Calmote: > as well I have the message : memory exhausted or requested size too large > for range of ..... > > > but I switched from Windows Vista with octave 3.2.4 to Linux (kubuntu) with > octave 3.4 > > > I mean it is the same computer why can there be an exhaust of memory? > > Sina Can you give us a small self contained code snippet which shows that behaviour. In many cases this happens because by accident someone creates an intermediate result which is too large and can be avoided. Is your octave 3.4 on kubuntu compiled by yourself? From martin at mhelm.de Fri Apr 8 07:19:59 2011 From: martin at mhelm.de (Martin Helm) Date: Fri, 8 Apr 2011 14:19:59 +0200 Subject: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <576093.82821.qm@web29703.mail.ird.yahoo.com> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> Message-ID: <201104081420.00215.martin@mhelm.de> Am Freitag, 8. April 2011, 12:39:34 schrieb Sina Calmote: > as well I have the message : memory exhausted or requested size too large > for range of ..... > > > but I switched from Windows Vista with octave 3.2.4 to Linux (kubuntu) with > octave 3.4 > > > I mean it is the same computer why can there be an exhaust of memory? > > Sina Can you give us a small self contained code snippet which shows that behaviour. In many cases this happens because by accident someone creates an intermediate result which is too large and can be avoided. Is your octave 3.4 on kubuntu compiled by yourself? From jennyau06 at hotmail.com Fri Apr 8 04:54:59 2011 From: jennyau06 at hotmail.com (Jenny Huang) Date: Fri, 8 Apr 2011 17:54:59 +0800 Subject: Running Matlab codes in Octave 3.2.4 Message-ID: Hi Team, I'm trying to run Matlab codes in Octave, could you please let me know how it can be done? Thanks very much. Regards, Jenny -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordigh at octave.org Fri Apr 8 08:02:34 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 8 Apr 2011 08:02:34 -0500 Subject: Running Matlab codes in Octave 3.2.4 In-Reply-To: References: Message-ID: 2011/4/8 Jenny Huang : > I'm trying to run Matlab codes in Octave, could you please let me know how > it can be done? Theoretically, the same way you run Matlab code in Matlab: you type the name of the souce file you want to run, without the .m What did you try and what didn't work? - Jord G. H. From sedwards2 at cinci.rr.com Fri Apr 8 08:14:53 2011 From: sedwards2 at cinci.rr.com (Stuart Edwards) Date: Fri, 8 Apr 2011 09:14:53 -0400 Subject: Octave 3.4.0 for Mac OS X In-Reply-To: References: Message-ID: <23AE6FD5-1A09-4FE6-9C03-98B24A38835E@cinci.rr.com> On Apr 8, 2011, at 4:37 AM, Julien Salort wrote: > Hello, > > I've built a new version of Octave-3.4.0 for Mac OS X (i386): > > > Can people confirm if this version launches fine on their macs ? > > Julien > > -- > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing on a mailing list? > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave Starts as expected - OS X 10.6.7 thx Stu From WKrekeler at cleanearthtech.com Fri Apr 8 08:35:06 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Fri, 8 Apr 2011 13:35:06 +0000 Subject: print plot is cutting the image In-Reply-To: References: <6263FE33-E38B-47B4-AF77-4A45166B0E8E@mac.com> Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB212D36C2@CETEX1.cleanearth.ceprivate> From: help-octave-bounces at octave.org [mailto:help-octave-bounces at octave.org] On Behalf Of ?rico Porto Sent: Thursday, April 07, 2011 11:01 PM To: Ben Abbott Cc: help-octave at octave.org Subject: Re: print plot is cutting the image On Thu, Apr 7, 2011 at 7:26 PM, Ben Abbott > wrote: On Apr 7, 2011, at 6:07 PM, Dmitri A. Sergatskov wrote: > On Thu, Apr 7, 2011 at 3:21 PM, bpabbott > wrote: > >> Does anyone know if gnuplot supports rotation of axes labels? > > Mine (which is pretty recent CVS snapshot) does. I do not know when was that > first implemented. > > gnuplot> set ylabel "Y" rotate by 0 > gnuplot> plot sin(x) > gnuplot> set ylabel "Y" rotate by 180 > gnuplot> replot > > >> Ben >> > > Dmitri. I'm a bit embarassed. The developers sources to allow the rotation to be specified and display the result correctly. Ben Ben, I couldn't understand a single word! Bpabbott, took me your second setze to understand what top post is, not very familiar with forum language. Dmitri, it's not working here now, so I will try to update and see if it works - I'm logged on windows right now, so this will have to wait. William, it isn't length, it is sizeof()... Took me a while to figure out this one. Length gave me a undesired 1 as result. I'm getting my text from a text file, than spliting it throught split thaaaan extracting it by selecting from the array {} ... to something like b="string" Thank you all (btw, the best solution from the web is to convert the plot to ascii and then ploting in gnuplot outside octave. Though this is an horrible solution, it works, but I manage to cute the letters from the legend to small it... Couldn't change the legend fontsize though.) Erico, I'm curious, your string must not be of class char if length failed. If your string variable is x, what does 'whos x' give as the class? William Krekeler -------------- next part -------------- An HTML attachment was scrubbed... URL: From vic at norton.name Fri Apr 8 08:53:51 2011 From: vic at norton.name (Vic Norton) Date: Fri, 8 Apr 2011 09:53:51 -0400 Subject: Octave 3.4.0 for Mac OS X In-Reply-To: References: Message-ID: On Apr 8, 2011, at 4:37 AM, Julien Salort wrote: > I've built a new version of Octave-3.4.0 for Mac OS X (i386): > This version resolves the slow norm problem of the previous version. Thanks Julien! Regards, Vic From martin at mhelm.de Fri Apr 8 11:33:13 2011 From: martin at mhelm.de (Martin Helm) Date: Fri, 8 Apr 2011 18:33:13 +0200 Subject: memory In-Reply-To: References: <1302099735.2678.8.camel@linux-uhdl> Message-ID: <201104081833.14067.martin@mhelm.de> Am Donnerstag, 7. April 2011, 06:09:10 schrieb nuncio m: > HI Martin, > Yes I do have a matrix close to 30000 variables and 348 > observations. Here, by variables I mean are the points on a rectangular > grid and observations are the values at each grid measured every month for > almost 3 decades. If the matrix contains no information how to avoid this > and compute. > Thanks and Regards > nuncio > > On Wed, Apr 6, 2011 at 7:52 PM, Martin Helm wrote: > > Am Mittwoch, den 06.04.2011, 10:11 +0530 schrieb nuncio m: > > HI martin, > > > > > Thanks, but I need to find the covariance matrix > > > > > > separately. Because as a next step I need to find the svd of coupled > > > fields. for example atmospheric pressure and temperature. For a > > > single matrix I can find eigen vectors using SVD but I understand > > > this > > > is not possible without computing the covariance matrix for two > > > separate matrices. > > > nuncio > > > > Dear Nuncio, > > > > sorry that I insist so much. I do of course not know your problem at > > hand, but have my doubts about the matrix you compute (the product which > > blows up to about 30000x30000). This matrix contains essentially no > > information, more than 29000 of its eigen values are exact zero, more > > than 29000 of its eigen vectors are simply a representation of the null > > space since it has a maximal rank of 348. > > > > Do you really have nearly 30000 variables and only 348 measurements? > > > > - Martin Sorry for seeing this so late. Please keep always the list on cc by using "reply to all". I do not really know what your matrix contain in detail. So I understand you have roughly 348 measurements over time for each of the ~30,000 grid points (I guess spatial grid points). Where do your variables (pressure, temperature ...) come into play, I mean how is this organized from a data structure point of view in that matrix? And how many of them do you have? From carlo.defalco at gmail.com Fri Apr 8 12:12:36 2011 From: carlo.defalco at gmail.com (c.) Date: Fri, 8 Apr 2011 19:12:36 +0200 Subject: Octave 3.4.0 for Mac OS X In-Reply-To: References: Message-ID: On 8 Apr 2011, at 10:37, Julien Salort wrote: > Hello, > > I've built a new version of Octave-3.4.0 for Mac OS X (i386): > > > It now has been compiled with optimization options and with flags that > make it compatible with Mac OS X 10.5 (as far as I know). > > There is still an issue with the version of gfortran that is packed > inside the bundle: it won't start on Mac OS X 10.5. This means that > people running Mac OS X 10.5 will have to install their own gfortran if > they want to compile packages that requires fortran... > > Can people confirm if this version launches fine on their macs ? > > There is also a problem with the fltk backend: it is not possible to > resize the window. I've tried to apply some patches that were posted on > this list a while ago without much success. > In addition, using the Edit->GUI menuitem from the menubar in the fltk > window crashes octave. > > Apart from that, I've been using this version for my work for a couple > of days and it seems to work for me... > > Julien > Hi, I have uploaded the new file, thanks! c. From ericoporto2008 at gmail.com Fri Apr 8 13:10:59 2011 From: ericoporto2008 at gmail.com (=?ISO-8859-1?Q?=C9rico_Porto?=) Date: Fri, 8 Apr 2011 15:10:59 -0300 Subject: print plot is cutting the image In-Reply-To: <6765D38A4FDFC347A2934D0D5AB0F1AB212D36C2@CETEX1.cleanearth.ceprivate> References: <6263FE33-E38B-47B4-AF77-4A45166B0E8E@mac.com> <6765D38A4FDFC347A2934D0D5AB0F1AB212D36C2@CETEX1.cleanearth.ceprivate> Message-ID: what is the command to retrieve the class? ?rico V. Porto On Fri, Apr 8, 2011 at 10:35 AM, William Krekeler < WKrekeler at cleanearthtech.com> wrote: > > > > > *From:* help-octave-bounces at octave.org [mailto: > help-octave-bounces at octave.org] *On Behalf Of *?rico Porto > *Sent:* Thursday, April 07, 2011 11:01 PM > *To:* Ben Abbott > > *Cc:* help-octave at octave.org > *Subject:* Re: print plot is cutting the image > > > > On Thu, Apr 7, 2011 at 7:26 PM, Ben Abbott wrote: > > On Apr 7, 2011, at 6:07 PM, Dmitri A. Sergatskov wrote: > > > On Thu, Apr 7, 2011 at 3:21 PM, bpabbott wrote: > > > >> Does anyone know if gnuplot supports rotation of axes labels? > > > > Mine (which is pretty recent CVS snapshot) does. I do not know when was > that > > first implemented. > > > > gnuplot> set ylabel "Y" rotate by 0 > > gnuplot> plot sin(x) > > gnuplot> set ylabel "Y" rotate by 180 > > gnuplot> replot > > > > > >> Ben > >> > > > > Dmitri. > > I'm a bit embarassed. The developers sources to allow the rotation to be > specified and display the result correctly. > > Ben > > > Ben, I couldn't understand a single word! > > Bpabbott, took me your second setze to understand what top post is, not > very familiar with forum language. > > Dmitri, it's not working here now, so I will try to update and see if it > works - I'm logged on windows right now, so this will have to wait. > > William, it isn't length, it is sizeof()... Took me a while to > figure out this one. Length gave me a undesired 1 as result. I'm getting my > text from a text file, than spliting it throught split thaaaan extracting it > by selecting from the array {} ... to something like b="string" > > Thank you all > > (btw, the best solution from the web is to convert the plot to ascii and > then ploting in gnuplot outside octave. Though this is an horrible solution, > it works, but I manage to cute the letters from the legend to small it... > Couldn't change the legend fontsize though.) > > > > > > Erico, > > > > I'm curious, your string must not be of class char if length failed. If > your string variable is x, what does 'whos x' give as the class? > > > > William Krekeler > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpabbott at mac.com Fri Apr 8 13:16:46 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 08 Apr 2011 14:16:46 -0400 Subject: print plot is cutting the image In-Reply-To: References: <6263FE33-E38B-47B4-AF77-4A45166B0E8E@mac.com> <6765D38A4FDFC347A2934D0D5AB0F1AB212D36C2@CETEX1.cleanearth.ceprivate> Message-ID: <3F500895-5926-4891-99CA-BB67BB01B7F4@mac.com> On Apr 8, 2011, at 2:10 PM, ?rico Porto wrote: > On Fri, Apr 8, 2011 at 10:35 AM, William Krekeler wrote: > >> From: help-octave-bounces at octave.org [mailto:help-octave-bounces at octave.org] On Behalf Of ?rico Porto >> Sent: Thursday, April 07, 2011 11:01 PM >> To: Ben Abbott >> >>> Cc: help-octave at octave.org >>> Subject: Re: print plot is cutting the image >>> >>> >>> On Thu, Apr 7, 2011 at 7:26 PM, Ben Abbott wrote: >>> >>> On Apr 7, 2011, at 6:07 PM, Dmitri A. Sergatskov wrote: >>> >>> > On Thu, Apr 7, 2011 at 3:21 PM, bpabbott wrote: >>> > >>> >> Does anyone know if gnuplot supports rotation of axes labels? >>> > >>> > Mine (which is pretty recent CVS snapshot) does. I do not know when was that >>> > first implemented. >>> > >>> > gnuplot> set ylabel "Y" rotate by 0 >>> > gnuplot> plot sin(x) >>> > gnuplot> set ylabel "Y" rotate by 180 >>> > gnuplot> replot >>> > >>> > >>> >> Ben >>> >> >>> > >>> > Dmitri. >>> >>> I'm a bit embarassed. The developers sources to allow the rotation to be specified and display the result correctly. >>> >>> Ben >>> >>> >>> Ben, I couldn't understand a single word! >>> >>> Bpabbott, took me your second setze to understand what top post is, not very familiar with forum language. >>> >>> Dmitri, it's not working here now, so I will try to update and see if it works - I'm logged on windows right now, so this will have to wait. >>> >>> William, it isn't length, it is sizeof()... Took me a while to figure out this one. Length gave me a undesired 1 as result. I'm getting my text from a text file, than spliting it throught split thaaaan extracting it by selecting from the array {} ... to something like b="string" >>> >>> Thank you all >>> >>> (btw, the best solution from the web is to convert the plot to ascii and then ploting in gnuplot outside octave. Though this is an horrible solution, it works, but I manage to cute the letters from the legend to small it... Couldn't change the legend fontsize though.) >> >> Erico, >> >> I'm curious, your string must not be of class char if length failed. If your string variable is x, what does 'whos x' give as the class? >> >> William Krekeler > > what is the command to retrieve the class? > > ?rico V. Porto octave:10> x = 1; octave:11> class(x) ans = double p.s. please reply at the bottom so that those arriving late can follow along. Thanks. From lists at juliensalort.org Fri Apr 8 13:42:27 2011 From: lists at juliensalort.org (Julien Salort) Date: Fri, 08 Apr 2011 20:42:27 +0200 Subject: Octave 3.4.0 for Mac OS X References: <053EE289-86E3-49B3-A0C7-D1D1D61A4AF0@mac.com> Message-ID: Ben Abbott writes: > My faint recollection is that the resize problem is fixed in the > developer's sources. There is a discussion on the maintainers list > where it has been suggested 3.4.1 incorporate all changes since > 3.4.0. Are you up to trying to create a dmg for the developers > sources? I've downloaded the sources from the mercurial tree. Everything compiled fine but make check fails: Octave successfully built. Now choose from the following: ./run-octave - to run in place to test before installing make check - to run the tests make install - to install (PREFIX=/tmp/deps-i386) make -C test check ./build_sparse_tests.sh ./build_bc_overload_tests.sh ./bc_overloads_expected ../run-octave --norc --silent --no-history ./fntests.m . warning: invalid character `' (ASCII 0) near line 95, column 2 error: invalid character `' (ASCII 0) near line 215, column 2 parse error near line 215 of file /Users/jsalort/Desktop/CompilationOctave-i386/octave/scripts/set/unique.m syntax error error: called from: error: /Users/jsalort/Desktop/CompilationOctave-i386/octave/scripts/optimization/__all_opts__.m at line 56, column 11 error: /Users/jsalort/Desktop/CompilationOctave-i386/octave/scripts/optimization/PKG_ADD at line 1, column 0 -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on a mailing list? From jwe at octave.org Fri Apr 8 14:19:53 2011 From: jwe at octave.org (John W. Eaton) Date: Fri, 8 Apr 2011 15:19:53 -0400 Subject: Octave 3.4.0 for Mac OS X In-Reply-To: References: <053EE289-86E3-49B3-A0C7-D1D1D61A4AF0@mac.com> Message-ID: <19871.24537.790958.474362@coredump.lan> On 8-Apr-2011, Julien Salort wrote: | Ben Abbott writes: | | > My faint recollection is that the resize problem is fixed in the | > developer's sources. There is a discussion on the maintainers list | > where it has been suggested 3.4.1 incorporate all changes since | > 3.4.0. Are you up to trying to create a dmg for the developers | > sources? | | I've downloaded the sources from the mercurial tree. Everything compiled | fine but make check fails: | Octave successfully built. Now choose from the following: | | ./run-octave - to run in place to test before installing | make check - to run the tests | make install - to install (PREFIX=/tmp/deps-i386) | | make -C test check | ./build_sparse_tests.sh | ./build_bc_overload_tests.sh ./bc_overloads_expected | ../run-octave --norc --silent --no-history ./fntests.m . | warning: invalid character `' (ASCII 0) near line 95, column 2 | error: invalid character `' (ASCII 0) near line 215, column 2 | parse error near line 215 of file /Users/jsalort/Desktop/CompilationOctave-i386/octave/scripts/set/unique.m As I recall, there is a problem with some versions of flex on OS X that can result in errors like this. What version of flex do you have? jwe From forkandwait at gmail.com Fri Apr 8 15:17:26 2011 From: forkandwait at gmail.com (fork) Date: Fri, 8 Apr 2011 20:17:26 +0000 (UTC) Subject: [OT] Re: using xlswrite csvwrite References: <1302095814802-3430762.post@n4.nabble.com> <1302201856111-3434232.post@n4.nabble.com> <1302263885458-3436004.post@n4.nabble.com> Message-ID: Philip Nienhuis hccnet.nl> writes: > > > > Let me rephrase: while xls is (sort of) widely supported, there are lots > > of > > better, more open, and likely more sustainable options... ;) > > > > ...Like... ? And why: "better"? Ok, I can't help myself ;) ... I prefer either plain text data files in a well thought out directory hierarchy or an SQL database. These are far simpler to write code against, they don't mix formatting and data, they are open, they dont have upgrade hell, they dont have viruses, text files play nice with version control, and they are human readable (for SQL, you can almost always get an SQL dump or play around in a terminal). Spreadsheets should only be used as glorified scratch paper; if you have a regular workflow that depends on them, you have a problem that should be solved with scripting instead, IM(H)O. And if you handle big data or math, you should be working in a Unix environment anyway. (Spreadsheets and MS Windows are a little like crack -- easy to get started, then you get caught up in a big un-scalable mess... the computing equivalent to lying in a gutter and drooling over yourself... ;) ) Of course, I dont want to be antagonistic, but if I can get our new Octave user set on the one right path ^H^H^H to see all viewpoints I would be glad. ;) From forkandwait at gmail.com Fri Apr 8 15:20:48 2011 From: forkandwait at gmail.com (fork) Date: Fri, 8 Apr 2011 20:20:48 +0000 (UTC) Subject: [OT] Re: using xlswrite csvwrite References: <1302095814802-3430762.post@n4.nabble.com> <1302201856111-3434232.post@n4.nabble.com> <1302263885458-3436004.post@n4.nabble.com> Message-ID: fork gmail.com> writes: > I prefer either plain text data files in a well thought out directory hierarchy > or an SQL database. Oh -- also standard, simple binary formats like images and shapefiles. From lists at juliensalort.org Fri Apr 8 16:24:52 2011 From: lists at juliensalort.org (Julien Salort) Date: Fri, 08 Apr 2011 23:24:52 +0200 Subject: Octave 3.4.0 for Mac OS X References: <053EE289-86E3-49B3-A0C7-D1D1D61A4AF0@mac.com> <19871.24537.790958.474362@coredump.lan> Message-ID: "John W. Eaton" writes: > As I recall, there is a problem with some versions of flex on OS X > that can result in errors like this. > > What version of flex do you have? % flex --version flex 2.5.35 Is flex needed at compile time or at runtime ? Why does this problem araise only with the mercurial version ? Thanks for any hint, -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on a mailing list? From bpabbott at mac.com Fri Apr 8 16:54:46 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 08 Apr 2011 17:54:46 -0400 Subject: Octave 3.4.0 for Mac OS X In-Reply-To: References: <053EE289-86E3-49B3-A0C7-D1D1D61A4AF0@mac.com> <19871.24537.790958.474362@coredump.lan> Message-ID: <997C44F3-F41E-4355-93E6-0A659AEC9021@mac.com> On Apr 8, 2011, at 5:24 PM, Julien Salort wrote: > "John W. Eaton" writes: > >> As I recall, there is a problem with some versions of flex on OS X >> that can result in errors like this. >> >> What version of flex do you have? > > % flex --version > flex 2.5.35 > > Is flex needed at compile time or at runtime ? > Why does this problem araise only with the mercurial version ? > > Thanks for any hint, I think it's only needed for autogen.sh Ben From guggus_adieu at yahoo.de Fri Apr 8 17:38:41 2011 From: guggus_adieu at yahoo.de (Sina Calmote) Date: Fri, 8 Apr 2011 23:38:41 +0100 (BST) Subject: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <201104081420.00215.martin@mhelm.de> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104081420.00215.martin@mhelm.de> Message-ID: <292875.42412.qm@web29719.mail.ird.yahoo.com> ----- Weitergeleitete Mail ---- Von: Sina Calmote An: Martin Helm Gesendet: Samstag, den 9. April 2011, 0:37:33 Uhr Betreff: AW: error: memory exhausted or requested size too large for range of Octave's index type I attached an example (sorry I just could no shorten it more) In essence I create several matrices due to a theoretical function and then I plot them. There should be created 8 pictures but after the fifth the error warning appears. ----- Urspr?ngliche Mail ---- Von: Martin Helm An: help-octave at octave.org CC: Sina Calmote ; Octave Gesendet: Freitag, den 8. April 2011, 14:19:59 Uhr Betreff: Re: error: memory exhausted or requested size too large for range of Octave's index type Am Freitag, 8. April 2011, 12:39:34 schrieb Sina Calmote: > as well I have the message : memory exhausted or requested size too large > for range of ..... > > > but I switched from Windows Vista with octave 3.2.4 to Linux (kubuntu) with > octave 3.4 > > > I mean it is the same computer why can there be an exhaust of memory? > > Sina Can you give us a small self contained code snippet which shows that behaviour. In many cases this happens because by accident someone creates an intermediate result which is too large and can be avoided. Is your octave 3.4 on kubuntu compiled by yourself? -------------- next part -------------- A non-text attachment was scrubbed... Name: Pyramide.m Type: application/octet-stream Size: 2691 bytes Desc: not available URL: From martin at mhelm.de Fri Apr 8 18:05:21 2011 From: martin at mhelm.de (Martin Helm) Date: Sat, 9 Apr 2011 01:05:21 +0200 Subject: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <292875.42412.qm@web29719.mail.ird.yahoo.com> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104081420.00215.martin@mhelm.de> <292875.42412.qm@web29719.mail.ird.yahoo.com> Message-ID: <201104090105.22196.martin@mhelm.de> Am Samstag, 9. April 2011, 00:38:41 schrieb Sina Calmote: > ----- Weitergeleitete Mail ---- > Von: Sina Calmote > An: Martin Helm > Gesendet: Samstag, den 9. April 2011, 0:37:33 Uhr > Betreff: AW: error: memory exhausted or requested size too large for range > of Octave's index type > > I attached an example (sorry I just could no shorten it more) > In essence I create several matrices due to a theoretical function and then > I plot them. There should be created 8 pictures but after the fifth the > error warning appears. > > > > > ----- Urspr?ngliche Mail ---- > Von: Martin Helm > An: help-octave at octave.org > CC: Sina Calmote ; Octave > Gesendet: Freitag, den 8. April 2011, 14:19:59 Uhr > Betreff: Re: error: memory exhausted or requested size too large for range > of Octave's index type > > Am Freitag, 8. April 2011, 12:39:34 schrieb Sina Calmote: > > as well I have the message : memory exhausted or requested size too large > > for range of ..... > > > > > > but I switched from Windows Vista with octave 3.2.4 to Linux (kubuntu) > > with octave 3.4 > > > > > > I mean it is the same computer why can there be an exhaust of memory? > > > > Sina > > Can you give us a small self contained code snippet which shows that > behaviour. In many cases this happens because by accident someone creates > an intermediate result which is too large and can be avoided. > Is your octave 3.4 on kubuntu compiled by yourself? Does that contain the part which gives you problems? It runs without problems here (openSUSE 11.3 64bit, octave 3.4 built from 3.4.0 sources). I assume you reduced it to 3 graphs because I find only commands for 3 figures in it but these are printed without problems. If someone else can check that also, maybe I miss the obvious. Tested with gnuplot and fltk backend. How much memory do you have? Do you run kubuntu 32 or 64 bit? From martin at mhelm.de Fri Apr 8 18:07:11 2011 From: martin at mhelm.de (Martin Helm) Date: Sat, 9 Apr 2011 01:07:11 +0200 Subject: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <292875.42412.qm@web29719.mail.ird.yahoo.com> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104081420.00215.martin@mhelm.de> <292875.42412.qm@web29719.mail.ird.yahoo.com> Message-ID: <201104090107.12205.martin@mhelm.de> Am Samstag, 9. April 2011, 00:38:41 schrieb Sina Calmote: > ----- Weitergeleitete Mail ---- > Von: Sina Calmote > An: Martin Helm > Gesendet: Samstag, den 9. April 2011, 0:37:33 Uhr > Betreff: AW: error: memory exhausted or requested size too large for range > of Octave's index type > > I attached an example (sorry I just could no shorten it more) > In essence I create several matrices due to a theoretical function and then > I plot them. There should be created 8 pictures but after the fifth the > error warning appears. > > > > > ----- Urspr?ngliche Mail ---- > Von: Martin Helm > An: help-octave at octave.org > CC: Sina Calmote ; Octave > Gesendet: Freitag, den 8. April 2011, 14:19:59 Uhr > Betreff: Re: error: memory exhausted or requested size too large for range > of Octave's index type > > Am Freitag, 8. April 2011, 12:39:34 schrieb Sina Calmote: > > as well I have the message : memory exhausted or requested size too large > > for range of ..... > > > > > > but I switched from Windows Vista with octave 3.2.4 to Linux (kubuntu) > > with octave 3.4 > > > > > > I mean it is the same computer why can there be an exhaust of memory? > > > > Sina > > Can you give us a small self contained code snippet which shows that > behaviour. In many cases this happens because by accident someone creates > an intermediate result which is too large and can be avoided. > Is your octave 3.4 on kubuntu compiled by yourself? Does that contain the part which gives you problems? It runs without problems here (openSUSE 11.3 64bit, octave 3.4 built from 3.4.0 sources). I assume you reduced it to 3 graphs because I find only commands for 3 figures in it but these are printed without problems. If someone else can check that also, maybe I miss the obvious. Tested with gnuplot and fltk backend. How much memory do you have? Do you run kubuntu 32 or 64 bit? From pr.nienhuis at hccnet.nl Fri Apr 8 18:17:04 2011 From: pr.nienhuis at hccnet.nl (Philip Nienhuis) Date: Fri, 8 Apr 2011 16:17:04 -0700 (PDT) Subject: [OT] Re: using xlswrite csvwrite In-Reply-To: References: <1302095814802-3430762.post@n4.nabble.com> <1302201856111-3434232.post@n4.nabble.com> <1302263885458-3436004.post@n4.nabble.com> Message-ID: <1302304624811-3437629.post@n4.nabble.com> forkandwait wrote: > > Philip Nienhuis hccnet.nl> writes: >> > >> > Let me rephrase: while xls is (sort of) widely supported, there are >> lots >> > of >> > better, more open, and likely more sustainable options... ;) >> > >> >> ...Like... ? And why: "better"? > > Ok, I can't help myself ;) ... > > I prefer either plain text data files in a well thought out directory > hierarchy > or an SQL database. These are far simpler to write code against, they > don't mix > formatting and data, they are open, they dont have upgrade hell, they dont > have > viruses, text files play nice with version control, and they are human > readable > (for SQL, you can almost always get an SQL dump or play around in a > terminal). > All true. I especially like the "human readable" (= "human editable" = "human repairable"). But then again, some of my colleagues feed GB-sized text data files to ML. IMO "human readable" becomes moot in such cases, let alone "tractable" or even "editable" (which I brought in). (In case you wonder: they get those files -usually containing multivariate time series- from other agencies who can only export such data volumes from their dedicated databases as text files. Luckily, text files are often amenable to efficient compression.) And yes, it would be great if Octave would have a viable database toolbox like ML has. Time to end this enlightening discussion. Thank you for that. P. -- View this message in context: http://octave.1599824.n4.nabble.com/using-xlswrite-csvwrite-tp3430762p3437629.html Sent from the Octave - General mailing list archive at Nabble.com. From neco-home at comcast.net Fri Apr 8 18:20:13 2011 From: neco-home at comcast.net (Warren & Maryann) Date: Fri, 8 Apr 2011 16:20:13 -0700 Subject: syms / Symbolic toolkit fr octave Message-ID: <003301cbf643$83842b70$8a8c8250$@comcast.net> I am trying to use the symbolic toolkit to perform integrations in Octave. Does this exist in Octave? Can someone tell me how to get it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ratulloch at gmail.com Fri Apr 8 18:24:02 2011 From: ratulloch at gmail.com (Rick T) Date: Fri, 8 Apr 2011 13:24:02 -1000 Subject: syms / Symbolic toolkit fr octave In-Reply-To: <003301cbf643$83842b70$8a8c8250$@comcast.net> References: <003301cbf643$83842b70$8a8c8250$@comcast.net> Message-ID: http://octave.sourceforge.net/symbolic/index.html On Fri, Apr 8, 2011 at 1:20 PM, Warren & Maryann wrote: > I am trying to use the symbolic toolkit to perform integrations in Octave. > Does this exist in Octave? Can someone tell me how to get it? > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > > -- -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at mhelm.de Fri Apr 8 19:11:38 2011 From: martin at mhelm.de (Martin Helm) Date: Sat, 09 Apr 2011 02:11:38 +0200 Subject: syms / Symbolic toolkit fr octave In-Reply-To: References: <003301cbf643$83842b70$8a8c8250$@comcast.net> Message-ID: <1302307898.28200.2.camel@linux-uhdl> If it is not essential that it has to be in octave (the symbolic package is very limited) I recommend maxima because it is specialized on symbolic computation. http://maxima.sourceforge.net/ From nuncio.m at gmail.com Sat Apr 9 00:11:39 2011 From: nuncio.m at gmail.com (nuncio m) Date: Sat, 9 Apr 2011 10:41:39 +0530 Subject: memory In-Reply-To: <201104081833.14067.martin@mhelm.de> References: <1302099735.2678.8.camel@linux-uhdl> <201104081833.14067.martin@mhelm.de> Message-ID: HI martin, I arranged it as 348 rows and 30,000 columns. nuncio On Fri, Apr 8, 2011 at 10:03 PM, Martin Helm wrote: > Am Donnerstag, 7. April 2011, 06:09:10 schrieb nuncio m: > > HI Martin, > > Yes I do have a matrix close to 30000 variables and 348 > > observations. Here, by variables I mean are the points on a rectangular > > grid and observations are the values at each grid measured every month > for > > almost 3 decades. If the matrix contains no information how to avoid this > > and compute. > > Thanks and Regards > > nuncio > > > > On Wed, Apr 6, 2011 at 7:52 PM, Martin Helm wrote: > > > Am Mittwoch, den 06.04.2011, 10:11 +0530 schrieb nuncio m: > > > HI martin, > > > > > > > Thanks, but I need to find the covariance matrix > > > > > > > > separately. Because as a next step I need to find the svd of coupled > > > > fields. for example atmospheric pressure and temperature. For a > > > > single matrix I can find eigen vectors using SVD but I understand > > > > this > > > > is not possible without computing the covariance matrix for two > > > > separate matrices. > > > > nuncio > > > > > > Dear Nuncio, > > > > > > sorry that I insist so much. I do of course not know your problem at > > > hand, but have my doubts about the matrix you compute (the product > which > > > blows up to about 30000x30000). This matrix contains essentially no > > > information, more than 29000 of its eigen values are exact zero, more > > > than 29000 of its eigen vectors are simply a representation of the null > > > space since it has a maximal rank of 348. > > > > > > Do you really have nearly 30000 variables and only 348 measurements? > > > > > > - Martin > > Sorry for seeing this so late. Please keep always the list on cc by using > "reply to all". > > I do not really know what your matrix contain in detail. So I understand > you > have roughly 348 measurements over time for each of the ~30,000 grid points > (I > guess spatial grid points). > Where do your variables (pressure, temperature ...) come into play, I mean > how > is this organized from a data structure point of view in that matrix? And > how > many of them do you have? > > -- Nuncio.M Research Scientist National Center for Antarctic and Ocean research Head land Sada Vasco da Gamma Goa-403804 -------------- next part -------------- An HTML attachment was scrubbed... URL: From guggus_adieu at yahoo.de Sat Apr 9 02:08:21 2011 From: guggus_adieu at yahoo.de (Sina Calmote) Date: Sat, 9 Apr 2011 08:08:21 +0100 (BST) Subject: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <201104090107.12205.martin@mhelm.de> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104081420.00215.martin@mhelm.de> <292875.42412.qm@web29719.mail.ird.yahoo.com> <201104090107.12205.martin@mhelm.de> Message-ID: <604752.97930.qm@web29704.mail.ird.yahoo.com> Ou sorry then I sent the wrong version now there should be the right one attached. I have the 32bit version and a friend installed octave 3.4.0 because I am not used to it but he knows linux since years. concerning the memory: 2 GB memory but no swap ----- Urspr?ngliche Mail ---- Von: Martin Helm An: Sina Calmote CC: An: Gesendet: Samstag, den 9. April 2011, 1:07:11 Uhr Betreff: Re: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type Am Samstag, 9. April 2011, 00:38:41 schrieb Sina Calmote: > ----- Weitergeleitete Mail ---- > Von: Sina Calmote > An: Martin Helm > Gesendet: Samstag, den 9. April 2011, 0:37:33 Uhr > Betreff: AW: error: memory exhausted or requested size too large for range > of Octave's index type > > I attached an example (sorry I just could no shorten it more) > In essence I create several matrices due to a theoretical function and then > I plot them. There should be created 8 pictures but after the fifth the > error warning appears. > > > > > ----- Urspr?ngliche Mail ---- > Von: Martin Helm > An: help-octave at octave.org > CC: Sina Calmote ; Octave > Gesendet: Freitag, den 8. April 2011, 14:19:59 Uhr > Betreff: Re: error: memory exhausted or requested size too large for range > of Octave's index type > > Am Freitag, 8. April 2011, 12:39:34 schrieb Sina Calmote: > > as well I have the message : memory exhausted or requested size too large > > for range of ..... > > > > > > but I switched from Windows Vista with octave 3.2.4 to Linux (kubuntu) > > with octave 3.4 > > > > > > I mean it is the same computer why can there be an exhaust of memory? > > > > Sina > > Can you give us a small self contained code snippet which shows that > behaviour. In many cases this happens because by accident someone creates > an intermediate result which is too large and can be avoided. > Is your octave 3.4 on kubuntu compiled by yourself? Does that contain the part which gives you problems? It runs without problems here (openSUSE 11.3 64bit, octave 3.4 built from 3.4.0 sources). I assume you reduced it to 3 graphs because I find only commands for 3 figures in it but these are printed without problems. If someone else can check that also, maybe I miss the obvious. Tested with gnuplot and fltk backend. How much memory do you have? Do you run kubuntu 32 or 64 bit? -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: DatenRawHe.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Pyramide.m Type: application/octet-stream Size: 5279 bytes Desc: not available URL: From martin at mhelm.de Sat Apr 9 06:48:43 2011 From: martin at mhelm.de (Martin Helm) Date: Sat, 9 Apr 2011 13:48:43 +0200 Subject: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <604752.97930.qm@web29704.mail.ird.yahoo.com> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104090107.12205.martin@mhelm.de> <604752.97930.qm@web29704.mail.ird.yahoo.com> Message-ID: <201104091348.43607.martin@mhelm.de> Am Samstag, 9. April 2011, 09:08:21 schrieb Sina Calmote: > Ou sorry then I sent the wrong version now there should be the right one > attached. > > I have the 32bit version and a friend installed octave 3.4.0 because I am > not used to it but he knows linux since years. > > concerning the memory: > 2 GB memory > but no swap > > > > ----- Urspr?ngliche Mail ---- > Von: Martin Helm > An: Sina Calmote > CC: An: > Gesendet: Samstag, den 9. April 2011, 1:07:11 Uhr > Betreff: Re: WG: AW: error: memory exhausted or requested size too large > for range of Octave's index type > > Am Samstag, 9. April 2011, 00:38:41 schrieb Sina Calmote: > > ----- Weitergeleitete Mail ---- > > Von: Sina Calmote > > An: Martin Helm > > Gesendet: Samstag, den 9. April 2011, 0:37:33 Uhr > > Betreff: AW: error: memory exhausted or requested size too large for > > range of Octave's index type > > > > I attached an example (sorry I just could no shorten it more) > > In essence I create several matrices due to a theoretical function and > > then I plot them. There should be created 8 pictures but after the fifth > > the error warning appears. > > > > > > > > > > ----- Urspr?ngliche Mail ---- > > Von: Martin Helm > > An: help-octave at octave.org > > CC: Sina Calmote ; Octave > > Gesendet: Freitag, den 8. April 2011, 14:19:59 Uhr > > Betreff: Re: error: memory exhausted or requested size too large for > > range of Octave's index type > > > > Am Freitag, 8. April 2011, 12:39:34 schrieb Sina Calmote: > > > as well I have the message : memory exhausted or requested size too > > > large for range of ..... > > > > > > > > > but I switched from Windows Vista with octave 3.2.4 to Linux (kubuntu) > > > with octave 3.4 > > > > > > > > > I mean it is the same computer why can there be an exhaust of memory? > > > > > > Sina > > > > Can you give us a small self contained code snippet which shows that > > behaviour. In many cases this happens because by accident someone creates > > an intermediate result which is too large and can be avoided. > > Is your octave 3.4 on kubuntu compiled by yourself? > > Does that contain the part which gives you problems? It runs without > problems here (openSUSE 11.3 64bit, octave 3.4 built from 3.4.0 sources). > I assume you reduced it to 3 graphs because I find only commands for 3 > figures in it but these are printed without problems. > If someone else can check that also, maybe I miss the obvious. > Tested with gnuplot and fltk backend. > > How much memory do you have? Do you run kubuntu 32 or 64 bit? Please do not answer at the top. This also runs without problems here (I get a warning about an invalid character in the file, but this has no effect), so I cannot reproduce it. Can someone with a 32bit system or an ubuntu user give it a try? From stan.ieugen at gmail.com Sat Apr 9 06:46:50 2011 From: stan.ieugen at gmail.com (Ioan Eugen Stan) Date: Sat, 9 Apr 2011 14:46:50 +0300 Subject: convex optimization problems in octave (trying to replace Matlab with Octave in university) Message-ID: Hello, I attend a class called Numerical Methods for Economic Systems that requires some matlab programming knowledgs and I am trying to convince the professor to recommend Octave instead of Matlab. He asked me to make a presentation about Octave and how can you solve a convex optimization problem using Octave (determine the optimal volume of a tin can so as to use the least amount of material). The problem is classic and seems simple. I have a lot of things to do and I'm not that big of a fan of numerical methods so please give me some references or links to some code so I can make my presentation. I think Octave is much more suited for the job the professor wishes to teach us and I do wish to see this change in my school, because not all of the students can afford Matlab and pirating is bad. Regards, p.s. I am not on the list so please add me to C.C. field. -- Ioan-Eugen Stan From martin at mhelm.de Sat Apr 9 09:23:29 2011 From: martin at mhelm.de (Martin Helm) Date: Sat, 09 Apr 2011 16:23:29 +0200 Subject: convex optimization problems in octave (trying to replace Matlab with Octave in university) In-Reply-To: References: Message-ID: <1302359009.2572.7.camel@linux-uhdl> Am Samstag, den 09.04.2011, 14:46 +0300 schrieb Ioan Eugen Stan: > Hello, > > I attend a class called Numerical Methods for Economic Systems that > requires some matlab programming knowledgs and I am trying to convince > the professor to recommend Octave instead of Matlab. > He asked me to make a presentation about Octave and how can you solve > a convex optimization problem using Octave (determine the optimal > volume of a tin can so as to use the least amount of material). > > The problem is classic and seems simple. I have a lot of things to do > and I'm not that big of a fan of numerical methods so please give me > some references or links to some code so I can make my presentation. > > I think Octave is much more suited for the job the professor wishes to > teach us and I do wish to see this change in my school, because not > all of the students can afford Matlab and pirating is bad. > > Regards, > > p.s. I am not on the list so please add me to C.C. field. First thing I would do, if you have not done already, is to look what octave provides out of the box http://www.gnu.org/software/octave/doc/interpreter/Optimization.html#Optimization Second thing is: What is available as addon (optim package from octave-forge) http://octave.sourceforge.net/optim/overview.html I do not know if a introductory text with code examples for (convex) optimization with octave exists. What is your background? What do you know already about octave programming and what do you know about convex optimization in general? > and I'm not that big of a fan of numerical methods That is not really a good prerequisite for dealing with what it seems your class is all about, isn't it? From martin at mhelm.de Sat Apr 9 11:50:10 2011 From: martin at mhelm.de (Martin Helm) Date: Sat, 09 Apr 2011 18:50:10 +0200 Subject: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104090107.12205.martin@mhelm.de> <604752.97930.qm@web29704.mail.ird.yahoo.com> <201104091348.43607.martin@mhelm.de> Message-ID: <1302367810.2572.10.camel@linux-uhdl> Am Samstag, den 09.04.2011, 11:33 -0500 schrieb Robert McDonald: > >> > >> How much memory do you have? Do you run kubuntu 32 or 64 bit? > > > > Please do not answer at the top. > > > > This also runs without problems here (I get a warning about an invalid > > character in the file, but this has no effect), so I cannot reproduce it. > > > > Can someone with a 32bit system or an ubuntu user give it a try? > > > > I get this error during/after the 5th graph, using fltk graphics: > > do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. > Try adjusting the vblank_mode configuration parameter. > error: memory exhausted or requested size too large for range of > Octave's index type -- trying to return to prompt > > This is octave 3.4.0, ubuntu 10.04, 32-bit, 4gb RAM, with swap. > > With gnuplot, I get this error: > > error: memory exhausted or requested size too large for range of > Octave's index type -- trying to return to prompt > > > Bob Looks like a broken ubuntu package to me or some misconfiguration if it is compiled from the source. I run out of ideas since I have no ubuntu. I think I will give it a try in a virtual machine, but this can take a while. From rmcd1024 at gmail.com Sat Apr 9 12:10:56 2011 From: rmcd1024 at gmail.com (Robert McDonald) Date: Sat, 9 Apr 2011 12:10:56 -0500 Subject: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <1302367810.2572.10.camel@linux-uhdl> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104090107.12205.martin@mhelm.de> <604752.97930.qm@web29704.mail.ird.yahoo.com> <201104091348.43607.martin@mhelm.de> <1302367810.2572.10.camel@linux-uhdl> Message-ID: > Looks like a broken ubuntu package to me or some misconfiguration if it > is compiled from the source. I run out of ideas since I have no ubuntu. > I think I will give it a try in a virtual machine, but this can take a > while. I only compiled octave from source. I believe that everything else was the standard ubuntu package. (Although I do use some backports, e.g., emacs.) Bob From jordigh at octave.org Sat Apr 9 12:56:30 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Sat, 9 Apr 2011 12:56:30 -0500 Subject: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <1302367810.2572.10.camel@linux-uhdl> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104090107.12205.martin@mhelm.de> <604752.97930.qm@web29704.mail.ird.yahoo.com> <201104091348.43607.martin@mhelm.de> <1302367810.2572.10.camel@linux-uhdl> Message-ID: On 9 April 2011 11:50, Martin Helm wrote: > Looks like a broken ubuntu package to me or some misconfiguration if it > is compiled from the source. I run out of ideas since I have no ubuntu. There are no 3.4 Debian packages yet for Ubuntu users to use. I plan to work on them after next week, or perhaps I'll wait for the 3.4.1 release. - Jordi G. H. From martin at mhelm.de Sat Apr 9 13:16:01 2011 From: martin at mhelm.de (Martin Helm) Date: Sat, 09 Apr 2011 20:16:01 +0200 Subject: memory In-Reply-To: References: <1302099735.2678.8.camel@linux-uhdl> <201104081833.14067.martin@mhelm.de> Message-ID: <1302372961.2572.22.camel@linux-uhdl> Am Samstag, den 09.04.2011, 10:41 +0530 schrieb nuncio m: > HI martin, > I arranged it as 348 rows and 30,000 columns. > nuncio > I still do not understand, maybe my question was not clear or I am blind. The different physical parameters (temp, pressure ...) where are they located in that matrix? >From what I understood was that for example a(107, 4367) is a value which corresponds to the time "107" and the gridpoint "4367", but this is just a scalar, not a set of physical values. Do you interleave the physical measurements in your matrix somehow (row or columnwise) or is it simply that you have such a matrix for every different type of measurements? From martin at mhelm.de Sat Apr 9 13:10:47 2011 From: martin at mhelm.de (Martin Helm) Date: Sat, 09 Apr 2011 20:10:47 +0200 Subject: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104090107.12205.martin@mhelm.de> <604752.97930.qm@web29704.mail.ird.yahoo.com> <201104091348.43607.martin@mhelm.de> <1302367810.2572.10.camel@linux-uhdl> Message-ID: <1302372647.2572.17.camel@linux-uhdl> Am Samstag, den 09.04.2011, 12:56 -0500 schrieb Jordi Guti?rrez Hermoso: > On 9 April 2011 11:50, Martin Helm wrote: > > > Looks like a broken ubuntu package to me or some misconfiguration if it > > is compiled from the source. I run out of ideas since I have no ubuntu. > > There are no 3.4 Debian packages yet for Ubuntu users to use. I plan > to work on them after next week, or perhaps I'll wait for the 3.4.1 > release. > > - Jordi G. H. Thanks for the info. I noticed that after installing 32bit ubuntu 10.10 (I chose the newest version just because I had an iso file for it available, no idea why I downloaded that) in vmware. I am not sure if I can reproduce the problem in such an artificial environment, but give it now a try. If it works I will repeat the same with a 10.4 version. I just installed the build-dep for octave3.2 + bison + the fontconfig stuff configure complained about, so there was nothing left for configure to complain. Octave 3.4.0 meanwhile compiles happily on that system. Let's see what comes out. From martin at mhelm.de Sat Apr 9 14:52:13 2011 From: martin at mhelm.de (Martin Helm) Date: Sat, 9 Apr 2011 21:52:13 +0200 Subject: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <1302372647.2572.17.camel@linux-uhdl> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <1302372647.2572.17.camel@linux-uhdl> Message-ID: <201104092152.13684.martin@mhelm.de> Am Samstag, 9. April 2011, 20:10:47 schrieb Martin Helm: > Am Samstag, den 09.04.2011, 12:56 -0500 schrieb Jordi Guti?rrez > > Hermoso: > > On 9 April 2011 11:50, Martin Helm wrote: > > > Looks like a broken ubuntu package to me or some misconfiguration if it > > > is compiled from the source. I run out of ideas since I have no ubuntu. > > > > There are no 3.4 Debian packages yet for Ubuntu users to use. I plan > > to work on them after next week, or perhaps I'll wait for the 3.4.1 > > release. > > > > - Jordi G. H. > > Thanks for the info. I noticed that after installing 32bit ubuntu 10.10 > (I chose the newest version just because I had an iso file for it > available, no idea why I downloaded that) in vmware. I am not sure if I > can reproduce the problem in such an artificial environment, but give it > now a try. If it works I will repeat the same with a 10.4 version. > I just installed the build-dep for octave3.2 + bison + the fontconfig > stuff configure complained about, so there was nothing left for > configure to complain. > Octave 3.4.0 meanwhile compiles happily on that system. > Let's see what comes out. Ok so far I can reproduce it (tested with fltk first). make check was ok Summary: PASS 6905 FAIL 0 and I get exactly the error error: memory exhausted or requested size too large for range of Octave's index type -- trying to return to prompt when running Pyramid. It is exactly the plot statement before the Raumwinkel5.png is printed which throws the exception, if you comment that plot out and replace it with plot(1:10) everything runs fine. So we have to check what weird thing happens in that plot. From arnoques at gmail.com Sat Apr 9 16:36:48 2011 From: arnoques at gmail.com (Pablo) Date: Sat, 9 Apr 2011 18:36:48 -0300 Subject: Physicalconstants package from Octave-Forge is outdated Message-ID: Hi everyone! I just found out that the Physical Constants package from Octave-Forge was removed from Debian testing. The reason was that the values from the NIST database were outdated (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620639). As the report states, "The latest update to that database is from 2006. Despite that, the package still ships the values from 2002." I checked and that's true (you can see, for example, the gravitational constant). Is it possible to update the package? Supposedly, the package is automatically generated so it shouldn't be a big deal. By the way, the generating script is not included in the package. I believe it should be accessible just in case the original creator is unavailable. Thanks, Arnoques From martin at mhelm.de Sat Apr 9 17:08:02 2011 From: martin at mhelm.de (Martin Helm) Date: Sun, 10 Apr 2011 00:08:02 +0200 Subject: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <201104092152.13684.martin@mhelm.de> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <1302372647.2572.17.camel@linux-uhdl> <201104092152.13684.martin@mhelm.de> Message-ID: <201104100008.03140.martin@mhelm.de> Sorry I am really ***. I wanted to attach that. -------------- next part -------------- # Created by Octave 3.4.0, Sun Apr 10 00:06:18 2011 CEST # name: R # type: matrix # rows: 1 # columns: 60 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7 7.5 8 8.5 9 9.5 10 10.5 11 11.5 12 12.5 13 13.5 14 14.5 15 15.5 16 16.5 17 17.5 18 18.5 19 19.5 20 20.5 21 21.5 22 22.5 23 23.5 24 24.5 25 25.5 26 26.5 27 27.5 28 28.5 29 29.5 30 30.5 -------------- next part -------------- # Created by Octave 3.4.0, Sun Apr 10 00:06:14 2011 CEST # name: T # type: matrix # rows: 60 # columns: 4 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.944065423849259 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.25242523644739 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.943523757933359 0.09090909090909091 0.2307692307692308 0.3333333333333334 1.788310266558891 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.71064191909511 0.09090909090909091 0.2307692307692308 0.3333333333333334 1.678172050570011 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.674978804080903 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.692404876304324 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.725386728126261 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.770790367715825 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.826585783640019 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.891408065417926 0.09090909090909093 0.2307692307692308 0.3333333333333334 1.964310732871934 0.0909090909090909 0.2307692307692308 0.3333333333333334 2.044620492807503 0.09090909090909093 0.2307692307692308 0.3333333333333334 2.131848224160917 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.225632471141907 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.325702432810105 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.431853034252604 0.09090909090909091 0.2307692307692307 0.3333333333333333 2.54392770927702 0.0909090909090909 0.2307692307692308 0.3333333333333333 2.661806239869692 0.09090909090909093 0.2307692307692308 0.3333333333333334 2.785395994529186 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.914625503403123 0.09090909090909091 0.2307692307692308 0.3333333333333333 3.04943967356425 0.09090909090909091 0.2307692307692308 0.3333333333333333 3.189796177280724 0.09090909090909091 0.2307692307692308 0.3333333333333333 3.335662693557737 0.09090909090909091 0.2307692307692308 0.3333333333333333 3.487014779927041 0.09090909090909093 0.2307692307692308 0.3333333333333334 3.643834216155689 0.09090909090909091 0.2307692307692308 0.3333333333333334 3.806107705640899 0.09090909090909091 0.2307692307692308 0.3333333333333334 3.973825850843271 0.0909090909090909 0.2307692307692308 0.3333333333333334 4.146982340675073 0.09090909090909091 0.2307692307692308 0.3333333333333333 4.325573303198673 0.09090909090909091 0.2307692307692308 0.3333333333333333 4.509596788200456 0.09090909090909093 0.2307692307692308 0.3333333333333333 4.699052352453229 0.09090909090909091 0.2307692307692308 0.3333333333333333 4.893940726621767 0.09090909090909091 0.2307692307692308 0.3333333333333333 5.094263547390398 0.09090909090909093 0.2307692307692308 0.3333333333333334 5.300023141908705 0.09090909090909091 0.2307692307692308 0.3333333333333333 5.511222354351175 0.09090909090909093 0.2307692307692308 0.3333333333333334 5.727864406476341 0.09090909090909091 0.2307692307692308 0.3333333333333334 5.94995278570085 0.09090909090909091 0.2307692307692307 0.3333333333333333 6.177491155483575 0.09090909090909091 0.2307692307692308 0.3333333333333334 6.410483283826119 0.09090909090909091 0.2307692307692308 0.3333333333333333 6.648932986499323 0.09090909090909091 0.2307692307692308 0.3333333333333333 6.892844082246858 0.09090909090909091 0.2307692307692307 0.3333333333333333 7.142220357731296 0.09090909090909091 0.2307692307692308 0.3333333333333333 7.397065540402379 0.09090909090909093 0.2307692307692308 0.3333333333333333 7.657383277801835 0.09090909090909093 0.2307692307692308 0.3333333333333334 7.923177122090487 0.09090909090909091 0.2307692307692308 0.3333333333333333 8.194450518804086 0.09090909090909093 0.2307692307692308 0.3333333333333334 8.471206799023985 0.09090909090909091 0.2307692307692308 0.3333333333333333 8.753449174295817 0.09090909090909091 0.2307692307692308 0.3333333333333334 9.041180733749473 0.09090909090909091 0.2307692307692308 0.3333333333333333 9.33440444297227 0.09090909090909091 0.2307692307692308 0.3333333333333333 9.633123144268257 0.09090909090909093 0.2307692307692308 0.3333333333333334 9.937339558002913 0.0909090909090909 0.2307692307692308 0.3333333333333333 10.24705628478756 0.0909090909090909 0.2307692307692308 0.3333333333333333 10.56227580830265 0.09090909090909091 0.2307692307692308 0.3333333333333333 10.88300049859642 0.09090909090909091 0.2307692307692308 0.3333333333333333 11.209232615726 0.09090909090909091 0.2307692307692308 0.3333333333333333 11.54097431363334 0.09090909090909091 0.2307692307692308 0.3333333333333333 11.87822764416903 -------------- next part -------------- A non-text attachment was scrubbed... Name: exhausted.m Type: text/x-objcsrc Size: 54 bytes Desc: not available URL: From martin at mhelm.de Sat Apr 9 17:02:51 2011 From: martin at mhelm.de (Martin Helm) Date: Sun, 10 Apr 2011 00:02:51 +0200 Subject: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <201104092152.13684.martin@mhelm.de> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <1302372647.2572.17.camel@linux-uhdl> <201104092152.13684.martin@mhelm.de> Message-ID: <201104100002.52267.martin@mhelm.de> Am Samstag, 9. April 2011, 21:52:13 schrieb Martin Helm: > Am Samstag, 9. April 2011, 20:10:47 schrieb Martin Helm: > > Am Samstag, den 09.04.2011, 12:56 -0500 schrieb Jordi Guti?rrez > > > > Hermoso: > > > On 9 April 2011 11:50, Martin Helm wrote: > > > > Looks like a broken ubuntu package to me or some misconfiguration if > > > > it is compiled from the source. I run out of ideas since I have no > > > > ubuntu. > > > > > > There are no 3.4 Debian packages yet for Ubuntu users to use. I plan > > > to work on them after next week, or perhaps I'll wait for the 3.4.1 > > > release. > > > > > > - Jordi G. H. > > > > Thanks for the info. I noticed that after installing 32bit ubuntu 10.10 > > (I chose the newest version just because I had an iso file for it > > available, no idea why I downloaded that) in vmware. I am not sure if I > > can reproduce the problem in such an artificial environment, but give it > > now a try. If it works I will repeat the same with a 10.4 version. > > I just installed the build-dep for octave3.2 + bison + the fontconfig > > stuff configure complained about, so there was nothing left for > > configure to complain. > > Octave 3.4.0 meanwhile compiles happily on that system. > > Let's see what comes out. > > Ok so far I can reproduce it (tested with fltk first). > > make check was ok > > Summary: > > PASS 6905 > FAIL 0 > > and I get exactly the error > error: memory exhausted or requested size too large for range of Octave's > index type -- trying to return to prompt > > when running Pyramid. > It is exactly the plot statement before the Raumwinkel5.png is printed > which throws the exception, if you comment that plot out and replace it > with plot(1:10) everything runs fine. > > So we have to check what weird thing happens in that plot. I reduced it to the absolute minimum to get the error by saving the variables T and R load T load R plot(R, T(:,1), "-r", R, T(:,2), "-b") gives the error on ubuntu 10.10 32bit (but not on my opensuse), can someone confirm? Since I am too tired now and cannot directly see the error I stop with that at the moment. -------------- next part -------------- # Created by Octave 3.4.0, Sat Apr 09 14:52:35 2011 PDT # name: R # type: matrix # rows: 1 # columns: 60 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7 7.5 8 8.5 9 9.5 10 10.5 11 11.5 12 12.5 13 13.5 14 14.5 15 15.5 16 16.5 17 17.5 18 18.5 19 19.5 20 20.5 21 21.5 22 22.5 23 23.5 24 24.5 25 25.5 26 26.5 27 27.5 28 28.5 29 29.5 30 30.5 # name: RR # type: matrix # rows: 3 # columns: 3 3.735671799400287 1.682104720739528 0.8654087870397715 0.6930979908076388 2.026556960740046 3.563530355631901 0.2084375601254 1.008453987061 5.066293759993187 # name: Raumwinkel1 # type: matrix # rows: 1 # columns: 60 4.894764011105028 4.278813254118158 3.735671799400287 3.266263540940373 2.864848298819579 2.522928466042779 2.231628159871583 1.982818103964415 1.76949689190698 1.585811368272082 1.426933554056375 1.288899412706543 1.168453770761178 1.062916475877702 0.970072262517594 0.8880820576883934 0.8154121603209927 0.750777788117063 0.6930979908076388 0.641459506481509 0.5950876548551506 0.5533227842061481 0.5156011207149674 0.4814391250597885 0.4504206574155885 0.4221864024820621 0.3964251218940423 0.3728663908248871 0.3512745451400027 0.3314436198441006 0.3131931023399218 0.2963643578391151 0.2808176111454432 0.266429390491544 0.2530903563194464 0.2407034517499446 0.2291823226825258 0.2184499645480371 0.2084375601254 0.199083478865865 0.1903324131079336 0.1821346306231222 0.1744453262745201 0.1672240583304405 0.1604342572617756 0.154042796750412 0.1480196182170547 0.1423374014965862 0.1369712753935738 0.1318985627771072 0.1270985556533451 0.1225523163109479 0.1182425011894816 0.1141532045907732 0.1102698197519769 0.106578915138288 0.1030681241023298 0.09972604630416269 0.09654215949719951 0.09350674046655583 # name: Raumwinkel2 # type: matrix # rows: 1 # columns: 60 0.9524070761297017 1.352434269923621 1.682104720739528 1.941235124694368 2.13624519132095 2.27624130470448 2.370630663453722 2.427992672955736 2.455696752003777 2.459883487937955 2.445591292288117 2.416922797640815 2.377206219262918 2.32913616928437 2.274891078138177 2.216229181443758 2.154566397839453 2.091039428318602 2.026556960740046 1.961841334589129 1.897462543284893 1.833866058611823 1.771395651644703 1.710312143195818 1.650808829553353 1.593024183410121 1.537052315442739 1.482951591473255 1.430751727937075 1.380459630345625 1.332064192476937 1.285540235823174 1.240851737596393 1.197954469973002 1.156798152173679 1.117328199584275 1.079487139750588 1.043215753184377 1.008453987061 0.9751416817136386 0.9432191430435235 0.9126275883301715 0.8833094882435202 0.855208823968264 0.8282712751154738 0.8024443514064705 0.7776774788769318 0.7539220494889185 0.7311314414915876 0.7092610165851777 0.6882680988736769 0.6681119397030693 0.6487536717439678 0.6301562550646106 0.6122844174316988 0.5951045906549413 0.5785848444419168 0.5626948189408935 0.5474056569104313 0.5326899362575857 # name: Raumwinkel3 # type: matrix # rows: 1 # columns: 60 0.4360142199448562 0.6519377831378073 0.8654087870397715 1.075686641544846 1.282091817039057 1.484015536432326 1.680926483854281 1.872374530259435 2.05799166326883 2.237490450969549 2.410660460835095 2.577363096832229 2.73752531715549 2.891132662017515 3.038221966523815 3.178874068047435 3.313206749019141 3.441368090743921 3.563530355631901 3.679884466108948 3.790635109039543 3.895996464361615 3.996188534819916 4.09143403892398 4.181955820210645 4.267974721287403 4.349707869842804 4.427367324881444 4.501159034102509 4.571282056989861 4.637928012362727 4.701280713517297 4.76151595843775 4.818801446715041 4.873296798686461 4.925153655845366 4.974515844746473 5.021519589447172 5.066293759993187 5.108960146600083 5.149633751028129 5.188423088226292 5.225430492661546 5.260752424880882 5.294479774802337 5.326698159022704 5.3574882100856 5.386925856194082 5.415082590294425 5.442025727817302 5.467818652652564 5.49252105116557 5.516189134246137 5.538875847524203 5.56063106999591 5.581501801386357 5.60153233863534 5.62076444193453 5.639237490771955 5.656988630455444 # name: Raumwinkel4 # type: matrix # rows: 1 # columns: 60 3.879338355732989 3.070780529914511 2.486838236060284 2.059667929166536 1.738857762705312 1.491157417122773 1.295061728833669 1.136466427257613 1.005885278736813 0.8967569412910832 0.804416659801018 0.7254618079535422 0.6573517038563139 0.5981490960034603 0.5463491314930349 0.5007635530055169 0.4604405373823209 0.4246080315085692 0.3926329006685255 0.3639909295944596 0.3382444138387741 0.3150251560176726 0.294021376863394 0.2749675077152474 0.2576361359562309 0.2418315816846867 0.2273847263412487 0.21414881359911 0.2019960134771406 0.1908145914664476 0.1805065615274461 0.1709857291925137 0.1621760514780416 0.1540102557882918 0.1464286718238028 0.1393782396389199 0.1328116641066924 0.1266866916378444 0.1209654894250167 0.1156141110115064 0.110602034815449 0.1059017645269727 0.1014884821525475 0.09733974599613471 0.09343522710945686 0.08975647876732658 0.08628673437060547 0.08301072988231839 0.07991454748821905 0.07698547766289407 0.07421189723335345 0.07158316137775766 0.06908950778865892 0.06672197147699481 0.06447230890252355 0.06233293029455254 0.06029683917873015 0.05835757825551668 0.05650918088718303 0.05474612754568155 # name: Raumwinkel5 # type: matrix # rows: 1 # columns: 60 2.403846951446598 3.212404777265075 3.796347071119302 4.22351737801305 4.544327544474275 4.792027890056813 4.988123578345917 5.146718879921973 5.277300028442774 5.386428365888503 5.478768647378568 5.557723499226044 5.625833603323272 5.685036211176126 5.736836175686552 5.782421754174069 5.822744769797265 5.858577275671017 5.890552406511061 5.919194377585127 5.944940893340812 5.968160151161913 5.989163930316193 6.008217799464338 6.025549171223355 6.0413537254949 6.055800580838338 6.069036493580477 6.081189293702446 6.092370715713138 6.10267874565214 6.112199577987073 6.121009255701544 6.129175051391295 6.136756635355783 6.143807067540666 6.150373643072894 6.156498615541742 6.162219817754569 6.16757119616808 6.172583272364137 6.177283542652614 6.181696825027038 6.185845561183451 6.189750080070129 6.19342882841226 6.196898572808981 6.200174577297268 6.203270759691367 6.206199829516692 6.208973409946233 6.211602145801828 6.214095799390927 6.216463335702591 6.218712998277063 6.220852376885034 6.222888468000856 6.22482772892407 6.226676126292404 6.228439179633905 # name: T # type: matrix # rows: 60 # columns: 4 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.944065423849259 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.25242523644739 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.943523757933359 0.09090909090909091 0.2307692307692308 0.3333333333333334 1.788310266558891 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.71064191909511 0.09090909090909091 0.2307692307692308 0.3333333333333334 1.678172050570011 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.674978804080903 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.692404876304324 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.725386728126261 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.770790367715825 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.826585783640019 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.891408065417926 0.09090909090909093 0.2307692307692308 0.3333333333333334 1.964310732871934 0.0909090909090909 0.2307692307692308 0.3333333333333334 2.044620492807503 0.09090909090909093 0.2307692307692308 0.3333333333333334 2.131848224160917 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.225632471141907 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.325702432810105 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.431853034252604 0.09090909090909091 0.2307692307692307 0.3333333333333333 2.54392770927702 0.0909090909090909 0.2307692307692308 0.3333333333333333 2.661806239869692 0.09090909090909093 0.2307692307692308 0.3333333333333334 2.785395994529186 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.914625503403123 0.09090909090909091 0.2307692307692308 0.3333333333333333 3.04943967356425 0.09090909090909091 0.2307692307692308 0.3333333333333333 3.189796177280724 0.09090909090909091 0.2307692307692308 0.3333333333333333 3.335662693557737 0.09090909090909091 0.2307692307692308 0.3333333333333333 3.487014779927041 0.09090909090909093 0.2307692307692308 0.3333333333333334 3.643834216155689 0.09090909090909091 0.2307692307692308 0.3333333333333334 3.806107705640899 0.09090909090909091 0.2307692307692308 0.3333333333333334 3.973825850843271 0.0909090909090909 0.2307692307692308 0.3333333333333334 4.146982340675073 0.09090909090909091 0.2307692307692308 0.3333333333333333 4.325573303198673 0.09090909090909091 0.2307692307692308 0.3333333333333333 4.509596788200456 0.09090909090909093 0.2307692307692308 0.3333333333333333 4.699052352453229 0.09090909090909091 0.2307692307692308 0.3333333333333333 4.893940726621767 0.09090909090909091 0.2307692307692308 0.3333333333333333 5.094263547390398 0.09090909090909093 0.2307692307692308 0.3333333333333334 5.300023141908705 0.09090909090909091 0.2307692307692308 0.3333333333333333 5.511222354351175 0.09090909090909093 0.2307692307692308 0.3333333333333334 5.727864406476341 0.09090909090909091 0.2307692307692308 0.3333333333333334 5.94995278570085 0.09090909090909091 0.2307692307692307 0.3333333333333333 6.177491155483575 0.09090909090909091 0.2307692307692308 0.3333333333333334 6.410483283826119 0.09090909090909091 0.2307692307692308 0.3333333333333333 6.648932986499323 0.09090909090909091 0.2307692307692308 0.3333333333333333 6.892844082246858 0.09090909090909091 0.2307692307692307 0.3333333333333333 7.142220357731296 0.09090909090909091 0.2307692307692308 0.3333333333333333 7.397065540402379 0.09090909090909093 0.2307692307692308 0.3333333333333333 7.657383277801835 0.09090909090909093 0.2307692307692308 0.3333333333333334 7.923177122090487 0.09090909090909091 0.2307692307692308 0.3333333333333333 8.194450518804086 0.09090909090909093 0.2307692307692308 0.3333333333333334 8.471206799023985 0.09090909090909091 0.2307692307692308 0.3333333333333333 8.753449174295817 0.09090909090909091 0.2307692307692308 0.3333333333333334 9.041180733749473 0.09090909090909091 0.2307692307692308 0.3333333333333333 9.33440444297227 0.09090909090909091 0.2307692307692308 0.3333333333333333 9.633123144268257 0.09090909090909093 0.2307692307692308 0.3333333333333334 9.937339558002913 0.0909090909090909 0.2307692307692308 0.3333333333333333 10.24705628478756 0.0909090909090909 0.2307692307692308 0.3333333333333333 10.56227580830265 0.09090909090909091 0.2307692307692308 0.3333333333333333 10.88300049859642 0.09090909090909091 0.2307692307692308 0.3333333333333333 11.209232615726 0.09090909090909091 0.2307692307692308 0.3333333333333333 11.54097431363334 0.09090909090909091 0.2307692307692308 0.3333333333333333 11.87822764416903 # name: Td # type: matrix # rows: 3 # columns: 4 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.943523757933359 0.09090909090909091 0.2307692307692307 0.3333333333333333 2.54392770927702 0.09090909090909091 0.2307692307692308 0.3333333333333334 5.94995278570085 # name: Term1 # type: scalar 53.12552052349793 # name: Term2 # type: scalar 327.6073765615706 # name: Z # type: matrix # rows: 60 # columns: 11 0.3396663647143194 1.872659005091005 0.06609116364818111 0.3643758276354644 0.003025669158235568 0.9196736819740499 0.3911530921402186 1.929430645602345 0.003025669158235568 1.17041418610213 1.388421296074558 0.4439659012066646 2.187629278233767 0.1403273907529214 0.6914592037696632 0.006764449117822121 1.642406510150779 0.5395280516311192 2.281805230752338 0.006764449117822121 1.678403161492525 2.004372053061428 0.5145293418297842 2.257120552868472 0.2316831566921446 1.016340123312702 0.01191962885178428 2.293781001163168 0.6522767092139536 2.377973685527791 0.01191962885178428 2.114809114259414 2.547513507779299 0.5591870821858133 2.195561670060707 0.3323410960592397 1.304885958812555 0.01841584632997929 2.839021637957301 0.7319519382491982 2.331228572244359 0.01841584632997929 2.47907844546679 3.016921766239213 0.5845758769485651 2.072007811100195 0.435903501978848 1.545044016699258 0.02616124381116441 3.286694856487916 0.7833281570486985 2.212901848326327 0.02616124381116441 2.777291099840479 3.418337008360007 0.5958864585191596 1.924174281487524 0.5376218105473567 1.736032168934949 0.03505072673658102 3.65475951709441 0.8117612582398511 2.063590350339329 0.03505072673658102 3.018249072920644 3.760256841136807 0.5970224802628002 1.771655059995828 0.6342095085247677 1.882006996421274 0.04496944950667135 3.95999411388032 0.8222776222470656 1.905343296295016 0.04496944950667135 3.211093905380862 4.051557147308003 0.59087515877624 1.624177367403731 0.7235361394329969 1.988831320307316 0.05579632320501984 4.21580996484021 0.8192052948460693 1.749702576508442 0.05579632320501984 3.364179938085453 4.300367203215171 0.5795802087141252 1.486215277992787 0.8043377993905899 2.062560294758143 0.06740736551641145 4.432448547773842 0.8061011796042598 1.602388647152372 0.06740736551641145 3.484692583638192 4.513688415272607 0.5647195841086023 1.359479136680674 0.875983366027681 2.108800799026162 0.07967875008332655 4.617659534519125 0.785808778895936 1.465927064507844 0.07967875008332655 3.57862871342273 4.697373938907504 0.5474694968922843 1.244247692157568 0.9382964123221047 2.132489850518936 0.09248945516207062 4.777338948956204 0.7605599229956216 1.34110688610536 0.09248945516207062 3.650921522705664 4.856251753123212 0.5287066383419697 1.140082013171326 0.9914219177037394 2.137862878708119 0.1057234540786519 4.91602411575453 0.7320816885752639 1.22779199064614 0.1057234540786519 3.705604346056929 4.994285894473044 0.5090844250175953 1.046209234027632 1.035726608587468 2.128501066978979 0.1192714283550426 5.037254542869507 0.7016935240837745 1.125374656538373 0.1192714283550426 3.745968877840663 5.114731536418408 0.4890883190879511 0.961728543628283 1.071724185121496 2.107406166743385 0.1330320157808068 5.143829943301724 0.6703901967614568 1.033029854237036 0.1330320157808068 3.774702500293127 5.220268831301885 0.4690765452562151 0.8857204390075729 1.100019131562262 2.077079824129507 0.1469126289705338 5.237994376683315 0.6389104743220831 0.9498572557944526 0.1469126289705338 3.794002061400085 5.313113044661993 0.4493104827352421 0.817302810407508 1.121264633989282 2.039597943478176 0.1608298951322911 5.321568552966099 0.6077929967283573 0.8749592457964616 0.1608298951322911 3.805666215467475 5.395103249491193 0.4299776213381339 0.7556576258084956 1.136131369923879 1.996676782692577 0.1747097757757127 5.396045953866748 0.5774212012210151 0.8074821208453596 0.1747097757757127 3.811169772349023 5.467773146858594 0.4112090598876736 0.7000413760700592 1.145284758175185 1.949730189125764 0.1884874272681063 5.462663604046369 0.5480591312240106 0.7466360266255426 0.1884874272681063 3.811723473690563 5.532407519062524 0.3930929311997621 0.6497866668097021 1.149368814375455 1.899918496495463 0.2021068610056684 5.522454926517018 0.5198797721083549 0.6917026577678099 0.2021068610056684 3.808322138555997 5.590087316371948 0.3756847455767309 0.6042991442374396 1.148995151213458 1.848189991172923 0.215520456931876 5.576289790402955 0.492987328043119 0.6420360239142867 0.215520456931876 3.801783567643604 5.641725800698078 0.35901537948791 0.5630521401984095 1.14473595525576 1.795315929050699 0.2286883774295874 5.624905282505572 0.4674346289191046 0.5970594245203309 0.2286883774295874 3.792780097804664 5.688097652324435 0.3430972517163518 0.5255803911521829 1.137120000630951 1.741920029172015 0.2415779212014312 5.668929666807125 0.443236651394196 0.5562604998322361 0.2415779212014312 3.781864290792631 5.729862522973438 0.3279290974893033 0.4914735892140745 1.126630943964627 1.688503270948677 0.2541628493365985 5.708901270699903 0.4203809589164296 0.5191854626117037 0.2541628493365985 3.769489919054661 5.767584186464619 0.313499654655832 0.4603701751781046 1.113707296179923 1.635464713995806 0.2664227088088226 5.745283540269191 0.3988357127270283 0.4854331539851306 0.2664227088088226 3.756029162657808 5.801746182119798 0.2997905039773144 0.4319515797013251 1.098743591871665 1.583118957735858 0.2783421724361666 5.778477164017969 0.3785557777655151 0.4546492862577645 0.2783421724361666 3.741786739658675 5.832764649763998 0.2867782510577495 0.4059370002304142 1.082092380344875 1.531710766870294 0.2899104089884778 5.808829924981858 0.3594873415709695 0.4265210647356926 0.2899104089884778 3.727011544053823 5.860998904697524 0.2744361956881282 0.382078733326818 1.064066747355331 1.481427309489188 0.3011204926799345 5.836644772035811 0.3415713778292201 0.4007722772231075 0.3011204926799345 3.711906250364141 5.886760185285544 0.2627356021790805 0.3601580444492214 1.044943145790618 1.432408386329197 0.3119688576911746 5.862186480211483 0.3247462162768281 0.3771588782329258 0.3119688576911746 3.696635253913978 5.910318916354699 0.25164665929882 0.3399815378060956 1.024964369330779 1.38475497132565 0.322454800547291 5.88568718219793 0.30894942453956 0.3554650592654086 0.322454800547291 3.681331244988329 5.931910762039584 0.241139199024709 0.3213779802325415 1.004342547622628 1.33853633387698 0.3325800310342524 5.907350988879268 0.2941191627331032 0.3354997769360732 0.3325800310342524 3.666100658840555 5.951741687335486 0.2311832281886243 0.30419553068898 0.9832620765608658 1.293795970967841 0.3423482707613237 5.927357868958345 0.2801951361804841 0.3170937010956141 0.3423482707613237 3.651028198658301 5.969992204839665 0.221749315286134 0.2882993281838718 0.961882424543495 1.250556541425784 0.3517648973687668 5.945866921743735 0.2671192436154523 0.3000965414832364 0.3517648973687668 3.636180592581822 5.986820949340471 0.2128088654892153 0.2735693940175758 0.9403407764958293 1.208823964192495 0.3608366316452705 5.963019149788876 0.254835996253045 0.2843747114266298 0.3608366316452705 3.621609716815268 6.002367696034143 0.204334309682228 0.2598988082194861 0.9187544932676699 1.168590816774289 0.3695712643765143 5.978939816986006 0.2432927658928012 0.2698092890926644 0.3695712643765143 3.607355193330522 6.016755916688043 0.1962992276895967 0.2471921243056742 0.8972233757410769 1.129839148307047 0.3779774195255787 5.993740461315164 0.2324399067819307 0.2562942398298477 0.3779774195255787 3.59344655151691 6.03009495086014 0.1886784214379616 0.2353639906741135 0.8758317315062323 1.092542803333264 0.3860643502901172 6.007520618567644 0.2222307855047652 0.2437348666260413 0.3860643502901172 3.579905027506959 6.042481855429642 0.1814479503282041 0.2243379508915931 0.8546502479806402 1.056669336931972 0.3938417646437629 6.020369303159335 0.2126217450417843 0.2320464592708941 0.3938417646437629 3.566745062123824 6.05400298449706 0.174585138375365 0.2140453987197187 0.833737679939082 1.022181588827583 0.4013196771132724 6.032366284002079 0.2035720228489045 0.2211531162522858 0.4013196771132724 3.553975547907963 6.064735342631549 0.1680685605444194 0.2044246669442432 0.8131423620515165 0.9890389731558628 0.4085082837397251 6.04358318684899 0.1950436379445643 0.2109867166166594 0.4085082837397251 3.541600867057593 6.074747747054186 0.1618780140401059 0.1954202319137411 0.7929035585614262 0.9571985313639643 0.4154178573998551 6.054084449226149 0.1870012582428765 0.2014860219317909 0.4154178573998551 3.52962175501368 6.084101828313721 0.1559944790002083 0.1869820181805362 0.7730526629673901 0.9266157879939291 0.4220586609060531 6.063928149744854 0.1794120564881695 0.1925958910915028 0.4220586609060531 3.518036018557588 6.092852894071653 0.1504000720161419 0.1790647897985301 0.7536142607212146 0.8972454426134563 0.4284408755488935 6.073166730053942 0.1722455609358996 0.1842665930011811 0.4284408755488935 3.506839132443318 6.101050676556464 0.1450779951015562 0.1716276167025969 0.734607067700324 0.8690419257174963 0.4345745429859666 6.081847624784235 0.1654735052359016 0.1764532041989516 0.4345745429859666 3.496024734574293 6.108739980905066 0.1400124821012449 0.1646334062063135 0.7160447566825169 0.8419598418630249 0.440469518609712 6.090013812435108 0.1590696806883788 0.1691150802243218 0.440469518609712 3.485585036408705 6.115961248849146 0.1351887440415463 0.1580484910412151 0.6979366833471745 0.8159543194767116 0.4461354347413616 6.097704298160549 0.1530097930691157 0.1622153910705744 0.4461354347413616 3.475511162516642 6.12275104991781 0.1305929145402612 0.1518422665511851 0.6802885225222984 0.7909812835726004 0.4515816721960144 6.10495453775285 0.147271325486823 0.1557207123757743 0.4515816721960144 3.465793430917822 6.129142510429174 0.1262119960958484 0.1459868706767045 0.6631028245452909 0.7669976649346024 0.456817338944446 6.111796810735759 0.1418334081868923 0.1496006651451651 0.456817338944446 3.456421583919732 6.135165688962531 0.1220338078441338 0.1404569012391319 0.6463795007455775 0.743961557072606 0.4618512547604371 6.118260549316727 0.1366766958092008 0.1438275977782286 0.4618512547604371 3.447384977585959 6.140847905683 0.118046935191715 0.1352291657856566 0.6301162462157512 0.7218323303807875 0.4666919408886958 6.124372628970764 0.1317832523096841 0.1383763050177145 0.4666919408886958 3.4386727366388 6.146214031786013 0.1142406815974283 0.1302824598990269 0.6143089072327546 0.7005707113530391 0.4713476138987119 6.130157625604489 0.1271364435404334 0.1332237791641332 0.4713476138987119 3.430273880493829 6.151286744402479 0.1106050226677959 0.1255973704280939 0.5989517999329073 0.6801388333935957 0.4758261830051861 6.135638043552211 0.1227208373311733 0.1283489895238827 0.4758261830051861 3.422177425199959 6.156086751526241 0.107130562652327 0.121156100568961 0.5840379861407268 0.6605002646592785 0.4801352502372517 6.14083451806542 0.1185221108107651 0.1237326865966084 0.4801352502372517 3.414372465285854 6.160632990868638 0.1038084933643772 0.1169423141334758 0.5695595116042748 0.6416200174483259 0.4842821129277485 6.145765995455188 0.1145269646390338 0.1193572279699223 0.4842821129277485 3.406848238867036 6.164942805990105 0.1006305555086585 0.1129409966916985 0.555507611299536 0.6234645428802784 0.4882737680716008 6.150449893619547 0.1107230437776178 0.1152064232878927 0.4882737680716008 3.399594178826712 6.169032102588814 0.09758900236398295 0.1091383315761386 0.5418728859316988 0.606001713967303 0.4921169181700228 6.154902245322996 0.1070988644067107 0.1112653960029097 0.4921169181700228 3.392599952429654 6.172915487427609 0.0946765657467431 0.1055215889950351 0.5286454532796271 0.5892007996391208 0.4958179782359986 6.15913782628313 0.1036437465871602 0.1075204599165212 0.4958179782359986 3.38585549134812 6.176606392041298 0.09188642416482201 0.1020790267258208 0.5158150775980387 0.5730324318341427 0.499383083687248 6.163170269851667 0.1003477522703259 0.1039590087703246 0.499383083687248 3.379351013759587 6.180117183077257 0.08921217306143232 0.0987998010532613 0.5033712799063502 0.5574685673941192 0.5028180988966747 6.167012169847259 0.09720162826829458 0.10056941736878 0.5028180988966747 3.373077039908158 6.183459260875424 0.08664779704246472 0.09567388678398943 0.4913034316499624 0.5424824461864579 0.5061286262079527 6.170675172899465 0.09419675381215824 0.09734095290678289 0.5061286262079527 3.367024402296409 6.186643147682386 0.08418764397825763 0.09269200531397111 0.4796008339152216 0.5280485466173127 0.5093200152561965 6.174170061492645 0.09132509234432928 0.09426369534023428 0.5093200152561965 3.361184251485308 6.18967856671303 # name: Zd # type: matrix # rows: 3 # columns: 11 0.5145293418297842 2.257120552868472 0.2316831566921446 1.016340123312702 0.01191962885178428 2.293781001163168 0.6522767092139536 2.377973685527791 0.01191962885178428 2.114809114259414 2.547513507779299 0.3930929311997621 0.6497866668097021 1.149368814375455 1.899918496495463 0.2021068610056684 5.522454926517018 0.5198797721083549 0.6917026577678099 0.2021068610056684 3.808322138555997 5.590087316371948 0.1680685605444194 0.2044246669442432 0.8131423620515165 0.9890389731558628 0.4085082837397251 6.04358318684899 0.1950436379445643 0.2109867166166594 0.4085082837397251 3.541600867057593 6.074747747054186 # name: a # type: scalar 17.85365853658537 # name: ans # type: matrix # rows: 1 # columns: 2 60 4 # name: b # type: scalar 2.975609756097561 # name: d # type: matrix # rows: 1 # columns: 3 2 10 20 # name: dn # type: scalar 0.5 # name: grh # type: matrix # rows: 1 # columns: 60 5.84717108723473 5.631247524041779 5.417776520139815 5.20749866563474 5.001093490140529 4.79916977074726 4.602258823325305 4.410810776920151 4.225193643910757 4.045694856210037 3.872524846344491 3.705822210347358 3.545659990024096 3.392052645162071 3.244963340655771 3.104311239132151 2.969978558160446 2.841817216435665 2.719654951547685 2.603300841070638 2.492550198140043 2.387188842817972 2.28699677235967 2.191751268255606 2.101229486968942 2.015210585892183 1.933477437336781 1.855817982298142 1.782026273077078 1.711903250189725 1.645257294816859 1.581904593662289 1.521669348741836 1.464383860464546 1.409888508493125 1.35803165133422 1.308669462433113 1.261665717732414 1.2168915471864 1.174225160579504 1.133551556151457 1.094762218953294 1.05775481451804 1.022432882298705 0.9887055323772495 0.9564871481568825 0.9256970970939865 0.8962594509855046 0.8681027168851614 0.8411595793622849 0.8153666545270221 0.7906642560140171 0.7669961729334495 0.7443094596553839 0.7225542371836757 0.7016835057932292 0.6816529685442466 0.6624208652450562 0.6439478164076308 0.6261966767241415 # name: ii # type: scalar 11 # name: m # type: scalar 30 # name: n # type: scalar 60 -------------- next part -------------- # Created by Octave 3.4.0, Sat Apr 09 14:52:30 2011 PDT # name: R # type: matrix # rows: 1 # columns: 60 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7 7.5 8 8.5 9 9.5 10 10.5 11 11.5 12 12.5 13 13.5 14 14.5 15 15.5 16 16.5 17 17.5 18 18.5 19 19.5 20 20.5 21 21.5 22 22.5 23 23.5 24 24.5 25 25.5 26 26.5 27 27.5 28 28.5 29 29.5 30 30.5 # name: RR # type: matrix # rows: 3 # columns: 3 3.735671799400287 1.682104720739528 0.8654087870397715 0.6930979908076388 2.026556960740046 3.563530355631901 0.2084375601254 1.008453987061 5.066293759993187 # name: Raumwinkel1 # type: matrix # rows: 1 # columns: 60 4.894764011105028 4.278813254118158 3.735671799400287 3.266263540940373 2.864848298819579 2.522928466042779 2.231628159871583 1.982818103964415 1.76949689190698 1.585811368272082 1.426933554056375 1.288899412706543 1.168453770761178 1.062916475877702 0.970072262517594 0.8880820576883934 0.8154121603209927 0.750777788117063 0.6930979908076388 0.641459506481509 0.5950876548551506 0.5533227842061481 0.5156011207149674 0.4814391250597885 0.4504206574155885 0.4221864024820621 0.3964251218940423 0.3728663908248871 0.3512745451400027 0.3314436198441006 0.3131931023399218 0.2963643578391151 0.2808176111454432 0.266429390491544 0.2530903563194464 0.2407034517499446 0.2291823226825258 0.2184499645480371 0.2084375601254 0.199083478865865 0.1903324131079336 0.1821346306231222 0.1744453262745201 0.1672240583304405 0.1604342572617756 0.154042796750412 0.1480196182170547 0.1423374014965862 0.1369712753935738 0.1318985627771072 0.1270985556533451 0.1225523163109479 0.1182425011894816 0.1141532045907732 0.1102698197519769 0.106578915138288 0.1030681241023298 0.09972604630416269 0.09654215949719951 0.09350674046655583 # name: Raumwinkel2 # type: matrix # rows: 1 # columns: 60 0.9524070761297017 1.352434269923621 1.682104720739528 1.941235124694368 2.13624519132095 2.27624130470448 2.370630663453722 2.427992672955736 2.455696752003777 2.459883487937955 2.445591292288117 2.416922797640815 2.377206219262918 2.32913616928437 2.274891078138177 2.216229181443758 2.154566397839453 2.091039428318602 2.026556960740046 1.961841334589129 1.897462543284893 1.833866058611823 1.771395651644703 1.710312143195818 1.650808829553353 1.593024183410121 1.537052315442739 1.482951591473255 1.430751727937075 1.380459630345625 1.332064192476937 1.285540235823174 1.240851737596393 1.197954469973002 1.156798152173679 1.117328199584275 1.079487139750588 1.043215753184377 1.008453987061 0.9751416817136386 0.9432191430435235 0.9126275883301715 0.8833094882435202 0.855208823968264 0.8282712751154738 0.8024443514064705 0.7776774788769318 0.7539220494889185 0.7311314414915876 0.7092610165851777 0.6882680988736769 0.6681119397030693 0.6487536717439678 0.6301562550646106 0.6122844174316988 0.5951045906549413 0.5785848444419168 0.5626948189408935 0.5474056569104313 0.5326899362575857 # name: Raumwinkel3 # type: matrix # rows: 1 # columns: 60 0.4360142199448562 0.6519377831378073 0.8654087870397715 1.075686641544846 1.282091817039057 1.484015536432326 1.680926483854281 1.872374530259435 2.05799166326883 2.237490450969549 2.410660460835095 2.577363096832229 2.73752531715549 2.891132662017515 3.038221966523815 3.178874068047435 3.313206749019141 3.441368090743921 3.563530355631901 3.679884466108948 3.790635109039543 3.895996464361615 3.996188534819916 4.09143403892398 4.181955820210645 4.267974721287403 4.349707869842804 4.427367324881444 4.501159034102509 4.571282056989861 4.637928012362727 4.701280713517297 4.76151595843775 4.818801446715041 4.873296798686461 4.925153655845366 4.974515844746473 5.021519589447172 5.066293759993187 5.108960146600083 5.149633751028129 5.188423088226292 5.225430492661546 5.260752424880882 5.294479774802337 5.326698159022704 5.3574882100856 5.386925856194082 5.415082590294425 5.442025727817302 5.467818652652564 5.49252105116557 5.516189134246137 5.538875847524203 5.56063106999591 5.581501801386357 5.60153233863534 5.62076444193453 5.639237490771955 5.656988630455444 # name: Raumwinkel4 # type: matrix # rows: 1 # columns: 60 3.879338355732989 3.070780529914511 2.486838236060284 2.059667929166536 1.738857762705312 1.491157417122773 1.295061728833669 1.136466427257613 1.005885278736813 0.8967569412910832 0.804416659801018 0.7254618079535422 0.6573517038563139 0.5981490960034603 0.5463491314930349 0.5007635530055169 0.4604405373823209 0.4246080315085692 0.3926329006685255 0.3639909295944596 0.3382444138387741 0.3150251560176726 0.294021376863394 0.2749675077152474 0.2576361359562309 0.2418315816846867 0.2273847263412487 0.21414881359911 0.2019960134771406 0.1908145914664476 0.1805065615274461 0.1709857291925137 0.1621760514780416 0.1540102557882918 0.1464286718238028 0.1393782396389199 0.1328116641066924 0.1266866916378444 0.1209654894250167 0.1156141110115064 0.110602034815449 0.1059017645269727 0.1014884821525475 0.09733974599613471 0.09343522710945686 0.08975647876732658 0.08628673437060547 0.08301072988231839 0.07991454748821905 0.07698547766289407 0.07421189723335345 0.07158316137775766 0.06908950778865892 0.06672197147699481 0.06447230890252355 0.06233293029455254 0.06029683917873015 0.05835757825551668 0.05650918088718303 0.05474612754568155 # name: Raumwinkel5 # type: matrix # rows: 1 # columns: 60 2.403846951446598 3.212404777265075 3.796347071119302 4.22351737801305 4.544327544474275 4.792027890056813 4.988123578345917 5.146718879921973 5.277300028442774 5.386428365888503 5.478768647378568 5.557723499226044 5.625833603323272 5.685036211176126 5.736836175686552 5.782421754174069 5.822744769797265 5.858577275671017 5.890552406511061 5.919194377585127 5.944940893340812 5.968160151161913 5.989163930316193 6.008217799464338 6.025549171223355 6.0413537254949 6.055800580838338 6.069036493580477 6.081189293702446 6.092370715713138 6.10267874565214 6.112199577987073 6.121009255701544 6.129175051391295 6.136756635355783 6.143807067540666 6.150373643072894 6.156498615541742 6.162219817754569 6.16757119616808 6.172583272364137 6.177283542652614 6.181696825027038 6.185845561183451 6.189750080070129 6.19342882841226 6.196898572808981 6.200174577297268 6.203270759691367 6.206199829516692 6.208973409946233 6.211602145801828 6.214095799390927 6.216463335702591 6.218712998277063 6.220852376885034 6.222888468000856 6.22482772892407 6.226676126292404 6.228439179633905 # name: T # type: matrix # rows: 60 # columns: 4 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.944065423849259 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.25242523644739 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.943523757933359 0.09090909090909091 0.2307692307692308 0.3333333333333334 1.788310266558891 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.71064191909511 0.09090909090909091 0.2307692307692308 0.3333333333333334 1.678172050570011 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.674978804080903 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.692404876304324 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.725386728126261 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.770790367715825 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.826585783640019 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.891408065417926 0.09090909090909093 0.2307692307692308 0.3333333333333334 1.964310732871934 0.0909090909090909 0.2307692307692308 0.3333333333333334 2.044620492807503 0.09090909090909093 0.2307692307692308 0.3333333333333334 2.131848224160917 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.225632471141907 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.325702432810105 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.431853034252604 0.09090909090909091 0.2307692307692307 0.3333333333333333 2.54392770927702 0.0909090909090909 0.2307692307692308 0.3333333333333333 2.661806239869692 0.09090909090909093 0.2307692307692308 0.3333333333333334 2.785395994529186 0.09090909090909091 0.2307692307692308 0.3333333333333333 2.914625503403123 0.09090909090909091 0.2307692307692308 0.3333333333333333 3.04943967356425 0.09090909090909091 0.2307692307692308 0.3333333333333333 3.189796177280724 0.09090909090909091 0.2307692307692308 0.3333333333333333 3.335662693557737 0.09090909090909091 0.2307692307692308 0.3333333333333333 3.487014779927041 0.09090909090909093 0.2307692307692308 0.3333333333333334 3.643834216155689 0.09090909090909091 0.2307692307692308 0.3333333333333334 3.806107705640899 0.09090909090909091 0.2307692307692308 0.3333333333333334 3.973825850843271 0.0909090909090909 0.2307692307692308 0.3333333333333334 4.146982340675073 0.09090909090909091 0.2307692307692308 0.3333333333333333 4.325573303198673 0.09090909090909091 0.2307692307692308 0.3333333333333333 4.509596788200456 0.09090909090909093 0.2307692307692308 0.3333333333333333 4.699052352453229 0.09090909090909091 0.2307692307692308 0.3333333333333333 4.893940726621767 0.09090909090909091 0.2307692307692308 0.3333333333333333 5.094263547390398 0.09090909090909093 0.2307692307692308 0.3333333333333334 5.300023141908705 0.09090909090909091 0.2307692307692308 0.3333333333333333 5.511222354351175 0.09090909090909093 0.2307692307692308 0.3333333333333334 5.727864406476341 0.09090909090909091 0.2307692307692308 0.3333333333333334 5.94995278570085 0.09090909090909091 0.2307692307692307 0.3333333333333333 6.177491155483575 0.09090909090909091 0.2307692307692308 0.3333333333333334 6.410483283826119 0.09090909090909091 0.2307692307692308 0.3333333333333333 6.648932986499323 0.09090909090909091 0.2307692307692308 0.3333333333333333 6.892844082246858 0.09090909090909091 0.2307692307692307 0.3333333333333333 7.142220357731296 0.09090909090909091 0.2307692307692308 0.3333333333333333 7.397065540402379 0.09090909090909093 0.2307692307692308 0.3333333333333333 7.657383277801835 0.09090909090909093 0.2307692307692308 0.3333333333333334 7.923177122090487 0.09090909090909091 0.2307692307692308 0.3333333333333333 8.194450518804086 0.09090909090909093 0.2307692307692308 0.3333333333333334 8.471206799023985 0.09090909090909091 0.2307692307692308 0.3333333333333333 8.753449174295817 0.09090909090909091 0.2307692307692308 0.3333333333333334 9.041180733749473 0.09090909090909091 0.2307692307692308 0.3333333333333333 9.33440444297227 0.09090909090909091 0.2307692307692308 0.3333333333333333 9.633123144268257 0.09090909090909093 0.2307692307692308 0.3333333333333334 9.937339558002913 0.0909090909090909 0.2307692307692308 0.3333333333333333 10.24705628478756 0.0909090909090909 0.2307692307692308 0.3333333333333333 10.56227580830265 0.09090909090909091 0.2307692307692308 0.3333333333333333 10.88300049859642 0.09090909090909091 0.2307692307692308 0.3333333333333333 11.209232615726 0.09090909090909091 0.2307692307692308 0.3333333333333333 11.54097431363334 0.09090909090909091 0.2307692307692308 0.3333333333333333 11.87822764416903 # name: Td # type: matrix # rows: 3 # columns: 4 0.09090909090909091 0.2307692307692308 0.3333333333333333 1.943523757933359 0.09090909090909091 0.2307692307692307 0.3333333333333333 2.54392770927702 0.09090909090909091 0.2307692307692308 0.3333333333333334 5.94995278570085 # name: Term1 # type: scalar 53.12552052349793 # name: Term2 # type: scalar 327.6073765615706 # name: Z # type: matrix # rows: 60 # columns: 11 0.3396663647143194 1.872659005091005 0.06609116364818111 0.3643758276354644 0.003025669158235568 0.9196736819740499 0.3911530921402186 1.929430645602345 0.003025669158235568 1.17041418610213 1.388421296074558 0.4439659012066646 2.187629278233767 0.1403273907529214 0.6914592037696632 0.006764449117822121 1.642406510150779 0.5395280516311192 2.281805230752338 0.006764449117822121 1.678403161492525 2.004372053061428 0.5145293418297842 2.257120552868472 0.2316831566921446 1.016340123312702 0.01191962885178428 2.293781001163168 0.6522767092139536 2.377973685527791 0.01191962885178428 2.114809114259414 2.547513507779299 0.5591870821858133 2.195561670060707 0.3323410960592397 1.304885958812555 0.01841584632997929 2.839021637957301 0.7319519382491982 2.331228572244359 0.01841584632997929 2.47907844546679 3.016921766239213 0.5845758769485651 2.072007811100195 0.435903501978848 1.545044016699258 0.02616124381116441 3.286694856487916 0.7833281570486985 2.212901848326327 0.02616124381116441 2.777291099840479 3.418337008360007 0.5958864585191596 1.924174281487524 0.5376218105473567 1.736032168934949 0.03505072673658102 3.65475951709441 0.8117612582398511 2.063590350339329 0.03505072673658102 3.018249072920644 3.760256841136807 0.5970224802628002 1.771655059995828 0.6342095085247677 1.882006996421274 0.04496944950667135 3.95999411388032 0.8222776222470656 1.905343296295016 0.04496944950667135 3.211093905380862 4.051557147308003 0.59087515877624 1.624177367403731 0.7235361394329969 1.988831320307316 0.05579632320501984 4.21580996484021 0.8192052948460693 1.749702576508442 0.05579632320501984 3.364179938085453 4.300367203215171 0.5795802087141252 1.486215277992787 0.8043377993905899 2.062560294758143 0.06740736551641145 4.432448547773842 0.8061011796042598 1.602388647152372 0.06740736551641145 3.484692583638192 4.513688415272607 0.5647195841086023 1.359479136680674 0.875983366027681 2.108800799026162 0.07967875008332655 4.617659534519125 0.785808778895936 1.465927064507844 0.07967875008332655 3.57862871342273 4.697373938907504 0.5474694968922843 1.244247692157568 0.9382964123221047 2.132489850518936 0.09248945516207062 4.777338948956204 0.7605599229956216 1.34110688610536 0.09248945516207062 3.650921522705664 4.856251753123212 0.5287066383419697 1.140082013171326 0.9914219177037394 2.137862878708119 0.1057234540786519 4.91602411575453 0.7320816885752639 1.22779199064614 0.1057234540786519 3.705604346056929 4.994285894473044 0.5090844250175953 1.046209234027632 1.035726608587468 2.128501066978979 0.1192714283550426 5.037254542869507 0.7016935240837745 1.125374656538373 0.1192714283550426 3.745968877840663 5.114731536418408 0.4890883190879511 0.961728543628283 1.071724185121496 2.107406166743385 0.1330320157808068 5.143829943301724 0.6703901967614568 1.033029854237036 0.1330320157808068 3.774702500293127 5.220268831301885 0.4690765452562151 0.8857204390075729 1.100019131562262 2.077079824129507 0.1469126289705338 5.237994376683315 0.6389104743220831 0.9498572557944526 0.1469126289705338 3.794002061400085 5.313113044661993 0.4493104827352421 0.817302810407508 1.121264633989282 2.039597943478176 0.1608298951322911 5.321568552966099 0.6077929967283573 0.8749592457964616 0.1608298951322911 3.805666215467475 5.395103249491193 0.4299776213381339 0.7556576258084956 1.136131369923879 1.996676782692577 0.1747097757757127 5.396045953866748 0.5774212012210151 0.8074821208453596 0.1747097757757127 3.811169772349023 5.467773146858594 0.4112090598876736 0.7000413760700592 1.145284758175185 1.949730189125764 0.1884874272681063 5.462663604046369 0.5480591312240106 0.7466360266255426 0.1884874272681063 3.811723473690563 5.532407519062524 0.3930929311997621 0.6497866668097021 1.149368814375455 1.899918496495463 0.2021068610056684 5.522454926517018 0.5198797721083549 0.6917026577678099 0.2021068610056684 3.808322138555997 5.590087316371948 0.3756847455767309 0.6042991442374396 1.148995151213458 1.848189991172923 0.215520456931876 5.576289790402955 0.492987328043119 0.6420360239142867 0.215520456931876 3.801783567643604 5.641725800698078 0.35901537948791 0.5630521401984095 1.14473595525576 1.795315929050699 0.2286883774295874 5.624905282505572 0.4674346289191046 0.5970594245203309 0.2286883774295874 3.792780097804664 5.688097652324435 0.3430972517163518 0.5255803911521829 1.137120000630951 1.741920029172015 0.2415779212014312 5.668929666807125 0.443236651394196 0.5562604998322361 0.2415779212014312 3.781864290792631 5.729862522973438 0.3279290974893033 0.4914735892140745 1.126630943964627 1.688503270948677 0.2541628493365985 5.708901270699903 0.4203809589164296 0.5191854626117037 0.2541628493365985 3.769489919054661 5.767584186464619 0.313499654655832 0.4603701751781046 1.113707296179923 1.635464713995806 0.2664227088088226 5.745283540269191 0.3988357127270283 0.4854331539851306 0.2664227088088226 3.756029162657808 5.801746182119798 0.2997905039773144 0.4319515797013251 1.098743591871665 1.583118957735858 0.2783421724361666 5.778477164017969 0.3785557777655151 0.4546492862577645 0.2783421724361666 3.741786739658675 5.832764649763998 0.2867782510577495 0.4059370002304142 1.082092380344875 1.531710766870294 0.2899104089884778 5.808829924981858 0.3594873415709695 0.4265210647356926 0.2899104089884778 3.727011544053823 5.860998904697524 0.2744361956881282 0.382078733326818 1.064066747355331 1.481427309489188 0.3011204926799345 5.836644772035811 0.3415713778292201 0.4007722772231075 0.3011204926799345 3.711906250364141 5.886760185285544 0.2627356021790805 0.3601580444492214 1.044943145790618 1.432408386329197 0.3119688576911746 5.862186480211483 0.3247462162768281 0.3771588782329258 0.3119688576911746 3.696635253913978 5.910318916354699 0.25164665929882 0.3399815378060956 1.024964369330779 1.38475497132565 0.322454800547291 5.88568718219793 0.30894942453956 0.3554650592654086 0.322454800547291 3.681331244988329 5.931910762039584 0.241139199024709 0.3213779802325415 1.004342547622628 1.33853633387698 0.3325800310342524 5.907350988879268 0.2941191627331032 0.3354997769360732 0.3325800310342524 3.666100658840555 5.951741687335486 0.2311832281886243 0.30419553068898 0.9832620765608658 1.293795970967841 0.3423482707613237 5.927357868958345 0.2801951361804841 0.3170937010956141 0.3423482707613237 3.651028198658301 5.969992204839665 0.221749315286134 0.2882993281838718 0.961882424543495 1.250556541425784 0.3517648973687668 5.945866921743735 0.2671192436154523 0.3000965414832364 0.3517648973687668 3.636180592581822 5.986820949340471 0.2128088654892153 0.2735693940175758 0.9403407764958293 1.208823964192495 0.3608366316452705 5.963019149788876 0.254835996253045 0.2843747114266298 0.3608366316452705 3.621609716815268 6.002367696034143 0.204334309682228 0.2598988082194861 0.9187544932676699 1.168590816774289 0.3695712643765143 5.978939816986006 0.2432927658928012 0.2698092890926644 0.3695712643765143 3.607355193330522 6.016755916688043 0.1962992276895967 0.2471921243056742 0.8972233757410769 1.129839148307047 0.3779774195255787 5.993740461315164 0.2324399067819307 0.2562942398298477 0.3779774195255787 3.59344655151691 6.03009495086014 0.1886784214379616 0.2353639906741135 0.8758317315062323 1.092542803333264 0.3860643502901172 6.007520618567644 0.2222307855047652 0.2437348666260413 0.3860643502901172 3.579905027506959 6.042481855429642 0.1814479503282041 0.2243379508915931 0.8546502479806402 1.056669336931972 0.3938417646437629 6.020369303159335 0.2126217450417843 0.2320464592708941 0.3938417646437629 3.566745062123824 6.05400298449706 0.174585138375365 0.2140453987197187 0.833737679939082 1.022181588827583 0.4013196771132724 6.032366284002079 0.2035720228489045 0.2211531162522858 0.4013196771132724 3.553975547907963 6.064735342631549 0.1680685605444194 0.2044246669442432 0.8131423620515165 0.9890389731558628 0.4085082837397251 6.04358318684899 0.1950436379445643 0.2109867166166594 0.4085082837397251 3.541600867057593 6.074747747054186 0.1618780140401059 0.1954202319137411 0.7929035585614262 0.9571985313639643 0.4154178573998551 6.054084449226149 0.1870012582428765 0.2014860219317909 0.4154178573998551 3.52962175501368 6.084101828313721 0.1559944790002083 0.1869820181805362 0.7730526629673901 0.9266157879939291 0.4220586609060531 6.063928149744854 0.1794120564881695 0.1925958910915028 0.4220586609060531 3.518036018557588 6.092852894071653 0.1504000720161419 0.1790647897985301 0.7536142607212146 0.8972454426134563 0.4284408755488935 6.073166730053942 0.1722455609358996 0.1842665930011811 0.4284408755488935 3.506839132443318 6.101050676556464 0.1450779951015562 0.1716276167025969 0.734607067700324 0.8690419257174963 0.4345745429859666 6.081847624784235 0.1654735052359016 0.1764532041989516 0.4345745429859666 3.496024734574293 6.108739980905066 0.1400124821012449 0.1646334062063135 0.7160447566825169 0.8419598418630249 0.440469518609712 6.090013812435108 0.1590696806883788 0.1691150802243218 0.440469518609712 3.485585036408705 6.115961248849146 0.1351887440415463 0.1580484910412151 0.6979366833471745 0.8159543194767116 0.4461354347413616 6.097704298160549 0.1530097930691157 0.1622153910705744 0.4461354347413616 3.475511162516642 6.12275104991781 0.1305929145402612 0.1518422665511851 0.6802885225222984 0.7909812835726004 0.4515816721960144 6.10495453775285 0.147271325486823 0.1557207123757743 0.4515816721960144 3.465793430917822 6.129142510429174 0.1262119960958484 0.1459868706767045 0.6631028245452909 0.7669976649346024 0.456817338944446 6.111796810735759 0.1418334081868923 0.1496006651451651 0.456817338944446 3.456421583919732 6.135165688962531 0.1220338078441338 0.1404569012391319 0.6463795007455775 0.743961557072606 0.4618512547604371 6.118260549316727 0.1366766958092008 0.1438275977782286 0.4618512547604371 3.447384977585959 6.140847905683 0.118046935191715 0.1352291657856566 0.6301162462157512 0.7218323303807875 0.4666919408886958 6.124372628970764 0.1317832523096841 0.1383763050177145 0.4666919408886958 3.4386727366388 6.146214031786013 0.1142406815974283 0.1302824598990269 0.6143089072327546 0.7005707113530391 0.4713476138987119 6.130157625604489 0.1271364435404334 0.1332237791641332 0.4713476138987119 3.430273880493829 6.151286744402479 0.1106050226677959 0.1255973704280939 0.5989517999329073 0.6801388333935957 0.4758261830051861 6.135638043552211 0.1227208373311733 0.1283489895238827 0.4758261830051861 3.422177425199959 6.156086751526241 0.107130562652327 0.121156100568961 0.5840379861407268 0.6605002646592785 0.4801352502372517 6.14083451806542 0.1185221108107651 0.1237326865966084 0.4801352502372517 3.414372465285854 6.160632990868638 0.1038084933643772 0.1169423141334758 0.5695595116042748 0.6416200174483259 0.4842821129277485 6.145765995455188 0.1145269646390338 0.1193572279699223 0.4842821129277485 3.406848238867036 6.164942805990105 0.1006305555086585 0.1129409966916985 0.555507611299536 0.6234645428802784 0.4882737680716008 6.150449893619547 0.1107230437776178 0.1152064232878927 0.4882737680716008 3.399594178826712 6.169032102588814 0.09758900236398295 0.1091383315761386 0.5418728859316988 0.606001713967303 0.4921169181700228 6.154902245322996 0.1070988644067107 0.1112653960029097 0.4921169181700228 3.392599952429654 6.172915487427609 0.0946765657467431 0.1055215889950351 0.5286454532796271 0.5892007996391208 0.4958179782359986 6.15913782628313 0.1036437465871602 0.1075204599165212 0.4958179782359986 3.38585549134812 6.176606392041298 0.09188642416482201 0.1020790267258208 0.5158150775980387 0.5730324318341427 0.499383083687248 6.163170269851667 0.1003477522703259 0.1039590087703246 0.499383083687248 3.379351013759587 6.180117183077257 0.08921217306143232 0.0987998010532613 0.5033712799063502 0.5574685673941192 0.5028180988966747 6.167012169847259 0.09720162826829458 0.10056941736878 0.5028180988966747 3.373077039908158 6.183459260875424 0.08664779704246472 0.09567388678398943 0.4913034316499624 0.5424824461864579 0.5061286262079527 6.170675172899465 0.09419675381215824 0.09734095290678289 0.5061286262079527 3.367024402296409 6.186643147682386 0.08418764397825763 0.09269200531397111 0.4796008339152216 0.5280485466173127 0.5093200152561965 6.174170061492645 0.09132509234432928 0.09426369534023428 0.5093200152561965 3.361184251485308 6.18967856671303 # name: Zd # type: matrix # rows: 3 # columns: 11 0.5145293418297842 2.257120552868472 0.2316831566921446 1.016340123312702 0.01191962885178428 2.293781001163168 0.6522767092139536 2.377973685527791 0.01191962885178428 2.114809114259414 2.547513507779299 0.3930929311997621 0.6497866668097021 1.149368814375455 1.899918496495463 0.2021068610056684 5.522454926517018 0.5198797721083549 0.6917026577678099 0.2021068610056684 3.808322138555997 5.590087316371948 0.1680685605444194 0.2044246669442432 0.8131423620515165 0.9890389731558628 0.4085082837397251 6.04358318684899 0.1950436379445643 0.2109867166166594 0.4085082837397251 3.541600867057593 6.074747747054186 # name: a # type: scalar 17.85365853658537 # name: ans # type: matrix # rows: 1 # columns: 2 60 4 # name: b # type: scalar 2.975609756097561 # name: d # type: matrix # rows: 1 # columns: 3 2 10 20 # name: dn # type: scalar 0.5 # name: grh # type: matrix # rows: 1 # columns: 60 5.84717108723473 5.631247524041779 5.417776520139815 5.20749866563474 5.001093490140529 4.79916977074726 4.602258823325305 4.410810776920151 4.225193643910757 4.045694856210037 3.872524846344491 3.705822210347358 3.545659990024096 3.392052645162071 3.244963340655771 3.104311239132151 2.969978558160446 2.841817216435665 2.719654951547685 2.603300841070638 2.492550198140043 2.387188842817972 2.28699677235967 2.191751268255606 2.101229486968942 2.015210585892183 1.933477437336781 1.855817982298142 1.782026273077078 1.711903250189725 1.645257294816859 1.581904593662289 1.521669348741836 1.464383860464546 1.409888508493125 1.35803165133422 1.308669462433113 1.261665717732414 1.2168915471864 1.174225160579504 1.133551556151457 1.094762218953294 1.05775481451804 1.022432882298705 0.9887055323772495 0.9564871481568825 0.9256970970939865 0.8962594509855046 0.8681027168851614 0.8411595793622849 0.8153666545270221 0.7906642560140171 0.7669961729334495 0.7443094596553839 0.7225542371836757 0.7016835057932292 0.6816529685442466 0.6624208652450562 0.6439478164076308 0.6261966767241415 # name: ii # type: scalar 11 # name: m # type: scalar 30 # name: n # type: scalar 60 -------------- next part -------------- A non-text attachment was scrubbed... Name: exhausted.m Type: text/x-objcsrc Size: 54 bytes Desc: not available URL: From jordigh at octave.org Sat Apr 9 17:11:39 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Sat, 9 Apr 2011 17:11:39 -0500 Subject: Physicalconstants package from Octave-Forge is outdated In-Reply-To: References: Message-ID: On 9 April 2011 16:36, Pablo wrote: > ?I just found out that the Physical Constants package from > Octave-Forge was removed from Debian testing. The reason was that the > values from the NIST database were outdated (see > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620639). [snip] > ?Is it possible to update the package? Thanks for volunteering! What kind of help do you need in order to get working with 'Forge packages? - Jordi G. H. From tweber at debian.org Sat Apr 9 17:14:48 2011 From: tweber at debian.org (Thomas Weber) Date: Sun, 10 Apr 2011 00:14:48 +0200 Subject: Physicalconstants package from Octave-Forge is outdated In-Reply-To: References: Message-ID: <20110409221448.GA9831@atlan> On Sat, Apr 09, 2011 at 06:36:48PM -0300, Pablo wrote: > Hi everyone! > I just found out that the Physical Constants package from > Octave-Forge was removed from Debian testing. The reason was that the > values from the NIST database were outdated (see > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620639). As the > report states, "The > latest update to that database is from 2006. Despite that, the package > still ships the values from 2002." I checked and that's true (you can > see, for example, the gravitational constant). Actually, the reason is "no one cares for it upstream." The fact that it ships outdated values just follows from that. > Is it possible to update the package? Supposedly, the package is > automatically generated so it shouldn't be a big deal. By the way, the > generating script is not included in the package. I believe it should > be accessible just in case the original creator is unavailable. The generating Python script is in the SVN repository. I don't know how much work generating the corresponding .m file is. Personally, I'd prefer if this one .m file would just be put into the 'miscellaneous' package - I don't foresee NIST update more often than once every few years, so the occasional relesaed miscellaneous package should suffice. Thomas From rmcd1024 at gmail.com Sat Apr 9 17:15:57 2011 From: rmcd1024 at gmail.com (Robert McDonald) Date: Sat, 9 Apr 2011 17:15:57 -0500 Subject: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <201104100002.52267.martin@mhelm.de> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <1302372647.2572.17.camel@linux-uhdl> <201104092152.13684.martin@mhelm.de> <201104100002.52267.martin@mhelm.de> Message-ID: > I reduced it to the absolute minimum to get the error by saving the variables > T and R > > load T > load R > plot(R, T(:,1), "-r", R, T(:,2), "-b") > > gives the error on ubuntu 10.10 32bit (but not on my opensuse), can someone > confirm? Since I am too tired now and cannot directly see the error I stop with > that at the moment. Wow, nice job creating a test case! I can confirm that your script *does* give the error on 10.04 32-bit. It does *not* give the error on 10.04 64-bit. I just checked and Pyramide.m gives a different error on 64-bit 10.04, causing a segfault. The preceding error is "warning: ft_render: skipping missing glyph for character '?'" Bob From forkandwait at gmail.com Sat Apr 9 22:27:24 2011 From: forkandwait at gmail.com (fork) Date: Sun, 10 Apr 2011 03:27:24 +0000 (UTC) Subject: Running batch octave jobs via webserver? Message-ID: Has anyone had call to set up a system for running batch jobs with user submitted form data? Any advice? I am thinking of hacking together a queuing system using cgi (for simplicity) to create a "load/ save" compatible input file, but I was hoping either to find a solution implemented by someone else, or at least not make the same mistakes as other people. Responders: feel free to ramble ... ;) Thanks! From gkousiou at mail.ntua.gr Sun Apr 10 02:43:42 2011 From: gkousiou at mail.ntua.gr (George Kousiouris) Date: Sun, 10 Apr 2011 10:43:42 +0300 Subject: Running batch octave jobs via webserver? In-Reply-To: References: Message-ID: <4DA15FAE.80807@mail.ntua.gr> Hi, we have released a service-based implementation of octave for incorporating octave-created models in service oriented infrastructures like Grids or clouds. Now, this solution is not finalized yet, however a first version is available at: http://irmosproject.eu/Service_Engineering.aspx (it is the Mapping Service package) Most important features are the paper describing the approach: http://irmosproject.eu/Files/MappingService_Conference_presentation.pdf and http://www.computer.org/portal/web/csdl/doi/10.1109/SCC.2010.37 and the source code: http://irmosserviceeng.svn.sourceforge.net/viewvc/irmosserviceeng/trunk/Mapping/src/ Now this is not exactly what you are looking for given that in this approach we had a specific model that was run for performance estimation purposes. However if you take a look at the code, it uses an ftp server in order to obtain some necessary files. I guess you can modify it so that the user uploads through the web page his script to the ftp server and then this replaces the createmodel.sh script (which in turn invokes a createmodel.m octave script). On the other hand, it has solved some difficult problems like having a stable execution of Octave threads through java for as long as needed (the time out periods are configured in the client and server and can be set to whatever interval, without the computer hanging after some time or the calls time out). Furthermore, in the related work of the paper as far as i can remember some other solutions are mentioned which are probably closer to what you look for (user submitted scripts on an octave server). This is just a preliminary version of the code, we plan to update it in the next months with some modifications (bug fixing, RESTful implementation etc.) Hope it helps, George On 4/10/2011 6:27 AM, fork wrote: > Has anyone had call to set up a system for running batch jobs with user > submitted form data? Any advice? > > I am thinking of hacking together a queuing system using cgi (for simplicity) to > create a "load/ save" compatible input file, but I was hoping either to find a > solution implemented by someone else, or at least not make the same mistakes as > other people. > > Responders: feel free to ramble ... ;) > > Thanks! > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > > -- --------------------------- George Kousiouris Electrical and Computer Engineer Division of Communications, Electronics and Information Engineering School of Electrical and Computer Engineering Tel: +30 210 772 2546 Mobile: +30 6939354121 Fax: +30 210 772 2569 Email: gkousiou at mail.ntua.gr National Technical University of Athens 9 Heroon Polytechniou str., 157 73 Zografou, Athens, Greece From nuncio.m at gmail.com Sun Apr 10 04:03:56 2011 From: nuncio.m at gmail.com (nuncio m) Date: Sun, 10 Apr 2011 14:33:56 +0530 Subject: memory In-Reply-To: <1302372961.2572.22.camel@linux-uhdl> References: <1302099735.2678.8.camel@linux-uhdl> <201104081833.14067.martin@mhelm.de> <1302372961.2572.22.camel@linux-uhdl> Message-ID: oh no, i have two such matrices nuncio On Sat, Apr 9, 2011 at 11:46 PM, Martin Helm wrote: > Am Samstag, den 09.04.2011, 10:41 +0530 schrieb nuncio m: > > HI martin, > > I arranged it as 348 rows and 30,000 columns. > > nuncio > > > I still do not understand, maybe my question was not clear or I am > blind. The different physical parameters (temp, pressure ...) where are > they located in that matrix? > From what I understood was that for example a(107, 4367) is a value > which corresponds to the time "107" and the gridpoint "4367", but this > is just a scalar, not a set of physical values. > Do you interleave the physical measurements in your matrix somehow (row > or columnwise) or is it simply that you have such a matrix for every > different type of measurements? > > -- Nuncio.M Research Scientist National Center for Antarctic and Ocean research Head land Sada Vasco da Gamma Goa-403804 -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at mhelm.de Sun Apr 10 09:18:12 2011 From: martin at mhelm.de (Martin Helm) Date: Sun, 10 Apr 2011 16:18:12 +0200 Subject: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <1302372647.2572.17.camel@linux-uhdl> <201104092152.13684.martin@mhelm.de> <201104100002.52267.martin@mhelm.de> Message-ID: <1302445092.30394.6.camel@linux-uhdl> Am Samstag, den 09.04.2011, 17:15 -0500 schrieb Robert McDonald: > > I reduced it to the absolute minimum to get the error by saving the variables > > T and R > > > > load T > > load R > > plot(R, T(:,1), "-r", R, T(:,2), "-b") > > > > gives the error on ubuntu 10.10 32bit (but not on my opensuse), can someone > > confirm? Since I am too tired now and cannot directly see the error I stop with > > that at the moment. > > Wow, nice job creating a test case! > > I can confirm that your script *does* give the error on 10.04 32-bit. > It does *not* give the error on 10.04 64-bit. > > I just checked and Pyramide.m gives a different error on 64-bit 10.04, > causing a segfault. The preceding error is "warning: ft_render: > skipping missing glyph for character '?'" > > Bob I think the segfault you see is probably unrelated, I cannot see it with 64 bit openSUSE, so it seems to be something different. The error for 32bit versions exists also on openSUSE 32bit, I made a virtual machine for it and tested quickly with the octave 3.4 from the packman repository and then with one I compiled myself, so it is not ubuntu specific. It is clear that this has nothing to do with memory (the matrices are a few kilobyte in size and the plot command is invoked on ridiculous small vectors). I will try to find out where this message really comes from. But I have to say that I am really not good in understanding the source code of the plot internals. From lists at juliensalort.org Sun Apr 10 11:53:44 2011 From: lists at juliensalort.org (Julien Salort) Date: Sun, 10 Apr 2011 18:53:44 +0200 Subject: Octave 3.4.0 for Mac OS X In-Reply-To: <19871.24537.790958.474362@coredump.lan> References: <053EE289-86E3-49B3-A0C7-D1D1D61A4AF0@mac.com> <19871.24537.790958.474362@coredump.lan> Message-ID: Le 8 avr. 2011 ? 21:19, John W. Eaton a ?crit : > As I recall, there is a problem with some versions of flex on OS X > that can result in errors like this. > > What version of flex do you have? I wanted to do some additionnal tests but I can't bootstrap anymore. It says "Cloning into gnulib" and then nothing happens. Am I the only one to have this problem ? From bpabbott at mac.com Sun Apr 10 12:11:58 2011 From: bpabbott at mac.com (Ben Abbott) Date: Sun, 10 Apr 2011 13:11:58 -0400 Subject: Octave 3.4.0 for Mac OS X In-Reply-To: References: <053EE289-86E3-49B3-A0C7-D1D1D61A4AF0@mac.com> <19871.24537.790958.474362@coredump.lan> Message-ID: <0A49553A-87C7-4C15-A685-FF20B0A04104@mac.com> On Apr 10, 2011, at 12:53 PM, Julien Salort wrote: > Le 8 avr. 2011 ? 21:19, John W. Eaton a ?crit : > >> As I recall, there is a problem with some versions of flex on OS X >> that can result in errors like this. >> >> What version of flex do you have? > > I wanted to do some additionnal tests but I can't bootstrap anymore. It says "Cloning into gnulib" and then > nothing happens. > > Am I the only one to have this problem ? I'm able to pull. What happens if the cd into the gnulib directory, and type ... git pull Ben From jwe at octave.org Sun Apr 10 12:28:16 2011 From: jwe at octave.org (John W. Eaton) Date: Sun, 10 Apr 2011 13:28:16 -0400 Subject: Octave 3.4.0 for Mac OS X In-Reply-To: References: <053EE289-86E3-49B3-A0C7-D1D1D61A4AF0@mac.com> <19871.24537.790958.474362@coredump.lan> Message-ID: <19873.59568.411386.7277@coredump.lan> On 10-Apr-2011, Julien Salort wrote: | Le 8 avr. 2011 ? 21:19, John W. Eaton a ?crit : | | > As I recall, there is a problem with some versions of flex on OS X | > that can result in errors like this. | > | > What version of flex do you have? | | I wanted to do some additionnal tests but I can't bootstrap anymore. It says "Cloning into gnulib" and then | nothing happens. | | Am I the only one to have this problem ? I see the same problem when trying to clone gnulib. The command that the bootstrap script runs to do that is git clone --depth 2 git://git.sv.gnu.org/gnulib gnulib If I omit the --depth 2 argument, it seems to work. I guess someone should report this to the gnulib maintainers, or the savannah hackers. How git on savannah responds to remote commands is beyond my control. Once the gnulib sources are checked out, subsequent runs of autogen.sh appear to work, and "git pull" in the gnulib subdirectory works OK. It's the --depth option that seems to be causing trouble. jwe From forkandwait at gmail.com Sun Apr 10 16:14:50 2011 From: forkandwait at gmail.com (fork) Date: Sun, 10 Apr 2011 21:14:50 +0000 (UTC) Subject: Running batch octave jobs via webserver? References: <4DA15FAE.80807@mail.ntua.gr> Message-ID: George Kousiouris mail.ntua.gr> writes: > > > Hi, > > we have released a service-based implementation of octave for > incorporating octave-created models in service oriented infrastructures > like Grids or clouds. Now, this solution is not finalized yet, however a > first version is available at: > http://irmosproject.eu/Service_Engineering.aspx (it is the Mapping > Service package) > > Most important features are the paper describing the approach: > http://irmosproject.eu/Files/MappingService_Conference_presentation.pdf > and http://www.computer.org/portal/web/csdl/doi/10.1109/SCC.2010.37 > > and the source code: > http://irmosserviceeng.svn.sourceforge.net/viewvc/irmosserviceeng/trunk/Mapping/src/ Thanks for the links! I think we might be shooting for something simpler, but it is great to have all the viewpoints possible. F From zzpwelkin at gmail.com Mon Apr 11 02:18:35 2011 From: zzpwelkin at gmail.com (welkin zzp) Date: Mon, 11 Apr 2011 15:18:35 +0800 Subject: canny method of edge In-Reply-To: References: Message-ID: <4DA2AB4B.1090000@gmail.com> Hello, Recently I've used the `edge' function and found the canny method is more better than I've experimented, so I want to known if I can found the corresponding literature? Thanks. From soren at hauberg.org Mon Apr 11 02:34:20 2011 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Mon, 11 Apr 2011 09:34:20 +0200 Subject: canny method of edge In-Reply-To: <4DA2AB4B.1090000@gmail.com> References: <4DA2AB4B.1090000@gmail.com> Message-ID: <1302507260.1827.88.camel@hauberg-laptop> man, 11 04 2011 kl. 15:18 +0800, skrev welkin zzp: > Recently I've used the `edge' function and found the canny method > is more better than I've experimented, so I want to known if I can > found the corresponding literature? You can find this in practically any book on image processing. Also, the Wikipedia page seems fairly good and it includes a reference to the original paper: http://en.wikipedia.org/wiki/Canny_edge_detector S?ren From lists at juliensalort.org Mon Apr 11 08:34:32 2011 From: lists at juliensalort.org (Julien Salort) Date: Mon, 11 Apr 2011 15:34:32 +0200 Subject: Octave 3.4.0 for Mac OS X In-Reply-To: <19871.24537.790958.474362@coredump.lan> References: <053EE289-86E3-49B3-A0C7-D1D1D61A4AF0@mac.com> <19871.24537.790958.474362@coredump.lan> Message-ID: <53DA4BE0-12ED-495E-AB24-26E99A5594BA@juliensalort.org> Le 8 avr. 2011 ? 21:19, John W. Eaton a ?crit : > As I recall, there is a problem with some versions of flex on OS X > that can result in errors like this. > > What version of flex do you have? You seem to be right. I have compiled my own flex from source and everything is now fine. I get a new executable form the mercurial tree: http://upload.grenoble.cnrs.fr/telechargement/9BDmu36okG/octave-3.5.0%2B-i386.dmg There is still the "no resize in fltk" issue. However, the GUI menu in the fltk window no longer crashes octave. Julien -------------- next part -------------- An HTML attachment was scrubbed... URL: From Potorti at isti.cnr.it Mon Apr 11 08:51:21 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Mon, 11 Apr 2011 15:51:21 +0200 Subject: Running batch octave jobs via webserver? In-Reply-To: References: Message-ID: >Has anyone had call to set up a system for running batch jobs with user >submitted form data? Any advice? Have a look at . >I am thinking of hacking together a queuing system using cgi (for simplicity) to >create a "load/ save" compatible input file, but I was hoping either to find a >solution implemented by someone else, or at least not make the same mistakes as >other people. I used a quick hack that works for very low loads. Temporary files are created with the process number of the cgi. When the cgi starts, it deletes temporary files that are older than 2 minutes. Ulimit and timeout are used as a guard against excessive resource consumption. Adding one more check at the beginning of the cgi that bails out if the load average is too high would make it more robust. A limit on the number of concurrent cgi issues would complete it (maybe Apache implicitely provides it). I implemented none of these, but it would be simple to do. -- Francesco Potort? (ricercatore) Voice: +39 050 315 3058 (op.2111) ISTI - Area della ricerca CNR Fax: +39 050 315 2040 via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/ From jwe at octave.org Mon Apr 11 08:58:16 2011 From: jwe at octave.org (John W. Eaton) Date: Mon, 11 Apr 2011 09:58:16 -0400 Subject: Octave 3.4.0 for Mac OS X In-Reply-To: References: <053EE289-86E3-49B3-A0C7-D1D1D61A4AF0@mac.com> <19871.24537.790958.474362@coredump.lan> Message-ID: <19875.2296.876744.193137@coredump.lan> On 8-Apr-2011, Julien Salort wrote: | Is flex needed at compile time or at runtime ? It is needed to generate the C++ code for the lexer from the flex in put file, lex.ll. | Why does this problem araise only with the mercurial version ? In the tarballs, we include the generated code, so unless you modify lex.ll, you don't need to regenerate the lex.cc file. But we choose to not check in any generated files to the Mercurial archive, so you have to have all the tools to build Octave when you build the development sources from scratch. jwe From forkandwait at gmail.com Mon Apr 11 10:35:43 2011 From: forkandwait at gmail.com (fork) Date: Mon, 11 Apr 2011 15:35:43 +0000 (UTC) Subject: Running batch octave jobs via webserver? References: Message-ID: Francesco Potort? isti.cnr.it> writes: > > >Has anyone had call to set up a system for running batch jobs with user > >submitted form data? Any advice? > > Have a look at . That's a great example of the simplicity and power of Unix. Thanks! From Peter.VanWieren at avl.com Mon Apr 11 11:09:53 2011 From: Peter.VanWieren at avl.com (Van Wieren, Peter AVLNA) Date: Mon, 11 Apr 2011 12:09:53 -0400 Subject: ./configure fails for octave 3.4.0 with gcc 4.6. Error: gfortran generates correct size integers... no Message-ID: <96C4D3A06204D24FA24FD753CAE7B7D3D206A8@usplmms003.avl01.avlcorp.lan> Hello, I complied and installed the latest gcc (v4.6), and proceeded to use it to compile octave. The following error message occurs: checking for Fortran 77 libraries of /work/apps/x86_64-rhes5-linux/bin/gfortran... -L/work/apps/x86_64-rhes5-linux/lib -L/work/apps/x86_64-rhes5-linux/lib/gcc/x86_64-unknown-linux-gnu/4.6.0 -L/work/apps/x86_64-rhes5-linux/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/. ./../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/work/apps/x86_64-rhes5-linux/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/. ./../.. -lpthread -lgfortran -lm -lquadmath /work/apps/x86_64-rhes5-linux/lib/libgfortran.a /work/apps/x86_64-rhes5-linux/lib/libquadmath.a checking for dummy main to link with Fortran 77 libraries... none checking for Fortran 77 name-mangling scheme... lower case, underscore, no extra underscore configure: defining FFLAGS to be -O checking whether /work/apps/x86_64-rhes5-linux/bin/gfortran generates correct size integers... no configure: error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int). See the file INSTALL for more information. The INSTALL file, however, contains no helpful information about resolving this issue. Any tips for resolving would be much appreciated. Thank you, Peter Platform is redhat enterprise linux 5, x86-64 architecture. gcc 4.1.2 was included in the RHEL5 distribution, but gcc 4.1.2 is not apparently capable of compiling octave 3.4, thus requiring the use of a more recent version of gcc. "ITAR WARNING - technical data as defined in 22 ? CFR 120.10 of the International Traffic In Arms Regulations (ITAR) pursuant to the Arms Export Control Act (Title 22 U.S.C. Sec 2751 et seq.) must not be sent via e-mail to avl.com. Please contact an AVL representative for file transfer protocol regarding ITAR controlled technical data." From jwe at octave.org Mon Apr 11 11:37:17 2011 From: jwe at octave.org (John W. Eaton) Date: Mon, 11 Apr 2011 12:37:17 -0400 Subject: ./configure fails for octave 3.4.0 with gcc 4.6. Error: gfortran generates correct size integers... no In-Reply-To: <96C4D3A06204D24FA24FD753CAE7B7D3D206A8@usplmms003.avl01.avlcorp.lan> References: <96C4D3A06204D24FA24FD753CAE7B7D3D206A8@usplmms003.avl01.avlcorp.lan> Message-ID: <19875.11837.503632.146161@coredump.lan> On 11-Apr-2011, Van Wieren, Peter AVLNA wrote: | I complied and installed the latest gcc (v4.6), and proceeded to use it | to compile octave. The following error message occurs: | | checking for Fortran 77 libraries of | /work/apps/x86_64-rhes5-linux/bin/gfortran... | -L/work/apps/x86_64-rhes5-linux/lib | -L/work/apps/x86_64-rhes5-linux/lib/gcc/x86_64-unknown-linux-gnu/4.6.0 | -L/work/apps/x86_64-rhes5-linux/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/. | ./../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 | -L/work/apps/x86_64-rhes5-linux/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/. | ./../.. -lpthread -lgfortran -lm -lquadmath | /work/apps/x86_64-rhes5-linux/lib/libgfortran.a | /work/apps/x86_64-rhes5-linux/lib/libquadmath.a | checking for dummy main to link with Fortran 77 libraries... none | checking for Fortran 77 name-mangling scheme... lower case, underscore, | no extra underscore | configure: defining FFLAGS to be -O | checking whether /work/apps/x86_64-rhes5-linux/bin/gfortran generates | correct size integers... no | configure: error: your Fortran compiler must have an option to make | integers the same size as octave_idx_type (int). See the file INSTALL | for more information. To debug the problem, you need to look at the config.log file to see why this test failed. If you want help doing that, then post the relevant part of config.log here. There's no need to post the whole file, and it would be rejected for posting here anyway as it will probably be over the limit for postings sent to the list. jwe From Peter.VanWieren at avl.com Mon Apr 11 14:25:27 2011 From: Peter.VanWieren at avl.com (Van Wieren, Peter AVLNA) Date: Mon, 11 Apr 2011 15:25:27 -0400 Subject: ./configure fails for octave 3.4.0 with gcc 4.6. Error: gfortrangenerates correct size integers... no In-Reply-To: <19875.11837.503632.146161@coredump.lan> References: <96C4D3A06204D24FA24FD753CAE7B7D3D206A8@usplmms003.avl01.avlcorp.lan> <19875.11837.503632.146161@coredump.lan> Message-ID: <96C4D3A06204D24FA24FD753CAE7B7D3D20790@usplmms003.avl01.avlcorp.lan> John, Thank you. A trivial error cause problem: Compiling gcc, contrary to my expectation, built both 32 bit and 64 bit libraries. Gcc's "make install" creates ${prefix}/lib64" for the 64 libraries, and ${prefix}/lib for the 32 bit libraries. My expectation was that only 64 built libraries would be created, and that the dir "${prefix}/lib" would contained 64bit libraries. Thus the problem was that LDFLAGS was not set correctly. Best Regards, Peter Peter Van Wieren Technical Specialist Multibody Dynamic Simulation and CAE Analysis peter.vanwieren at avl.com Phone: 734.414.9678 Cell: 734.658.8757 Main: 734.414.9600 Fax: 734.414.9690 AVL POWERTRAIN ENGINEERING, INC. 47519 Halyard Drive, Plymouth MI 48170-2438 www.avl.com "ITAR WARNING - technical data as defined in 22 ? CFR 120.10 of the International Traffic In Arms Regulations (ITAR) pursuant to the Arms Export Control Act (Title 22 U.S.C. Sec 2751 et seq.) must not be sent via e-mail to avl.com. Please contact an AVL representative for file transfer protocol regarding ITAR controlled technical data." -----Original Message----- From: John W. Eaton [mailto:jwe at octave.org] Sent: Monday, April 11, 2011 12:37 PM To: Van Wieren, Peter AVLNA Cc: help-octave at octave.org Subject: ./configure fails for octave 3.4.0 with gcc 4.6. Error: gfortrangenerates correct size integers... no On 11-Apr-2011, Van Wieren, Peter AVLNA wrote: | I complied and installed the latest gcc (v4.6), and proceeded to use it | to compile octave. The following error message occurs: | | checking for Fortran 77 libraries of | /work/apps/x86_64-rhes5-linux/bin/gfortran... | -L/work/apps/x86_64-rhes5-linux/lib | -L/work/apps/x86_64-rhes5-linux/lib/gcc/x86_64-unknown-linux-gnu/4.6.0 | -L/work/apps/x86_64-rhes5-linux/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/. | ./../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 | -L/work/apps/x86_64-rhes5-linux/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/. | ./../.. -lpthread -lgfortran -lm -lquadmath | /work/apps/x86_64-rhes5-linux/lib/libgfortran.a | /work/apps/x86_64-rhes5-linux/lib/libquadmath.a | checking for dummy main to link with Fortran 77 libraries... none | checking for Fortran 77 name-mangling scheme... lower case, underscore, | no extra underscore | configure: defining FFLAGS to be -O | checking whether /work/apps/x86_64-rhes5-linux/bin/gfortran generates | correct size integers... no | configure: error: your Fortran compiler must have an option to make | integers the same size as octave_idx_type (int). See the file INSTALL | for more information. To debug the problem, you need to look at the config.log file to see why this test failed. If you want help doing that, then post the relevant part of config.log here. There's no need to post the whole file, and it would be rejected for posting here anyway as it will probably be over the limit for postings sent to the list. jwe From christian.bergstrand at mantex.se Mon Apr 11 14:43:01 2011 From: christian.bergstrand at mantex.se (Christian Bergstrand) Date: Mon, 11 Apr 2011 21:43:01 +0200 Subject: Subfolders in inst of packages Message-ID: <021001cbf880$ab689010$0239b030$@bergstrand@mantex.se> Hi I am working on a package for octave and would like to separate my scripts in the inst folder into multiple subfolders, something like: inst/a/a1.m inst/a/a2.m inst/b/b1.m inst/b/b2.m inst/c/a/ca1.m Is it possible, and if so, how do I get octave to recognize functions in files located in the subfolders? Thank you Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: From forkandwait at gmail.com Mon Apr 11 15:08:46 2011 From: forkandwait at gmail.com (fork) Date: Mon, 11 Apr 2011 20:08:46 +0000 (UTC) Subject: Subfolders in inst of packages References: <7378.63923791355$1302552121@news.gmane.org> Message-ID: Christian Bergstrand mantex.se> writes: > Is it possible, and if so, how do I get octave to recognize functions in files located in the subfolders? help addpath From christian.bergstrand at mantex.se Mon Apr 11 16:01:12 2011 From: christian.bergstrand at mantex.se (Christian Bergstrand) Date: Mon, 11 Apr 2011 23:01:12 +0200 Subject: SV: Subfolders in inst of packages In-Reply-To: References: <021001cbf880$ab689010$0239b030$@bergstrand@mantex.se> Message-ID: <023e01cbf88b$97364550$c5a2cff0$@bergstrand@mantex.se> Got it to work after having a look at suggested example from Carlo Thank you again Christian -----Ursprungligt meddelande----- Fr?n: c. [mailto:carlo.defalco at gmail.com] Skickat: den 11 april 2011 22:28 Till: Christian Bergstrand ?mne: Re: Subfolders in inst of packages On 11 Apr 2011, at 21:43, Christian Bergstrand wrote: > Hi > > I am working on a package for octave and would like to separate my scripts in the inst folder into multiple subfolders, something like: > > inst/a/a1.m > inst/a/a2.m > inst/b/b1.m > inst/b/b2.m > inst/c/a/ca1.m > > Is it possible, and if so, how do I get octave to recognize functions in files located in the subfolders? > > Thank you > Christian > Yes, you can have a look at the packages ocs or secs1d for an example. c. From im.a.g.amca at gmail.com Mon Apr 11 18:44:10 2011 From: im.a.g.amca at gmail.com (imagamca) Date: Mon, 11 Apr 2011 19:44:10 -0400 Subject: Zenity for Octave via MacPorts Problem Message-ID: Hello, I am having a similar problem to the problem described here: http://octave.1599824.n4.nabble.com/zenity-package-from-MacPorts-td2322820.html I have installed both octave and zenity through MacPorts and the installation seems to have gone fine. I see the .m files for the package but whenever I try to call any of the functions I get the following: octave:17> zenity_text_info(d,'test') sh: zenity: command not found error: zenity_text_info: error: called from: error: /opt/local/share/octave/packages/zenity-0.5.7/zenity_text_info.m at line 52, column 5 This happens with all of the functions. I have done pkg load zenity and pkg list, which shows that zenity is loaded. I'd really like to have this work as I am trying to write a tutorial for using this package for a class. Thank you Antonio From arnoques at gmail.com Mon Apr 11 21:49:47 2011 From: arnoques at gmail.com (Pablo) Date: Mon, 11 Apr 2011 23:49:47 -0300 Subject: Physicalconstants package from Octave-Forge is outdated In-Reply-To: References: Message-ID: <4DA3BDCB.3050800@gmail.com> On 04/09/2011 07:11 PM, Jordi Guti?rrez Hermoso wrote: > On 9 April 2011 16:36, Pablo wrote: >> I just found out that the Physical Constants package from >> Octave-Forge was removed from Debian testing. The reason was that the >> values from the NIST database were outdated (see >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620639). > [snip] >> Is it possible to update the package? > > Thanks for volunteering! What kind of help do you need in order to get > working with 'Forge packages? Well, why not? I'll try the SVN script as soon as I have some time. Arnoques From dotlic at gmail.com Tue Apr 12 03:33:21 2011 From: dotlic at gmail.com (Igor) Date: Tue, 12 Apr 2011 01:33:21 -0700 (PDT) Subject: convex optimization problems in octave (trying to replace Matlab with Octave in university) In-Reply-To: References: Message-ID: <1302597201067-3444034.post@n4.nabble.com> You may try using SeDuMi convex optimization toolbox, which has ver. 1.21 adapted for Octave: http://sedumi.ie.lehigh.edu/index.php?option=com_docman&task=cat_view&gid=69&Itemid=76 -- View this message in context: http://octave.1599824.n4.nabble.com/convex-optimization-problems-in-octave-trying-to-replace-Matlab-with-Octave-in-university-tp3438459p3444034.html Sent from the Octave - General mailing list archive at Nabble.com. From vhanby at dmu.ac.uk Tue Apr 12 04:43:11 2011 From: vhanby at dmu.ac.uk (Victor Hanby) Date: Tue, 12 Apr 2011 10:43:11 +0100 Subject: oct files Message-ID: I'm looking at including some legacy code (f77 and C) component models into an Octave simulation. The compilation into .oct files seems pretty straightforward but nearly all my models call other functions/ subroutines which return values such as thermodynamic properties. I can't figure out how to accommodate this, any advice would be much appreciated. Vic Professor Vic Hanby Institute of Energy and Sustainable Development De Montfort University Leicester LE1 9BH UK From guggus_adieu at yahoo.de Tue Apr 12 08:20:28 2011 From: guggus_adieu at yahoo.de (Sina Calmote) Date: Tue, 12 Apr 2011 14:20:28 +0100 (BST) Subject: AW: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <1302445092.30394.6.camel@linux-uhdl> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <1302372647.2572.17.camel@linux-uhdl> <201104092152.13684.martin@mhelm.de> <201104100002.52267.martin@mhelm.de> <1302445092.30394.6.camel@linux-uhdl> Message-ID: <260018.25009.qm@web29706.mail.ird.yahoo.com> ----- Urspr?ngliche Mail ---- Von: Martin Helm An: Robert McDonald CC: Jordi Guti?rrez Hermoso ; Octave Gesendet: Sonntag, den 10. April 2011, 16:18:12 Uhr Betreff: Re: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type Am Samstag, den 09.04.2011, 17:15 -0500 schrieb Robert McDonald: > > I reduced it to the absolute minimum to get the error by saving the variables > > T and R > > > > load T > > load R > > plot(R, T(:,1), "-r", R, T(:,2), "-b") > > > > gives the error on ubuntu 10.10 32bit (but not on my opensuse), can someone > > confirm? Since I am too tired now and cannot directly see the error I stop >with > > that at the moment. > > Wow, nice job creating a test case! > > I can confirm that your script *does* give the error on 10.04 32-bit. > It does *not* give the error on 10.04 64-bit. > > I just checked and Pyramide.m gives a different error on 64-bit 10.04, > causing a segfault. The preceding error is "warning: ft_render: > skipping missing glyph for character '?'" > > Bob >I think the segfault you see is probably unrelated, I cannot see it with >64 bit openSUSE, so it seems to be something different. >The error for 32bit versions exists also on openSUSE 32bit, I made a >virtual machine for it and tested quickly with the octave 3.4 from the >packman repository and then with one I compiled myself, so it is not >ubuntu specific. >It is clear that this has nothing to do with memory (the matrices are a >few kilobyte in size and the plot command is invoked on ridiculous small >vectors). >I will try to find out where this message really comes from. But I have >to say that I am really not good in understanding the source code of the >plot internals. Hey there after all I am confused. Is it true, that the error "memory exhausted..." is due to an bug? _______________________________________________ Help-octave mailing list Help-octave at octave.org https://mailman.cae.wisc.edu/listinfo/help-octave From soren at hauberg.org Tue Apr 12 09:41:53 2011 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Tue, 12 Apr 2011 16:41:53 +0200 Subject: Zenity for Octave via MacPorts Problem In-Reply-To: References: <1302591290.1827.32.camel@hauberg-laptop> Message-ID: <1302619313.1827.47.camel@hauberg-laptop> tir, 12 04 2011 kl. 10:09 -0400, skrev imagamca: > S?ren, > > Thank you for replying to me so promptly. Please reply on list so that others can follow and learn/help. > This is what I got: > > octave:1> system("zenity --file-selection") > sh: zenity: command not found > ans = 127 That basically means that the 'zenity' command-line tool (as opposed to the 'zenity' package for Octave) is not properly installed. I am not a Mac user, so I cannot give guidance as to how to install this program. S?ren From ma00101 at surrey.ac.uk Tue Apr 12 11:22:50 2011 From: ma00101 at surrey.ac.uk (dirac) Date: Tue, 12 Apr 2011 09:22:50 -0700 (PDT) Subject: Arrays: Multidimensional manipulating Message-ID: <1302625370450-3445070.post@n4.nabble.com> Hi there, I am having problems with a multidimensional array at the moment and have looked online to see similar problems... I basically have an equation p = exp(-1*(a*(|k|^b))) which I write: p = exp(-1*abs(k).^b). This is simple enough so far; if I want to vary a, k, and b, I could use for loops or I could do it using a multidimensional array (what I want to do as I assume it'll be faster). I started by defining vectors for a, b, and k: k = [-20:0.05:20]; b = [0:0.01:2]; a = [0:0.001:0.01]; and then tried to find p for all of the possible values of a, b and k and store in an array of three dimansion; I tried this: p = zeros(length(a),length(k),length(b)); %allocating memory p = exp(-1.*a.*(abs(k)).^b) Which doesn't seem to work. Is this something that you can do with Octave or will I have to use for loops? Thanks in advance Martin ----- Still learning everyday. -- View this message in context: http://octave.1599824.n4.nabble.com/Arrays-Multidimensional-manipulating-tp3445070p3445070.html Sent from the Octave - General mailing list archive at Nabble.com. From jwe at octave.org Tue Apr 12 11:30:35 2011 From: jwe at octave.org (John W. Eaton) Date: Tue, 12 Apr 2011 12:30:35 -0400 Subject: oct files In-Reply-To: References: Message-ID: <19876.32299.815564.632773@coredump.lan> On 12-Apr-2011, Victor Hanby wrote: | I'm looking at including some legacy code (f77 and C) component models | into an Octave simulation. The compilation into .oct files seems | pretty straightforward but nearly all my models call other functions/ | subroutines which return values such as thermodynamic properties. | | I can't figure out how to accommodate this, any advice would be much | appreciated. You can compile multiple files with mkoctfile: mkoctfile mainfunction.cc sub1.c sub2.f objectfile.o -lmylib or you can use it like a compiler linker: mkoctfile -c mainfunction.cc mkoctfile -c sub1.c mkoctfile -c sub2.f ... mkoctfile mainfunction.o sub1.o sub2.o objectfile.o -lmylib Or are you asking how to call Fortran and C functions from the function you define with DEFUN in the main C++ file that you use to define the function that Octave can call? jwe From WKrekeler at cleanearthtech.com Tue Apr 12 11:33:53 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Tue, 12 Apr 2011 16:33:53 +0000 Subject: Arrays: Multidimensional manipulating In-Reply-To: <1302625370450-3445070.post@n4.nabble.com> References: <1302625370450-3445070.post@n4.nabble.com> Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB212D4CD7@CETEX1.cleanearth.ceprivate> -----Original Message----- From: help-octave-bounces at octave.org [mailto:help-octave-bounces at octave.org] On Behalf Of dirac Sent: Tuesday, April 12, 2011 11:23 AM To: help-octave at octave.org Subject: Arrays: Multidimensional manipulating Hi there, I am having problems with a multidimensional array at the moment and have looked online to see similar problems... I basically have an equation p = exp(-1*(a*(|k|^b))) which I write: p = exp(-1*abs(k).^b). This is simple enough so far; if I want to vary a, k, and b, I could use for loops or I could do it using a multidimensional array (what I want to do as I assume it'll be faster). I started by defining vectors for a, b, and k: k = [-20:0.05:20]; b = [0:0.01:2]; a = [0:0.001:0.01]; and then tried to find p for all of the possible values of a, b and k and store in an array of three dimansion; I tried this: p = zeros(length(a),length(k),length(b)); %allocating memory p = exp(-1.*a.*(abs(k)).^b) Which doesn't seem to work. Is this something that you can do with Octave or will I have to use for loops? Thanks in advance Martin ----- Still learning everyday. -- View this message in context: http://octave.1599824.n4.nabble.com/Arrays-Multidimensional-manipulating-tp3445070p3445070.html Sent from the Octave - General mailing list archive at Nabble.com. _______________________________________________ Help-octave mailing list Help-octave at octave.org https://mailman.cae.wisc.edu/listinfo/help-octave Martin, Maybe you could try using meshgrid. [A,B,K] = meshgrid(a,b,k); p = size(A); p = exp(-1.*A.*(abs(K)).^B); William Krekeler From jwe at octave.org Tue Apr 12 11:46:29 2011 From: jwe at octave.org (John W. Eaton) Date: Tue, 12 Apr 2011 12:46:29 -0400 Subject: Arrays: Multidimensional manipulating In-Reply-To: <1302625370450-3445070.post@n4.nabble.com> References: <1302625370450-3445070.post@n4.nabble.com> Message-ID: <19876.33253.311098.635806@coredump.lan> On 12-Apr-2011, dirac wrote: | Hi there, | | I am having problems with a multidimensional array at the moment and have | looked online to see similar problems... | | I basically have an equation | | p = exp(-1*(a*(|k|^b))) | | which I write: | | p = exp(-1*abs(k).^b). | | This is simple enough so far; if I want to vary a, k, and b, I could use for | loops or I could do it using a multidimensional array (what I want to do as | I assume it'll be faster). I started by defining vectors for a, b, and k: | | k = [-20:0.05:20]; | b = [0:0.01:2]; | a = [0:0.001:0.01]; | | | and then tried to find p for all of the possible values of a, b and k and | store in an array of three dimansion; I tried this: | | p = zeros(length(a),length(k),length(b)); %allocating memory | | p = exp(-1.*a.*(abs(k)).^b) | | Which doesn't seem to work. | Is this something that you can do with Octave or will I have to use for | loops? a = 0:0.001:0.01; k = -20:0.05:20; b = 0:0.01:2; na = numel (a); nk = numel (k); nb = numel (b); A = repmat (reshape (a, na, 1, 1), [1, nk, nb]); K = repmat (reshape (k, 1, nk, 1), [na, 1, nb]); B = repmat (reshape (b, 1, 1, nb), [na, nk, 1]); P = exp (-A.*(abs (K)).^B); ploop = zeros (na, nk, nb); for ii = 1:na for jj = 1:nk for kk = 1:nb ploop(ii,jj,kk) = exp (-a(ii).*(abs (k(jj))).^b(kk)); endfor endfor endfor absdiff = ploop - P; max (absdiff(:)) jwe From jwe at octave.org Tue Apr 12 11:51:04 2011 From: jwe at octave.org (John W. Eaton) Date: Tue, 12 Apr 2011 12:51:04 -0400 Subject: Arrays: Multidimensional manipulating In-Reply-To: <6765D38A4FDFC347A2934D0D5AB0F1AB212D4CD7@CETEX1.cleanearth.ceprivate> References: <1302625370450-3445070.post@n4.nabble.com> <6765D38A4FDFC347A2934D0D5AB0F1AB212D4CD7@CETEX1.cleanearth.ceprivate> Message-ID: <19876.33528.576453.794498@coredump.lan> On 12-Apr-2011, William Krekeler wrote: | Maybe you could try using meshgrid. | | [A,B,K] = meshgrid(a,b,k); | p = size(A); | p = exp(-1.*A.*(abs(K)).^B); What is the second line for? Using meshgrid is good if you need exactly three dimensions. If you need more, then you will need something like the method I showed with repmat and reshape. But the basic idea is the same. You need to generate a set of matrices all with the same size that together contain all the combinations that you are looking for. Of course if you need many dimensions, you will quickly run out of memory storing the temporary matrices that represent all combinations... jwe From WKrekeler at cleanearthtech.com Tue Apr 12 14:26:52 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Tue, 12 Apr 2011 19:26:52 +0000 Subject: Arrays: Multidimensional manipulating In-Reply-To: <19876.33528.576453.794498@coredump.lan> References: <1302625370450-3445070.post@n4.nabble.com> <6765D38A4FDFC347A2934D0D5AB0F1AB212D4CD7@CETEX1.cleanearth.ceprivate> <19876.33528.576453.794498@coredump.lan> Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB212D4D51@CETEX1.cleanearth.ceprivate> -----Original Message----- From: John W. Eaton [mailto:jwe at octave.org] Sent: Tuesday, April 12, 2011 11:51 AM To: William Krekeler Cc: dirac; help-octave at octave.org Subject: RE: Arrays: Multidimensional manipulating On 12-Apr-2011, William Krekeler wrote: | Maybe you could try using meshgrid. | | [A,B,K] = meshgrid(a,b,k); | p = size(A); | p = exp(-1.*A.*(abs(K)).^B); What is the second line for? Using meshgrid is good if you need exactly three dimensions. If you need more, then you will need something like the method I showed with repmat and reshape. But the basic idea is the same. You need to generate a set of matrices all with the same size that together contain all the combinations that you are looking for. Of course if you need many dimensions, you will quickly run out of memory storing the temporary matrices that represent all combinations... jwe I meant to type 'p = zeros( size(A) );' to preallocate the array. Either way it is an unnecessary step. I agree that using meshgrid will result in increased memory usage, but for the small matrices used I think (untested) that the meshgrid vector math solution may be faster than a sequence of for loops. Vector computations is generally faster than for loops, at least in base Octave without compilation. As Octave does not benefit from for loop acceleration like Matlab's locally compiled just in time for loop implementation. William Krekeler From martin at mhelm.de Tue Apr 12 16:19:09 2011 From: martin at mhelm.de (Martin Helm) Date: Tue, 12 Apr 2011 23:19:09 +0200 Subject: AW: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <260018.25009.qm@web29706.mail.ird.yahoo.com> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <1302445092.30394.6.camel@linux-uhdl> <260018.25009.qm@web29706.mail.ird.yahoo.com> Message-ID: <201104122319.10052.martin@mhelm.de> Am Dienstag, 12. April 2011, 15:20:28 schrieb Sina Calmote: > ----- Urspr?ngliche Mail ---- > > Hey there > after all I am confused. Is it true, that the error "memory exhausted..." > is due to an bug? > Just a quick fly by comment to clarify this. Yes, I am sure it is a bug. I could at the end reproduce it on the following 32bit systems: Ubuntu 10.10 Debian 6 (stable) openSUSE 11.4 64bit works without that problem. The error message is misleading it has absolutely nothing to do with memory problems. Until now I could not find the real reason since I cannot look into it before the weekend. I will file a bug report on the bug tracker tomorrow. From nahumoz at gmail.com Tue Apr 12 16:58:50 2011 From: nahumoz at gmail.com (Oz Nahum Tiram) Date: Tue, 12 Apr 2011 23:58:50 +0200 Subject: AW: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type Message-ID: Date: Tue, 12 Apr 2011 14:20:28 +0100 (BST) > From: Sina Calmote > To: Octave > Subject: AW: AW: WG: AW: error: memory exhausted or requested size too > ? ? ? ?large ? for range of Octave's index type > Message-ID: <260018.25009.qm at web29706.mail.ird.yahoo.com> > Content-Type: text/plain; charset=iso-8859-1 > > > > > > ----- Urspr?ngliche Mail ---- > Von: Martin Helm > An: Robert McDonald > CC: Jordi Guti?rrez Hermoso ; Octave > Gesendet: Sonntag, den 10. April 2011, 16:18:12 Uhr > Betreff: Re: AW: WG: AW: error: memory exhausted or requested size too large for > range of Octave's index type > > Am Samstag, den 09.04.2011, 17:15 -0500 schrieb Robert McDonald: >> > I reduced it to the absolute minimum to get the error by saving the > variables >> > T and R >> > >> > load T >> > load R >> > plot(R, T(:,1), "-r", R, T(:,2), "-b") >> > >> > gives the error on ubuntu 10.10 32bit (but not on my opensuse), can someone >> > confirm? Since I am too tired now and cannot directly see the error I stop >>with >> > that at the moment. >> >> Wow, nice job creating a test case! >> >> I can confirm that your script *does* give the error on 10.04 32-bit. >> It does *not* give the error on 10.04 64-bit. >> >> I just checked and Pyramide.m gives a different error on 64-bit 10.04, >> causing a segfault. The preceding error is "warning: ft_render: >> skipping missing glyph for character '?'" >> >> Bob > >>I think the segfault you see is probably unrelated, I cannot see it with >>64 bit openSUSE, so it seems to be something different. >>The error for 32bit versions exists also on openSUSE 32bit, I made a >>virtual machine for it and tested quickly with the octave 3.4 from the >>packman repository and then with one I compiled myself, so it is not >>ubuntu specific. >>It is clear that this has nothing to do with memory (the matrices are a >>few kilobyte in size and the plot command is invoked on ridiculous small >>vectors). > >>I will try to find out where this message really comes from. But I have >>to say that I am really not good in understanding the source code of the >>plot internals. > > Hey there > after all I am confused. Is it true, that the error "memory exhausted..." is due > to an bug? > > > > I join the qeustion, I get the same error with out understanding why. would be happy to hear. Thanks in advance, Oz "Gentlmen! You can't fight in here, this is the War Room!" President Merkin Muffley (Peter Sellers, Dr. Strangelove) From vhanby at dmu.ac.uk Wed Apr 13 05:00:02 2011 From: vhanby at dmu.ac.uk (Victor Hanby) Date: Wed, 13 Apr 2011 11:00:02 +0100 Subject: oct files In-Reply-To: <19876.32299.815564.632773@coredump.lan> References: <19876.32299.815564.632773@coredump.lan> Message-ID: Each component model is modular, so compiling with multiple files will be fine. I could add in the file containing the thermodynamic functions into each model (cooling tower, fan, w.h.y.) but it would be more elegant if I could do it as per your last paragraph. I'm a bit out of my depth here, thanks for the help. Vic On 12 Apr 2011, at 17:30, John W. Eaton wrote: > On 12-Apr-2011, Victor Hanby wrote: > > | I'm looking at including some legacy code (f77 and C) component > models > | into an Octave simulation. The compilation into .oct files seems > | pretty straightforward but nearly all my models call other > functions/ > | subroutines which return values such as thermodynamic properties. > | > | I can't figure out how to accommodate this, any advice would be much > | appreciated. > > You can compile multiple files with mkoctfile: > > mkoctfile mainfunction.cc sub1.c sub2.f objectfile.o -lmylib > > or you can use it like a compiler linker: > > mkoctfile -c mainfunction.cc > mkoctfile -c sub1.c > mkoctfile -c sub2.f > ... > mkoctfile mainfunction.o sub1.o sub2.o objectfile.o -lmylib > > Or are you asking how to call Fortran and C functions from the > function you define with DEFUN in the main C++ file that you use to > define the function that Octave can call? > > jwe Professor Vic Hanby Institute of Energy and Sustainable Development De Montfort University Leicester LE1 9BH UK From china.us at gmail.com Wed Apr 13 21:59:03 2011 From: china.us at gmail.com (china.us at gmail.com) Date: Wed, 13 Apr 2011 19:59:03 -0700 Subject: looking for a programmer who can help me : PAID In-Reply-To: References: Message-ID: <93ED68D7705F4F6F97CF530049A1B36B@emallguidehp> Hi, I am hiring a programmer who can help us write some built-in functions inside octave. We have papers published at BIT, AM, etc. plus the Matlab/FORTRAN code. The result shows our methods are >=10,000 times better than the current popular methods. The goal is, say, user types fzero1(using our method), take 30 sec. user types fzero(using existing method in Octave or Matlab), take 5 days (say it's a very large scale problem). If you have interest, please email me at ibmer.ibm at gmail.com I'll send you the papers and the code. We can discuss the price $ then. I am a programmer too, but don't want to spend time on understanding Octave's code structure. For maintainance, I can do the job. My partner does not use Linux, so please have everything on Cygwin. thanks, William From jordigh at octave.org Wed Apr 13 23:07:23 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Wed, 13 Apr 2011 23:07:23 -0500 Subject: looking for a programmer who can help me : PAID In-Reply-To: <93ED68D7705F4F6F97CF530049A1B36B@emallguidehp> References: <93ED68D7705F4F6F97CF530049A1B36B@emallguidehp> Message-ID: I hope you don't mind if I reply publicly. I have a few questions. On 13 April 2011 21:59, wrote: > The goal is, say, user types fzero1(using our method), take 30 sec. > user types fzero(using existing method in Octave or Matlab), take 5 > days (say it's a very large scale problem). I'm finishing similar contract work for another customer, and I should be available soon for something like this. I don't use Windows, and neither do most of the other experienced Octave coders I know of. I think this may be a slight hurdle, but not insurmountable. At any rate, the actual implementation using the oct interface should not be a problem once I read and understand your publication. I have a concern, however. Is there any secrecy involved? I'm personally less likely to be interested if you want me to implement this super-fast fzero breakthrough but then won't allow me to push my implementation to our Mercurial repository. Since you are asking a free software project to help you, I suppose you are familiar with our habits of free collaboration? Thanks, - Jordi G. H. From china.us at gmail.com Thu Apr 14 00:26:06 2011 From: china.us at gmail.com (china.us at gmail.com) Date: Wed, 13 Apr 2011 22:26:06 -0700 Subject: looking for a programmer who can help me : PAID In-Reply-To: References: <93ED68D7705F4F6F97CF530049A1B36B@emallguidehp> Message-ID: Jordi, 1. I am a both Linux and Windows user, OS should not be an issue. (I'll help Prof Han, Tianmin for the OS related stuff) 2. The 1st author, Prof Han, Tianmin, likes this algorithm be as popular as it can. You can put the code anywhere. If you work for Octave(your email address is octave.org), make it a build-in, show off to Matlab users/developers/management. I have uploaded the papers at: http://www.emallguide.com/~htm/ Two of them have published already, one of them is accepted, will be out in May, 2011. Another one will be published in Oct ~ Nov 2011. Please send me a private email how much you'll charge. thanks, Yuhuan William Han ----- Original Message ----- From: "Jordi Guti?rrez Hermoso" To: Cc: ; "IBMer @ IBM" ; "Tianmin Han" ; Sent: Wednesday, April 13, 2011 9:07 PM Subject: Re: looking for a programmer who can help me : PAID >I hope you don't mind if I reply publicly. I have a few questions. > > On 13 April 2011 21:59, wrote: >> The goal is, say, user types fzero1(using our method), take 30 sec. >> user types fzero(using existing method in Octave or Matlab), take 5 >> days (say it's a very large scale problem). > > I'm finishing similar contract work for another customer, and I should > be available soon for something like this. I don't use Windows, and > neither do most of the other experienced Octave coders I know of. I > think this may be a slight hurdle, but not insurmountable. > > At any rate, the actual implementation using the oct interface should > not be a problem once I read and understand your publication. I have a > concern, however. Is there any secrecy involved? I'm personally less > likely to be interested if you want me to implement this super-fast > fzero breakthrough but then won't allow me to push my implementation > to our Mercurial repository. Since you are asking a free software > project to help you, I suppose you are familiar with our habits of > free collaboration? > > Thanks, > - Jordi G. H. From michael.creel at uab.es Thu Apr 14 03:10:49 2011 From: michael.creel at uab.es (Michael Creel) Date: Thu, 14 Apr 2011 10:10:49 +0200 Subject: no mkoctfile? Message-ID: Hello all, I'm compiling Octave 3.4.0 for PelicanHPC, and all goes well except that mkoctfile in not to be found in /usr/local/bin. The octave executable is there. I have searched the build log and do not see any problems. When I build 3.4.0 for my own use on my machine, I have mkoctfile as usual. Thanks, Michael Here's the last bit of ./configure's output in case that helps: Octave is now configured for x86_64-unknown-linux-gnu Source directory: . Installation prefix: /usr/local C compiler: gcc -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread C++ compiler: g++ -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 Fortran compiler: gfortran -O Fortran libraries: -L/usr/lib/gcc/x86_64-linux-gnu/4.4.5 -L/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../.. -lgfortranbegin -lgfortran -lm Lex libraries: LIBS: -lm AMD CPPFLAGS: AMD LDFLAGS: AMD libraries: -lamd BLAS libraries: -lcblas -lf77blas -latlas CAMD CPPFLAGS: CAMD LDFLAGS: CAMD libraries: -lcamd CARBON libraries: CCOLAMD CPPFLAGS: CCOLAMD LDFLAGS: CCOLAMD libraries: -lccolamd CHOLMOD CPPFLAGS: CHOLMOD LDFLAGS: CHOLMOD libraries: -lcholmod COLAMD CPPFLAGS: COLAMD LDFLAGS: COLAMD libraries: -lcolamd CURL CPPFLAGS: CURL LDFLAGS: CURL libraries: CXSPARSE CPPFLAGS: CXSPARSE LDFLAGS: CXSPARSE libraries: -lcxsparse DL libraries: -ldl FFTW3 CPPFLAGS: FFTW3 LDFLAGS: FFTW3 libraries: -lfftw3 FFTW3F CPPFLAGS: FFTW3F LDFLAGS: FFTW3F libraries: -lfftw3f fontconfig CFLAGS: fontconfig LIBS: FT2_CFLAGS: FT2_LIBS: GLPK CPPFLAGS: GLPK LDFLAGS: GLPK libraries: -lglpk graphics CFLAGS: graphics LIBS: Magick++ CPPFLAGS: Magick++ LDFLAGS: Magick++ libraries: HDF5 CPPFLAGS: HDF5 LDFLAGS: HDF5 libraries: LAPACK libraries: -llapack OPENGL libraries: PTHREAD flags: -pthread PTHREAD libraries: QHULL CPPFLAGS: QHULL LDFLAGS: QHULL libraries: QRUPDATE libraries: -lqrupdate READLINE libraries: -lreadline REGEX libraries: -L/usr/lib -lpcre TERM libraries: -lncurses UMFPACK libraries: -lumfpack X11 include flags: X11 libraries: -lX11 Z CPPFLAGS: Z LDFLAGS: Z libraries: -lz Default pager: less gnuplot: gnuplot Do internal array bounds checking: false Build static libraries: false Build shared libraries: true Dynamic Linking: true (dlopen) Include support for GNU readline: true 64-bit array dims and indexing: false configure: WARNING: I didn't find gperf, but it's only a problem if you need to reconstruct oct-gperf.h configure: WARNING: I didn't find flex, but it's only a problem if you need to reconstruct lex.cc configure: WARNING: I didn't find bison, but it's only a problem if you need to reconstruct parse.cc configure: WARNING: cURL library not found. The ftp objects, urlread and urlwrite functions will be disabled. configure: WARNING: GraphicsMagick++ library not found. The imread function for reading image files will not be fully functional. configure: WARNING: HDF5 library not found. Octave will not be able to save or load HDF5 data files. configure: WARNING: Qhull library not found -- this will result in loss of functionality of some geometry functions. configure: WARNING: OpenGL libs (GL and GLU) not found. Native graphics will be disabled. configure: WARNING: configure: WARNING: I didn't find the necessary libraries to compile native configure: WARNING: graphics. It isn't necessary to have native graphics, configure: WARNING: but you will need to have gnuplot installed or you won't configure: WARNING: be able to use any of Octave's plotting commands configure: WARNING: configure: configure: NOTE: libraries may be skipped if a library is not found OR configure: NOTE: if the library on your system is missing required features. From ma00101 at surrey.ac.uk Thu Apr 14 03:27:05 2011 From: ma00101 at surrey.ac.uk (dirac) Date: Thu, 14 Apr 2011 01:27:05 -0700 (PDT) Subject: Arrays: Multidimensional manipulating In-Reply-To: <6765D38A4FDFC347A2934D0D5AB0F1AB212D4D51@CETEX1.cleanearth.ceprivate> References: <1302625370450-3445070.post@n4.nabble.com> <6765D38A4FDFC347A2934D0D5AB0F1AB212D4CD7@CETEX1.cleanearth.ceprivate> <19876.33528.576453.794498@coredump.lan> <6765D38A4FDFC347A2934D0D5AB0F1AB212D4D51@CETEX1.cleanearth.ceprivate> Message-ID: <1302769625531-3449052.post@n4.nabble.com> Thanks for all of the replies guys, I really really appreciate it. I'm going to have a look at the repmat reshape way as I now have to vary four parameters in a new equation. Martin p.s. I'm still really struggling with including the previous messages in my replies. I know this is bad etiquette, is it better to reply to the email notifications I get rater than logging in to the website and pressing the reply button? ----- Still learning everyday. -- View this message in context: http://octave.1599824.n4.nabble.com/Arrays-Multidimensional-manipulating-tp3445070p3449052.html Sent from the Octave - General mailing list archive at Nabble.com. From utherr.ghujax at gmail.com Thu Apr 14 05:34:20 2011 From: utherr.ghujax at gmail.com (Utherr13) Date: Thu, 14 Apr 2011 03:34:20 -0700 (PDT) Subject: Problem using fscanf Message-ID: <1302777260369-3449262.post@n4.nabble.com> I have a file which has integers in a 100x2 matrix. I want to get the second column and put it in a variable, in which i used a for 1:100, but on the i+1 (from the second) the variable is "[](0x1)" for i=1:100 z = fscanf(f,'%d',1); a = fscanf(f,"%d",1); disp(a); endfor -- View this message in context: http://octave.1599824.n4.nabble.com/Problem-using-fscanf-tp3449262p3449262.html Sent from the Octave - General mailing list archive at Nabble.com. From doug.dastew at gmail.com Thu Apr 14 08:11:19 2011 From: doug.dastew at gmail.com (Doug Stewart) Date: Thu, 14 Apr 2011 09:11:19 -0400 Subject: Problem using fscanf In-Reply-To: <1302777260369-3449262.post@n4.nabble.com> References: <1302777260369-3449262.post@n4.nabble.com> Message-ID: On Thu, Apr 14, 2011 at 6:34 AM, Utherr13 wrote: > I have a file which has integers in a 100x2 matrix. I want to get the > second > column and put it in a variable, in which i used a for 1:100, but on the > i+1 > (from the second) the variable is "[](0x1)" > > for i=1:100 > z = fscanf(f,'%d',1); > a = fscanf(f,"%d",1); > disp(a); > endfor > > -- Try This for i=1:100 z(i) = fscanf(f,'%d',1); a(i) = fscanf(f,"%d",1); disp(a); endfor -------------- next part -------------- An HTML attachment was scrubbed... URL: From maclair at gamma.ttk.pte.hu Thu Apr 14 08:29:12 2011 From: maclair at gamma.ttk.pte.hu (=?ISO-8859-1?Q?Mechler_M=E1ty=E1s_Ill=E9s?=) Date: Thu, 14 Apr 2011 15:29:12 +0200 Subject: Ode45: removing results of earlier steps Message-ID: Dear All, the subject of my question is ode45. I've got some thousand equations which I want to solve with this tool in many steps. Throughout the calculation I save to file the results in pre-defined periods. Is there a way to remove those results from Octave's memory which are not used in subsequent calculations? I mean, I don't want to process my results in Octave, so all the previous results that are not used in the actual step can be deleted. Is it possible? Matyas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bard.Skaflestad at sintef.no Thu Apr 14 08:29:17 2011 From: Bard.Skaflestad at sintef.no (=?ISO-8859-1?Q?B=E5rd?= Skaflestad) Date: Thu, 14 Apr 2011 15:29:17 +0200 Subject: Problem using fscanf In-Reply-To: References: <1302777260369-3449262.post@n4.nabble.com> Message-ID: <1302787757.12885.49.camel@bska-ws> On Thu, 2011-04-14 at 15:11 +0200, Doug Stewart wrote: > > > On Thu, Apr 14, 2011 at 6:34 AM, Utherr13 > wrote: > I have a file which has integers in a 100x2 matrix. I want to > get the second > column and put it in a variable, in which i used a for 1:100, > but on the i+1 > (from the second) the variable is "[](0x1)" > > for i=1:100 > z = fscanf(f,'%d',1); > a = fscanf(f,"%d",1); > disp(a); > endfor > > -- > > > Try This > > > for i=1:100 > z(i) = fscanf(f,'%d',1); > a(i) = fscanf(f,"%d",1); > disp(a); > endfor > Or maybe even this (the [2,100] shape + transpose is essential): t = fscanf(f, '%d', [2, 100]) .'; z = t(:,1); a = t(:,2); disp(a) Sincerely, -- B?rd Skaflestad SINTEF ICT, Applied Mathematics From andybuckle at gmail.com Thu Apr 14 08:44:32 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Thu, 14 Apr 2011 14:44:32 +0100 Subject: Ode45: removing results of earlier steps In-Reply-To: References: Message-ID: On Thu, Apr 14, 2011 at 2:29 PM, Mechler M?ty?s Ill?s wrote: > Dear All, > > the subject of my question is ode45. > I've got some thousand equations which I want to solve with this tool in > many steps. > Throughout the calculation I save to file the results in pre-defined > periods. > Is there a way to remove those results from Octave's memory which are not > used in subsequent calculations? > I mean, I don't want to process my results in Octave, so all the previous > results that are not used in the actual step can be deleted. > Is it possible? > > Matyas You can remove part of a matrix like this a(i:j)=[]; You can remove the variable foo like this clear foo -- /* andy buckle */ From maclair at gamma.ttk.pte.hu Thu Apr 14 08:51:16 2011 From: maclair at gamma.ttk.pte.hu (maclair) Date: Thu, 14 Apr 2011 06:51:16 -0700 (PDT) Subject: Ode45: removing results of earlier steps In-Reply-To: References: Message-ID: <1302789076202-3449669.post@n4.nabble.com> > You can remove part of a matrix like this > a(i:j)=[]; > You can remove the variable foo like this > clear foo > -- > /* andy buckle */ Thank you for your reply. My question was concerning: how is it done in the case of ode45? In what variable does it store he result? Is it the same as the one that I used for the input of the function? Does ode45 expand this variable (add to it the result)? Matyas -- View this message in context: http://octave.1599824.n4.nabble.com/Ode45-removing-results-of-earlier-steps-tp3449614p3449669.html Sent from the Octave - General mailing list archive at Nabble.com. From Potorti at isti.cnr.it Thu Apr 14 10:10:27 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Thu, 14 Apr 2011 17:10:27 +0200 Subject: Ode45: removing results of earlier steps In-Reply-To: References: Message-ID: >You can remove part of a matrix like this > >a(i:j)=[]; This will not work. You can remove one or more columns and rows, not a single element. -- Francesco Potort? (ricercatore) Voice: +39 050 315 3058 (op.2111) ISTI - Area della ricerca CNR Fax: +39 050 315 2040 via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/ From martin at mhelm.de Thu Apr 14 10:16:05 2011 From: martin at mhelm.de (Martin Helm) Date: Thu, 14 Apr 2011 17:16:05 +0200 Subject: AW: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: References: Message-ID: <201104141716.05657.martin@mhelm.de> Am Dienstag, 12. April 2011, 23:58:50 schrieb Oz Nahum Tiram: > Date: Tue, 12 Apr 2011 14:20:28 +0100 (BST) > > > From: Sina Calmote > > To: Octave > > Subject: AW: AW: WG: AW: error: memory exhausted or requested size too > > large for range of Octave's index type > > Message-ID: <260018.25009.qm at web29706.mail.ird.yahoo.com> > > Content-Type: text/plain; charset=iso-8859-1 > > > > > > > > > > > > ----- Urspr?ngliche Mail ---- > > Von: Martin Helm > > An: Robert McDonald > > CC: Jordi Guti?rrez Hermoso ; Octave > > Gesendet: Sonntag, den 10. April 2011, 16:18:12 Uhr > > Betreff: Re: AW: WG: AW: error: memory exhausted or requested size too > > large for range of Octave's index type > > > > Am Samstag, den 09.04.2011, 17:15 -0500 schrieb Robert McDonald: > >> > I reduced it to the absolute minimum to get the error by saving the > > > > variables > > > >> > T and R > >> > > >> > load T > >> > load R > >> > plot(R, T(:,1), "-r", R, T(:,2), "-b") > >> > > >> > gives the error on ubuntu 10.10 32bit (but not on my opensuse), can > >> > someone confirm? Since I am too tired now and cannot directly see the > >> > error I stop > >> > >>with > >> > >> > that at the moment. > >> > >> Wow, nice job creating a test case! > >> > >> I can confirm that your script *does* give the error on 10.04 32-bit. > >> It does *not* give the error on 10.04 64-bit. > >> > >> I just checked and Pyramide.m gives a different error on 64-bit 10.04, > >> causing a segfault. The preceding error is "warning: ft_render: > >> skipping missing glyph for character '?'" > >> > >> Bob > >> > >>I think the segfault you see is probably unrelated, I cannot see it with > >>64 bit openSUSE, so it seems to be something different. > >>The error for 32bit versions exists also on openSUSE 32bit, I made a > >>virtual machine for it and tested quickly with the octave 3.4 from the > >>packman repository and then with one I compiled myself, so it is not > >>ubuntu specific. > >>It is clear that this has nothing to do with memory (the matrices are a > >>few kilobyte in size and the plot command is invoked on ridiculous small > >>vectors). > >> > >>I will try to find out where this message really comes from. But I have > >>to say that I am really not good in understanding the source code of the > >>plot internals. > >> > > Hey there > > after all I am confused. Is it true, that the error "memory exhausted..." > > is due to an bug? > > I join the qeustion, I get the same error with out understanding why. > would be happy to hear. > > Thanks in advance, > > Oz > I filed a bug report on that http://savannah.gnu.org/bugs/?33072 From martin at mhelm.de Thu Apr 14 10:17:25 2011 From: martin at mhelm.de (Martin Helm) Date: Thu, 14 Apr 2011 17:17:25 +0200 Subject: AW: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <201104122319.10052.martin@mhelm.de> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <260018.25009.qm@web29706.mail.ird.yahoo.com> <201104122319.10052.martin@mhelm.de> Message-ID: <201104141717.25919.martin@mhelm.de> Am Dienstag, 12. April 2011, 23:19:09 schrieb Martin Helm: > Am Dienstag, 12. April 2011, 15:20:28 schrieb Sina Calmote: > > ----- Urspr?ngliche Mail ---- > > > > Hey there > > after all I am confused. Is it true, that the error "memory exhausted..." > > is due to an bug? > > Just a quick fly by comment to clarify this. > > Yes, I am sure it is a bug. I could at the end reproduce it on the > following 32bit systems: > Ubuntu 10.10 > Debian 6 (stable) > openSUSE 11.4 > > 64bit works without that problem. The error message is misleading it has > absolutely nothing to do with memory problems. Until now I could not find > the real reason since I cannot look into it before the weekend. I will > file a bug report on the bug tracker tomorrow. I filed a bug report on that http://savannah.gnu.org/bugs/?33072 From jordigh at octave.org Thu Apr 14 10:55:07 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Thu, 14 Apr 2011 10:55:07 -0500 Subject: looking for a programmer who can help me : PAID In-Reply-To: References: <93ED68D7705F4F6F97CF530049A1B36B@emallguidehp> Message-ID: 2011/4/14 : > ----- Original Message ----- From: "Jordi Guti?rrez Hermoso" >> I hope you don't mind if I reply publicly. I have a few questions. >> >> On 13 April 2011 21:59, ? wrote: >>> >>> The goal is, say, user types fzero1(using our method), take 30 sec. >>> user types fzero(using existing method in Octave or Matlab), take 5 >>> days (say it's a very large scale problem). >> >> I don't use Windows, and neither do most of the other experienced >> Octave coders I know of. I think this may be a slight hurdle, but >> not insurmountable. > 1. I am a both Linux and Windows user, OS should not be an issue. > (I'll help Prof Han, Tianmin for the OS related stuff) Thanks, that's good news. >> I have a concern, however. Is there any secrecy involved? I'm >> personally less likely to be interested if you want me to implement >> this super-fast fzero breakthrough but then won't allow me to push >> my implementation to our Mercurial repository. > 2. The 1st author, Prof Han, Tianmin, likes this algorithm be as > popular as it can. You can put the code anywhere. If you work for > Octave(your email address is octave.org), make it a build-in, show > off to Matlab users/developers/management. This is also very good news. > I have uploaded the papers at: > http://www.emallguide.com/~htm/ > > Two of them have published already, one of them is accepted, will be > out in May, 2011. Another one will be published in Oct ~ Nov 2011. Are these preprints? So presumably they may contain small errors? > Please send me a private email how much you'll charge. Very well, I think this sounds very good. I'll email you shortly privately to discuss particulars. - Jordi G. H. From maclair at gamma.ttk.pte.hu Thu Apr 14 11:53:29 2011 From: maclair at gamma.ttk.pte.hu (maclair) Date: Thu, 14 Apr 2011 09:53:29 -0700 (PDT) Subject: Ode45: removing results of earlier steps In-Reply-To: References: Message-ID: <1302800009697-3450164.post@n4.nabble.com> Okay, maybe I was not very clear: I'd like to remove those results through the output function, i.e. while ode45 is running (between two steps, actually). Matyas -- View this message in context: http://octave.1599824.n4.nabble.com/Ode45-removing-results-of-earlier-steps-tp3449614p3450164.html Sent from the Octave - General mailing list archive at Nabble.com. From sha1 at bfh.ch Thu Apr 14 11:59:32 2011 From: sha1 at bfh.ch (Andreas Stahel) Date: Thu, 14 Apr 2011 18:59:32 +0200 Subject: Using structures in OCT files Message-ID: <4DA727F4.90906@bfh.ch> Dear Octave users currently I am attempting to update a FEM package an with Octave 3.4 I have a hard time to implement a feature in an OCT file On the Octave level I will have a structure Mesh of the type Mesh.nodes = [0.0 0.5; 0.2,0.2;0.1,2.0] Mesh. edge = [1 2; 2 3; 3 1] Then in an C++ file I need to access those structures in a command FEMEquation(Mesh, ...) With older version of Octave I used codes like below =================== DEFUN_DLD (FEMEquation, args, , "[...] = FEMEquation (...)\n ") { octave_value_list retval; using namespace std; octave_value_list argin; octave_value_list res; int nargout; Octave_map arg0 = args(0).map_value (); Octave_map::const_iterator p1 = arg0.seek ("nodes"); const Matrix nodes = arg0.contents(p1)(0).matrix_value(); p1 = arg0.seek ("edge"); const ColumnVector edge = arg0.contents(p1)(0).column_vector_value(); ...... ==================== Then I could use those matrices. Even with the help of section A.1.5 Structures in Oct-Files in the manual I could not figure out how to adapt to the new method. This failure is caused by my lack of knowledge of C++ and Octave programming. I would really appreciate some help or a good pointer to a similar example. -- Andreas Stahel E-Mail: Andreas.Stahel@[ANTI-SPAM]bfh.ch Mathematics, BFH-TI Phone: ++41 +32 32 16 258 Quellgasse 21 Fax: ++41 +32 321 500 CH-2501 Biel WWW: https://staff.ti.bfh.ch/sha1/ Switzerland From china.us at gmail.com Thu Apr 14 12:05:03 2011 From: china.us at gmail.com (china.us at gmail.com) Date: Thu, 14 Apr 2011 10:05:03 -0700 Subject: looking for a programmer who can help me : PAID In-Reply-To: References: <93ED68D7705F4F6F97CF530049A1B36B@emallguidehp> Message-ID: Jordi, > I have uploaded the papers at: > http://www.emallguide.com/~htm/ > > Two of them have published already, one of them is accepted, will be > out in May, 2011. Another one will be published in Oct ~ Nov 2011. Are these preprints? So presumably they may contain small errors? - again, one published in 2002 (BIT), one published in 2010 (AM), so they are final. For the one accepted and will be published in May 2011, it should be final. For the 4th one, waiting for review comments, so may made minor changes. William ----- Original Message ----- From: "Jordi Guti?rrez Hermoso" To: Cc: "IBMer @ IBM" ; "Tianmin Han" ; ; Sent: Thursday, April 14, 2011 8:55 AM Subject: Re: looking for a programmer who can help me : PAID 2011/4/14 : > ----- Original Message ----- From: "Jordi Guti?rrez Hermoso" >> I hope you don't mind if I reply publicly. I have a few questions. >> >> On 13 April 2011 21:59, wrote: >>> >>> The goal is, say, user types fzero1(using our method), take 30 sec. >>> user types fzero(using existing method in Octave or Matlab), take 5 >>> days (say it's a very large scale problem). >> >> I don't use Windows, and neither do most of the other experienced >> Octave coders I know of. I think this may be a slight hurdle, but >> not insurmountable. > 1. I am a both Linux and Windows user, OS should not be an issue. > (I'll help Prof Han, Tianmin for the OS related stuff) Thanks, that's good news. >> I have a concern, however. Is there any secrecy involved? I'm >> personally less likely to be interested if you want me to implement >> this super-fast fzero breakthrough but then won't allow me to push >> my implementation to our Mercurial repository. > 2. The 1st author, Prof Han, Tianmin, likes this algorithm be as > popular as it can. You can put the code anywhere. If you work for > Octave(your email address is octave.org), make it a build-in, show > off to Matlab users/developers/management. This is also very good news. > I have uploaded the papers at: > http://www.emallguide.com/~htm/ > > Two of them have published already, one of them is accepted, will be > out in May, 2011. Another one will be published in Oct ~ Nov 2011. Are these preprints? So presumably they may contain small errors? > Please send me a private email how much you'll charge. Very well, I think this sounds very good. I'll email you shortly privately to discuss particulars. - Jordi G. H. From borge.strand at gmail.com Thu Apr 14 14:56:46 2011 From: borge.strand at gmail.com (=?ISO-8859-1?Q?B=F8rge_Strand=2DBergesen?=) Date: Thu, 14 Apr 2011 21:56:46 +0200 Subject: Building pa_wavplay Message-ID: Hi, I'm trying to build pa_wavplay according to http://old.nabble.com/pa_wavplay-td10426977.html and pa_tut_pc.html in the Portaudio documentation. Has anybody done this successfully on Octave 3.2.4 for mingw32 Windows? The place where it stops for me is: mkoctfile -I../portaudio_v18_1/pa_common -lportaudio --mex -o pawavplaya.mex pawavplay.cpp I run this from inside Octave with the -I (capital i) added to the command at old nabble. The error message reads: c:/octave/3.2.4_gcc-4.4.0/mingw32/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lportaudio collect2: ld returned 1 exit status I have searched my computer for portaudio.* without finding anything resembling a library file. Is this something I have to compile from source? I've got Visual C++ 2010 Express installed, something which is hardly covered by the tutorial. Or should I use mingw32 to compile a portaudio library file? Thanks, B?rge From msenator at stevens.edu Thu Apr 14 15:42:44 2011 From: msenator at stevens.edu (Martin Senator) Date: Thu, 14 Apr 2011 16:42:44 -0400 Subject: Subplots--Touching Each Other Message-ID: <20110414204244.GB19642@stevens.edu> I would like to plot two graphs side by side; they have the same y scale and different x scales. I would like the boxes around the plots to touch on the common y axis, with no ylabel or numbers printed on the rightmost plot. How do I do this? Thanks, Martin From bpabbott at mac.com Thu Apr 14 15:58:48 2011 From: bpabbott at mac.com (bpabbott) Date: Thu, 14 Apr 2011 20:58:48 +0000 (GMT) Subject: Subplots--Touching Each Other In-Reply-To: <20110414204244.GB19642@stevens.edu> Message-ID: On Apr 14, 2011, at 04:42 PM, Martin Senator wrote: I would like to plot two graphs side by side; they have the same y scale and different x scales. I would like the boxes around the plots to touch on the common y axis, with no ylabel or numbers printed on the rightmost plot. How do I do this? Thanks, Martin ? To get the effect you want, you can create two axes and set their positions. For example, ... figure (1) clf x = 0:0.01:10; h1 = axes (); h2 = axes (); p1 = p2 = get (h1, "position"); p1(3) = p2(3) = p1(3) / 2; p2(1) = p2(1) + p1(3); axes (h1) plot (x, sin(x)) xlabel ("radians") ylabel sin(x) axes (h2) plot (x*180/pi, sin(x)) xlabel ("degrees") set (h1, "position", p1); set (h2, "position", p2, "ytick", []); Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: From tduell at iinet.net.au Thu Apr 14 21:37:21 2011 From: tduell at iinet.net.au (Terry Duell) Date: Fri, 15 Apr 2011 12:37:21 +1000 Subject: mkoctfile not found Message-ID: Hullo All, I am running Octave 3.2.4 on Fedora 14, using the Fedora 14 binary package which I recently modified to include a patch to fix a bug with imread. I am having trouble with the 'mex' and mkoctfile' commands. Here are the results of a couple of different tries; octave:4> mex "apply_blur_kernel_mex.c" sh: /usr/bin/mkoctfile-3.2.4: No such file or directory warning: unable to find mkoctfile in expected location: `/usr/bin/mkoctfile-3.2.4' warning: mkoctfile exited with failure status octave:6> mkoctfile --mex apply_blur_kernel_mex.c sh: /usr/bin/mkoctfile-3.2.4: No such file or directory warning: unable to find mkoctfile in expected location: `/usr/bin/mkoctfile-3.2.4' warning: mkoctfile exited with failure status For some reason I don't seem to have 'mkoctfile', if that what the messages are really saying. Does anyone have any idea as what is going on and how it might be fixed? Cheers, -- Regards, Terry Duell From tduell at iinet.net.au Thu Apr 14 23:05:20 2011 From: tduell at iinet.net.au (Terry Duell) Date: Fri, 15 Apr 2011 14:05:20 +1000 Subject: mkoctfile not found In-Reply-To: References: Message-ID: Hullo All, On Fri, 15 Apr 2011 12:37:21 +1000, Terry Duell wrote: > For some reason I don't seem to have 'mkoctfile', if that what the > messages are really saying. Problem solved. I needed to install the "octave-devel-3.2.4....rpm". Cheers, -- Regards, Terry Duell From utherr.ghujax at gmail.com Fri Apr 15 00:34:41 2011 From: utherr.ghujax at gmail.com (Utherr13) Date: Thu, 14 Apr 2011 22:34:41 -0700 (PDT) Subject: Problem using fscanf In-Reply-To: <1302787757.12885.49.camel@bska-ws> References: <1302777260369-3449262.post@n4.nabble.com> <1302787757.12885.49.camel@bska-ws> Message-ID: <1302845681677-3451276.post@n4.nabble.com> It only shows me the first line. I want all lines from the file. -- View this message in context: http://octave.1599824.n4.nabble.com/Problem-using-fscanf-tp3449262p3451276.html Sent from the Octave - General mailing list archive at Nabble.com. From dotlic at gmail.com Fri Apr 15 02:51:22 2011 From: dotlic at gmail.com (Igor) Date: Fri, 15 Apr 2011 00:51:22 -0700 (PDT) Subject: Octave 3.4.0 32-bit PCLinuxOS compilation problem Message-ID: <1302853882671-3451503.post@n4.nabble.com> Hello all, I have a problem with Octave 3.4.0 compilation. ./configure works OK. 1st of all, it doesn?t compile with fltk 1.1.10, (fltk 2 is not visible to ./configure, so I assume only 1.1 can work). With fltk make produces: libtool: link: (cd "DLD-FUNCTIONS/.libs" && rm -f "__dsearchn__.so.0" && ln -s "__dsearchn__.so.0.0.0" "__dsearchn__.so.0") libtool: link: (cd "DLD-FUNCTIONS/.libs" && rm -f "__dsearchn__.so" && ln -s "__dsearchn__.so.0.0.0" "__dsearchn__.so") libtool: link: ( cd "DLD-FUNCTIONS/.libs" && rm -f "__dsearchn__.la" && ln -s "../__dsearchn__.la" "__dsearchn__.la" ) /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I. -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -g -O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread -g -O2 -MT DLD-FUNCTIONS/DLD_FUNCTIONS___fltk_uigetfile___la-__fltk_uigetfile__.lo -MD -MP -MF DLD-FUNCTIONS/.deps/DLD_FUNCTIONS___fltk_uigetfile___la-__fltk_uigetfile__.Tpo -c -o DLD-FUNCTIONS/DLD_FUNCTIONS___fltk_uigetfile___la-__fltk_uigetfile__.lo `test -f 'DLD-FUNCTIONS/__fltk_uigetfile__.cc' || echo './'`DLD-FUNCTIONS/__fltk_uigetfile__.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I. -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -g -O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread -g -O2 -MT DLD-FUNCTIONS/DLD_FUNCTIONS___fltk_uigetfile___la-__fltk_uigetfile__.lo -MD -MP -MF DLD-FUNCTIONS/.deps/DLD_FUNCTIONS___fltk_uigetfile___la-__fltk_uigetfile__.Tpo -c DLD-FUNCTIONS/__fltk_uigetfile__.cc -fPIC -DPIC -o DLD-FUNCTIONS/.libs/DLD_FUNCTIONS___fltk_uigetfile___la-__fltk_uigetfile__.o DLD-FUNCTIONS/__fltk_uigetfile__.cc:30:32: fatal error: Fl/Fl_File_Chooser.H: No such file or directory compilation terminated. make[3]: *** [DLD-FUNCTIONS/DLD_FUNCTIONS___fltk_uigetfile___la-__fltk_uigetfile__.lo] Error 1 make[3]: Leaving directory `/home/igi/Downloads/octave-3.4.0/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/igi/Downloads/octave-3.4.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/igi/Downloads/octave-3.4.0' make: *** [all] Error 2 When I turn off fltk, make produces: make[4]: Entering directory `/home/igi/Downloads/octave-3.4.0/doc/interpreter' make[4]: `munge-texi' is up to date. make[4]: Leaving directory `/home/igi/Downloads/octave-3.4.0/doc/interpreter' ./munge-texi ../.. ../../scripts/DOCSTRINGS ../../src/DOCSTRINGS < var.txi > var.texi-t mv var.texi-t var.texi restore=: && backupdir=".am$$" && \ am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd . && \ rm -rf $backupdir && mkdir $backupdir && \ if (/bin/sh /home/igi/Downloads/octave-3.4.0/build-aux/missing --run makeinfo --version) >/dev/null 2>&1; then \ for f in octave.info octave.info-[0-9] octave.info-[0-9][0-9] octave.i[0-9] octave.i[0-9][0-9]; do \ if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \ done; \ else :; fi && \ cd "$am__cwd"; \ if /bin/sh /home/igi/Downloads/octave-3.4.0/build-aux/missing --run makeinfo -I . \ -o octave.info octave.texi; \ then \ rc=0; \ CDPATH="${ZSH_VERSION+.}:" && cd .; \ else \ rc=$?; \ CDPATH="${ZSH_VERSION+.}:" && cd . && \ $restore $backupdir/* `echo "./octave.info" | sed 's|[^/]*$||'`; \ fi; \ rm -rf $backupdir; exit $rc ../../run-octave -f -q -H ./mk_doc_cache.m doc-cache ../../scripts/DOCSTRINGS ../../src/DOCSTRINGS || { rm -f doc-cache; exit 1; } fatal: lo_ieee_init: floating point format is not IEEE! Maybe DLAMCH is miscompiled, or you are using some strange system without IEEE floating point math? -- View this message in context: http://octave.1599824.n4.nabble.com/Octave-3-4-0-32-bit-PCLinuxOS-compilation-problem-tp3451503p3451503.html Sent from the Octave - General mailing list archive at Nabble.com. From Bard.Skaflestad at sintef.no Fri Apr 15 02:53:04 2011 From: Bard.Skaflestad at sintef.no (=?ISO-8859-1?Q?B=E5rd?= Skaflestad) Date: Fri, 15 Apr 2011 09:53:04 +0200 Subject: Problem using fscanf In-Reply-To: <1302845681677-3451276.post@n4.nabble.com> References: <1302777260369-3449262.post@n4.nabble.com> <1302787757.12885.49.camel@bska-ws> <1302845681677-3451276.post@n4.nabble.com> Message-ID: <1302853984.12885.60.camel@bska-ws> On Fri, 2011-04-15 at 07:34 +0200, Utherr13 wrote: > It only shows me the first line. I want all lines from the file. What is "it"? Your original code? Did you try my suggestion? Here's a more complete demonstration. Maybe you can pinpoint the spot where this approach does not produce the results you expected: # Create test data file: x = floor(100 * rand([100, 2])); # create some data f = fopen("data.txt", "w"); # error checking omitted fprintf(f, "%d %d\n", x .'); # output data to file fclose(f); # Read data back in: f = fopen("data.txt", "r"); # error checking omitted t = fscanf(f, "%d", [2, 100]) .'; # [2,100]+transpose essential fclose(f); # Compare to original all(all(t == x)) By the way, this problem might be easier to attack using the "load" function. Sincerely, -- B?rd Skaflestad SINTEF ICT, Applied Mathematics From maclair at gamma.ttk.pte.hu Fri Apr 15 03:34:40 2011 From: maclair at gamma.ttk.pte.hu (maclair) Date: Fri, 15 Apr 2011 01:34:40 -0700 (PDT) Subject: Ode45: removing results of earlier steps In-Reply-To: References: Message-ID: <1302856480855-3451555.post@n4.nabble.com> I think I found something like a solution; if anyone runs into the same problem, here's what I've done: 1) Copied ode45 to my working directory 2) Opened it and 3) Commented line: vcntsave = vcntsave + 1; (around line 373) Thus far it seems to work. Matyas -- View this message in context: http://octave.1599824.n4.nabble.com/Ode45-removing-results-of-earlier-steps-tp3449614p3451555.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Fri Apr 15 03:49:08 2011 From: carlo.defalco at gmail.com (c.) Date: Fri, 15 Apr 2011 10:49:08 +0200 Subject: Using structures in OCT files In-Reply-To: <4DA727F4.90906@bfh.ch> References: <4DA727F4.90906@bfh.ch> Message-ID: <0DF387DD-402D-4BAD-84A0-BB80804EE167@gmail.com> On 14 Apr 2011, at 18:59, Andreas Stahel wrote: > Dear Octave users > > currently I am attempting to update a FEM package an with Octave 3.4 > I have a hard time to implement a feature in an OCT file > On the Octave level I will have a structure Mesh of the type > > Mesh.nodes = [0.0 0.5; 0.2,0.2;0.1,2.0] > Mesh. edge = [1 2; 2 3; 3 1] > > Then in an C++ file I need to access those structures > in a command FEMEquation(Mesh, ...) > > With older version of Octave I used codes like below > > =================== > DEFUN_DLD (FEMEquation, args, , "[...] = FEMEquation (...)\n ") > { > octave_value_list retval; > using namespace std; > octave_value_list argin; > octave_value_list res; > int nargout; > > Octave_map arg0 = args(0).map_value (); > > Octave_map::const_iterator p1 = arg0.seek ("nodes"); > const Matrix nodes = arg0.contents(p1)(0).matrix_value(); > p1 = arg0.seek ("edge"); > const ColumnVector edge = arg0.contents(p1)(0).column_vector_value(); > ...... > ==================== > > Then I could use those matrices. Even with the help of section A.1.5 Structures in Oct-Files > in the manual I could not figure out how to adapt to the new method. > This failure is caused by my lack of knowledge of C++ and Octave programming. > I would really appreciate some help or a good pointer to a similar example. > Andreas, You can have a look at the sourcecode of geopdes-base which uses structures extensively. In particular you might want to look at the function op_gradu_gradv.cc that asssembles the discrete version of the Laplace operator. Though the numerical method used in geopdes is more general than finite elements, that function should be exactly the same as for FEM, so this function should be easy for you to read. HTH, c. From franck.buloup at univmed.fr Fri Apr 15 03:47:11 2011 From: franck.buloup at univmed.fr (frank buloup) Date: Fri, 15 Apr 2011 10:47:11 +0200 Subject: octave from java In-Reply-To: <1302853984.12885.60.camel@bska-ws> References: <1302777260369-3449262.post@n4.nabble.com> <1302787757.12885.49.camel@bska-ws> <1302845681677-3451276.post@n4.nabble.com> <1302853984.12885.60.camel@bska-ws> Message-ID: <4DA8060F.6020702@univmed.fr> Hello, I'm trying to use Octave from java but I'm facing a strange problem that have already been encountered. From java program, I'm using Runtime exec to start an external process, getting back input, output and error streams; sending command using output stream and parsing the result from input stream. Everything is working fine until a bad command is sent to Octave (a command containing a call to a function from a package that has not been installed for instance) : octave seems to crash and I 've not found any log file that could help me to debug something. This problem has already been encountered, please see thread : http://octave.1599824.n4.nabble.com/Octave-from-Java-td1630041.html#a1630055 Two points are mentioned from this thread : 1) Something has already been done in python using pipes or sockets - At the begining of the thread 2) Using Runtime exec approach, you must use "--interactive" option and read data in bytes - At the end of the thread My questions : 1) Is anybody know how to use pipes or sockets and can give me some links, starting points that could help me ? 2) I did not understood the read "data in bytes". There is no ByteBufferedReader class and from a BufferedReader there exist only a read(char[],offset,length) method, but it reads chars, not bytes !!! Must we use a BufferedInputStream instead ? Thanks a lot for your help, frank From gkousiou at mail.ntua.gr Fri Apr 15 04:18:37 2011 From: gkousiou at mail.ntua.gr (George Kousiouris) Date: Fri, 15 Apr 2011 12:18:37 +0300 Subject: octave from java In-Reply-To: <4DA8060F.6020702@univmed.fr> References: <1302777260369-3449262.post@n4.nabble.com> <1302787757.12885.49.camel@bska-ws> <1302845681677-3451276.post@n4.nabble.com> <1302853984.12885.60.camel@bska-ws> <4DA8060F.6020702@univmed.fr> Message-ID: <4DA80D6D.7080103@mail.ntua.gr> Hi, are you sure you are capturing output and error streams efficiently? There are many ways to do that, the most stable (we have tested it for hours of execution of octave through Java) is raising threads in order to capture output and error streams. You can find more info in the following link: http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=4 You can also use java to octave library (http://kenai.com/projects/javaoctave/downloads), for parsing some info from java to octave. We have also made a stable service oriented implementation of octave execution through web services and java. You can find an initial version of the code here: http://irmosserviceeng.svn.sourceforge.net/viewvc/irmosserviceeng/trunk/Mapping/src/ that illustrates the usage of threads in order to raise octave executions and capture efficiently output and error streams. hope it helps, George On 4/15/2011 11:47 AM, frank buloup wrote: > Hello, > > I'm trying to use Octave from java but I'm facing a strange problem > that have already > been encountered. From java program, I'm using Runtime exec to start > an external > process, getting back input, output and error streams; sending command > using > output stream and parsing the result from input stream. Everything is > working fine > until a bad command is sent to Octave (a command containing a call to > a function > from a package that has not been installed for instance) : octave > seems to crash > and I 've not found any log file that could help me to debug something. > > This problem has already been encountered, please see thread : > > http://octave.1599824.n4.nabble.com/Octave-from-Java-td1630041.html#a1630055 > > > Two points are mentioned from this thread : > > 1) Something has already been done in python using pipes or sockets - > At the begining of the thread > 2) Using Runtime exec approach, you must use "--interactive" option > and read data in bytes - At the end of the thread > > My questions : > > 1) Is anybody know how to use pipes or sockets and can give me some > links, starting points > that could help me ? > > 2) I did not understood the read "data in bytes". There is no > ByteBufferedReader class and > from a BufferedReader there exist only a read(char[],offset,length) > method, but it reads chars, > not bytes !!! Must we use a BufferedInputStream instead ? > > Thanks a lot for your help, > frank > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > > -- --------------------------- George Kousiouris Electrical and Computer Engineer Division of Communications, Electronics and Information Engineering School of Electrical and Computer Engineering Tel: +30 210 772 2546 Mobile: +30 6939354121 Fax: +30 210 772 2569 Email: gkousiou at mail.ntua.gr National Technical University of Athens 9 Heroon Polytechniou str., 157 73 Zografou, Athens, Greece From utherr.ghujax at gmail.com Fri Apr 15 04:37:00 2011 From: utherr.ghujax at gmail.com (Utherr13) Date: Fri, 15 Apr 2011 02:37:00 -0700 (PDT) Subject: Problem using fscanf In-Reply-To: <1302853984.12885.60.camel@bska-ws> References: <1302777260369-3449262.post@n4.nabble.com> <1302787757.12885.49.camel@bska-ws> <1302845681677-3451276.post@n4.nabble.com> <1302853984.12885.60.camel@bska-ws> Message-ID: <1302860220376-3451645.post@n4.nabble.com> I don't know how to use load, help manual is ambiguous and not helping. I want some examples. # Create test data file: x = floor(100 * rand([100, 2])); # create some data f = fopen("data.txt", "w"); # error checking omitted fprintf(f, "%d %d\n", x .'); # output data to file fclose(f); whooo... hold one.. my data is not like that. It has 2,3 or 4 spaces between first column and second. The piece of code that you supplied to me only gets the first row. Here's my complete code that doesn't work: function y=dens_energy() % a = 3 % besseli(0,3) = 4,8808 f=fopen('sunspot.dat','r'); a=zeros(100,2); for i=1:100 z = fscanf(f,"%d",1); %first column is useless a(i) = fscanf(f,"%d",1); disp(a(i)); endfor endfunction a part of sunspot.dat: 1701 11.0 1702 16.0 1703 23.0 1704 36.0 1705 58.0 1706 29.0 1707 20.0 1708 10.0 1709 8.0 1710 3.0 1711 0.0 1712 0.0 1713 2.0 1714 11.0 -- View this message in context: http://octave.1599824.n4.nabble.com/Problem-using-fscanf-tp3449262p3451645.html Sent from the Octave - General mailing list archive at Nabble.com. From Bard.Skaflestad at sintef.no Fri Apr 15 05:23:50 2011 From: Bard.Skaflestad at sintef.no (=?ISO-8859-1?Q?B=E5rd?= Skaflestad) Date: Fri, 15 Apr 2011 12:23:50 +0200 Subject: Problem using fscanf In-Reply-To: <1302860220376-3451645.post@n4.nabble.com> References: <1302777260369-3449262.post@n4.nabble.com> <1302787757.12885.49.camel@bska-ws> <1302845681677-3451276.post@n4.nabble.com> <1302853984.12885.60.camel@bska-ws> <1302860220376-3451645.post@n4.nabble.com> Message-ID: <1302863030.12885.76.camel@bska-ws> On Fri, 2011-04-15 at 11:37 +0200, Utherr13 wrote: > I don't know how to use load, help manual is ambiguous and not helping. I > want some examples. > > # Create test data file: > x = floor(100 * rand([100, 2])); # create some data > f = fopen("data.txt", "w"); # error checking omitted > fprintf(f, "%d %d\n", x .'); # output data to file > fclose(f); > > whooo... hold one.. my data is not like that. It has 2,3 or 4 spaces between > first column and second. For the purpose of "fscanf" your data is *exactly* like that. A single space in the scan template is interpreted as an arbitrary (positive) number of space-like characters. See for instance http://www.gnu.org/software/octave/doc/interpreter/Formatted-Input.html or any text book on C. > > The piece of code that you supplied to me only gets the first row. > > Here's my complete code that doesn't work: > > function y=dens_energy() > % a = 3 > % besseli(0,3) = 4,8808 > f=fopen('sunspot.dat','r'); > a=zeros(100,2); > for i=1:100 > z = fscanf(f,"%d",1); %first column is useless > a(i) = fscanf(f,"%d",1); > disp(a(i)); > endfor > endfunction Right. So you're (attempting) to read lines of integers (%d) from the file sunspot.dat > > a part of sunspot.dat: > > 1701 11.0 > 1702 16.0 except sunspot.dat does not contain (only) integers. The result is input failure. You need to use a scan template for floating point conversion to read this data. Try this: t = fscanf(f, "%f", [2, inf]) .'; a = t(:,2); The "%f" template converts integer data too. Still, using "load" is probably easier for this task as you don't have to remember to close the file once you're done with it: a = load("sunspot.dat"); a = a(:,2); Sincerely, -- B?rd Skaflestad SINTEF ICT, Applied Mathematics From michael.creel at uab.es Fri Apr 15 06:56:15 2011 From: michael.creel at uab.es (Michael Creel) Date: Fri, 15 Apr 2011 13:56:15 +0200 Subject: no mkoctfile? In-Reply-To: References: Message-ID: On Thu, Apr 14, 2011 at 10:10 AM, Michael Creel wrote: > Hello all, > > I'm compiling Octave 3.4.0 for PelicanHPC, and all goes well except > that mkoctfile in not to be found in /usr/local/bin. The octave > executable is there. I have searched the build log and do not see any > problems. When I build 3.4.0 for my own use on my machine, I have > mkoctfile as usual. > > Thanks, > Michael > > Here's the last bit of ./configure's output in case that helps: > > > Octave is now configured for x86_64-unknown-linux-gnu > > ?Source directory: ? ? ? ? ? ?. > ?Installation prefix: ? ? ? ? /usr/local > ?C compiler: ? ? ? ? ? ? ? ? ?gcc ? -Wall -W -Wshadow -Wformat > -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes > -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread > ?C++ compiler: ? ? ? ? ? ? ? ?g++ ? ?-Wall -W -Wshadow > -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align > -Wcast-qual -g -O2 > ?Fortran compiler: ? ? ? ? ? ?gfortran -O > ?Fortran libraries: ? ? ? ? ? ?-L/usr/lib/gcc/x86_64-linux-gnu/4.4.5 > -L/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib -L/lib/../lib > -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../.. > -lgfortranbegin -lgfortran -lm > ?Lex libraries: > ?LIBS: ? ? ? ? ? ? ? ? ? ? ? ?-lm > > ?AMD CPPFLAGS: > ?AMD LDFLAGS: > ?AMD libraries: ? ? ? ? ? ? ? -lamd > ?BLAS libraries: ? ? ? ? ? ? ?-lcblas -lf77blas -latlas > ?CAMD CPPFLAGS: > ?CAMD LDFLAGS: > ?CAMD libraries: ? ? ? ? ? ? ?-lcamd > ?CARBON libraries: > ?CCOLAMD CPPFLAGS: > ?CCOLAMD LDFLAGS: > ?CCOLAMD libraries: ? ? ? ? ? -lccolamd > ?CHOLMOD CPPFLAGS: > ?CHOLMOD LDFLAGS: > ?CHOLMOD libraries: ? ? ? ? ? -lcholmod > ?COLAMD CPPFLAGS: > ?COLAMD LDFLAGS: > ?COLAMD libraries: ? ? ? ? ? ?-lcolamd > ?CURL CPPFLAGS: > ?CURL LDFLAGS: > ?CURL libraries: > ?CXSPARSE CPPFLAGS: > ?CXSPARSE LDFLAGS: > ?CXSPARSE libraries: ? ? ? ? ?-lcxsparse > ?DL libraries: ? ? ? ? ? ? ? ?-ldl > ?FFTW3 CPPFLAGS: > ?FFTW3 LDFLAGS: > ?FFTW3 libraries: ? ? ? ? ? ? -lfftw3 > ?FFTW3F CPPFLAGS: > ?FFTW3F LDFLAGS: > ?FFTW3F libraries: ? ? ? ? ? ?-lfftw3f > ?fontconfig CFLAGS: > ?fontconfig LIBS: > ?FT2_CFLAGS: > ?FT2_LIBS: > ?GLPK CPPFLAGS: > ?GLPK LDFLAGS: > ?GLPK libraries: ? ? ? ? ? ? ?-lglpk > ?graphics CFLAGS: > ?graphics LIBS: > ?Magick++ CPPFLAGS: > ?Magick++ LDFLAGS: > ?Magick++ libraries: > ?HDF5 CPPFLAGS: > ?HDF5 LDFLAGS: > ?HDF5 libraries: > ?LAPACK libraries: ? ? ? ? ? ?-llapack > ?OPENGL libraries: > ?PTHREAD flags: ? ? ? ? ? ? ? -pthread > ?PTHREAD libraries: > ?QHULL CPPFLAGS: > ?QHULL LDFLAGS: > ?QHULL libraries: > ?QRUPDATE libraries: ? ? ? ? ?-lqrupdate > ?READLINE libraries: ? ? ? ? ?-lreadline > ?REGEX libraries: ? ? ? ? ? ? -L/usr/lib -lpcre > ?TERM libraries: ? ? ? ? ? ? ?-lncurses > ?UMFPACK libraries: ? ? ? ? ? -lumfpack > ?X11 include flags: > ?X11 libraries: ? ? ? ? ? ? ? -lX11 > ?Z CPPFLAGS: > ?Z LDFLAGS: > ?Z libraries: ? ? ? ? ? ? ? ? -lz > > ?Default pager: ? ? ? ? ? ? ? less > ?gnuplot: ? ? ? ? ? ? ? ? ? ? gnuplot > > ?Do internal array bounds checking: ?false > ?Build static libraries: ? ? ? ? ? ? false > ?Build shared libraries: ? ? ? ? ? ? true > ?Dynamic Linking: ? ? ? ? ? ? ? ? ? ?true (dlopen) > ?Include support for GNU readline: ? true > ?64-bit array dims and indexing: ? ? false > > configure: WARNING: I didn't find gperf, but it's only a problem if > you need to reconstruct oct-gperf.h > configure: WARNING: I didn't find flex, but it's only a problem if you > need to reconstruct lex.cc > configure: WARNING: I didn't find bison, but it's only a problem if > you need to reconstruct parse.cc > configure: WARNING: cURL library not found. ?The ftp objects, urlread > and urlwrite functions will be disabled. > configure: WARNING: GraphicsMagick++ library not found. ?The imread > function for reading image files will not be fully functional. > configure: WARNING: HDF5 library not found. ?Octave will not be able > to save or load HDF5 data files. > configure: WARNING: Qhull library not found -- this will result in > loss of functionality of some geometry functions. > configure: WARNING: OpenGL libs (GL and GLU) not found. Native > graphics will be disabled. > configure: WARNING: > configure: WARNING: I didn't find the necessary libraries to compile native > configure: WARNING: graphics. ?It isn't necessary to have native graphics, > configure: WARNING: but you will need to have gnuplot installed or you won't > configure: WARNING: be able to use any of Octave's plotting commands > configure: WARNING: > configure: > configure: NOTE: libraries may be skipped if a library is not found OR > configure: NOTE: if the library on your system is missing required features. > Well, I installed the libraries needed for native graphics (GL, GLU, FLTK, freetype) and now I have mkoctfile. That seems like a bizarre interaction to me, but at any rate, it fixed the problem. Michael From kim at i9.dk Fri Apr 15 07:08:28 2011 From: kim at i9.dk (Kim Hansen) Date: Fri, 15 Apr 2011 14:08:28 +0200 Subject: octave from java In-Reply-To: <4DA8060F.6020702@univmed.fr> References: <1302777260369-3449262.post@n4.nabble.com> <1302787757.12885.49.camel@bska-ws> <1302845681677-3451276.post@n4.nabble.com> <1302853984.12885.60.camel@bska-ws> <4DA8060F.6020702@univmed.fr> Message-ID: On Fri, Apr 15, 2011 at 10:47, frank buloup wrote: > Hello, > > I'm trying to use Octave from java but I'm facing a strange problem that > have already > been encountered. From java program, I'm using Runtime exec to start an > external > process, getting back input, output and error streams; sending command using > output stream and parsing the result from input stream. Everything is > working fine > until a bad command is sent to Octave (a command containing a call to a > function > from a package that has not been installed for instance) : octave seems to > crash > and I 've not found any log file that could help me to debug something. > > This problem has already been encountered, please see thread : > > http://octave.1599824.n4.nabble.com/Octave-from-Java-td1630041.html#a1630055 The problem with handling bad commands has been solved in JavaOctave (http://kenai.com/projects/javaoctave/). Have you tried JavaOctave? Regards, -- Kim Hansen Vadg?rdsvej 3, 2.tv 2860 S?borg Phone: +45 3091 2437 From utherr.ghujax at gmail.com Fri Apr 15 08:08:06 2011 From: utherr.ghujax at gmail.com (Utherr13) Date: Fri, 15 Apr 2011 06:08:06 -0700 (PDT) Subject: octave from java In-Reply-To: References: <1302777260369-3449262.post@n4.nabble.com> <1302787757.12885.49.camel@bska-ws> <1302845681677-3451276.post@n4.nabble.com> <1302853984.12885.60.camel@bska-ws> <4DA8060F.6020702@univmed.fr> Message-ID: <1302872886465-3451986.post@n4.nabble.com> THanks, I solved my problems. I need to use octave only (for college). -- View this message in context: http://octave.1599824.n4.nabble.com/Problem-using-fscanf-tp3449262p3451986.html Sent from the Octave - General mailing list archive at Nabble.com. From franck.buloup at univmed.fr Fri Apr 15 08:18:06 2011 From: franck.buloup at univmed.fr (frank buloup) Date: Fri, 15 Apr 2011 15:18:06 +0200 Subject: octave from java In-Reply-To: References: <1302777260369-3449262.post@n4.nabble.com> <1302787757.12885.49.camel@bska-ws> <1302845681677-3451276.post@n4.nabble.com> <1302853984.12885.60.camel@bska-ws> <4DA8060F.6020702@univmed.fr> Message-ID: <4DA8458E.2060300@univmed.fr> Le 15/04/11 14:08, Kim Hansen a ?crit : > On Fri, Apr 15, 2011 at 10:47, frank buloup wrote: >> Hello, >> >> I'm trying to use Octave from java but I'm facing a strange problem that >> have already >> been encountered. From java program, I'm using Runtime exec to start an >> external >> process, getting back input, output and error streams; sending command using >> output stream and parsing the result from input stream. Everything is >> working fine >> until a bad command is sent to Octave (a command containing a call to a >> function >> from a package that has not been installed for instance) : octave seems to >> crash >> and I 've not found any log file that could help me to debug something. >> >> This problem has already been encountered, please see thread : >> >> http://octave.1599824.n4.nabble.com/Octave-from-Java-td1630041.html#a1630055 > The problem with handling bad commands has been solved in JavaOctave > (http://kenai.com/projects/javaoctave/). Have you tried JavaOctave? > > Regards, Hello Kim, thanks a lot for your reply, you gave me the solution : wrap every sent commands in an "eval()" function. THANKS YOU VERY MUCH !!!!!!! I was aware of the existence of javaoctave, but never tried it. The solution that I've used is not so generic as your and is very linked to our needs. But when I was looking for the solution, I've downloaded src of javaoctave and had a look at it. I've seen that you've wrapped almost every octave type in a specific octave class. Why did you choose to do that ? Was it impossible to wrap octave double, or matrix of doubles in native java type double and double[] for instance ? Have you ever test your code in manipulating a huge amount of data (say 500*60000 array of double for instance) ? Again thanks a lot for your help, With best regards, frank -- Frank Buloup 04 91 17 22 71 Institut des Sciences du Mouvement UMR 6233 CNRS & Universit? de le M?diterran?e 163 avenue de Luminy 13288 Marseille Cedex 9 Fax : 04 91 17 22 52 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordigh at octave.org Fri Apr 15 08:53:49 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 15 Apr 2011 08:53:49 -0500 Subject: Problem using fscanf In-Reply-To: <1302860220376-3451645.post@n4.nabble.com> References: <1302777260369-3449262.post@n4.nabble.com> <1302787757.12885.49.camel@bska-ws> <1302845681677-3451276.post@n4.nabble.com> <1302853984.12885.60.camel@bska-ws> <1302860220376-3451645.post@n4.nabble.com> Message-ID: On 15 April 2011 04:37, Utherr13 wrote: > I don't know how to use ?load, help manual is ambiguous and not helping. Can you please explain what part of the manual is ambiguous so we can improve it? > I want some examples. That's fair, the entire manual could use many more examples. - Jordi G. H. From Bard.Skaflestad at sintef.no Fri Apr 15 09:46:38 2011 From: Bard.Skaflestad at sintef.no (=?ISO-8859-1?Q?B=E5rd?= Skaflestad) Date: Fri, 15 Apr 2011 16:46:38 +0200 Subject: Problem using fscanf In-Reply-To: <1302863030.12885.76.camel@bska-ws> References: <1302777260369-3449262.post@n4.nabble.com> <1302787757.12885.49.camel@bska-ws> <1302845681677-3451276.post@n4.nabble.com> <1302853984.12885.60.camel@bska-ws> <1302860220376-3451645.post@n4.nabble.com> <1302863030.12885.76.camel@bska-ws> Message-ID: <1302878798.12885.81.camel@bska-ws> On Fri, 2011-04-15 at 12:23 +0200, B?rd Skaflestad wrote: > Still, using "load" is probably easier for this task as you don't have > to remember to close the file once you're done with it: > > a = load("sunspot.dat"); > a = a(:,2); On the other hand, using "fscanf" allows you to do this if the first column is truly inconsequential in your application a = fscanf(f, "%*d %f"); This may be significant (in terms of memory) if your input ever grows large (several million rows). Sincerely, -- B?rd Skaflestad SINTEF ICT, Applied Mathematics From ronan.scaife at dcu.ie Fri Apr 15 10:47:31 2011 From: ronan.scaife at dcu.ie (Ronan Scaife) Date: Fri, 15 Apr 2011 16:47:31 +0100 Subject: Building pa_wavplay In-Reply-To: References: Message-ID: <4DA86893.40206@dcu.ie> Dear B?rge and others, 3 years ago, I ported pa_wavplay to *Scilab*, which has its own utilities for building mex extensions (like those in Octave). All sources for my port are available at: In the downloadable sources available from the above page, I think that most if not all of the changes are in pawavplaySW.cpp. AFAICR, I did NOT build a separate portaudio dll, but just included some of the PortAudio source files in my own front end. Only a few (5 or 6) files from the portaudio distro are needed for pa_wavplay. You end up with just a single dll: sci_pawavplayw.dll. It would have been nice to use mingw32 to build the dll, but I was in a hurry, so I used the MS tools, like in the original pa_wavplay. Best Wishes, On 14/04/2011 20:56, B?rge Strand-Bergesen wrote: > Hi, > > I'm trying to build pa_wavplay according to > http://old.nabble.com/pa_wavplay-td10426977.html and pa_tut_pc.html in > the Portaudio documentation. > > Has anybody done this successfully on Octave 3.2.4 for mingw32 Windows? > > The place where it stops for me is: > mkoctfile -I../portaudio_v18_1/pa_common -lportaudio --mex -o > pawavplaya.mex pawavplay.cpp > I run this from inside Octave with the -I (capital i) added to the > command at old nabble. > > The error message reads: > c:/octave/3.2.4_gcc-4.4.0/mingw32/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: > cannot find -lportaudio > collect2: ld returned 1 exit status > > I have searched my computer for portaudio.* without finding anything > resembling a library file. Is this something I have to compile from > source? I've got Visual C++ 2010 Express installed, something which is > hardly covered by the tutorial. Or should I use mingw32 to compile a > portaudio library file? > > > Thanks, > > B?rge > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > -- == Dr. Ronan Scaife =============== ronan.scaife at rince.ie ========== RINCE (Research Inst. for Networks and Communications Engineering), School of Elec Eng, Dublin City University, Dublin 9, IRELAND. http://www.eeng.dcu.ie/~scaifer/ phone (office): +353-1-700-5434 phone (lab): +353-1-700-7623 fax: +353-1-700-5508 ==================================================================== From babelproofreader at gmail.com Fri Apr 15 17:03:49 2011 From: babelproofreader at gmail.com (babelproofreader) Date: Fri, 15 Apr 2011 15:03:49 -0700 (PDT) Subject: Octave-forge Financial package - how to use the fetch function? Message-ID: <1302905028979-3453093.post@n4.nabble.com> I have installed the Octave-forge Financial package and would like to use the fetch_yahoo function but I simply can't figure out how to use it. Could someone provide a simple script example that illustrates how to use it? I'm interested in down loading the open, high, low and close for a given symbol for the last two years or so. -- View this message in context: http://octave.1599824.n4.nabble.com/Octave-forge-Financial-package-how-to-use-the-fetch-function-tp3453093p3453093.html Sent from the Octave - General mailing list archive at Nabble.com. From tweber at debian.org Sat Apr 16 11:06:42 2011 From: tweber at debian.org (Thomas Weber) Date: Sat, 16 Apr 2011 18:06:42 +0200 Subject: Octave-forge Financial package - how to use the fetch function? In-Reply-To: <1302905028979-3453093.post@n4.nabble.com> References: <1302905028979-3453093.post@n4.nabble.com> Message-ID: <20110416160642.GA16723@atlan> On Fri, Apr 15, 2011 at 03:03:49PM -0700, babelproofreader wrote: > I have installed the Octave-forge Financial package and would like to use the > fetch_yahoo function but I simply can't figure out how to use it. Could > someone provide a simple script example that illustrates how to use it? I'm > interested in down loading the open, high, low and close for a given symbol > for the last two years or so. There's an example in the .m file itself, just look at the end in the test section. Thomas From tduell at iinet.net.au Sat Apr 16 18:56:21 2011 From: tduell at iinet.net.au (Terry Duell) Date: Sun, 17 Apr 2011 09:56:21 +1000 Subject: Help please in interpreting Matlab code Message-ID: Hullo All, I am trying to get some code written for Matlab, v7.3 I think, running in Octave 3.2.4, but have had trouble finding any info to help me interpret the code that Octave flags as a parse error. The code is as follows (there are 4 lines of text); imedges2c1(:,4*i-3:4*i) = [cross(imcorners2c1(:,1),imcorners2c1(:,4)), ... = [ y4-y1 ; x1-x4 ; x4*y1-x1*y4 ] cross(imcorners2c1(:,2),imcorners2c1(:,1)), ... cross(imcorners2c1(:,3),imcorners2c1(:,2)), ... cross(imcorners2c1(:,4),imcorners2c1(:,3))]; Octave flags the error as; syntax error >>> imedges2c1(:,4*i-3:4*i) = >>> [cross(imcorners2c1(:,1),imcorners2c1(:,4)), ... = [ y4-y1 ; x1-x4 ; >>> x4*y1-x1*y4 ] ^ Can someone please help me understand what this means and how to translate it into code that is acceptable to Octave? Cheers, -- Regards, Terry Duell From bpabbott at mac.com Sat Apr 16 19:06:12 2011 From: bpabbott at mac.com (Ben Abbott) Date: Sat, 16 Apr 2011 20:06:12 -0400 Subject: Help please in interpreting Matlab code In-Reply-To: References: Message-ID: On Apr 16, 2011, at 7:56 PM, Terry Duell wrote: > Hullo All, > I am trying to get some code written for Matlab, v7.3 I think, running in Octave 3.2.4, but have had trouble finding any info to help me interpret the code that Octave flags as a parse error. > The code is as follows (there are 4 lines of text); > > imedges2c1(:,4*i-3:4*i) = [cross(imcorners2c1(:,1),imcorners2c1(:,4)), ... = [ y4-y1 ; x1-x4 ; x4*y1-x1*y4 ] > cross(imcorners2c1(:,2),imcorners2c1(:,1)), ... > cross(imcorners2c1(:,3),imcorners2c1(:,2)), ... > cross(imcorners2c1(:,4),imcorners2c1(:,3))]; > > > Octave flags the error as; > > > syntax error > >>>> imedges2c1(:,4*i-3:4*i) = [cross(imcorners2c1(:,1),imcorners2c1(:,4)), ... = [ y4-y1 ; x1-x4 ; x4*y1-x1*y4 ] > ^ > > Can someone please help me understand what this means and how to translate it into code that is acceptable to Octave? > > Cheers, > -- > Regards, > Terry Duell That is bad syntax for Matlab too. I don't think the part below belongs there. >>>> = [ y4-y1 ; x1-x4 ; x4*y1-x1*y4 ] Matlab interprets everything after "..." as a comment. To run on Octave, try removing everything follow the ellipses, or just comment it out. > imedges2c1(:,4*i-3:4*i) = [cross(imcorners2c1(:,1),imcorners2c1(:,4)), ... % = [ y4-y1 ; x1-x4 ; x4*y1-x1*y4 ] > cross(imcorners2c1(:,2),imcorners2c1(:,1)), ... > cross(imcorners2c1(:,3),imcorners2c1(:,2)), ... > cross(imcorners2c1(:,4),imcorners2c1(:,3))]; Ben From kim at i9.dk Sun Apr 17 04:30:00 2011 From: kim at i9.dk (Kim Hansen) Date: Sun, 17 Apr 2011 11:30:00 +0200 Subject: octave from java In-Reply-To: <4DA8458E.2060300@univmed.fr> References: <1302777260369-3449262.post@n4.nabble.com> <1302787757.12885.49.camel@bska-ws> <1302845681677-3451276.post@n4.nabble.com> <1302853984.12885.60.camel@bska-ws> <4DA8060F.6020702@univmed.fr> <4DA8458E.2060300@univmed.fr> Message-ID: On Fri, Apr 15, 2011 at 15:18, frank buloup wrote: > > thanks a lot for your reply, you gave me the solution : wrap every > sent commands in an "eval()" function. THANKS YOU VERY MUCH !!!!!!! Yes, that trick solved a lot of problems for us, it might cost a little in performance but I don't know if it is more or less than the cost of using pipes to talk to octave. > I was aware of the existence of javaoctave, but never tried it. The solution > that I've used is not so generic as your and is very linked to our needs. > > But when I was looking for the solution, I've downloaded src of javaoctave > and > had a look at it. I've seen that you've wrapped almost every octave type in > a specific > octave class. Why did you choose to do that ? Was it impossible to wrap > octave double, or > matrix of doubles in native java type double and double[] for instance ? We have a lot of good reasons for doing it, and not really a reason for not doing it as the wrappers are very cheap. It makes it a lot easier to use the structs that we have a common ancestor. Out matrix class uses 1-base indexes in order to look more like octave and it is resizeable, we could not get that from double[][]. > Have you ever test your > code in manipulating a huge amount of data (say 500*60000 array of double > for instance) ? I just tested it on a small program, it took 50 seconds to put() data from Java to Octave, and 175 seconds for get() on a fairly slow laptop. It looks like the limiting factor is octave, it uses 100% cpu during the entire transfer. If I load or save the same data to a file in the -text format it takes 25 and 50 seconds, it might be possible to get the transfer times down to that by looking at the buffering between Java and octave. Using the same data and loading from stdin and saving to stdout takes 45 and 150 seconds, I don't really know how to interpret that, perhaps there should be added some extra buffering in octave when saving to stdout. -- Kim Hansen Vadg?rdsvej 3, 2.tv 2860 S?borg Phone: +45 3091 2437 From danielyan86129 at hotmail.com Sun Apr 17 06:24:40 2011 From: danielyan86129 at hotmail.com (yanyajie) Date: Sun, 17 Apr 2011 19:24:40 +0800 Subject: coudn't find dbleDET.h Message-ID: ?Hi all, A project I am compiling requires octave/dbleDET.h to be included. However, I didn?t find this header anywhere in the Octave include dir. . I am using octave 3.2.4, and the project was built upon 2.1. Could this be the reason? Does 3.2.4 deprecate this header and have all the functionality defined in it undergone some transformations? How can I cope with this situation? Will it work that someone just send me the header and I add it to the include dir? Or do I need to port the whole project to 3.2.4? What's more, I find some headers of Octave, for instance lo-mappers.h, use functions like std::isfinite(), std::isnan(), which are not available in MSVC, and VC compiler keeps complaining about this. Why does octave have such problem? Isn't Octave a cross-platform project? Shouldn't it resolve platform dependency? Thank you! Sincerely, Yan. ------------------------------------------------------------------------------------- * The State Key Laboratory of Virtual Reality and Technology * School of Computer Science and Engineering * Beijing University Aeronautics and Astronautics (Beihang Univ.) ------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sergstesh at yahoo.com Sun Apr 17 07:55:35 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Sun, 17 Apr 2011 05:55:35 -0700 (PDT) Subject: apparently wrong description of 'arg' function in octave-3.0.5 Message-ID: <179629.49407.qm@web112101.mail.gq1.yahoo.com> Hello, in octave-3.0.5 'help arg' produces: " -- Mapping Function: arg (Z) -- Mapping Function: angle (Z) Compute the argument of Z, defined as THETA = `atan (Y/X)'. in radians. ". According to Wiki and my memories from school: http://en.wikipedia.org/wiki/Inverse_trigonometric_functions : arctangent y = arctan x x = tan y all real numbers ??/2 < y < ?/2 ?90? < y < 90? , i.e. the ranges equivalently are: ??/2 < y < ?/2 ?90? < y < 90? . The above ranges are insufficient for complex numbers - the range in radians should be either -pi .. pi or 0 .. 2 * pi. In reality the 'arg' function works correctly: " octave:23> 180 / pi * arg(-1 + 0.01i) ans = 179.43 octave:24> 180 / pi * arg(-1 - 0.01i) ans = -179.43 ", i.e. it implements -pi .. pi (-180 .. 180 degrees) range - opposed to what its built-in help message says (because of 'atan' and it's -pi/2 .. pi/2 range). Is the description fixed in later 'octave' versions ? If not, should I file a bug report or this message is sufficient ? ... 'arg' behaves in accordance with 'man 3 carg' which is OK. Thanks, Sergei. From bpabbott at mac.com Sun Apr 17 09:54:26 2011 From: bpabbott at mac.com (Ben Abbott) Date: Sun, 17 Apr 2011 10:54:26 -0400 Subject: apparently wrong description of 'arg' function in octave-3.0.5 In-Reply-To: <179629.49407.qm@web112101.mail.gq1.yahoo.com> References: <179629.49407.qm@web112101.mail.gq1.yahoo.com> Message-ID: <3190F601-C81B-4AD9-AE17-BBA898657ECF@mac.com> On Apr 17, 2011, at 8:55 AM, Sergei Steshenko wrote: > Hello, > > in octave-3.0.5 'help arg' produces: > > " > -- Mapping Function: arg (Z) > -- Mapping Function: angle (Z) > Compute the argument of Z, defined as THETA = `atan (Y/X)'. in > radians. > ". > > According to Wiki and my memories from school: > > http://en.wikipedia.org/wiki/Inverse_trigonometric_functions : > > arctangent y = arctan x x = tan y all real numbers ??/2 < y < ?/2 ?90? < y < 90? > > , i.e. the ranges equivalently are: > > ??/2 < y < ?/2 ?90? < y < 90? > . > > The above ranges are insufficient for complex numbers - the range in > radians should be either > > -pi .. pi > > or > > 0 .. 2 * pi. > > In reality the 'arg' function works correctly: > > " > octave:23> 180 / pi * arg(-1 + 0.01i) > ans = 179.43 > octave:24> 180 / pi * arg(-1 - 0.01i) > ans = -179.43 > ", > > i.e. it implements -pi .. pi (-180 .. 180 degrees) range - opposed to > what its built-in help message says (because of 'atan' and it's > -pi/2 .. pi/2 range). > > Is the description fixed in later 'octave' versions ? The current sources include ... -- Mapping Function: arg (Z) -- Mapping Function: angle (Z) Compute the argument of Z, defined as, THETA = `atan2 (Y, X)', in radians. Ben From sergstesh at yahoo.com Sun Apr 17 10:05:05 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Sun, 17 Apr 2011 08:05:05 -0700 (PDT) Subject: apparently wrong description of 'arg' function in octave-3.0.5 In-Reply-To: <3190F601-C81B-4AD9-AE17-BBA898657ECF@mac.com> Message-ID: <744060.93809.qm@web112117.mail.gq1.yahoo.com> --- On Sun, 4/17/11, Ben Abbott wrote: > From: Ben Abbott > Subject: Re: apparently wrong description of 'arg' function in octave-3.0.5 > To: "Sergei Steshenko" > Cc: help-octave at octave.org > Date: Sunday, April 17, 2011, 7:54 AM > On Apr 17, 2011, at 8:55 AM, Sergei [snip] > > The current sources include ... > > -- Mapping Function:? arg (Z) > -- Mapping Function:? angle (Z) > ? ???Compute the argument of Z, defined > as, THETA = `atan2 (Y, X)', in > ? ???radians. > > Ben > Thanks - 'atan2' is OK since it returns -pi .. pi range. Regards, Sergei. From m.chabot at computer.org Sun Apr 17 13:16:52 2011 From: m.chabot at computer.org (Michele Chabot) Date: Sun, 17 Apr 2011 14:16:52 -0400 Subject: connect Octave to Fantom Driver library on Windows? Message-ID: Hello, I would like to operate my Lego NXT robot using Octave and the Fantom Driver library (http://mindstorms.lego.com/en-us/support/files/Driver.aspx) on Windows. RWTH (http://www.mindstorms.rwth-aachen.de/) (GPL) does this already with MatLab in place of Octave, but it relies on MatLab features not available in Octave (calllib) to access the Fantom library. To accesses the fantom driver from Octave using OCT files, I could create .cc wrapper files to link with the fantom library, but since fantom supplies only Microsoft-compatible (header,lib and dll) files for windows, I assume this would not work. Is there a way control my NXT robot using the binary version of Octave for Windows? Thanks, Michele -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at mhelm.de Sun Apr 17 13:37:56 2011 From: martin at mhelm.de (Martin Helm) Date: Sun, 17 Apr 2011 20:37:56 +0200 Subject: connect Octave to Fantom Driver library on Windows? In-Reply-To: References: Message-ID: <201104172037.57697.martin@mhelm.de> Am Sonntag, 17. April 2011, 20:16:52 schrieb Michele Chabot: > Hello, > I would like to operate my Lego NXT robot using Octave and the Fantom > Driver library > (http://mindstorms.lego.com/en-us/support/files/Driver.aspx) on Windows. > > RWTH (http://www.mindstorms.rwth-aachen.de/) (GPL) does this already with > MatLab in place of Octave, but it relies on MatLab features not available > in Octave (calllib) to access the Fantom library. > > To accesses the fantom driver from Octave using OCT files, I could create > .cc wrapper files to link with the fantom library, but since fantom > supplies only Microsoft-compatible (header,lib and dll) files for windows, > I assume this would not work. > > Is there a way control my NXT robot using the binary version of Octave for > Windows? > Thanks, > Michele I do not know if that works directly, since you said it is MS compatible only using mex or oct files. If nobody else has a better idea you can try an indirect way using the octave java package. There is a java wrapper available for the driver at https://code.google.com/p/jbrick/downloads/list From joonsoo.shin at gmail.com Fri Apr 15 11:09:50 2011 From: joonsoo.shin at gmail.com (neo7891) Date: Fri, 15 Apr 2011 09:09:50 -0700 (PDT) Subject: leasqr problem - covp is 'NA'!!! Message-ID: <1302883790276-3452439.post@n4.nabble.com> hey guys, I'm try to solve exponential fitting with leasqr. The fitting itself is really good - and I want to measure the estimation error of parameters. I found I can get the errors by : ======================================== sqrt(diag(covp)) ======================================== but the problem is... my 'covp' is only... ======================================== covp = NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA ======================================== here is the source... I hope I can get help from you!!!! Thanks a lot!!!!!!!! ======================================== data = load("data2.txt"); x = data(1:length(data),1); y = data(1:length(data),2); orgFx = @(x, p) p(1) + p(2) * ( 1 - exp( -p(3) * ( x - p(4)))); pin = ones(1,4); pin(1) = median(y(1:5)); pin(2) = max(y) - min(y); pin(3) = abs(log(max(y) - min(y))) / (max(x)-min(x)); pin(4) = min(x); F = orgFx; [f,p,kvg,iter,corp,covp,covr,stdresid,Z,r2] = leasqr(x,y,pin,F); plot(x, y, "r+", x, f, "b-"); fprintf("%f %f %f %f\n", p(1), p(2), p(3), p(4)); ======================================== -- View this message in context: http://octave.1599824.n4.nabble.com/leasqr-problem-covp-is-NA-tp3452439p3452439.html Sent from the Octave - General mailing list archive at Nabble.com. From wahaj87 at yahoo.com Sun Apr 17 14:15:35 2011 From: wahaj87 at yahoo.com (wahaj87) Date: Sun, 17 Apr 2011 12:15:35 -0700 (PDT) Subject: gset to terminal LaTeX In-Reply-To: <18016.21407.532202.950463@segfault.lan> References: <46603203.4000406@mexinetica.com> <18016.21407.532202.950463@segfault.lan> Message-ID: <1303067735620-3455977.post@n4.nabble.com> hi The link https://www.cae.wisc.edu/pipermail/octave-maintainers/2007-May/002971.html is not working for gset patch, where to find it ? Or please tell what is equivalent to gset in octave 3.2.4 and gnuplot 4.4 patch 0, Os is windows xp professional. Output of getenv("GNUTERM") is ans = (above link is given on this link http://octave.1599824.n4.nabble.com/gset-to-terminal-LaTeX-td1625389.html ) Thanks. -- View this message in context: http://octave.1599824.n4.nabble.com/gset-to-terminal-LaTeX-tp1625389p3455977.html Sent from the Octave - General mailing list archive at Nabble.com. From martin at mhelm.de Sun Apr 17 15:08:07 2011 From: martin at mhelm.de (Martin Helm) Date: Sun, 17 Apr 2011 22:08:07 +0200 Subject: gset to terminal LaTeX In-Reply-To: <201104172149.54400.martin@mhelm.de> References: <46603203.4000406@mexinetica.com> <1303067735620-3455977.post@n4.nabble.com> <201104172149.54400.martin@mhelm.de> Message-ID: <201104172208.08069.martin@mhelm.de> Am Sonntag, 17. April 2011, 21:49:53 schrieb Martin Helm: > Am Sonntag, 17. April 2011, 21:15:35 schrieb wahaj87: > > hi > > The link > > https://www.cae.wisc.edu/pipermail/octave-maintainers/2007-May/002971.htm > > l is not working for gset patch, where to find it ? Or please tell what > > is equivalent to gset in octave 3.2.4 and gnuplot 4.4 patch 0, Os is > > windows xp professional. Output of getenv("GNUTERM") is ans = > > > > (above link is given on this link > > http://octave.1599824.n4.nabble.com/gset-to-terminal-LaTeX-td1625389.html > > ) > > > > > > Thanks. > > > > -- > > View this message in context: > > http://octave.1599824.n4.nabble.com/gset-to-terminal-LaTeX-tp1625389p3455 > > 9 77.html Sent from the Octave - General mailing list archive at > > Nabble.com. _______________________________________________ > > Help-octave mailing list > > Help-octave at octave.org > > https://mailman.cae.wisc.edu/listinfo/help-octave > > setenv("GNUTERM", "latex") I pressed by accident send too early: Terminal is set with the GNUTERM variable, if you set it to latex gnuplot will use it. Of course that writes the output to the stanadard output in the gnuplot process and you cannot use it. If you want to redirect to a special file I use the following trick setenv("GNUTERM", "latex; set output 'test.plt'") From martin at mhelm.de Sun Apr 17 14:49:53 2011 From: martin at mhelm.de (Martin Helm) Date: Sun, 17 Apr 2011 21:49:53 +0200 Subject: gset to terminal LaTeX In-Reply-To: <1303067735620-3455977.post@n4.nabble.com> References: <46603203.4000406@mexinetica.com> <18016.21407.532202.950463@segfault.lan> <1303067735620-3455977.post@n4.nabble.com> Message-ID: <201104172149.54400.martin@mhelm.de> Am Sonntag, 17. April 2011, 21:15:35 schrieb wahaj87: > hi > The link > https://www.cae.wisc.edu/pipermail/octave-maintainers/2007-May/002971.html > is not working for gset patch, where to find it ? Or please tell what is > equivalent to gset in octave 3.2.4 and gnuplot 4.4 patch 0, Os is windows > xp professional. Output of getenv("GNUTERM") is ans = > > (above link is given on this link > http://octave.1599824.n4.nabble.com/gset-to-terminal-LaTeX-td1625389.html ) > > > Thanks. > > -- > View this message in context: > http://octave.1599824.n4.nabble.com/gset-to-terminal-LaTeX-tp1625389p34559 > 77.html Sent from the Octave - General mailing list archive at Nabble.com. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave setenv("GNUTERM", "latex") From m.chabot at computer.org Sun Apr 17 19:59:45 2011 From: m.chabot at computer.org (Michele Chabot) Date: Sun, 17 Apr 2011 20:59:45 -0400 Subject: connect Octave to Fantom Driver library on Windows? In-Reply-To: <201104172037.57697.martin@mhelm.de> References: <201104172037.57697.martin@mhelm.de> Message-ID: Thank you very much for the pointer. I'll give it a try. On Sun, Apr 17, 2011 at 2:37 PM, Martin Helm wrote: > Am Sonntag, 17. April 2011, 20:16:52 schrieb Michele Chabot: > > Hello, > > I would like to operate my Lego NXT robot using Octave and the Fantom > > Driver library > > (http://mindstorms.lego.com/en-us/support/files/Driver.aspx) on Windows. > > > > RWTH (http://www.mindstorms.rwth-aachen.de/) (GPL) does this already > with > > MatLab in place of Octave, but it relies on MatLab features not available > > in Octave (calllib) to access the Fantom library. > > > > To accesses the fantom driver from Octave using OCT files, I could create > > .cc wrapper files to link with the fantom library, but since fantom > > supplies only Microsoft-compatible (header,lib and dll) files for > windows, > > I assume this would not work. > > > > Is there a way control my NXT robot using the binary version of Octave > for > > Windows? > > Thanks, > > Michele > > I do not know if that works directly, since you said it is MS compatible > only > using mex or oct files. > > If nobody else has a better idea you can try an indirect way using the > octave > java package. > There is a java wrapper available for the driver at > https://code.google.com/p/jbrick/downloads/list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elionai.sobrinho at gmail.com Sun Apr 17 21:15:59 2011 From: elionai.sobrinho at gmail.com (Elionai Sobrinho) Date: Sun, 17 Apr 2011 23:15:59 -0300 Subject: Audio Record with Octave Message-ID: Hi, I'm trying to make an audio recording with Octave (Windows) and have not been successful. Some error messages are displayed and nothing else. Someone got it? I basically used the command record (10,8000), to record for 10 seconds, with 8000 samples per second. The error messages are: 'dd' n?o ? reconhecido como um comando interno ou externo, um programa oper vel ou um arquivo em lotes. error: fread: invalid stream number = -1 error: called from `record' in file `C:\Arquivos de programas\QtOctave\octave\s hare\octave\3.0.0\m\audio\record.m' Grateful -- Prof. Elionai Gomes de Almeida Sobrinho Instituto de Estudos Superiores da Amaz?nia Coordena??o de Engenharia de Computa??o Av. Gov. Jos? Malcher, 1148, Bel?m-PA, CEP 66055-260 Tel. (91) 40055400 Fax (91) 40055407 elionai at prof.iesam-pa.edu.br www.iesam-pa.edu.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at mhelm.de Sun Apr 17 21:59:45 2011 From: martin at mhelm.de (Martin Helm) Date: Mon, 18 Apr 2011 04:59:45 +0200 Subject: Audio Record with Octave In-Reply-To: References: Message-ID: <201104180459.46192.martin@mhelm.de> Am Montag, 18. April 2011, 04:15:59 schrieb Elionai Sobrinho: > Hi, > > I'm trying to make an audio recording with Octave (Windows) and have not > been successful. Some error messages are displayed and nothing else. > Someone got it? I basically used the command record (10,8000), to record > for 10 seconds, with 8000 samples per second. The error messages are: > > 'dd' n?o ? reconhecido como um comando interno > > ou externo, um programa oper vel ou um arquivo em lotes. > > error: fread: invalid stream number = -1 > > error: called from `record' in file `C:\Arquivos de > programas\QtOctave\octave\s > > hare\octave\3.0.0\m\audio\record.m' > > Grateful This is a very old octave version 3.0. But you can try the following, it needs the dd command which does not exist on your windows, try to install dd for windows from here http://www.chrysocome.net/ http://www.chrysocome.net/downloads/dd-0.5.zip Make sure that dd is in the path so that it can be found. Maybe you have luck and that solves it. From martin at mhelm.de Sun Apr 17 21:59:45 2011 From: martin at mhelm.de (Martin Helm) Date: Mon, 18 Apr 2011 04:59:45 +0200 Subject: Audio Record with Octave In-Reply-To: References: Message-ID: <201104180459.46192.martin@mhelm.de> Am Montag, 18. April 2011, 04:15:59 schrieb Elionai Sobrinho: > Hi, > > I'm trying to make an audio recording with Octave (Windows) and have not > been successful. Some error messages are displayed and nothing else. > Someone got it? I basically used the command record (10,8000), to record > for 10 seconds, with 8000 samples per second. The error messages are: > > 'dd' n?o ? reconhecido como um comando interno > > ou externo, um programa oper vel ou um arquivo em lotes. > > error: fread: invalid stream number = -1 > > error: called from `record' in file `C:\Arquivos de > programas\QtOctave\octave\s > > hare\octave\3.0.0\m\audio\record.m' > > Grateful This is a very old octave version 3.0. But you can try the following, it needs the dd command which does not exist on your windows, try to install dd for windows from here http://www.chrysocome.net/ http://www.chrysocome.net/downloads/dd-0.5.zip Make sure that dd is in the path so that it can be found. Maybe you have luck and that solves it. From shaypb at westnet.com.au Sun Apr 17 23:13:30 2011 From: shaypb at westnet.com.au (shay) Date: Sun, 17 Apr 2011 21:13:30 -0700 (PDT) Subject: Extracting random elements from an array Message-ID: <1303100010476-3456573.post@n4.nabble.com> I have three arrays, a, b & c. >I need to extract a random element from a or b and then 8 more random elements from all 3. >>then i need to create an array containing these elements which should be easy enough for me to do. -- View this message in context: http://octave.1599824.n4.nabble.com/Extracting-random-elements-from-an-array-tp3456573p3456573.html Sent from the Octave - General mailing list archive at Nabble.com. From shermanjj at gmail.com Sun Apr 17 23:38:44 2011 From: shermanjj at gmail.com (James Sherman Jr.) Date: Mon, 18 Apr 2011 00:38:44 -0400 Subject: Extracting random elements from an array In-Reply-To: <1303100010476-3456573.post@n4.nabble.com> References: <1303100010476-3456573.post@n4.nabble.com> Message-ID: On Mon, Apr 18, 2011 at 12:13 AM, shay wrote: > I have three arrays, a, b & c. > >I need to extract a random element from a or b and then 8 more random > elements from all 3. > >>then i need to create an array containing these elements which should be > easy enough for me to do. # 8 random elements in array a n = prod(size(a)); m = 8; shuffle = randperm(n); # to get m elements, just take the first m numbers of shuffle random_elements = a(shuffle(1:m)); if you want to get a elements from either, a, b, or c, I'd just concatenate them, and randomly pick from the whole thing. To pick one from either a or b, just concatenate a and b. I'm assuming that you don't want replacement (no element picked twice). If you want the chance for picking an element multiple times, replace the shuffle line with something like: random_indices = round(rand(m, 1)*n+0.5); random_elements = a(shuffle(1:m)); Hope this helps. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shermanjj at gmail.com Sun Apr 17 23:39:53 2011 From: shermanjj at gmail.com (James Sherman Jr.) Date: Mon, 18 Apr 2011 00:39:53 -0400 Subject: Extracting random elements from an array In-Reply-To: References: <1303100010476-3456573.post@n4.nabble.com> Message-ID: On Mon, Apr 18, 2011 at 12:38 AM, James Sherman Jr. wrote: > On Mon, Apr 18, 2011 at 12:13 AM, shay wrote: > >> I have three arrays, a, b & c. >> >I need to extract a random element from a or b and then 8 more random >> elements from all 3. >> >>then i need to create an array containing these elements which should be >> easy enough for me to do. > > > # 8 random elements in array a > n = prod(size(a)); > m = 8; > shuffle = randperm(n); > # to get m elements, just take the first m numbers of shuffle > random_elements = a(shuffle(1:m)); > > if you want to get a elements from either, a, b, or c, I'd just concatenate > them, and randomly pick from the whole thing. To pick one from either a or > b, just concatenate a and b. > > I'm assuming that you don't want replacement (no element picked twice). If > you want the chance for picking an element multiple times, replace the > shuffle line with something like: > random_indices = round(rand(m, 1)*n+0.5); > random_elements = a(shuffle(1:m)); > > Hope this helps. > > Copy and paste blunder, the last line should read: random_elements = a(random_indices); -------------- next part -------------- An HTML attachment was scrubbed... URL: From shaypb at westnet.com.au Mon Apr 18 00:00:33 2011 From: shaypb at westnet.com.au (shay) Date: Sun, 17 Apr 2011 22:00:33 -0700 (PDT) Subject: Extracting random elements from an array In-Reply-To: References: <1303100010476-3456573.post@n4.nabble.com> Message-ID: <1303102833176-3456615.post@n4.nabble.com> Thanks James, Will concatenating them ensure that values will be picked from each array because i need at least 1 value from each of the arrays? -- View this message in context: http://octave.1599824.n4.nabble.com/Extracting-random-elements-from-an-array-tp3456573p3456615.html Sent from the Octave - General mailing list archive at Nabble.com. From Potorti at isti.cnr.it Mon Apr 18 01:31:20 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Mon, 18 Apr 2011 08:31:20 +0200 Subject: Extracting random elements from an array In-Reply-To: <1303102833176-3456615.post@n4.nabble.com> References: <1303100010476-3456573.post@n4.nabble.com> <1303102833176-3456615.post@n4.nabble.com> Message-ID: >Will concatenating them ensure that values will be picked from each array >because i need at least 1 value from each of the arrays? So do you need ?a value each from a and b? or, as you wrote earlier ?a value from a or b?? Also you did not yet state if you want replacement or not. If you restate your problem more precisely then people can help you, anyway, what James Sherman wrote contains all you need to solve the problem. -- Francesco Potort? (ricercatore) Voice: +39 050 315 3058 (op.2111) ISTI - Area della ricerca CNR Fax: +39 050 315 2040 via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/ From michael.goffioul at gmail.com Mon Apr 18 01:55:31 2011 From: michael.goffioul at gmail.com (Michael Goffioul) Date: Mon, 18 Apr 2011 07:55:31 +0100 Subject: coudn't find dbleDET.h In-Reply-To: References: Message-ID: 2011/4/17 yanyajie : > What's more, I find some headers of Octave, for instance lo-mappers.h, use > functions like std::isfinite(), std::isnan(), which are not available in > MSVC, and VC compiler keeps complaining about this. Why does octave have > such problem? Isn't Octave a cross-platform project? Shouldn't it resolve > platform dependency? While still possible, compiling octave with MSVC is technically challenging. Moreover, the pre-compiled version you have has been compiled with MinGW, which is binary incompatible with MSVC, so you can't use MSVC with the version you have. Michael. From michael.goffioul at gmail.com Mon Apr 18 01:58:35 2011 From: michael.goffioul at gmail.com (Michael Goffioul) Date: Mon, 18 Apr 2011 07:58:35 +0100 Subject: connect Octave to Fantom Driver library on Windows? In-Reply-To: References: Message-ID: On Sun, Apr 17, 2011 at 7:16 PM, Michele Chabot wrote: > Hello, > I would like to operate my Lego NXT robot using Octave and the Fantom Driver > library (http://mindstorms.lego.com/en-us/support/files/Driver.aspx) on > Windows. > RWTH (http://www.mindstorms.rwth-aachen.de/) (GPL) does this already with > MatLab in place of Octave, but it relies on MatLab features not available in > Octave (calllib) to access the Fantom library. > To accesses the fantom driver from Octave using OCT files, I could create > .cc wrapper files to link with the fantom library, but since fantom supplies > only Microsoft-compatible (header,lib and dll) files for windows, I assume > this would not work. Not necessarily. MinGW is able to use MSVC .lib files to compile code (just try to include a .lib file to the link command). The main problem is if the Fantom driver library is C++, that's not gonna work as MinGW and MSVC are binary incompatible for C++ code. Should work fine with C code. Michael. From wahaj87 at yahoo.com Mon Apr 18 03:42:00 2011 From: wahaj87 at yahoo.com (wahaj87) Date: Mon, 18 Apr 2011 01:42:00 -0700 (PDT) Subject: gset to terminal LaTeX In-Reply-To: <201104172208.08069.martin@mhelm.de> References: <46603203.4000406@mexinetica.com> <18016.21407.532202.950463@segfault.lan> <1303067735620-3455977.post@n4.nabble.com> <201104172149.54400.martin@mhelm.de> <201104172208.08069.martin@mhelm.de> Message-ID: <1303116120414-3456933.post@n4.nabble.com> Hi But the question is still there: " What is equivalent to gset in octave 3.2.4 ? " It pops this error : error: `gset' undefined near line .... Thanks. -- View this message in context: http://octave.1599824.n4.nabble.com/gset-to-terminal-LaTeX-tp1625389p3456933.html Sent from the Octave - General mailing list archive at Nabble.com. From shaypb at westnet.com.au Mon Apr 18 03:44:21 2011 From: shaypb at westnet.com.au (shay) Date: Mon, 18 Apr 2011 01:44:21 -0700 (PDT) Subject: Extracting random elements from an array In-Reply-To: References: <1303100010476-3456573.post@n4.nabble.com> <1303102833176-3456615.post@n4.nabble.com> Message-ID: <1303116261304-3456939.post@n4.nabble.com> yes i do need replacement but thats not a problem thx James, yes I do need more than 1 value from both a and b, i just need to make sure that if I concatenate them it will always extract at least one value from each array. -- View this message in context: http://octave.1599824.n4.nabble.com/Extracting-random-elements-from-an-array-tp3456573p3456939.html Sent from the Octave - General mailing list archive at Nabble.com. From stneumann at web.de Mon Apr 18 04:11:58 2011 From: stneumann at web.de (stn) Date: Mon, 18 Apr 2011 11:11:58 +0200 Subject: Combining Vectors Message-ID: Hi, is there a function that will combine two vectors so that the result has two columns and one row for each possible combination of the elements of the two vectors? like this: a = [1 ; 2 ; 3] b = [4 ; 5 ; 6] combined_vectors = [ 1 4 1 5 1 6 2 4 2 5 2 6 3 4 3 5 3 6 ] THX stn -------------- next part -------------- An HTML attachment was scrubbed... URL: From fotios.kasolis at gmail.com Mon Apr 18 04:23:22 2011 From: fotios.kasolis at gmail.com (GFotios) Date: Mon, 18 Apr 2011 11:23:22 +0200 Subject: Combining Vectors In-Reply-To: References: Message-ID: On Apr 18, 2011, at 11:11 AM, stn wrote: > > Hi, > > is there a function that will combine two vectors so that the result > has two columns and one row for each possible combination of the > elements of the two vectors? > > like this: > a = [1 ; 2 ; 3] > b = [4 ; 5 ; 6] > > combined_vectors = [ > 1 4 > 1 5 > 1 6 > 2 4 > 2 5 > 2 6 > 3 4 > 3 5 > 3 6 > ] > > THX > stn > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave [v1,v2] = meshgrid ([1;2;3],[4;5;6]) and then [v1(:),v2(:)] is what you want. Or v1 = repmat([1;2;3],1,3).'(:) v2 = repmat([4;5;6],1,3)(:) [v1, v2] Enjoy, /Fotis From martin at mhelm.de Mon Apr 18 06:04:34 2011 From: martin at mhelm.de (Martin Helm) Date: Mon, 18 Apr 2011 13:04:34 +0200 Subject: gset to terminal LaTeX In-Reply-To: <1303116120414-3456933.post@n4.nabble.com> References: <46603203.4000406@mexinetica.com> <201104172208.08069.martin@mhelm.de> <1303116120414-3456933.post@n4.nabble.com> Message-ID: <201104181304.34613.martin@mhelm.de> Am Montag, 18. April 2011, 10:42:00 schrieb wahaj87: > Hi > But the question is still there: > " What is equivalent to gset in octave 3.2.4 ? " > It pops this error : > error: `gset' undefined near line .... > > Thanks. There is no equivalent since gset was long ago deprecated and is removed. So you need to find separate alternative solutions for whatever you previously did with gset. There is gnuplot package at octave forge (which I never used) maybe it contains something which can help you, I don't know. http://octave.sourceforge.net/gnuplot/overview.html From chinsta00 at hotmail.com Sun Apr 17 22:21:43 2011 From: chinsta00 at hotmail.com (Andy Chee) Date: Mon, 18 Apr 2011 13:21:43 +1000 Subject: Image package feature request (regionprops) Message-ID: Hi all. This message should probably be sent to the Octave-Forge list, but I'm hoping Soren might be able to read it here easier. I haven't updated the image pkg on my installation for a while, so when I downloaded the latest pkg I was pleasantly surprised to see the function regionprops! However looking through the code I noticed that EquivDiameter is not there :( Would you be able to add this property to regionprops please? I can then finally get rid of the Matlab regionprops I've been using :) cheers Andrew From mail at chipmuenk.de Mon Apr 18 07:39:43 2011 From: mail at chipmuenk.de (Chipmuenk) Date: Mon, 18 Apr 2011 05:39:43 -0700 (PDT) Subject: Fixed-point arithmetic In-Reply-To: <4C39A2AC.2020907@dbateman.org> References: <20100710140715.20655eyb2gqoy5oo@webmail.isr.ist.utl.pt> <4C38EEF5.90304@dbateman.org> <20100710230630.57364vazopbhpdwk@webmail.isr.ist.utl.pt> <4C4449F5-7903-40EE-B019-078ED6CB1D48@gmail.com> <4C39A2AC.2020907@dbateman.org> Message-ID: <1303130383182-3457390.post@n4.nabble.com> David Bateman-2 wrote: > >> When we switched to the new individual package release system S?ren >> prepared releases of most packages but skipped those that didn't work >> on his >> system. Packages that were never released do not appear on the website. >> >>> Any way to fix this? >> >> Prepare a release according to the instructions at >> <http://octave.sourceforge.net/developers.html> in the section >> "Make a >> release of your package and publish its function reference" >> >> c. > Yeah, I haven't done it, and I thought Soren didn't because it needed > some work to get it to build with 3.2.0.. I have the version of Octave > installed with my distribution and the development version (ie 3.0.5 and > the tip) which is why I never bother trying to fix this.. (I'm using a > netbook with a 20GB SSD disk for my developments and so having two build > trees and 3 versions of Octave takes a bit of space) > > D. > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > Hi all, I am using the "fixed" package for some time now to demonstrate the effects of fixpoint coefficients and arithmetics in digital filters to my students. It seems to me that this hidden gem of the octave packages is slowly falling into oblivion as it is no longer actively maintained and hence no longer appears at octave-forge. This is quite a pity, as this package is quite powerful in my opinion. As far as I know, there is no other open source software supporting fixpoint arithmetics. The only obvious alternative is Matlab's Fixpoint Toolbox but of course Mathworks is aware of this fact: I cannot affort to provide licenses for all of my students. Admittedly, this package is quite complex and maybe the purpose of this package is not immediately clear. Its syntax is also incompatible to the Matlab fixpoint toolbox (as it was developed at the same time) which makes this package even more seem like a dead end. But everyone who has tried to develop a digital fixpoint filter for a microcontroller or an FPGA knows how important it is to take quantizing / truncation effects into account. I am not a programmer but I could help rejuvenating the toolbox by providing ideas, applications, documentations and examples. I also have access to Matlab with the Fixpoint Toolbox to run comparisons. Please don't let this package rot away in some repository. Cheers, Christian -- View this message in context: http://octave.1599824.n4.nabble.com/Fixed-point-arithmetic-tp2284793p3457390.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at octave.org Mon Apr 18 08:08:48 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Mon, 18 Apr 2011 08:08:48 -0500 Subject: Image package feature request (regionprops) In-Reply-To: References: Message-ID: On 17 April 2011 22:21, Andy Chee wrote: > I haven't updated the image pkg on my installation for a while, so > when I downloaded the latest pkg I was pleasantly surprised to see > the function regionprops! > > However looking through the code I noticed that EquivDiameter is not > there :( > > Would you be able to add this property to regionprops please? I'll consider it. I'm implementing bwlabeln right now. - Jordi G. H. From jordigh at octave.org Mon Apr 18 08:22:49 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Mon, 18 Apr 2011 08:22:49 -0500 Subject: Fixed-point arithmetic In-Reply-To: <1303130383182-3457390.post@n4.nabble.com> References: <20100710140715.20655eyb2gqoy5oo@webmail.isr.ist.utl.pt> <4C38EEF5.90304@dbateman.org> <20100710230630.57364vazopbhpdwk@webmail.isr.ist.utl.pt> <4C4449F5-7903-40EE-B019-078ED6CB1D48@gmail.com> <4C39A2AC.2020907@dbateman.org> <1303130383182-3457390.post@n4.nabble.com> Message-ID: On 18 April 2011 07:39, Chipmuenk wrote: > > David Bateman-2 wrote: >> >>> When we switched to the new individual package release system >>> S?ren prepared releases of most packages but skipped those that >>> didn't work on his system. Packages that were never released do >>> not appear on the website. >>> >>>> Any way to fix this? >>> >>> Prepare a release according to the instructions at >>> <http://octave.sourceforge.net/developers.html> in the >>> section "Make a release of your package and publish its function >>> reference" >>> >>> c. Yeah, I haven't done it, and I thought Soren didn't because it >> needed some work to get it to build with 3.2.0.. I have the version >> of Octave installed with my distribution and the development >> version (ie 3.0.5 and the tip) which is why I never bother trying >> to fix this.. (I'm using a netbook with a 20GB SSD disk for my >> developments and so having two build trees and 3 versions of Octave >> takes a bit of space) > I am using the "fixed" package for some time now to demonstrate the > effects of fixpoint coefficients and arithmetics in digital filters > to my students. [snip] > I am not a programmer but I could help rejuvenating the toolbox by > providing ideas, applications, documentations and examples. I also > have access to Matlab with the Fixpoint Toolbox to run comparisons. > > Please don't let this package rot away in some repository. Can you secure funding for its development? That's most likely to attract a maintainer. If the package is as unique as you say, perhaps this will look attractive in a grant proposal. - Jordi G. H. From Herthaner9 at aol.com Mon Apr 18 09:17:40 2011 From: Herthaner9 at aol.com (herthaner9) Date: Mon, 18 Apr 2011 07:17:40 -0700 (PDT) Subject: Output of values Message-ID: <1303136260756-3457686.post@n4.nabble.com> Dear community, I am not at all familiar with the use of any programming language but need to work with octave for my thesis. I have a question concerning the output of a programming code that I work with to obtain the value of a financial derivative. The code I use is the following: %Program to implement Implicit Finite Differencing %Basic Set up s0 = 100; strike = 100; sigma = 0.30; rf = 0.10; T = 1; n = 30; m = 12; h = T/m; k = 0.10; S = zeros(n+1,1); Y = zeros(n+1,1); Y(n/2+1) = log(s0); for i=(n/2):-1:1; Y(i) = Y(i+1) - k; end; for i=(n/2)+2:(n+1); Y(i) = Y(i-1) + k; end; S = exp(Y); %Create TriDiagonal Matrix q = zeros(n+1,n+1); p1 = -0.5*sigma^2*h/k^2 - (rf-0.5*sigma^2)*h/(2*k); p2 = sigma^2*h/k^2 + rf*h + 1; p3 = -0.5*sigma^2*h/k^2 + (rf-0.5*sigma^2)*h/(2*k); q(1,1) = p1+p2; q(1,2) = p1; q(n+1,n) = p3; q(n+1,n+1) = p2; for i=2:n; q(i,i-1) = p3; q(i,i) = p2; q(i,i+1) = p1; end; qinv = inverse(q); %Backward recursion phase F = zeros(n+1,m+1); F(:,m+1) = max(0,strike-S); for t=12:-1:1; F(:,t) = qinv*F(:,t+1); end; %Plot the put option price as a function of stock price and time t = [0:(1/12):1]; mesh(S,t,F?); title(?European Put Option Function?); xlabel(?Stock Price?); ylabel(?Time?); Thus, I know how to create a 3D-plot of the development of the derivative's value based on the value of the underlying and time to maturity. However, how can I get Octave to create and .txt output file or any readable file? I would like the values of F' easily identifiable. Please do not direct me to any manual. I have checked the internet and even the smallest advancement is beyond my level of knowledge. I just want to know what exactly i have to type to create a .txt-file with values of F. Thanks you very much! -- View this message in context: http://octave.1599824.n4.nabble.com/Output-of-values-tp3457686p3457686.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at octave.org Mon Apr 18 10:25:38 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Mon, 18 Apr 2011 10:25:38 -0500 Subject: Output of values In-Reply-To: <1303136260756-3457686.post@n4.nabble.com> References: <1303136260756-3457686.post@n4.nabble.com> Message-ID: On 18 April 2011 09:17, herthaner9 wrote: > However, how can I get Octave to create and .txt output file or any readable > file? I would like the values of F' easily identifiable. > Please do not direct me to any manual. Why not? Read this part of the manual: http://www.gnu.org/software/octave/doc/interpreter/Simple-File-I_002fO.html#index-save-819 So write "save my_filename F" and it will save your stuff to a file, by default as plaintext. Also, you exaggerate your own programming incompetence. If you're able to understand the code you've posted, you're able to understand the manual page I just directed you to. In case you still don't understand, feel free to ask again. HTH,, - Jordi G. H. From corrado.topi at york.ac.uk Mon Apr 18 10:51:22 2011 From: corrado.topi at york.ac.uk (Corrado Topi) Date: Mon, 18 Apr 2011 16:51:22 +0100 Subject: Studentship for Summer 2011 at the Centre for Complex System Analysis of the University of York Message-ID: <201104181651.22629.ct529@york.ac.uk> Dear Octavelings, The Centre For Complex systems Analysis at the University of York (YCCSA) in UK in collaboration with Stockholm Environment Institute is looking for a highly motivated student in Computer Science, Applied Mathematics, Applied Statistics or related fields for a 10 weeks student internship over the summer 2011, starting in july. The student will participate in research projects to develop prototypes for toolkits for statistical predictions of diversity and dissimilarity and the generation of spatial landscapes, with applications in the biological and environmental sciences, which will be connected to octave and R as external packages. We require excellent development skills and experience in CUDA and openCL, and a strong foundation in Computing, Statistics / Applied Mathematics and Computer Graphics. We need an excellent problem solver, able to innovate, find solutions and work independently. For further information on the project please contact ct529 at york.ac.uk or go to http://www.york.ac.u...2011/201107.pdf For further information on the studentship programme please look at http://www.york.ac.u...olarships.html. Please send your application not later than the 13 of may to scholarships at yccsa.org as one single pdf document including: 1. Your CV (max 2 pages) 2. A brief personal statement (max 1 page) including: * Which project(s) you are interested in (as many as you like but in preference order) * Your reasons for applying * Your academic interest * Your future aspirations 3. A full written academic reference (not just contact details). Your application will not be accepted without this reference (max 1 page). -- Corrado Topi Stockholm Environment Institute Mob: +44 (0) 7769 601784 Tel: +44 (0) 1904 322893 Skype: corrado-eeos Website: sei-international.org University of York York YO10 5DD UK Fax: +44 (0) 1904 322898 EMAIL DISCLAIMER: http://www.york.ac.uk/docs/disclaimer/email.htm -- Corrado Topi Stockholm Environment Institute Mob: +44 (0) 7769 601784 Tel: +44 (0) 1904 322893 Skype: corrado-eeos Website: sei-international.org University of York York YO10 5DD UK Fax: +44 (0) 1904 322898 EMAIL DISCLAIMER: http://www.york.ac.uk/docs/disclaimer/email.htm From shermanjj at gmail.com Mon Apr 18 11:04:22 2011 From: shermanjj at gmail.com (James Sherman Jr.) Date: Mon, 18 Apr 2011 12:04:22 -0400 Subject: Extracting random elements from an array In-Reply-To: <1303116261304-3456939.post@n4.nabble.com> References: <1303100010476-3456573.post@n4.nabble.com> <1303102833176-3456615.post@n4.nabble.com> <1303116261304-3456939.post@n4.nabble.com> Message-ID: On Mon, Apr 18, 2011 at 4:44 AM, shay wrote: > yes i do need replacement but thats not a problem thx James, yes I do need > more than 1 value from both a and b, i just need to make sure that if I > concatenate them it will always extract at least one value from each array. > > No, it will just treat the whole array as one and randomly pick from that. Like Francesco said, you need to be careful with your problem statement. Just so I'm completely sure, the output of your code that you want is: 10 elements randomly picked with replacement from arrays a, b, and c, where at least 1 element is from array a, and at least 1 element is from array b. If so, I'd just do the following: pick 1 from a pick 1 from b pick 8 from the concatenation of a, b, and c -------------- next part -------------- An HTML attachment was scrubbed... URL: From Herthaner9 at aol.com Mon Apr 18 12:14:14 2011 From: Herthaner9 at aol.com (herthaner9) Date: Mon, 18 Apr 2011 10:14:14 -0700 (PDT) Subject: Output of values In-Reply-To: References: <1303136260756-3457686.post@n4.nabble.com> Message-ID: <1303146854587-3458121.post@n4.nabble.com> Hey there, thank you very much for helping me out on this one. I was simply a little dizzy after reading too much octave stuff:) thank you very much again, this really helped and worked! -- View this message in context: http://octave.1599824.n4.nabble.com/Output-of-values-tp3457686p3458121.html Sent from the Octave - General mailing list archive at Nabble.com. From dbateman at dbateman.org Mon Apr 18 12:58:14 2011 From: dbateman at dbateman.org (David Bateman) Date: Mon, 18 Apr 2011 19:58:14 +0200 Subject: Fixed-point arithmetic In-Reply-To: <1303130383182-3457390.post@n4.nabble.com> References: <20100710140715.20655eyb2gqoy5oo@webmail.isr.ist.utl.pt> <4C38EEF5.90304@dbateman.org> <20100710230630.57364vazopbhpdwk@webmail.isr.ist.utl.pt> <4C4449F5-7903-40EE-B019-078ED6CB1D48@gmail.com> <4C39A2AC.2020907@dbateman.org> <1303130383182-3457390.post@n4.nabble.com> Message-ID: <03A01878-E0FA-4924-A7A7-B90B7CA390D5@dbateman.org> Le 18 avr. 2011 ? 14:39, Chipmuenk a ?crit : > > Hi all, > > I am using the "fixed" package for some time now to demonstrate the effects > of fixpoint coefficients and arithmetics in digital filters to my students. > It seems to me that this hidden gem of the octave packages is slowly falling > into oblivion as it is no longer actively maintained and hence no longer > appears at octave-forge. Yeah I've been a bit slack. I haven't released any packages in octave-forge since octave-forge went to individual package releases and I'm not sure sure of the process. I've been confining my efforts with octave to the core functionality. Add to that that I don't need this package actually and my dev machine upped and died, I'm not sure I'm likely to do anything in the near future. > > This is quite a pity, as this package is quite powerful in my opinion. As > far as I know, there is no other open source software supporting fixpoint > arithmetics. The only obvious alternative is Matlab's Fixpoint Toolbox but > of course Mathworks is aware of this fact: I cannot affort to provide > licenses for all of my students. > Not quite true. GMP supports fixed point and the matlab code is based on GMP (see http://gmplib.org/manual/). Laurent and I chose not to use GMP with the fixed point code for Octave and base it on 32 or 64 bit integers. In this way the code is much faster than the matlab code, though it can't handle large integers. The reality in communication systems is that more than 16 bits are rarely used, so frankly speed is the key here so I still think this choice was the right one. > Admittedly, this package is quite complex and maybe the purpose of this > package is not immediately clear. Its syntax is also incompatible to the > Matlab fixpoint toolbox (as it was developed at the same time) which makes > this package even more seem like a dead end. But everyone who has tried to > develop a digital fixpoint filter for a microcontroller or an FPGA knows how > important it is to take quantizing / truncation effects into account. Its not compatible as it was written before matlab released their fixed point package, if it was in parallel I might have tried to copy their interface ;-). Its faster than the matlab fixed point code, so I hardly think its a dead end. > I am not a programmer but I could help rejuvenating the toolbox by providing > ideas, applications, documentations and examples. I also have access to > Matlab with the Fixpoint Toolbox to run comparisons. Some Ideas I alright had were - Adapt the code for NDArrays so more Octave code could be used with the package. - Add different overflow and rounding options. The ones that are used in the code were the ones that were used in the CMOS process I was developing for. Frankly I don't think its a good idea to make this package matlab compatible, unless we want to use GMP as well. > Please don't let this package rot away in some repository. I'd rather it didn't and will get around to fixing it some time, as I have a certain desire to see my code used, but I can't guarantee to be quick and would be happy to see someone else get the fixed point package working with 3.4.0 David -------------- next part -------------- An HTML attachment was scrubbed... URL: From przemek.klosowski at nist.gov Mon Apr 18 13:22:11 2011 From: przemek.klosowski at nist.gov (Przemek Klosowski) Date: Mon, 18 Apr 2011 14:22:11 -0400 Subject: leasqr problem - covp is 'NA'!!! In-Reply-To: <1302883790276-3452439.post@n4.nabble.com> References: <1302883790276-3452439.post@n4.nabble.com> Message-ID: <4DAC8153.9080402@nist.gov> On 04/15/2011 12:09 PM, neo7891 wrote: > hey guys, > > I'm try to solve exponential fitting with leasqr. > The fitting itself is really good - and I want to measure the estimation > error of parameters. ... > but the problem is... my 'covp' is only... > ======================================== > covp = > > NA NA NA NA ... > data = load("data2.txt"); so , covariance matrix is invalid, and we don't know why. It probably has to do with what particular data you're using, so we'd need your data2.txt. It could also be a bug in the leasqr() implementation so you'd need to specify which version of Octave you're using. I tried my Octave 3.2.4, using synthetic data that should match your function: x=[0:.1:3]'; y=1-exp(-x)+0.1*(rand(length(x),1)-1); pin=[0,1,1,0]; [f,p,kvg,iter,corp,covp,covr,stdresid,Z,r2] = leasqr(x,y,pin,F); plot(x, y, "r+", x, f, "b-"); p and got reasonable fit, p=0.061542 0.915680 0.931379 0.104827 The covariance matrix results in sqrt(diag(covp))) values of 77.468751 77.468741 0.061083 90.835584. These values look strange, given the goodness of the fit; I haven't dwelved into it but the covp matrix looks strange--- approximately 1000 * [1 -1 0 1; -1 1 0 -1; 0 0 0 0; 1 -1 0 1] which doesn't make sense to me but I haven't thought about it long enough to convince myself one way or the other. Practitioners of leasqr, what do you think about the reliability of covp values? > > x = data(1:length(data),1); > y = data(1:length(data),2); > > orgFx = @(x, p) p(1) + p(2) * ( 1 - exp( -p(3) * ( x - p(4)))); > > pin = ones(1,4); > pin(1) = median(y(1:5)); > pin(2) = max(y) - min(y); > pin(3) = abs(log(max(y) - min(y))) / (max(x)-min(x)); > pin(4) = min(x); > > F = orgFx; > > [f,p,kvg,iter,corp,covp,covr,stdresid,Z,r2] = leasqr(x,y,pin,F); > > plot(x, y, "r+", x, f, "b-"); > > fprintf("%f %f %f %f\n", p(1), p(2), p(3), p(4)); From dasergatskov at gmail.com Mon Apr 18 14:11:25 2011 From: dasergatskov at gmail.com (Dmitri A. Sergatskov) Date: Mon, 18 Apr 2011 14:11:25 -0500 Subject: leasqr problem - covp is 'NA'!!! In-Reply-To: <4DAC8153.9080402@nist.gov> References: <1302883790276-3452439.post@n4.nabble.com> <4DAC8153.9080402@nist.gov> Message-ID: On Mon, Apr 18, 2011 at 1:22 PM, Przemek Klosowski wrote: > The covariance matrix results in sqrt(diag(covp))) values of 77.468751 > ?77.468741 ? ?0.061083 ? 90.835584. These values look strange, given the > goodness of the fit; I haven't dwelved into it but the covp matrix looks > strange--- approximately > > 1000 * [1 -1 0 1; -1 1 0 -1; 0 0 0 0; 1 -1 0 1] > > which doesn't make sense to me but I haven't thought about it long enough to > convince myself one way or the other. Practitioners of leasqr, what do you > think about the reliability of covp values? > I think there are too many fit parameters. The fit functions essentially a+b*exp(c*x). Dmitri. -- From martin.n.gustafsson at gmail.com Mon Apr 18 15:33:30 2011 From: martin.n.gustafsson at gmail.com (Martin Gustafsson) Date: Mon, 18 Apr 2011 22:33:30 +0200 Subject: Installation troubles Message-ID: I am trying tomake a statically linked installation of Octave to be installed on a NFS-drive to be distributed to many clients in our network. I have installed all the required libraries reported by the configure script. Only some warnings. When tried to compile on a RHEL 5.5 x86-64 it aborts with different errors depending on version. With version 3.4.0 and 3.3.53 I get the following DLD-FUNCTIONS/urlwrite.cc: In member function ?string_vector curl_handle::list() const?: DLD-FUNCTIONS/urlwrite.cc:405: error: ?CURLOPT_DIRLISTONLY? was not declared in this scope DLD-FUNCTIONS/urlwrite.cc:412: error: ?CURLOPT_DIRLISTONLY? was not declared in this scope make[3]: *** [DLD-FUNCTIONS/DLD_FUNCTIONS_urlwrite_la-urlwrite.lo] Error With version 3.2.4 I get this. ../src/liboctinterp.so: undefined reference to `std::basic_istream >::ignore()' ../src/liboctinterp.so: undefined reference to `__cxa_get_exception_ptr' collect2: ld returned 1 exit status make[2]: *** [octave] Error 1 With version 3.0.5 and 2.9.9 I get this: ls-hdf5.cc:752: error: at this point in file /usr/include/H5Dpublic.h:95: error: too few arguments to function ?hid_t H5Dcreate2(hid_t, const char*, hid_t, hid_t, hid_t, hid_t, hid_t)? ls-hdf5.cc:766: error: at this point in file make[2]: *** [pic/ls-hdf5.o] Error 1 Beacuse I am trying to make a NFS-installation for many clents, I have also tried to extract the CentOS rpm on the NFS-dive, made a startscipt with a LD_LIBRARY_PATH and then pointed to the binary. It starts but does not work very well. Plot-function did not work for example. I have also tried to install the rpm with a --relocate flag, but it did not work either. Has anyone any idea how I can make a successful installation or anybody who knows if there is a statically linked binary package somewhere? From stneumann at web.de Mon Apr 18 16:48:50 2011 From: stneumann at web.de (stn) Date: Mon, 18 Apr 2011 23:48:50 +0200 Subject: Combining Vectors In-Reply-To: References: Message-ID: 2011/4/18 GFotios > > On Apr 18, 2011, at 11:11 AM, stn wrote: > > >> [v1,v2] = meshgrid ([1;2;3],[4;5;6]) > > and then > > [v1(:),v2(:)] > > is what you want. Or > > v1 = repmat([1;2;3],1,3).'(:) > v2 = repmat([4;5;6],1,3)(:) > [v1, v2] > > Enjoy, > /Fotis > Yes, thank you. Both methods work. With meshgrid it is even possible to combine 3 vectors: [v1,v2,v3] = meshgrid ([1;2;3],[4;5;6],[7 8 9]) ; [v1(:),v2(:),v3(:)] Can this also be done with an abitrary number of vectors ? The idea is to generate input-data for a simulation which is supposed to run an existing model with every conceivable combination of input-data. It would then calculate statistics, distribution etc. The number of input-variables is 6 to 8, with 5 values per variable. Incidentally: does this operation have a mathematical name and symbolic representation? This is of course equivalent to 6 to 8 nested loops, with the innermost loop executing the model. Unfortunately AFAIK there is no way to change the nesting-level and the loop-variables without changing the code. So what I am actually looking for is some kind of universal parameter-controlled nested loop. The idea with multiple combined matrices is just one possible solution. THX stn -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.chabot at computer.org Mon Apr 18 19:52:28 2011 From: m.chabot at computer.org (Michele Chabot) Date: Mon, 18 Apr 2011 20:52:28 -0400 Subject: connect Octave to Fantom Driver library on Windows? In-Reply-To: References: Message-ID: Wow thank you, the OCT file does build, with mkoctfile -I -o try.oct try.cc fantom.lib I got my first oct file! Given what you say, I have confidence it will work. Michele On Mon, Apr 18, 2011 at 2:58 AM, Michael Goffioul < michael.goffioul at gmail.com> wrote: > On Sun, Apr 17, 2011 at 7:16 PM, Michele Chabot > wrote: > > Hello, > > I would like to operate my Lego NXT robot using Octave and the Fantom > Driver > > library (http://mindstorms.lego.com/en-us/support/files/Driver.aspx) on > > Windows. > > RWTH (http://www.mindstorms.rwth-aachen.de/) (GPL) does this already > with > > MatLab in place of Octave, but it relies on MatLab features not available > in > > Octave (calllib) to access the Fantom library. > > To accesses the fantom driver from Octave using OCT files, I could create > > .cc wrapper files to link with the fantom library, but since fantom > supplies > > only Microsoft-compatible (header,lib and dll) files for windows, I > assume > > this would not work. > > Not necessarily. MinGW is able to use MSVC .lib files to compile code > (just try to include a .lib file to the link command). The main problem is > if the Fantom driver library is C++, that's not gonna work as MinGW and > MSVC are binary incompatible for C++ code. Should work fine with C code. > > Michael. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at chipmuenk.de Mon Apr 18 23:59:20 2011 From: mail at chipmuenk.de (Chipmuenk) Date: Mon, 18 Apr 2011 21:59:20 -0700 (PDT) Subject: Fixed-point arithmetic In-Reply-To: <03A01878-E0FA-4924-A7A7-B90B7CA390D5@dbateman.org> References: <20100710140715.20655eyb2gqoy5oo@webmail.isr.ist.utl.pt> <4C38EEF5.90304@dbateman.org> <20100710230630.57364vazopbhpdwk@webmail.isr.ist.utl.pt> <4C4449F5-7903-40EE-B019-078ED6CB1D48@gmail.com> <4C39A2AC.2020907@dbateman.org> <1303130383182-3457390.post@n4.nabble.com> <03A01878-E0FA-4924-A7A7-B90B7CA390D5@dbateman.org> Message-ID: <1303189160730-3459464.post@n4.nabble.com> David Bateman-2 wrote: > > Le 18 avr. 2011 ? 14:39, Chipmuenk a ?crit : >> > > Not quite true. GMP supports fixed point and the matlab code is based on > GMP (see http://gmplib.org/manual/). Laurent and I chose not to use GMP > with the fixed point code for Octave and base it on 32 or 64 bit integers. > In this way the code is much faster than the matlab code, though it can't > handle large integers. The reality in communication systems is that more > than 16 bits are rarely used, so frankly speed is the key here so I still > think this choice was the right one. > Sorry, I wasn't aware of GMP. In my opinion (or at least for my application ;-) ), FPGA-multiplier blocks define the wordlengths that are commonly used in FPGA-based signal processing. At the moment, these blocks usually have input wordlengths of 18 or 25 bits, so 32 bit integers are too small in most cases, but 64 bit should do. David Bateman-2 wrote: > > Its not compatible as it was written before matlab released their fixed > point package, if it was in parallel I might have tried to copy their > interface ;-). Its faster than the matlab fixed point code, so I hardly > think its a dead end. > I did not want to imply that the package is bad or slow (I like using it), I'm just afraid that a package that has "disappeared from the radar" might attract less and less users. Combine it with a completely different interface from Matlab (unfortunately, compatibility _is_ important to many users), and I think the danger of becoming extinct is for real. David Bateman-2 wrote: > > Some Ideas I alright had were > > - Adapt the code for NDArrays so more Octave code could be used with the > package. > - Add different overflow and rounding options. The ones that are used in > the code were the ones that were used in the CMOS process I was developing > for. > Different overflow, rounding and saturation options were also the first things that came to my mind. David Bateman-2 wrote: > > Frankly I don't think its a good idea to make this package matlab > compatible, unless we want to use GMP as well. > Compatibility is certainly not a "must", but I think making it available via octave-forge is, and some simple DSP examples would also help (I am willing to help with the latter). Christian -- View this message in context: http://octave.1599824.n4.nabble.com/Fixed-point-arithmetic-tp2284793p3459464.html Sent from the Octave - General mailing list archive at Nabble.com. From peter.norlindh at gmail.com Tue Apr 19 02:41:20 2011 From: peter.norlindh at gmail.com (Peter Norlindh) Date: Tue, 19 Apr 2011 09:41:20 +0200 Subject: Reading data from large ascii-file Message-ID: Hi, I am analyzing data from a 400MB ascii-file. There are about 30 million data points in the file and the execution takes forever. Currently the program reads and processes the file element-by-element ( val = dlmread(fileName, "emptyvalue", [i, col, i, col]) ) and I suspect that this is a very unafficient way to do it. Could you suggest a better approach? Regards, hpon -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.atzeri at gmail.com Tue Apr 19 03:09:58 2011 From: marco.atzeri at gmail.com (marco atzeri) Date: Tue, 19 Apr 2011 10:09:58 +0200 Subject: Reading data from large ascii-file In-Reply-To: References: Message-ID: On Tue, Apr 19, 2011 at 9:41 AM, Peter Norlindh wrote: > Hi, > > I am analyzing data from a 400MB ascii-file.? There?are about 30 million > data points in the file and the execution takes forever. > > Currently the program reads and processes the file element-by-element ( val > = dlmread(fileName, "emptyvalue", [i, col, i, col]) ) and I suspect that > this is a very?unafficient way to do it.? Could you suggest a better > approach? surely not reading one element at time as you are doing with [i, col, i, col] The RANGE parameter may be a 4-element vector containing the upper left and lower right corner `[R0,C0,R1,C1]' where the lowest index value is zero. if the data is already in matrix form, you should read all the matrix in one pass with just DATA = dlmread (FILE) > > Regards, > hpon Marco From mail at chipmuenk.de Tue Apr 19 03:36:45 2011 From: mail at chipmuenk.de (Chipmuenk) Date: Tue, 19 Apr 2011 01:36:45 -0700 (PDT) Subject: Fixed-point arithmetic In-Reply-To: References: <20100710140715.20655eyb2gqoy5oo@webmail.isr.ist.utl.pt> <4C38EEF5.90304@dbateman.org> <20100710230630.57364vazopbhpdwk@webmail.isr.ist.utl.pt> <4C4449F5-7903-40EE-B019-078ED6CB1D48@gmail.com> <4C39A2AC.2020907@dbateman.org> <1303130383182-3457390.post@n4.nabble.com> Message-ID: <1303202205341-3459826.post@n4.nabble.com> Jordi Guti?rrez Hermoso-2 wrote: > > > Can you secure funding for its development? That's most likely to > attract a maintainer. If the package is as unique as you say, perhaps > this will look attractive in a grant proposal. > > - Jordi G. H. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > I guess I could find some funding, but most likely only for "local" work, i.e. at our university in Munich. However, I don't have the know-how to tutor such a work. But if someone with the necessary background is interested, feel free to contact me. Christian -- View this message in context: http://octave.1599824.n4.nabble.com/Fixed-point-arithmetic-tp2284793p3459826.html Sent from the Octave - General mailing list archive at Nabble.com. From peter.norlindh at gmail.com Tue Apr 19 05:05:03 2011 From: peter.norlindh at gmail.com (Peter Norlindh) Date: Tue, 19 Apr 2011 12:05:03 +0200 Subject: Reading data from large ascii-file In-Reply-To: References: Message-ID: Thank you Marco! I have now tried to read the data in bigger chunks, and that seems to have sped things up a bit:) Currently, I'm waiting for dlmread(FILE) to read the entire file. It's been running for about one hour now and I expect it to continue for quite some time. Are there ways to decrease the reading time even further? /hpon On Tue, Apr 19, 2011 at 10:09 AM, marco atzeri wrote: > On Tue, Apr 19, 2011 at 9:41 AM, Peter Norlindh wrote: > > Hi, > > > > I am analyzing data from a 400MB ascii-file. There are about 30 million > > data points in the file and the execution takes forever. > > > > Currently the program reads and processes the file element-by-element ( > val > > = dlmread(fileName, "emptyvalue", [i, col, i, col]) ) and I suspect that > > this is a very unafficient way to do it. Could you suggest a better > > approach? > > surely not reading one element at time as you are doing with [i, col, i, > col] > > The RANGE parameter may be a 4-element vector containing the upper > left and lower right corner `[R0,C0,R1,C1]' where the lowest index > value is zero. > > if the data is already in matrix form, you should read all the matrix > in one pass > with just > > DATA = dlmread (FILE) > > > > > > > Regards, > > hpon > > Marco > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.atzeri at gmail.com Tue Apr 19 05:41:32 2011 From: marco.atzeri at gmail.com (marco atzeri) Date: Tue, 19 Apr 2011 12:41:32 +0200 Subject: Reading data from large ascii-file In-Reply-To: References: Message-ID: On Tue, Apr 19, 2011 at 12:05 PM, Peter Norlindh wrote: > Thank you Marco!? I have now tried to read the data in bigger chunks, and > that seems to have sped things up a bit:) > > Currently, I'm waiting for dlmread(FILE) to read the entire file.? It's > been?running for about one hour now and I?expect it to continue for quite > some time.??Are there ways to decrease the reading time even further? do you need all the 30 M points at the same time ? If not split the data ;-) > > /hpon > From widmer at geophys.uni-stuttgart.de Tue Apr 19 05:22:18 2011 From: widmer at geophys.uni-stuttgart.de (Rudolf Widmer-Schnidrig) Date: Tue, 19 Apr 2011 12:22:18 +0200 Subject: Reading data from large ascii-file In-Reply-To: References: Message-ID: <4DAD625A.3090804@geophys.uni-stuttgart.de> On 19.04.11 12:05, Peter Norlindh wrote: > Thank you Marco! I have now tried to read the data in bigger chunks, > and that seems to have sped things up a bit:) > Currently, I'm waiting for dlmread(FILE) to read the entire file. > It's been running for about one hour now and I expect it to continue > for quite some time. Are there ways to decrease the reading time even > further? > /hpon > > On Tue, Apr 19, 2011 at 10:09 AM, marco atzeri > wrote: > > On Tue, Apr 19, 2011 at 9:41 AM, Peter Norlindh wrote: > > Hi, > > > > I am analyzing data from a 400MB ascii-file. There are about 30 > million > > data points in the file and the execution takes forever. > > > > Currently the program reads and processes the file > element-by-element ( val > > = dlmread(fileName, "emptyvalue", [i, col, i, col]) ) and I > suspect that > > this is a very unafficient way to do it. Could you suggest a better > > approach? > > surely not reading one element at time as you are doing with [i, > col, i, col] > > The RANGE parameter may be a 4-element vector containing the upper > left and lower right corner `[R0,C0,R1,C1]' where the lowest index > value is zero. > > if the data is already in matrix form, you should read all the matrix > in one pass > with just > > DATA = dlmread (FILE) > > > > > > > Regards, > > hpon > > Marco > > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave Dear Peter, if you have to read the file more than once it might be worth to save it in binary format after having read it for the first time. All subsequent reads should be very much faster. -Ruedi -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From skianagh at googlemail.com Tue Apr 19 05:49:30 2011 From: skianagh at googlemail.com (Penfold) Date: Tue, 19 Apr 2011 03:49:30 -0700 (PDT) Subject: Reading data from large ascii-file In-Reply-To: References: Message-ID: <1303210170755-3460061.post@n4.nabble.com> Peter, I also read some large ASCII and binary datasets into Octave, circa 4M datasets. To speed things up I initially used a trivial standalone program to convert the dataset into octave's native data file format. Now I use a compiled function built with octave's 'mkoctfile' script. Can you post a just a couple of lines of your ASCII data, I might be able to help. What datatype do you want the data to load as, int/float/double? Cheers, Kevin -- View this message in context: http://octave.1599824.n4.nabble.com/Reading-data-from-large-ascii-file-tp3459696p3460061.html Sent from the Octave - General mailing list archive at Nabble.com. From peter.norlindh at gmail.com Tue Apr 19 06:13:24 2011 From: peter.norlindh at gmail.com (Peter Norlindh) Date: Tue, 19 Apr 2011 13:13:24 +0200 Subject: Reading data from large ascii-file In-Reply-To: References: Message-ID: Does it take less time in total to read several small files than one big? I have not been able to find an editor that can open the entire file and edit it. Any tips on how I can split-up the file? /hpon On Tue, Apr 19, 2011 at 12:41 PM, marco atzeri wrote: > On Tue, Apr 19, 2011 at 12:05 PM, Peter Norlindh wrote: > > Thank you Marco! I have now tried to read the data in bigger chunks, and > > that seems to have sped things up a bit:) > > > > Currently, I'm waiting for dlmread(FILE) to read the entire file. It's > > been running for about one hour now and I expect it to continue for quite > > some time. Are there ways to decrease the reading time even further? > > do you need all the 30 M points at the same time ? > If not split the data ;-) > > > > > /hpon > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Potorti at isti.cnr.it Tue Apr 19 06:17:41 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Tue, 19 Apr 2011 13:17:41 +0200 Subject: Reading data from large ascii-file In-Reply-To: References: Message-ID: >I am analyzing data from a 400MB ascii-file. There are about 30 million >data points in the file and the execution takes forever. > >Currently the program reads and processes the file element-by-element ( val >= dlmread(fileName, "emptyvalue", [i, col, i, col]) ) and I suspect that >this is a very unafficient way to do it. Could you suggest a better >approach? Reading one value at a time is the most inefficient way I can think of :) First of all, are you sure you can't simply use load()? Or use a trivial conversion of your data so that you can use load()? If your data is fixed, you should definitely consider the hint you were already given: read the data once, then save it with 'save -binary': when loading it with 'load' it should be as fast as possible. -- Francesco Potort? (ricercatore) Voice: +39 050 315 3058 (op.2111) ISTI - Area della ricerca CNR Fax: +39 050 315 2040 via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/ From Potorti at isti.cnr.it Tue Apr 19 07:09:43 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Tue, 19 Apr 2011 14:09:43 +0200 Subject: Reading data from large ascii-file In-Reply-To: References: Message-ID: >Does it take less time in total to read several small files than one big? I do not think so. But if need to read only part of the data, splitting it may be useful. >I have not been able to find an editor that can open the entire file and >edit it. Any tips on how I can split-up the file? In principle I think that vi could open it, but editing it would be very slow. The 'split' program could be of some use (try 'man split'). -- Francesco Potort? (ricercatore) Voice: +39 050 315 3058 (op.2111) ISTI - Area della ricerca CNR Fax: +39 050 315 2040 via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/ From jwe at octave.org Tue Apr 19 08:03:03 2011 From: jwe at octave.org (John W. Eaton) Date: Tue, 19 Apr 2011 09:03:03 -0400 Subject: Combining Vectors In-Reply-To: References: Message-ID: <19885.34823.552560.915114@coredump.lan> On 18-Apr-2011, stn wrote: | | | 2011/4/18 GFotios | | | On Apr 18, 2011, at 11:11 AM, stn wrote: | | | | | [v1,v2] = meshgrid ([1;2;3],[4;5;6]) | | and then | | [v1(:),v2(:)] | | is what you want. Or | | v1 = repmat([1;2;3],1,3).'(:) | v2 = repmat([4;5;6],1,3)(:) | [v1, v2] | | Enjoy, | /Fotis | | | Yes, thank you. | Both methods work. With meshgrid it is even possible to combine 3 vectors: | | [v1,v2,v3] = meshgrid ([1;2;3],[4;5;6],[7 8 9]) ; | [v1(:),v2(:),v3(:)] | | Can this also be done with an abitrary number of vectors ? The method in the following message can be expanded to more dimensions: https://mailman.cae.wisc.edu/pipermail/help-octave/2011-April/045415.html | The idea is to generate input-data for a simulation which is | supposed to run an existing model with every conceivable combination | of input-data. It would then calculate statistics, distribution | etc. The number of input-variables is 6 to 8, with 5 values per variable. For 8 dimensions and the same number of values for each dimension, you are going to need N^8*8 bytes of memory to store the set of inputs. So it's good that you only have 5 different values and not 1000 or so... jwe From peter.norlindh at gmail.com Tue Apr 19 08:51:22 2011 From: peter.norlindh at gmail.com (Peter Norlindh) Date: Tue, 19 Apr 2011 15:51:22 +0200 Subject: Reading data from large ascii-file In-Reply-To: References: Message-ID: Thank you Frencesco! load(FILE) seems super-fast! I have not been able to use the data though, and I have not been able to find what I need in the documentation. How do I assign the data in a .asc or .mat to a variable? Also, is it possible to list all variables that are present in the Octave session? /hpon On Tue, Apr 19, 2011 at 1:17 PM, Francesco Potort? wrote: > >I am analyzing data from a 400MB ascii-file. There are about 30 million > >data points in the file and the execution takes forever. > > > >Currently the program reads and processes the file element-by-element ( > val > >= dlmread(fileName, "emptyvalue", [i, col, i, col]) ) and I suspect that > >this is a very unafficient way to do it. Could you suggest a better > >approach? > > Reading one value at a time is the most inefficient way I can think of > :) > > First of all, are you sure you can't simply use load()? Or use a trivial > conversion of your data so that you can use load()? > > If your data is fixed, you should definitely consider the hint you were > already given: read the data once, then save it with 'save -binary': > when loading it with 'load' it should be as fast as possible. > > -- > Francesco Potort? (ricercatore) Voice: +39 050 315 3058 (op.2111) > ISTI - Area della ricerca CNR Fax: +39 050 315 2040 > via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it > (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Potorti at isti.cnr.it Tue Apr 19 09:10:26 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Tue, 19 Apr 2011 16:10:26 +0200 Subject: Reading data from large ascii-file In-Reply-To: References: Message-ID: >load(FILE) seems super-fast! I have not been able to use the data though, >and I have not been able to find what I need in the >documentation. Read the docs for 'load'. If you have a single gigantic matrix in your file, you read it in variable m like this: m = load("file"); >How do I assign the data in a .asc or .mat to a variable? Also, is it >possible to list all variables that are present in the Octave session? If it's a single matrix, do like the above. For listing the variables use 'who' or 'whos'. -- Francesco Potort? (ricercatore) Voice: +39 050 315 3058 (op.2111) ISTI - Area della ricerca CNR Fax: +39 050 315 2040 via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/ From peter.norlindh at gmail.com Tue Apr 19 10:27:34 2011 From: peter.norlindh at gmail.com (Peter Norlindh) Date: Tue, 19 Apr 2011 17:27:34 +0200 Subject: Reading data from large ascii-file In-Reply-To: References: Message-ID: Fantastic, it works now and its fast! Thank you very much for your excellent help and quick responses!!! /hpon On Tue, Apr 19, 2011 at 4:10 PM, Francesco Potort? wrote: > >load(FILE) seems super-fast! I have not been able to use the data though, > >and I have not been able to find what I need in the > >documentation< > http://www.gnu.org/software/octave/doc/interpreter/Simple-File-I_002fO.html#Simple-File-I_002fO > >. > > Read the docs for 'load'. If you have a single gigantic matrix in your > file, you read it in variable m like this: > > m = load("file"); > > >How do I assign the data in a .asc or .mat to a variable? Also, is it > >possible to list all variables that are present in the Octave session? > > If it's a single matrix, do like the above. > > For listing the variables use 'who' or 'whos'. > > -- > Francesco Potort? (ricercatore) Voice: +39 050 315 3058 (op.2111) > ISTI - Area della ricerca CNR Fax: +39 050 315 2040 > via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it > (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anaryusifov at gmail.com Tue Apr 19 12:23:53 2011 From: anaryusifov at gmail.com (TOT) Date: Tue, 19 Apr 2011 10:23:53 -0700 (PDT) Subject: Linking to external static (!) library Message-ID: <1303233833067-3461005.post@n4.nabble.com> Hi everyone. There is a big static C library (several lib*.a files). It contains references to MPI library (I'm not sure how) There is one header file (c*.h), containing several other header files and so on. This library compiled using gcc (compatible with octave). Lets assume that in the library "myopen" function exists. I want to call it in the octave and return the value of it (say 1 if everything is OK and -1 on error). I'm tying to use OCT files, but I end up with an error from ld: "recompile with -fPIC". The library is huge, makefiles are huge and -fPIC option to be placed in too many places, so I don't want to do this. Two questions: Is there any way to link to this library (via tweaking mkoctfile or by other means, but not recompiling the library)? Is it the same for matlab? Regards, Anar. ----- Back to the future! -- View this message in context: http://octave.1599824.n4.nabble.com/Linking-to-external-static-library-tp3461005p3461005.html Sent from the Octave - General mailing list archive at Nabble.com. From martin at mhelm.de Tue Apr 19 13:03:25 2011 From: martin at mhelm.de (Martin Helm) Date: Tue, 19 Apr 2011 20:03:25 +0200 Subject: Linking to external static (!) library In-Reply-To: <1303233833067-3461005.post@n4.nabble.com> References: <1303233833067-3461005.post@n4.nabble.com> Message-ID: <201104192003.26535.martin@mhelm.de> Am Dienstag, 19. April 2011, 19:23:53 schrieb TOT: > Hi everyone. > There is a big static C library (several lib*.a files). It contains > references to MPI library (I'm not sure how) > There is one header file (c*.h), containing several other header files and > so on. > This library compiled using gcc (compatible with octave). > > Lets assume that in the library "myopen" function exists. I want to call it > in the octave and return the value of it (say 1 if everything is OK and -1 > on error). > > I'm tying to use OCT files, but I end up with an error from ld: "recompile > with -fPIC". > The library is huge, makefiles are huge and -fPIC option to be placed in > too many places, so I don't want to do this. > > Two questions: > > Is there any way to link to this library (via tweaking mkoctfile or by > other means, but not recompiling the library)? > > Is it the same for matlab? > > Regards, > Anar. > I can be wrong since I never tried it (what you want to try), but I doubt it is possible since the man page of mkoctfile explicitely states "mkoctfile is used to compile C, C++, or Fortran source code in to a dynamically loadable .oct file for octave" You will have no luck creating a dynamically loadable file when linking against a library built without -fPIC. From anaryusifov at gmail.com Tue Apr 19 13:24:50 2011 From: anaryusifov at gmail.com (TOT) Date: Tue, 19 Apr 2011 11:24:50 -0700 (PDT) Subject: Linking to external static (!) library In-Reply-To: <201104192003.26535.martin@mhelm.de> References: <1303233833067-3461005.post@n4.nabble.com> <201104192003.26535.martin@mhelm.de> Message-ID: <1303237490788-3461172.post@n4.nabble.com> Thank you for your answer. That is why I was thinking to tweak mkoctfile to make it possible to link to the static library. Did any one tried something like this? May be there are some other options which I miss? Regards, Anar. ----- Back to the future! -- View this message in context: http://octave.1599824.n4.nabble.com/Linking-to-external-static-library-tp3461005p3461172.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Tue Apr 19 13:47:48 2011 From: carlo.defalco at gmail.com (c.) Date: Tue, 19 Apr 2011 20:47:48 +0200 Subject: Linking to external static (!) library In-Reply-To: <201104192003.26535.martin@mhelm.de> References: <1303233833067-3461005.post@n4.nabble.com> <201104192003.26535.martin@mhelm.de> Message-ID: On 19 Apr 2011, at 20:03, Martin Helm wrote: > Am Dienstag, 19. April 2011, 19:23:53 schrieb TOT: >> Hi everyone. >> There is a big static C library (several lib*.a files). It contains >> references to MPI library (I'm not sure how) >> There is one header file (c*.h), containing several other header files and >> so on. >> This library compiled using gcc (compatible with octave). >> >> Lets assume that in the library "myopen" function exists. I want to call it >> in the octave and return the value of it (say 1 if everything is OK and -1 >> on error). >> >> I'm tying to use OCT files, but I end up with an error from ld: "recompile >> with -fPIC". >> The library is huge, makefiles are huge and -fPIC option to be placed in >> too many places, so I don't want to do this. >> >> Two questions: >> >> Is there any way to link to this library (via tweaking mkoctfile or by >> other means, but not recompiling the library)? >> >> Is it the same for matlab? >> >> Regards, >> Anar. >> > I can be wrong since I never tried it (what you want to try), but I doubt it > is possible since the man page of mkoctfile explicitely states > "mkoctfile is used to compile C, C++, or Fortran source code in to a > dynamically loadable .oct file for octave" > You will have no luck creating a dynamically loadable file when linking against > a library built without -fPIC. Actually it is possible, what needs to be dynamic is the final oct file but it can include object code from a static library. I think we need more information to be able to help. What are the exact commands you used to build and link the .oct file? Have you tried something like: mkoctfile -c -I/path_to_your_libray/include octfile.cpp mkoctfile octfile.o /path_to_your_libray/lib/libraryname.a -o octfile.oct ? HTH, c. From martin at mhelm.de Tue Apr 19 14:18:37 2011 From: martin at mhelm.de (Martin Helm) Date: Tue, 19 Apr 2011 21:18:37 +0200 Subject: Linking to external static (!) library In-Reply-To: References: <1303233833067-3461005.post@n4.nabble.com> <201104192003.26535.martin@mhelm.de> Message-ID: <201104192118.37871.martin@mhelm.de> Am Dienstag, 19. April 2011, 20:47:48 schrieb c.: > On 19 Apr 2011, at 20:03, Martin Helm wrote: > > Am Dienstag, 19. April 2011, 19:23:53 schrieb TOT: > >> Hi everyone. > >> There is a big static C library (several lib*.a files). It contains > >> references to MPI library (I'm not sure how) > >> There is one header file (c*.h), containing several other header files > >> and so on. > >> This library compiled using gcc (compatible with octave). > >> > >> Lets assume that in the library "myopen" function exists. I want to call > >> it in the octave and return the value of it (say 1 if everything is OK > >> and -1 on error). > >> > >> I'm tying to use OCT files, but I end up with an error from ld: > >> "recompile with -fPIC". > >> The library is huge, makefiles are huge and -fPIC option to be placed in > >> too many places, so I don't want to do this. > >> > >> Two questions: > >> > >> Is there any way to link to this library (via tweaking mkoctfile or by > >> other means, but not recompiling the library)? > >> > >> Is it the same for matlab? > >> > >> Regards, > >> Anar. > > > > I can be wrong since I never tried it (what you want to try), but I doubt > > it is possible since the man page of mkoctfile explicitely states > > "mkoctfile is used to compile C, C++, or Fortran source code in to a > > dynamically loadable .oct file for octave" > > You will have no luck creating a dynamically loadable file when linking > > against a library built without -fPIC. > > Actually it is possible, what needs to be dynamic is the final oct file but > it can include object code from a static library. I think we need more > information to be able to help. What are the exact commands you used to > build and link the .oct file? Have you tried something like: > > mkoctfile -c -I/path_to_your_libray/include octfile.cpp > mkoctfile octfile.o /path_to_your_libray/lib/libraryname.a -o octfile.oct > > ? > > HTH, > c. I tried that now myself and it happened what I expected, (of course you can use a static library, I did not say that this is not possible but if it has to be built with -fPIC option), without -fPIC it gives /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: hello.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC hello.o: could not read symbols: Bad value collect2: ld returned 1 exit status Compiled with -fPIC it works. Or did I now completely misunderstand? From dersh at alum.mit.edu Tue Apr 19 18:46:17 2011 From: dersh at alum.mit.edu (dersh) Date: Tue, 19 Apr 2011 16:46:17 -0700 (PDT) Subject: Installation of miscellaneous-1.0.11 package In-Reply-To: <1302072193806-3430036.post@n4.nabble.com> References: <1302072193806-3430036.post@n4.nabble.com> Message-ID: <1303256777153-3461755.post@n4.nabble.com> I have run into a problem that is clearly very similar, although not line for line identical. I just upgraded to octave 3.4.0 (mac binary release). I then tried to upgrade some packages by installing new versions. I am getting very similar errors to what was posted below, for a few different packages. Any suggestions? Here is the full error set: pkg install /Users/dersh/Desktop/Downloads/miscellaneous-1.0.11.tar.gz warning: file /Users/dersh/Desktop/Downloads/miscellaneous-1.0.11.tar.gz does not exist octave-3.4.0:13> pkg install /Users/dersh/Desktop/Downloads/miscellaneous-1.0.11.tar.gz ld: warning: directory '/tmp/deps-i386/lib' following -L not found ld: warning: directory '/tmp/deps-i386/lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/tmp/deps-i386/bin/../lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/tmp/deps-i386/bin/../lib/gcc' following -L not found ld: warning: directory '/private/tmp/deps-i386/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found ld: library not found for -lgfortranbegin collect2: ld returned 1 exit status configure: error: Could not run /Applications/Others/Octave.app/Contents/Resources/bin/mkoctfile-3.4.0 the configure script returned the following error: checking for gcc... /usr/bin/gcc-4.2 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc-4.2 accepts -g... yes checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed checking for mkoctfile... /Applications/Others/Octave.app/Contents/Resources/bin/mkoctfile-3.4.0 error: called from `pkg>configure_make' in file /Applications/Others/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m near line 1325, column 9 error: called from: error: /Applications/Others/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m at line 783, column 5 error: /Applications/Others/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m at line 354, column 9 Thanks much, -- View this message in context: http://octave.1599824.n4.nabble.com/Installation-of-miscellaneous-1-0-11-package-tp3430036p3461755.html Sent from the Octave - General mailing list archive at Nabble.com. From lists at juliensalort.org Wed Apr 20 06:44:20 2011 From: lists at juliensalort.org (Julien Salort) Date: Wed, 20 Apr 2011 13:44:20 +0200 Subject: Installation of miscellaneous-1.0.11 package References: <1302072193806-3430036.post@n4.nabble.com> <1303256777153-3461755.post@n4.nabble.com> Message-ID: dersh writes: > I have run into a problem that is clearly very similar, although not line for > line identical. I just upgraded to octave 3.4.0 (mac binary release). I > then tried to upgrade some packages by installing new versions. I am > getting very similar errors to what was posted below, for a few different > packages. > Any suggestions? Hello, I need to build a package with better mkoctfile options indeed. In the mean time, you can do the following: Edit /Applications/Octave.app/Contents/Resources/bin/mkoctfile and change line 43 to LDFLAGS="-arch i386 -L/Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin10/4.2.1 -L${ROOT}/lib -L${ROOT}/lib/octave-3.4.0 ${LDFLAGS}" I thought I had done that already in the latest build but maybe it hasn't been uploaded to sourceforge... Hope this helps, Julien -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on a mailing list? From anaryusifov at gmail.com Wed Apr 20 07:10:14 2011 From: anaryusifov at gmail.com (TOT) Date: Wed, 20 Apr 2011 05:10:14 -0700 (PDT) Subject: Linking to external static (!) library In-Reply-To: <201104192118.37871.martin@mhelm.de> References: <1303233833067-3461005.post@n4.nabble.com> <201104192003.26535.martin@mhelm.de> <201104192118.37871.martin@mhelm.de> Message-ID: <1303301414624-3462819.post@n4.nabble.com> Thank you, Martin. I tried it in one step: mkoctfile -I/path_to_my_include -I/another_path -L/path_to_library/libname1.a -L/path_to_library/libname2.a testoct.cc It gave me the same problem like you have got. Then I used: mkoctfile -I/path_to_my_include -I/another_path -L/path_to_library -lname1 -lname2 testoct.cc The result was the same. You said that with -fPIC option compilation everything worked fine. Is there any way to connect to the static library compiled without -fPIC option? I'm afraid that it's theoretically impossible because resulted oct file should be dynamically linked to the octave - which means that it should be assembled and linked with -shared option - which means that ALL dependences should have PIC information - which means that they should be compiled with -fPIC option. Am I right? (please say me that I'm not and by recompiling octave I can get it worked) Maybe I can recompile octave and include my library into compilation process? ----- Back to the future! -- View this message in context: http://octave.1599824.n4.nabble.com/Linking-to-external-static-library-tp3461005p3462819.html Sent from the Octave - General mailing list archive at Nabble.com. From martin at mhelm.de Wed Apr 20 07:42:11 2011 From: martin at mhelm.de (Martin Helm) Date: Wed, 20 Apr 2011 14:42:11 +0200 Subject: Linking to external static (!) library In-Reply-To: <1303301414624-3462819.post@n4.nabble.com> References: <1303233833067-3461005.post@n4.nabble.com> <201104192118.37871.martin@mhelm.de> <1303301414624-3462819.post@n4.nabble.com> Message-ID: <201104201442.11612.martin@mhelm.de> Am Mittwoch, 20. April 2011, 14:10:14 schrieb TOT: > Thank you, Martin. > > I tried it in one step: > mkoctfile -I/path_to_my_include -I/another_path > -L/path_to_library/libname1.a -L/path_to_library/libname2.a testoct.cc > > It gave me the same problem like you have got. > > Then I used: > mkoctfile -I/path_to_my_include -I/another_path -L/path_to_library -lname1 > -lname2 testoct.cc > > The result was the same. > > You said that with -fPIC option compilation everything worked fine. > > Is there any way to connect to the static library compiled without -fPIC > option? > > I'm afraid that it's theoretically impossible because resulted oct file > should be dynamically linked to the octave - which means that it should be > assembled and linked with -shared option - which means that ALL dependences > should have PIC information - which means that they should be compiled with > -fPIC option. That is how I understand it and how it always worked for me. The linker cannot by black magic change the object code in the library to make it suitable for the oct file if it is not already "Position Independent Code", which means -fPIC is essential. > > Am I right? (please say me that I'm not and by recompiling octave I can get > it worked) > I am afraid you are right. Maybe someone else jumps in and has an additional idea which works with some trick I cannot even imagine. > Maybe I can recompile octave and include my library into compilation > process? > That I cannot answer, if I understand you right you are after something like compiling a static octave which works only with static libraries. There were attempts to have something like that on this mailing lists, but I do not remeber if the people who tried that had success or not. I think - if this is possible - it is more work than compiling you r library. To come back to your library: Is the use of the options for the compilation really so much splitted to different places? I would usually think that it has some central makefile or a configure script which makes it easy to recompile the whole thing with minimal effort. From anaryusifov at gmail.com Wed Apr 20 08:18:27 2011 From: anaryusifov at gmail.com (TOT) Date: Wed, 20 Apr 2011 06:18:27 -0700 (PDT) Subject: Linking to external static (!) library In-Reply-To: <201104201442.11612.martin@mhelm.de> References: <1303233833067-3461005.post@n4.nabble.com> <201104192003.26535.martin@mhelm.de> <201104192118.37871.martin@mhelm.de> <1303301414624-3462819.post@n4.nabble.com> <201104201442.11612.martin@mhelm.de> Message-ID: <1303305507754-3462963.post@n4.nabble.com> martin_helm wrote: > > To come back to your library: Is the use of the options for the > compilation > really so much splitted to different places? I would usually think that it > has > some central makefile or a configure script which makes it easy to > recompile the > whole thing with minimal effort. > Yes it is. The library were build in early 80s so it's obsolete by means of configure script. The make file is a peace of art by it's own. I already tried to make it shared by it refused to compile on other computers in the grid - so I put it away for someone to help me in the future... Any other ideas? What about matlab - does it behave the same by means of static linking? Regards, Anar ----- Back to the future! -- View this message in context: http://octave.1599824.n4.nabble.com/Linking-to-external-static-library-tp3461005p3462963.html Sent from the Octave - General mailing list archive at Nabble.com. From jwe at octave.org Wed Apr 20 09:00:14 2011 From: jwe at octave.org (John W. Eaton) Date: Wed, 20 Apr 2011 10:00:14 -0400 Subject: Linking to external static (!) library In-Reply-To: <1303305507754-3462963.post@n4.nabble.com> References: <1303233833067-3461005.post@n4.nabble.com> <201104192003.26535.martin@mhelm.de> <201104192118.37871.martin@mhelm.de> <1303301414624-3462819.post@n4.nabble.com> <201104201442.11612.martin@mhelm.de> <1303305507754-3462963.post@n4.nabble.com> Message-ID: <19886.59118.644847.922432@coredump.lan> On 20-Apr-2011, TOT wrote: | What about matlab - does it behave the same by means of static linking? This is not the right place to ask for advice about using Matlab. jwe From anaryusifov at gmail.com Wed Apr 20 09:41:11 2011 From: anaryusifov at gmail.com (TOT) Date: Wed, 20 Apr 2011 07:41:11 -0700 (PDT) Subject: Linking to external static (!) library In-Reply-To: <19886.59118.644847.922432@coredump.lan> References: <1303233833067-3461005.post@n4.nabble.com> <201104192003.26535.martin@mhelm.de> <201104192118.37871.martin@mhelm.de> <1303301414624-3462819.post@n4.nabble.com> <201104201442.11612.martin@mhelm.de> <1303305507754-3462963.post@n4.nabble.com> <19886.59118.644847.922432@coredump.lan> Message-ID: <1303310471401-3463224.post@n4.nabble.com> John, I agree - but do I have any octave based solution for my problem? Regards, Anar. ----- Back to the future! -- View this message in context: http://octave.1599824.n4.nabble.com/Linking-to-external-static-library-tp3461005p3463224.html Sent from the Octave - General mailing list archive at Nabble.com. From jwe at octave.org Wed Apr 20 10:16:34 2011 From: jwe at octave.org (John W. Eaton) Date: Wed, 20 Apr 2011 11:16:34 -0400 Subject: Linking to external static (!) library In-Reply-To: <1303310471401-3463224.post@n4.nabble.com> References: <1303233833067-3461005.post@n4.nabble.com> <201104192003.26535.martin@mhelm.de> <201104192118.37871.martin@mhelm.de> <1303301414624-3462819.post@n4.nabble.com> <201104201442.11612.martin@mhelm.de> <1303305507754-3462963.post@n4.nabble.com> <19886.59118.644847.922432@coredump.lan> <1303310471401-3463224.post@n4.nabble.com> Message-ID: <19886.63698.398069.686490@coredump.lan> On 20-Apr-2011, TOT wrote: | I agree - but do I have any octave based solution for my problem? I think the problem is that you are trying to do something that is not possible on your operating system. You apparently can't create a dynamically loadable shared library unless all the parts are compiled as position independent code. I don't see that this problem is specific to Octave. Have you considered the following options? Recompile your library with -fPIC. You say that's hard because of some horrible build environment. But I suppose it is possible to compile the library with default options hard-wired into the build scripts, right? Then perhaps you could write shell scripts that have the same names as the compiler but appear earlier in your PATH, and have these scripts invoke the real compiler with -fPIC added to the list of options. Then when you build your library as usual, but this time the scripts should take care of adding the -fPIC option you need. If that fails for some reason, then another option would be to write a completely separate program that calls the functions you need from your library. To pass data to/from this program, have it read an input file and write and output file. Then write a .m file for Octave that prepares the input file, invokes the program with the system function and then reads the output file created by your separate program. If you don't like the idea of files, you could use pipes instead and have your program read from stdin and write to stdout. jwe From lists at juliensalort.org Wed Apr 20 12:07:14 2011 From: lists at juliensalort.org (Julien Salort) Date: Wed, 20 Apr 2011 19:07:14 +0200 Subject: Package problem on mac octave In-Reply-To: <491B4EBE-D14A-424F-80E1-C2B98F6FB7BD@alum.mit.edu> References: <32222894.92.1303257251705.JavaMail.nabble@joe.nabble.com> <8BF6473D-5A54-4779-9851-5672B3D86B35@juliensalort.org> <491B4EBE-D14A-424F-80E1-C2B98F6FB7BD@alum.mit.edu> Message-ID: Le 20 avr. 2011 ? 17:37, Adam Dershowitz a ?crit : > Nope. > I went to make the change, only to find that you are correct that you had made that change already. At least line 43 is already identical to what you have below. Yet, I am still getting the same error. > Other ideas? I see that libgfortranbegin is in the package, but the warning below suggests that it is not being found. The following workaround works on my Mac, although this is probably quite dirty. Edit the file: /Applications/Octave.app/Contents/Resources/bin/mkoctfile-3.4.0 and search for "/tmp/deps-i386" and replace all by "/Applications/Octave.app/Contents/Resources" I'm interested if someone knows how to do things in a less ugly way ! In a mean time, if you can confirm that this fixes the problem, maybe a new .app should be uploaded to sourceforge... Julien From dersh at alum.mit.edu Wed Apr 20 12:53:43 2011 From: dersh at alum.mit.edu (Adam Dershowitz) Date: Wed, 20 Apr 2011 10:53:43 -0700 Subject: Package problem on mac octave In-Reply-To: References: <32222894.92.1303257251705.JavaMail.nabble@joe.nabble.com> <8BF6473D-5A54-4779-9851-5672B3D86B35@juliensalort.org> <491B4EBE-D14A-424F-80E1-C2B98F6FB7BD@alum.mit.edu> Message-ID: <3E05AA65-1AAB-4963-8A7E-99070DD542CD@alum.mit.edu> On Apr 20, 2011, at 10:07 AM, Julien Salort wrote: > Le 20 avr. 2011 ? 17:37, Adam Dershowitz a ?crit : > >> Nope. >> I went to make the change, only to find that you are correct that you had made that change already. At least line 43 is already identical to what you have below. Yet, I am still getting the same error. >> Other ideas? I see that libgfortranbegin is in the package, but the warning below suggests that it is not being found. > > The following workaround works on my Mac, although this is probably quite dirty. > > Edit the file: /Applications/Octave.app/Contents/Resources/bin/mkoctfile-3.4.0 > and search for "/tmp/deps-i386" and replace all by "/Applications/Octave.app/Contents/Resources" > > I'm interested if someone knows how to do things in a less ugly way ! > In a mean time, if you can confirm that this fixes the problem, maybe a new .app should be uploaded to sourceforge... > > Julien Julien, I also don't see fltk in octave. Should that be an option? Do I need to do something to point to it? Not a big deal, I was just curious about it for plotting, and I see that there are fltk libraries in the mac binary. But if I do: octave-3.4.0:10> available_graphics_toolkits () ans = { [1,1] = gnuplot } Again and environment variable issue? Thanks, --Adam From lists at juliensalort.org Wed Apr 20 12:58:30 2011 From: lists at juliensalort.org (Julien Salort) Date: Wed, 20 Apr 2011 19:58:30 +0200 Subject: Package problem on mac octave In-Reply-To: <3E05AA65-1AAB-4963-8A7E-99070DD542CD@alum.mit.edu> References: <32222894.92.1303257251705.JavaMail.nabble@joe.nabble.com> <8BF6473D-5A54-4779-9851-5672B3D86B35@juliensalort.org> <491B4EBE-D14A-424F-80E1-C2B98F6FB7BD@alum.mit.edu> <3E05AA65-1AAB-4963-8A7E-99070DD542CD@alum.mit.edu> Message-ID: <08A116A4-7D1B-4B36-8D78-E1FA2D98A6D1@juliensalort.org> Le 20 avr. 2011 ? 19:53, Adam Dershowitz a ?crit : > I also don't see fltk in octave. Should that be an option? Do I need to do something to point to it? Not a big deal, I was just curious about it for plotting, and I see that there are fltk libraries in the mac binary. But if I do: > > octave-3.4.0:10> available_graphics_toolkits () > ans = > { > [1,1] = gnuplot > } > > Again and environment variable issue? It works here but it doesn't show in available_graphics_toolkit unless it's been called already: octave-3.4.0:1> available_graphics_toolkits ans = { [1,1] = gnuplot } octave-3.4.0:2> graphics_toolkit fltk octave-3.4.0:3> available_graphics_toolkits ans = { [1,1] = fltk [1,2] = gnuplot } I don't know if this is how it is expected to work or not. Julien From bpabbott at mac.com Wed Apr 20 13:00:56 2011 From: bpabbott at mac.com (bpabbott) Date: Wed, 20 Apr 2011 18:00:56 +0000 (GMT) Subject: Package problem on mac octave In-Reply-To: <3E05AA65-1AAB-4963-8A7E-99070DD542CD@alum.mit.edu> Message-ID: <079bb455-a6dc-4af8-b093-af4c7a55b100@me.com> On Apr 20, 2011, at 01:54 PM, Adam Dershowitz wrote: On Apr 20, 2011, at 10:07 AM, Julien Salort wrote: > Le 20 avr. 2011 ? 17:37, Adam Dershowitz a ?crit : > >> Nope. >> I went to make the change, only to find that you are correct that you had made that change already. At least line 43 is already identical to what you have below. Yet, I am still getting the same error. >> Other ideas? I see that libgfortranbegin is in the package, but the warning below suggests that it is not being found. > > The following workaround works on my Mac, although this is probably quite dirty. > > Edit the file: /Applications/Octave.app/Contents/Resources/bin/mkoctfile-3.4.0 > and search for "/tmp/deps-i386" and replace all by "/Applications/Octave.app/Contents/Resources" > > I'm interested if someone knows how to do things in a less ugly way ! > In a mean time, if you can confirm that this fixes the problem, maybe a new .app should be uploaded to sourceforge... > > Julien Julien, I also don't see fltk in octave. Should that be an option? Do I need to do something to point to it? Not a big deal, I was just curious about it for plotting, and I see that there are fltk libraries in the mac binary. But if I do: octave-3.4.0:10> available_graphics_toolkits () ans = { [1,1] = gnuplot } Again and environment variable issue? Thanks, --Adam ? The FLTK backend won't show up until after it has been initialized. Try ... octave:1> graphics_toolkit fltk octave:2> available_graphics_toolkits ans = { [1,1] = fltk [1,2] = gnuplot } Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: From dersh at alum.mit.edu Wed Apr 20 12:31:04 2011 From: dersh at alum.mit.edu (Adam Dershowitz) Date: Wed, 20 Apr 2011 10:31:04 -0700 Subject: Package problem on mac octave In-Reply-To: References: <32222894.92.1303257251705.JavaMail.nabble@joe.nabble.com> <8BF6473D-5A54-4779-9851-5672B3D86B35@juliensalort.org> <491B4EBE-D14A-424F-80E1-C2B98F6FB7BD@alum.mit.edu> Message-ID: On Apr 20, 2011, at 10:07 AM, Julien Salort wrote: > Le 20 avr. 2011 ? 17:37, Adam Dershowitz a ?crit : > >> Nope. >> I went to make the change, only to find that you are correct that you had made that change already. At least line 43 is already identical to what you have below. Yet, I am still getting the same error. >> Other ideas? I see that libgfortranbegin is in the package, but the warning below suggests that it is not being found. > > The following workaround works on my Mac, although this is probably quite dirty. > > Edit the file: /Applications/Octave.app/Contents/Resources/bin/mkoctfile-3.4.0 > and search for "/tmp/deps-i386" and replace all by "/Applications/Octave.app/Contents/Resources" > > I'm interested if someone knows how to do things in a less ugly way ! > In a mean time, if you can confirm that this fixes the problem, maybe a new .app should be uploaded to sourceforge... > > Julien Yes, that fixes the problem. It did give a bunch of warnings, because one of the changes was to /private/Applications.... but it does seem to solve it. Somewhat of a kludge, (octave now has to live in /Applications/ but good enough) Thanks much! FYI, these are the warnings: pkg install /Users/dersh/Desktop/Downloads/miscellaneous-1.0.11.tar.gz ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found waitbar.cc: In function ?octave_value_list Fwaitbar(const octave_value_list&, int)?: waitbar.cc:126: warning: deprecated conversion from string constant to ?char*? waitbar.cc:147: warning: deprecated conversion from string constant to ?char*? waitbar.cc:148: warning: deprecated conversion from string constant to ?char*? ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc' following -L not found ld: warning: directory '/private/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found From jwe at octave.org Wed Apr 20 13:06:24 2011 From: jwe at octave.org (John W. Eaton) Date: Wed, 20 Apr 2011 14:06:24 -0400 Subject: Package problem on mac octave In-Reply-To: <08A116A4-7D1B-4B36-8D78-E1FA2D98A6D1@juliensalort.org> References: <32222894.92.1303257251705.JavaMail.nabble@joe.nabble.com> <8BF6473D-5A54-4779-9851-5672B3D86B35@juliensalort.org> <491B4EBE-D14A-424F-80E1-C2B98F6FB7BD@alum.mit.edu> <3E05AA65-1AAB-4963-8A7E-99070DD542CD@alum.mit.edu> <08A116A4-7D1B-4B36-8D78-E1FA2D98A6D1@juliensalort.org> Message-ID: <19887.8352.772546.278376@coredump.lan> On 20-Apr-2011, Julien Salort wrote: | I don't know if this is how it is expected to work or not. It would be better if the list of available graphics toolkits was handled differently. This is a known problem. See the feature request here: https://savannah.gnu.org/bugs/index.php?31583 I think it has also been discussed on the maintainers list. jwe From dersh at alum.mit.edu Wed Apr 20 13:10:39 2011 From: dersh at alum.mit.edu (Adam Dershowitz) Date: Wed, 20 Apr 2011 11:10:39 -0700 Subject: Package problem on mac octave In-Reply-To: <08A116A4-7D1B-4B36-8D78-E1FA2D98A6D1@juliensalort.org> References: <32222894.92.1303257251705.JavaMail.nabble@joe.nabble.com> <8BF6473D-5A54-4779-9851-5672B3D86B35@juliensalort.org> <491B4EBE-D14A-424F-80E1-C2B98F6FB7BD@alum.mit.edu> <3E05AA65-1AAB-4963-8A7E-99070DD542CD@alum.mit.edu> <08A116A4-7D1B-4B36-8D78-E1FA2D98A6D1@juliensalort.org> Message-ID: <9ABD5D52-25CC-4F8B-A362-5C7E32E7A9F3@alum.mit.edu> On Apr 20, 2011, at 10:58 AM, Julien Salort wrote: > Le 20 avr. 2011 ? 19:53, Adam Dershowitz a ?crit : > >> I also don't see fltk in octave. Should that be an option? Do I need to do something to point to it? Not a big deal, I was just curious about it for plotting, and I see that there are fltk libraries in the mac binary. But if I do: >> >> octave-3.4.0:10> available_graphics_toolkits () >> ans = >> { >> [1,1] = gnuplot >> } >> >> Again and environment variable issue? > > It works here but it doesn't show in available_graphics_toolkit unless it's been called already: > > octave-3.4.0:1> available_graphics_toolkits > ans = > { > [1,1] = gnuplot > } > octave-3.4.0:2> graphics_toolkit fltk > octave-3.4.0:3> available_graphics_toolkits ans = > { > [1,1] = fltk > [1,2] = gnuplot > } > > I don't know if this is how it is expected to work or not. > > Julien Yes, that does it. I suppose I should have just tried it.... Another thank you! From anaryusifov at gmail.com Wed Apr 20 14:52:29 2011 From: anaryusifov at gmail.com (TOT) Date: Wed, 20 Apr 2011 12:52:29 -0700 (PDT) Subject: Linking to external static (!) library In-Reply-To: <19886.63698.398069.686490@coredump.lan> References: <1303233833067-3461005.post@n4.nabble.com> <201104192003.26535.martin@mhelm.de> <201104192118.37871.martin@mhelm.de> <1303301414624-3462819.post@n4.nabble.com> <201104201442.11612.martin@mhelm.de> <1303305507754-3462963.post@n4.nabble.com> <19886.59118.644847.922432@coredump.lan> <1303310471401-3463224.post@n4.nabble.com> <19886.63698.398069.686490@coredump.lan> Message-ID: <1303329149689-3463985.post@n4.nabble.com> Thank you, John. I tried to use scripts - but I'm failed - it does compiles some part of the library, but most of it were not compiled at all. I tried to automate the process: catching the errors and recompile all again - but it was to difficult. To be honest I have a simple program which does something like a bridge between my library and octave - but it's not enough. There are too many cases of input data and too many options for output from my library - I cannot handle all of them. The program already has about 400 lines - it's too many for a simple thing. As far as I understood - it's the only possible solution for me. That is kinda sad. If any one has any other ideas about please feel free to write me! All the best, Anar. ----- Back to the future! -- View this message in context: http://octave.1599824.n4.nabble.com/Linking-to-external-static-library-tp3461005p3463985.html Sent from the Octave - General mailing list archive at Nabble.com. From przemek.klosowski at nist.gov Wed Apr 20 16:46:27 2011 From: przemek.klosowski at nist.gov (Przemek Klosowski) Date: Wed, 20 Apr 2011 17:46:27 -0400 Subject: Linking to external static (!) library In-Reply-To: <1303329149689-3463985.post@n4.nabble.com> References: <1303233833067-3461005.post@n4.nabble.com> <201104192003.26535.martin@mhelm.de> <201104192118.37871.martin@mhelm.de> <1303301414624-3462819.post@n4.nabble.com> <201104201442.11612.martin@mhelm.de> <1303305507754-3462963.post@n4.nabble.com> <19886.59118.644847.922432@coredump.lan> <1303310471401-3463224.post@n4.nabble.com> <19886.63698.398069.686490@coredump.lan> <1303329149689-3463985.post@n4.nabble.com> Message-ID: <4DAF5433.3070301@nist.gov> On 04/20/2011 03:52 PM, TOT wrote: > Thank you, John. > > I tried to use scripts - but I'm failed - it does compiles some part of the > library, but most of it were not compiled at all. I tried to automate the > process: catching the errors and recompile all again - but it was to > difficult. > > To be honest I have a simple program which does something like a bridge > between my library and octave - but it's not enough. There are too many > cases of input data and too many options for output from my library - I > cannot handle all of them. The program already has about 400 lines - it's > too many for a simple thing. > > As far as I understood - it's the only possible solution for me. That is > kinda sad. > > If any one has any other ideas about please feel free to write me! I would like to encourage you to keep trying and not give up. It may look confusing but you have a finite set of compilation units, so if you keep eliminating the problems one by one you will get the shiny new library which in all likelihood run faster because recent compilers tend to generate faster code. If the input data is varied and complex, writing shims is probably more trouble than just figuring out the compilation. If the make/build process is really too difficult to handle, one simple but inelegant way of handling the compilation would be to start from a clean slate, run the compile in the old/incorrect way while capturing all the compilation commands, and then edit them to add options you need (-fPIC) and run the result as a fixed shell script. From scottawardle at mac.com Wed Apr 20 16:46:32 2011 From: scottawardle at mac.com (Scott Wardle) Date: Wed, 20 Apr 2011 14:46:32 -0700 Subject: mkoctfile problems with Octave 3.4.0, OSX 10.6.7 Message-ID: Sorry if this question has already been answered, but I'm unable to get mkoctfile to work at all on my system. I'm running Octave 3.4.0 on OSX 10.6.7. When I run mkoctfile I get these errors: ld: warning: directory '/tmp/deps-i386/lib' following -L not found ld: warning: directory '/tmp/deps-i386/lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/tmp/deps-i386/bin/../lib/gcc/i686-apple-darwin10/4.2.1' following -L not found ld: warning: directory '/private/tmp/deps-i386/bin/../lib/gcc' following -L not found ld: warning: directory '/private/tmp/deps-i386/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found ld: library not found for -lgfortranbegin collect2: ld returned 1 exit status I have all the latest Apple developer tools installed (XCode 3.2.5, etc.) Is there something I'm doing wrong? Any help will be greatly appreciated. Thanks!!! From raju.mailinglists at gmail.com Wed Apr 20 21:43:40 2011 From: raju.mailinglists at gmail.com (Kamaraju S Kusumanchi) Date: Wed, 20 Apr 2011 22:43:40 -0400 Subject: using relative paths to execute octave scripts Message-ID: Consider the following directory structure $tree . ??? a ? ??? hello_world.m ??? b $cat a/hello_world.m printf("Hello, world!\n"); the following works $cd a/ $octave -q octave:1> hello_world Hello, world! octave:2> quit However, If I do $cd ../b $octave -q octave:1> ../a/hello_world parse error: syntax error >>> ../a/hello_world ^ which brings my question. Is there anyway to execute octave scripts using relative path? If not, could this feature please be added? Note: My current work around for this "deficiency" is to use addpath to add the a/ directory into the path list. However, the drawback of this approach is that, sometimes I have multiple versions of hello_world.m in different directories and I want to call different versions at different times in the master script. Using octave 3.0.1 on Debian Squeeze. thanks -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/ From jordigh at octave.org Wed Apr 20 21:53:19 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Wed, 20 Apr 2011 21:53:19 -0500 Subject: using relative paths to execute octave scripts In-Reply-To: References: Message-ID: On 20 April 2011 21:43, Kamaraju S Kusumanchi wrote: > which brings my question. Is there anyway to execute octave scripts using > relative path? If not, could this feature please be added? If for whatever reason the filename or full path contains characters that can't be parsed directly (e.g. a hyphen, which would be a minus sign) you can use the source command to execute the script instead. So try source("../a/hello_world.m") - Jordi G. H. From raju.mailinglists at gmail.com Wed Apr 20 21:58:00 2011 From: raju.mailinglists at gmail.com (Kamaraju S Kusumanchi) Date: Wed, 20 Apr 2011 22:58 -0400 Subject: using relative paths to execute octave scripts References: Message-ID: Jordi Guti?rrez Hermoso wrote: > On 20 April 2011 21:43, Kamaraju S Kusumanchi > wrote: >> which brings my question. Is there anyway to execute octave scripts using >> relative path? If not, could this feature please be added? > > If for whatever reason the filename or full path contains characters > that can't be parsed directly (e.g. a hyphen, which would be a minus > sign) you can use the source command to execute the script instead. So > try > > source("../a/hello_world.m") > Awesome! Just what I need. Thanks very much. raju -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/ From pathematica at gmail.com Thu Apr 21 01:56:27 2011 From: pathematica at gmail.com (pathematica) Date: Wed, 20 Apr 2011 23:56:27 -0700 (PDT) Subject: Specifying RGB triples Message-ID: <1303368987703-3465253.post@n4.nabble.com> I wish to produce publication quality images. I can obtain them with a little effort, but I was wondering whether I might use Octave more efficiently. At present I output to svg, then post process using Inkscape. I use Inkscape to change yellow objects (#FFFF00) to orange ones (#FF7F00), so that they might be better seen in print. >From Inkscape, I save in pdf at 1200 dpi files. I import the pdf files into LaTeX using suitable trim/clip and scale parameters and the result is very good. I have found a few posts that suggest (but, unfortunately, it is never completely clear) that it might be possible to print in arbitrary color by specifying RGB triplets. However, I cannot find a syntax that works (I apologise for not having any specimen attempts to post here). Questions (in the first instance, yes/no answers would suffice to vindicate further attempts to make it work but, if the answer were yes, specimen syntax would be appreciated!) 1) Is it possible to print directly in orange (by specifying RGP triplets or by some other means)? 2) Would saving to pdf from Octave achieve the same level of resolution as the 1200 dpi from Inkscape? (This would only be of value if I could print in orange so that I did not need to post process the images). Thank you for any comments that might follow. -- View this message in context: http://octave.1599824.n4.nabble.com/Specifying-RGB-triples-tp3465253p3465253.html Sent from the Octave - General mailing list archive at Nabble.com. From soren at hauberg.org Thu Apr 21 02:06:17 2011 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Thu, 21 Apr 2011 09:06:17 +0200 Subject: Specifying RGB triples In-Reply-To: <1303368987703-3465253.post@n4.nabble.com> References: <1303368987703-3465253.post@n4.nabble.com> Message-ID: <1303369577.5846.38.camel@hauberg-laptop> ons, 20 04 2011 kl. 23:56 -0700, skrev pathematica: > 1) Is it possible to print directly in orange (by specifying RGP triplets or > by some other means)? Are you looking for something like plot (sin (1:100), 'color', [0.9, 0.2, 0.2]) ? > 2) Would saving to pdf from Octave achieve the same level of resolution as > the 1200 dpi from Inkscape? > (This would only be of value if I could print in orange so that I did not > need to post process the images). I don't know. I thought the resolution didn't really matter for vector graphics. Try making your plots and then type get (gcf ()) This will list a bunch of properties you can change; perhaps one of them will do what you need. S?ren From pathematica at gmail.com Thu Apr 21 02:20:23 2011 From: pathematica at gmail.com (pathematica) Date: Thu, 21 Apr 2011 00:20:23 -0700 (PDT) Subject: Specifying RGB triples In-Reply-To: <1303369577.5846.38.camel@hauberg-laptop> References: <1303368987703-3465253.post@n4.nabble.com> <1303369577.5846.38.camel@hauberg-laptop> Message-ID: <1303370423154-3465286.post@n4.nabble.com> Thank you for your amazingly quick response. It does indeed work. For those that are trying to solve the same problem, I can now see what I was doing wrong. I note that the 3-vector denoting the RGB triplet comprises three proportions rather than the absolute hexadecimal values. It appears that I can get the same color that I achieved from Inkscape (specified as #FF7F00 above) using plot( ... , 'color', [1 0.5 0]) Also thank you for the comments about pdf. Now that I can print in orange (or arbitrary color), I can use Octave directly and I will experiment. Thank you. -- View this message in context: http://octave.1599824.n4.nabble.com/Specifying-RGB-triples-tp3465253p3465286.html Sent from the Octave - General mailing list archive at Nabble.com. From sergstesh at yahoo.com Thu Apr 21 03:14:41 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Thu, 21 Apr 2011 01:14:41 -0700 (PDT) Subject: Specifying RGB triples In-Reply-To: <1303369577.5846.38.camel@hauberg-laptop> Message-ID: <39059.20697.qm@web112113.mail.gq1.yahoo.com> --- On Thu, 4/21/11, S?ren Hauberg wrote: > From: S?ren Hauberg > Subject: Re: Specifying RGB triples > To: "pathematica" > Cc: help-octave at octave.org > Date: Thursday, April 21, 2011, 12:06 AM > ons, 20 04 2011 kl. 23:56 -0700, > skrev pathematica: [snip] > ? plot (sin (1:100), 'color', [0.9, 0.2, 0.2]) [snip] > > S?ren > > Is this described anywhere in Octave documentation ? And how this can be understood from "get(gcf())" output ? Thanks, Sergei. From daniel.arteaga at gmail.com Thu Apr 21 03:29:48 2011 From: daniel.arteaga at gmail.com (Daniel Arteaga) Date: Thu, 21 Apr 2011 10:29:48 +0200 Subject: cellfun/arrayfun vs iteration Message-ID: Hi, In terms of speed, is it better to use the cellfun/arrayfun functions or to iterate explicitly using "for" loops? In Matlab it appears that it is better to iterate: see http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/eb6fe76e1856364f, but Matlab has a JIT compiler and Octave doesn't, at least for the moment. (Of course I realize the best is to avoid any iteration and to vectorize the code whenever possible.) Thanks, Daniel From daniel.arteaga at gmail.com Thu Apr 21 03:49:03 2011 From: daniel.arteaga at gmail.com (Daniel Arteaga) Date: Thu, 21 Apr 2011 10:49:03 +0200 Subject: Vectorization quiz Message-ID: Hi, How could I vectorize the following piece of code? P = zeros(size(fInf)); for i = 1:length(fInf) P(i) = sum( S2( fLin > fInf(i) & fLin < fSup(i) ) ); endfor where fInf is a vector of length 1000 fSup is a vector of length 1000 P is a vector of length 1000 S2 is a vector of length 50000 fLin is a vector of length 50000 Thank you very much in advance, Daniel From soren at hauberg.org Thu Apr 21 03:58:05 2011 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Thu, 21 Apr 2011 10:58:05 +0200 Subject: Specifying RGB triples In-Reply-To: <39059.20697.qm@web112113.mail.gq1.yahoo.com> References: <39059.20697.qm@web112113.mail.gq1.yahoo.com> Message-ID: <1303376285.1859.4.camel@hauberg-laptop> tor, 21 04 2011 kl. 01:14 -0700, skrev Sergei Steshenko: > > --- On Thu, 4/21/11, S?ren Hauberg wrote: > > > From: S?ren Hauberg > > Subject: Re: Specifying RGB triples > > To: "pathematica" > > Cc: help-octave at octave.org > > Date: Thursday, April 21, 2011, 12:06 AM > > ons, 20 04 2011 kl. 23:56 -0700, > > skrev pathematica: > [snip] > > plot (sin (1:100), 'color', [0.9, 0.2, 0.2]) > [snip] > > > > S?ren > > > > > > Is this described anywhere in Octave documentation ? I don't know. > And how this can be understood from "get(gcf())" output ? "get(gcf())" just gives you a list of figure properties, such as the size of the figure, etc. The above colour-stuff is the property of a specific plot element. You should be able to get related information by doing something like handle = plot (sin (1:100)); get (handle) S?ren From liamg at me.com Thu Apr 21 05:17:40 2011 From: liamg at me.com (Liam Groener) Date: Thu, 21 Apr 2011 03:17:40 -0700 Subject: Fwd: mkoctfile problems with Octave 3.4.0, OSX 10.6.7 References: <74709D27-761E-4A8E-9401-86982B69D4AD@mac.com> Message-ID: Sent from my iPad Begin forwarded message: > From: Scott Wardle > Date: April 20, 2011 6:12:28 PM PDT > To: Liam Groener > Subject: Re: mkoctfile problems with Octave 3.4.0, OSX 10.6.7 > > I edited the mkoctfile-3.4.0 as suggested in "Package problem on mac octave" thread. > However, I am compiling code with MEX functions (--mex option) and all the typical Matlab mex function calls are now undefined: > > Undefined symbols: > "_mxGetM", referenced from: > _mexFunction in bitparitycheck.o > _mexFunction in bitparitycheck.o > "_mxGetN", referenced from: > _mexFunction in bitparitycheck.o > _mexFunction in bitparitycheck.o > "_mxIsComplex", referenced from: > _mexFunction in bitparitycheck.o > "_mexErrMsgTxt", referenced from: > _mexFunction in bitparitycheck.o > _mexFunction in bitparitycheck.o > _mexFunction in bitparitycheck.o > "_mxCreateDoubleMatrix", referenced from: > _mexFunction in bitparitycheck.o > "_mxGetPr", referenced from: > _mexFunction in bitparitycheck.o > _mexFunction in bitparitycheck.o > _mexFunction in bitparitycheck.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > > What else do I need to do to get this working? > > Thanks! > > On Apr 20, 2011, at 4:08 PM, Liam Groener wrote: > >> Sent from my iPad >> >> On Apr 20, 2011, at 2:46 PM, Scott Wardle wrote: >> >>> Sorry if this question has already been answered, but I'm unable to get mkoctfile to work at all >>> on my system. I'm running Octave 3.4.0 on OSX 10.6.7. >>> >>> When I run mkoctfile I get these errors: >>> >>> ld: warning: directory '/tmp/deps-i386/lib' following -L not found >>> ld: warning: directory '/tmp/deps-i386/lib/gcc/i686-apple-darwin10/4.2.1' following -L not found >>> ld: warning: directory '/private/tmp/deps-i386/bin/../lib/gcc/i686-apple-darwin10/4.2.1' following -L not found >>> ld: warning: directory '/private/tmp/deps-i386/bin/../lib/gcc' following -L not found >>> ld: warning: directory '/private/tmp/deps-i386/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found >>> ld: library not found for -lgfortranbegin >>> collect2: ld returned 1 exit status >>> >>> I have all the latest Apple developer tools installed (XCode 3.2.5, etc.) >>> >>> Is there something I'm doing wrong? >>> >>> Any help will be >> >> This sounds like the same problem discussed in the threads: "installation of miscellaneous-1.0.11 package" and "Package problem on mac octave." > -------------- next part -------------- An HTML attachment was scrubbed... URL: From soren at hauberg.org Thu Apr 21 05:27:41 2011 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Thu, 21 Apr 2011 12:27:41 +0200 Subject: Specifying RGB triples In-Reply-To: <859409.76855.qm@web112117.mail.gq1.yahoo.com> References: <859409.76855.qm@web112117.mail.gq1.yahoo.com> Message-ID: <1303381661.1859.9.camel@hauberg-laptop> tor, 21 04 2011 kl. 02:40 -0700, skrev Sergei Steshenko: > > --- On Thu, 4/21/11, S?ren Hauberg wrote: > > > From: S?ren Hauberg > > Subject: Re: Specifying RGB triples > > To: "Sergei Steshenko" > > Cc: help-octave at octave.org > > Date: Thursday, April 21, 2011, 1:58 AM > > tor, 21 04 2011 kl. 01:14 -0700, > > skrev Sergei Steshenko: > > > > > > --- On Thu, 4/21/11, S?ren Hauberg > > wrote: > > > > > > > From: S?ren Hauberg > > > > Subject: Re: Specifying RGB triples > > > > To: "pathematica" > > > > Cc: help-octave at octave.org > > > > Date: Thursday, April 21, 2011, 12:06 AM > > > > ons, 20 04 2011 kl. 23:56 -0700, > > > > skrev pathematica: > > > [snip] > > > > plot (sin (1:100), 'color', > > [0.9, 0.2, 0.2]) > > > [snip] > > > > > > > > S?ren > > > > > > > > > > > > > > Is this described anywhere in Octave documentation ? > > > > I don't know. > > > > > And how this can be understood from "get(gcf())" > > output ? > > > > "get(gcf())" just gives you a list of figure properties, > > such as the > > size of the figure, etc. The above colour-stuff is the > > property of a > > specific plot element. You should be able to get related > > information by > > doing something like > > > > handle = plot (sin (1:100)); > > get (handle) > > > > S?ren > > > > > > You example among other things produces: > > " > color = > > 0 0 1 > ". > > How am I supposed from the above output to know that 'color' should be > specified as vector and not as, say, string or cell array ? In general, I guess you cannot tell if a property should be a string, a vector or something else just by looking the output of 'get'. However, you can most often figure it out just by playing a bit with things (that's the great part about interpreted languages: you can just try out a theory and see if it works). I know this is not the optimal answer, but it's all I got... S?ren From sergstesh at yahoo.com Thu Apr 21 04:40:35 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Thu, 21 Apr 2011 02:40:35 -0700 (PDT) Subject: Specifying RGB triples In-Reply-To: <1303376285.1859.4.camel@hauberg-laptop> Message-ID: <859409.76855.qm@web112117.mail.gq1.yahoo.com> --- On Thu, 4/21/11, S?ren Hauberg wrote: > From: S?ren Hauberg > Subject: Re: Specifying RGB triples > To: "Sergei Steshenko" > Cc: help-octave at octave.org > Date: Thursday, April 21, 2011, 1:58 AM > tor, 21 04 2011 kl. 01:14 -0700, > skrev Sergei Steshenko: > > > > --- On Thu, 4/21/11, S?ren Hauberg > wrote: > > > > > From: S?ren Hauberg > > > Subject: Re: Specifying RGB triples > > > To: "pathematica" > > > Cc: help-octave at octave.org > > > Date: Thursday, April 21, 2011, 12:06 AM > > > ons, 20 04 2011 kl. 23:56 -0700, > > > skrev pathematica: > > [snip] > > >???plot (sin (1:100), 'color', > [0.9, 0.2, 0.2]) > > [snip] > > > > > > S?ren > > > > > > > > > > Is this described anywhere in Octave documentation ? > > I don't know. > > > And how this can be understood from "get(gcf())" > output ? > > "get(gcf())" just gives you a list of figure properties, > such as the > size of the figure, etc. The above colour-stuff is the > property of a > specific plot element. You should be able to get related > information by > doing something like > > ? handle = plot (sin (1:100)); > ? get (handle) > > S?ren > > You example among other things produces: " color = 0 0 1 ". How am I supposed from the above output to know that 'color' should be specified as vector and not as, say, string or cell array ? Thanks, Sergei. From andybuckle at gmail.com Thu Apr 21 06:29:20 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Thu, 21 Apr 2011 12:29:20 +0100 Subject: Specifying RGB triples In-Reply-To: <859409.76855.qm@web112117.mail.gq1.yahoo.com> References: <1303376285.1859.4.camel@hauberg-laptop> <859409.76855.qm@web112117.mail.gq1.yahoo.com> Message-ID: On Thu, Apr 21, 2011 at 10:40 AM, Sergei Steshenko wrote: > > > --- On Thu, 4/21/11, S?ren Hauberg wrote: > >> From: S?ren Hauberg >> Subject: Re: Specifying RGB triples >> To: "Sergei Steshenko" >> Cc: help-octave at octave.org >> Date: Thursday, April 21, 2011, 1:58 AM >> tor, 21 04 2011 kl. 01:14 -0700, >> skrev Sergei Steshenko: >> > >> > --- On Thu, 4/21/11, S?ren Hauberg >> wrote: >> > >> > > From: S?ren Hauberg >> > > Subject: Re: Specifying RGB triples >> > > To: "pathematica" >> > > Cc: help-octave at octave.org >> > > Date: Thursday, April 21, 2011, 12:06 AM >> > > ons, 20 04 2011 kl. 23:56 -0700, >> > > skrev pathematica: >> > [snip] >> > >???plot (sin (1:100), 'color', >> [0.9, 0.2, 0.2]) >> > [snip] >> > > >> > > S?ren >> > > >> > > >> > >> > Is this described anywhere in Octave documentation ? >> >> I don't know. >> >> > And how this can be understood from "get(gcf())" >> output ? >> >> "get(gcf())" just gives you a list of figure properties, >> such as the >> size of the figure, etc. The above colour-stuff is the >> property of a >> specific plot element. You should be able to get related >> information by >> doing something like >> >> ? handle = plot (sin (1:100)); >> ? get (handle) >> >> S?ren >> >> > > You example among other things produces: > > " > ?color = > > ? ? 0 ? 0 ? 1 > ". > > How am I supposed from the above output to know that 'color' should be > specified as vector and not as, say, string or cell array ? > > Thanks, > ?Sergei. The "above output" alone won't tell you. But the following does not seem too stressful. >c=get (gca(),'color') c = 1 1 1 >whos c Variables in the current scope: Attr Name Size Bytes Class ==== ==== ==== ===== ===== c 1x3 24 double Total is 3 elements using 24 bytes -- /* andy buckle */ From lists at juliensalort.org Thu Apr 21 06:37:00 2011 From: lists at juliensalort.org (Julien Salort) Date: Thu, 21 Apr 2011 13:37:00 +0200 Subject: mkoctfile problems with Octave 3.4.0, OSX 10.6.7 References: Message-ID: Hello, I've built a new version today that should fix these problems. http://upload.grenoble.cnrs.fr/telechargement/eOVUbOnrWB/octave-3.4.0-i386.dmg In addition: - I used a gfortran compiler that should now be fully compatible with 10.5 - I added Gnuplot-4.4.3 compiled by Pantxo Diribarne in the Extras folder - All the dependencies are compiled universal (ppc & i386) so I should be able to make a ppc version soon. Can you tell me how this new version behaves on your machine ? Thanks, -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on a mailing list? From lists at juliensalort.org Thu Apr 21 07:11:27 2011 From: lists at juliensalort.org (Julien Salort) Date: Thu, 21 Apr 2011 14:11:27 +0200 Subject: mkoctfile problems with Octave 3.4.0, OSX 10.6.7 References: Message-ID: Julien Salort writes: > I've built a new version today that should fix these problems. > http://upload.grenoble.cnrs.fr/telechargement/eOVUbOnrWB/octave-3.4.0-i386.dmg One precision: - Octave.app has to be copied to /Applications and should not be renamed. -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on a mailing list? From lists at juliensalort.org Thu Apr 21 07:15:03 2011 From: lists at juliensalort.org (Julien Salort) Date: Thu, 21 Apr 2011 14:15:03 +0200 Subject: Fwd: mkoctfile problems with Octave 3.4.0, OSX 10.6.7 References: <74709D27-761E-4A8E-9401-86982B69D4AD@mac.com> Message-ID: Liam Groener writes: > I edited the mkoctfile-3.4.0 as suggested in "Package problem on mac > octave" thread. > However, I am compiling code with MEX functions > (--mex option) and all the typical Matlab mex function calls are now > undefined: > Undefined symbols: > "_mxGetM", referenced from: > _mexFunction in bitparitycheck.o > What else do I need to do to get this > working? Hello, I haven't tested this since I only use OCT files. Have you tried with this latest build: http://upload.grenoble.cnrs.fr/telechargement/eOVUbOnrWB/octave-3.4.0-i386.dmg Does somebody know if I should do something in particular when I build octave to make sure that those Matlab-compatible symbols are available ? Julien -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on a mailing list? From jordigh at octave.org Thu Apr 21 08:41:57 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Thu, 21 Apr 2011 08:41:57 -0500 Subject: Specifying RGB triples In-Reply-To: <39059.20697.qm@web112113.mail.gq1.yahoo.com> References: <1303369577.5846.38.camel@hauberg-laptop> <39059.20697.qm@web112113.mail.gq1.yahoo.com> Message-ID: On 21 April 2011 03:14, Sergei Steshenko wrote: > > > --- On Thu, 4/21/11, S?ren Hauberg wrote: > >> From: S?ren Hauberg >> Subject: Re: Specifying RGB triples >> To: "pathematica" >> Cc: help-octave at octave.org >> Date: Thursday, April 21, 2011, 12:06 AM >> ons, 20 04 2011 kl. 23:56 -0700, >> skrev pathematica: > [snip] >> ? plot (sin (1:100), 'color', [0.9, 0.2, 0.2]) > [snip] >> >> S?ren >> >> > > Is this described anywhere in Octave documentation ? The documentation for properties in handle graphics is a little sparse. People have been relying on oral tradition and previous experiences with Matlab. Would you be willing to submit some patches to the Octave manual to fix this? - Jordi G. H. From lukas.reichlin at gmail.com Thu Apr 21 09:09:46 2011 From: lukas.reichlin at gmail.com (Lukas Reichlin) Date: Thu, 21 Apr 2011 16:09:46 +0200 Subject: mkoctfile problems with Octave 3.4.0, OSX 10.6.7 In-Reply-To: References: Message-ID: <77205AF4-2385-4707-85E9-2E37E5F6026F@gmail.com> On 21.04.2011, at 13:37, Julien Salort wrote: > Hello, > > I've built a new version today that should fix these problems. > http://upload.grenoble.cnrs.fr/telechargement/eOVUbOnrWB/octave-3.4.0-i386.dmg > > In addition: > - I used a gfortran compiler that should now be fully compatible with > 10.5 > - I added Gnuplot-4.4.3 compiled by Pantxo Diribarne in the Extras > folder > - All the dependencies are compiled universal (ppc & i386) so I should > be able to make a ppc version soon. > > Can you tell me how this new version behaves on your machine ? > > Thanks, > > -- > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing on a mailing list? Hi Julien I've just tested your binary and everything seems to work fine [1, 2]. Thanks for all your efforts! I'm sitting in front of a fairly recent Core i3 iMac 27 running Mac OS X 10.6.7 and an antique iMac G5 is waiting to get out of my cellar's dark :-) Two secret wishes: - Prompt "octave:1>" instead of "octave-3.4.0:1>" for the sake of brevity. - A versioning scheme for your binary, for example "Octave 3.4.0_3" (similar to MacPorts) or "Octave 3.4.0 2011-04-21". At the moment, Finder's Info window simply displays "Version: 3.4.0" which makes it hard to tell whether one is using the most recent edition of your binary. Best regards, Lukas [1] Package Installation (requires Fortran compiler) octave-3.4.0:2> pkg install control-2.0.2* octave-3.4.0:3> test_control PASSES 76 out of 76 tests PASSES 2 out of 2 tests PASSES 2 out of 2 tests PASSES 7 out of 7 tests PASSES 3 out of 3 tests PASSES 3 out of 3 tests PASSES 3 out of 3 tests PASSES 2 out of 2 tests PASSES 5 out of 5 tests PASSES 4 out of 4 tests PASSES 3 out of 3 tests PASSES 4 out of 4 tests PASSES 1 out of 1 tests PASSES 2 out of 2 tests PASSES 2 out of 2 tests PASSES 2 out of 2 tests PASSES 1 out of 1 tests PASSES 1 out of 1 tests PASSES 30 out of 30 tests octave-3.4.0:4> [2] FLTK Plotting octave-3.4.0:1> available_graphics_toolkits ans = { [1,1] = gnuplot } octave-3.4.0:2> graphics_toolkit ("fltk") octave-3.4.0:3> available_graphics_toolkits ans = { [1,1] = fltk [1,2] = gnuplot } octave-3.4.0:4> P = ss (-1, 1, 1, 0) P.a = x1 x1 -1 P.b = u1 x1 1 P.c = x1 y1 1 P.d = u1 y1 0 Continuous-time model. octave-3.4.0:5> step (P) octave-3.4.0:6> From shermanjj at gmail.com Thu Apr 21 09:37:06 2011 From: shermanjj at gmail.com (James Sherman Jr.) Date: Thu, 21 Apr 2011 10:37:06 -0400 Subject: Vectorization quiz In-Reply-To: References: Message-ID: On Thu, Apr 21, 2011 at 4:49 AM, Daniel Arteaga wrote: > Hi, > > How could I vectorize the following piece of code? > > P = zeros(size(fInf)); > for i = 1:length(fInf) > P(i) = sum( S2( fLin > fInf(i) & fLin < fSup(i) ) ); > endfor > > where > > fInf is a vector of length 1000 > fSup is a vector of length 1000 > P is a vector of length 1000 > S2 is a vector of length 50000 > fLin is a vector of length 50000 > > Thank you very much in advance, > > Daniel > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > Well, I'm not saying that this is the best way, but you could try this: n = length(fInf); m = length(fLin); fLin_repeated = repmat(fLin, [1, n]); S2_repeated = repmat(S2, [1, n]); fInf_repeated = repmat(fInf', [m, 1]); fSup_repeated = repmat(fSup', [m, 1]); tmp1 = (fLin_repeated > fInf_repeated) & (fLin_repeated < fSup_repeated); P = sum( S2_repeated .* tmp1 )'; I particularly don't like the last line. I feel like there is a function to do the masking part instead of doing the multiplications, but for the life of me I can't remember what it is. The downside is that you will have 4 different 50000 by 1000 matrices, which may or may not be problematic. Hope this helps. P.S. Testing it on my machine, I run out of memory on making the 4th matrix. To get around this you could either cut up S2 into smaller chunks (maybe to 10000 at a time instead of all 50000) or you could calculate the tmp1 variable, clear fLin_repeated, fSup_repeated, and fLin_repeated, then generate S2_repeated and P. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at juliensalort.org Thu Apr 21 09:51:59 2011 From: lists at juliensalort.org (Julien Salort) Date: Thu, 21 Apr 2011 16:51:59 +0200 Subject: Problem with cor (was: Re: mkoctfile problems with Octave 3.4.0, OSX 10.6.7) In-Reply-To: <534FDEE0-FCF9-44CB-8F08-3AAB1C7E5FF0@norton.name> References: <534FDEE0-FCF9-44CB-8F08-3AAB1C7E5FF0@norton.name> Message-ID: Le 21 avr. 2011 ? 16:39, Vic Norton a ?crit : > There is a problem with the cor function in this version of Octave. I am attaching illustrative computations using this Octave-3.4.0 and and your previous Octave-3.5.0+. How does it compare with previous 3.4.0 builds ? (built from the same sources) ie. does it have something to do with the way I built the release or only with some possible changes in cor/cov related M files ? (the 3.5.0+ release is built using the latest sources from the mercurial tree. I have no idea how many things may behave differently.) If this is related to how I built the package, I have no idea what the problem could be... Any idea ? > ### > octave-3.4.0> cor(Ra) > error: cov: X and Y must have the same number of observations > error: called from: > error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/statistics/base/cov.m at line 104, column 7 > error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/statistics/base/corrcoef.m at line 71, column 7 > error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/statistics/base/cor.m at line 34, column 10 > octave-3.4.0> cov(Ra) > ans = > > 1.0196 -1.2736 -1.9540 -1.0084 -1.0189 > -1.2736 7.1934 9.9016 7.3092 8.1031 > -1.9540 9.9016 15.1665 9.5205 10.9879 > -1.0084 7.3092 9.5205 8.9518 9.2089 > -1.0189 8.1031 10.9879 9.2089 11.5935 > octave-3.4.0> cov(Ra, 1) > ans = > > 0.99345 -1.24098 -1.90388 -0.98251 -0.99276 > -1.24098 7.00896 9.64769 7.12176 7.89532 > -1.90388 9.64769 14.77759 9.27637 10.70612 > -0.98251 7.12176 9.27637 8.72228 8.97276 > -0.99276 7.89532 10.70612 8.97276 11.29627 > > ### > octave-3.5.0+> cor(Ra) > ans = > > 1.00000 -0.47029 -0.49690 -0.33377 -0.29635 > -0.47029 1.00000 0.94797 0.91085 0.88731 > -0.49690 0.94797 1.00000 0.81707 0.82863 > -0.33377 0.91085 0.81707 1.00000 0.90395 > -0.29635 0.88731 0.82863 0.90395 1.00000 > > octave-3.5.0+> cov(Ra) > ans = > > 1.0196 -1.2736 -1.9540 -1.0084 -1.0189 > -1.2736 7.1934 9.9016 7.3092 8.1031 > -1.9540 9.9016 15.1665 9.5205 10.9879 > -1.0084 7.3092 9.5205 8.9518 9.2089 > -1.0189 8.1031 10.9879 9.2089 11.5935 > > octave-3.5.0+> cov(Ra, 1) > ans = > > 0.99345 -1.24098 -1.90388 -0.98251 -0.99276 > -1.24098 7.00896 9.64769 7.12176 7.89532 > -1.90388 9.64769 14.77759 9.27637 10.70612 > -0.98251 7.12176 9.27637 8.72228 8.97276 > -0.99276 7.89532 10.70612 8.97276 11.29627 > From sergstesh at yahoo.com Thu Apr 21 10:24:37 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Thu, 21 Apr 2011 08:24:37 -0700 (PDT) Subject: Specifying RGB triples In-Reply-To: Message-ID: <444676.36474.qm@web112120.mail.gq1.yahoo.com> --- On Thu, 4/21/11, Andy Buckle wrote: > From: Andy Buckle > Subject: Re: Specifying RGB triples > To: "Sergei Steshenko" > Cc: "S?ren Hauberg" , help-octave at octave.org > Date: Thursday, April 21, 2011, 4:29 AM > On Thu, Apr 21, 2011 at 10:40 AM, > Sergei Steshenko > wrote: > > > > > > --- On Thu, 4/21/11, S?ren Hauberg > wrote: > > > >> From: S?ren Hauberg > >> Subject: Re: Specifying RGB triples > >> To: "Sergei Steshenko" > >> Cc: help-octave at octave.org > >> Date: Thursday, April 21, 2011, 1:58 AM > >> tor, 21 04 2011 kl. 01:14 -0700, > >> skrev Sergei Steshenko: > >> > > >> > --- On Thu, 4/21/11, S?ren Hauberg > >> wrote: > >> > > >> > > From: S?ren Hauberg > >> > > Subject: Re: Specifying RGB triples > >> > > To: "pathematica" > >> > > Cc: help-octave at octave.org > >> > > Date: Thursday, April 21, 2011, 12:06 > AM > >> > > ons, 20 04 2011 kl. 23:56 -0700, > >> > > skrev pathematica: > >> > [snip] > >> > >???plot (sin (1:100), 'color', > >> [0.9, 0.2, 0.2]) > >> > [snip] > >> > > > >> > > S?ren > >> > > > >> > > > >> > > >> > Is this described anywhere in Octave > documentation ? > >> > >> I don't know. > >> > >> > And how this can be understood from > "get(gcf())" > >> output ? > >> > >> "get(gcf())" just gives you a list of figure > properties, > >> such as the > >> size of the figure, etc. The above colour-stuff is > the > >> property of a > >> specific plot element. You should be able to get > related > >> information by > >> doing something like > >> > >> ? handle = plot (sin (1:100)); > >> ? get (handle) > >> > >> S?ren > >> > >> > > > > You example among other things produces: > > > > " > > ?color = > > > > ? ? 0 ? 0 ? 1 > > ". > > > > How am I supposed from the above output to know that > 'color' should be > > specified as vector and not as, say, string or cell > array ? > > > > Thanks, > > ?Sergei. > > The "above output" alone won't tell you. But the following > does not > seem too stressful. > > >c=get (gca(),'color') > c = > > ???1???1???1 > > >whos c > Variables in the current scope: > > ? Attr Name? ? ? ? Size? > ? ? ? ? ? ? ? ? > ???Bytes? Class > ? ==== ====? ? ? ? ====? > ? ? ? ? ? ? ? ? > ???=====? ===== > ? ? ???c? ? ? > ? ???1x3? ? ? ? > ? ? ? ? ? ? ? > ???24? double > > Total is 3 elements using 24 bytes > > -- > /* andy buckle */ > The above output shows defective design. Which causes confusion and need to write documentation. Here is a counter-example from Perl: sergei at amdam2:~/junk> cat -n data_dumper_demo.pl 1 #!/usr/bin/perl 2 3 use strict; 4 use warnings; 5 6 use Data::Dumper; 7 8 $Data::Dumper::Deepcopy = $Data::Dumper::Deepcopy = 1; 9 $Data::Dumper::Indent = $Data::Dumper::Indent = 1; 10 $Data::Dumper::Terse = $Data::Dumper::Terse = 1; 11 $Data::Dumper::Sortkeys = $Data::Dumper::Sortkeys = 1; 12 13 14 my $foo = 15 { 16 colors => [0.1, 0.2, 0.3], 17 another_level => 18 [ 19 { 20 one => 1, 21 two => 2 22 }, 23 24 3 25 ] 26 }; 27 28 29 my $foo_as_string = Dumper($foo); 30 31 warn "\$foo_as_string=$foo_as_string"; 32 33 my $reconstituted_foo = eval $foo_as_string; 34 35 my $reconstituted_foo_as_string = Dumper($reconstituted_foo); 36 37 warn "\$reconstituted_foo_as_string=$reconstituted_foo_as_string"; sergei at amdam2:~/junk> ./data_dumper_demo.pl $foo_as_string={ 'another_level' => [ { 'one' => 1, 'two' => 2 }, 3 ], 'colors' => [ '0.1', '0.2', '0.3' ] } $reconstituted_foo_as_string={ 'another_level' => [ { 'one' => 1, 'two' => 2 }, 3 ], 'colors' => [ '0.1', '0.2', '0.3' ] } sergei at amdam2:~/junk> - _no_ questions need to be asked about types of entities - because Data::Dumper prints in _Perl_ format. GNU Octave prints/dumps internal data in all kinds of formats which are neither descriptive enough nor compatible with Octave itself. In the above example [...] denote anonymous array reference, so it's obviously clear how 'color' is to be specified. Regards, Sergei. From jwe at octave.org Thu Apr 21 11:09:10 2011 From: jwe at octave.org (John W. Eaton) Date: Thu, 21 Apr 2011 12:09:10 -0400 Subject: Specifying RGB triples In-Reply-To: <444676.36474.qm@web112120.mail.gq1.yahoo.com> References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> Message-ID: <19888.22182.512402.852136@coredump.lan> On 21-Apr-2011, Sergei Steshenko wrote: | - _no_ questions need to be asked about types of entities - because | Data::Dumper prints in _Perl_ format. | | GNU Octave prints/dumps internal data in all kinds of formats which | are neither descriptive enough nor compatible with Octave itself. | | In the above example [...] denote anonymous array reference, so it's | obviously clear how 'color' is to be specified. You are of course welcome to submit patches to fix specific problems... jwe From sergstesh at yahoo.com Thu Apr 21 10:36:02 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Thu, 21 Apr 2011 08:36:02 -0700 (PDT) Subject: Specifying RGB triples In-Reply-To: Message-ID: <512866.44082.qm@web112120.mail.gq1.yahoo.com> --- On Thu, 4/21/11, Jordi Guti?rrez Hermoso wrote: > From: Jordi Guti?rrez Hermoso > Subject: Re: Specifying RGB triples > To: "Sergei Steshenko" > Cc: "S?ren Hauberg" , help-octave at octave.org > Date: Thursday, April 21, 2011, 6:41 AM > On 21 April 2011 03:14, Sergei > Steshenko > wrote: > > > > > > --- On Thu, 4/21/11, S?ren Hauberg > wrote: > > > >> From: S?ren Hauberg > >> Subject: Re: Specifying RGB triples > >> To: "pathematica" > >> Cc: help-octave at octave.org > >> Date: Thursday, April 21, 2011, 12:06 AM > >> ons, 20 04 2011 kl. 23:56 -0700, > >> skrev pathematica: > > [snip] > >> ? plot (sin (1:100), 'color', [0.9, 0.2, 0.2]) > > [snip] > >> > >> S?ren > >> > >> > > > > Is this described anywhere in Octave documentation ? > > The documentation for properties in handle graphics is a > little > sparse. People have been relying on oral tradition and > previous > experiences with Matlab. Would you be willing to submit > some patches > to the Octave manual to fix this? > > - Jordi G. H. > In these Passover times you might consider writing down the oral tradition first. Then it can be "formalized". But see my earlier Email in the thread with Perl Data::Dumper example. Regards, Sergei. From przemek.klosowski at nist.gov Thu Apr 21 13:32:45 2011 From: przemek.klosowski at nist.gov (Przemek Klosowski) Date: Thu, 21 Apr 2011 14:32:45 -0400 Subject: re-interpreting Octave output In-Reply-To: <444676.36474.qm@web112120.mail.gq1.yahoo.com> References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> Message-ID: <4DB0784D.4040908@nist.gov> On 04/21/2011 11:24 AM, Sergei Steshenko wrote: > - _no_ questions need to be asked about types of entities - because > Data::Dumper prints in _Perl_ format. > > GNU Octave prints/dumps internal data in all kinds of formats which > are neither descriptive enough nor compatible with Octave itself. Sergei has a point here---it is actually pretty useful to be able to cut and paste sections of the interpreter output to re-execute them. Octave makes it a little hard: - interactive code is interspersed with prompts, which is annoying especially when trying to re-execute a multi-line segment of code, e.g. a loop, by cutting and pasting within a session. - default data output is not formatted as a valid Octave input For those reasons, I find that PS2("") is actually quite useful, to the point that I recommend it as a default. I'd even go as far as suggesting PS1(""), or at least PS1("# \\s:\\#>\n"), so that it doesn't get in the way of cutting and pasting. Do other people agree that it is in general useful to be able to put the command and data outputs back into the interpreter, in the way Sergei's Data::Dumper example showed? The commands can be accomodated by manipulating PSx(), but data would need some assist from the interpreter, i.e. adding [] characters to printouts, like: # octave:18> a=[1 2 3; 4 5 6] a = [ 1 2 3 4 5 6 ] and other, more complex things for cell arrays, structures, etc. Does it seem worth doing? From scottawardle at mac.com Thu Apr 21 14:11:00 2011 From: scottawardle at mac.com (Scott Wardle) Date: Thu, 21 Apr 2011 12:11:00 -0700 Subject: mkoctfile problems with Octave 3.4.0, OSX 10.6.7 In-Reply-To: References: Message-ID: <6DC17324-AC84-402B-932D-F53B76900D45@mac.com> Hello Julien, Thanks for the latest build. However, when using mkoctfile with the --mex option (which I invoke using the "mex" command), I'm still getting these warning and these undefined symbols: octave-3.4.0:7> mex bitparitycheck.c -o bit_parity_check.mex ld: warning: in /Applications/Octave.app/Contents/Resources/bin/octave-3.4.0, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/liboctinterp.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/liboctave.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/libcruft.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /Applications/Octave.app/Contents/Resources/lib/libfftw3.a, missing required architecture x86_64 in file ld: warning: in /Applications/Octave.app/Contents/Resources/lib/libfftw3f.a, missing required architecture x86_64 in file ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgfortranbegin.a, file was built for unsupported file format which is not the architecture being linked (x86_64) ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgfortran.a, file was built for unsupported file format which is not the architecture being linked (x86_64) ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgcc.a, file was built for unsupported file format which is not the architecture being linked (x86_64) Undefined symbols: "_mxGetM", referenced from: _mexFunction in bitparitycheck.o _mexFunction in bitparitycheck.o "_mxGetN", referenced from: _mexFunction in bitparitycheck.o _mexFunction in bitparitycheck.o "_mxIsComplex", referenced from: _mexFunction in bitparitycheck.o "_mexErrMsgTxt", referenced from: _mexFunction in bitparitycheck.o _mexFunction in bitparitycheck.o _mexFunction in bitparitycheck.o "_mxCreateDoubleMatrix", referenced from: _mexFunction in bitparitycheck.o "_mxGetPr", referenced from: _mexFunction in bitparitycheck.o _mexFunction in bitparitycheck.o _mexFunction in bitparitycheck.o ld: symbol(s) not found collect2: ld returned 1 exit status octave-3.4.0:8> Perhaps these undefined symbols are due to the wrong architecture (x86_64) as opposed to i386? thanks!! Scott On Apr 21, 2011, at 4:37 AM, Julien Salort wrote: > Hello, > > I've built a new version today that should fix these problems. > http://upload.grenoble.cnrs.fr/telechargement/eOVUbOnrWB/octave-3.4.0-i386.dmg > > In addition: > - I used a gfortran compiler that should now be fully compatible with > 10.5 > - I added Gnuplot-4.4.3 compiled by Pantxo Diribarne in the Extras > folder > - All the dependencies are compiled universal (ppc & i386) so I should > be able to make a ppc version soon. > > Can you tell me how this new version behaves on your machine ? > > Thanks, > > -- > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing on a mailing list? > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave From lists at juliensalort.org Thu Apr 21 14:23:29 2011 From: lists at juliensalort.org (Julien Salort) Date: Thu, 21 Apr 2011 21:23:29 +0200 Subject: mkoctfile problems with Octave 3.4.0, OSX 10.6.7 In-Reply-To: <6DC17324-AC84-402B-932D-F53B76900D45@mac.com> References: <6DC17324-AC84-402B-932D-F53B76900D45@mac.com> Message-ID: <980F1CB7-2009-485B-9814-6634EB045151@juliensalort.org> Le 21 avr. 2011 ? 21:11, Scott Wardle a ?crit : > Hello Julien, > > Thanks for the latest build. However, when using mkoctfile with the --mex option (which I invoke using the "mex" command), > I'm still getting these warning and these undefined symbols: > > octave-3.4.0:7> mex bitparitycheck.c -o bit_parity_check.mex > ld: warning: in /Applications/Octave.app/Contents/Resources/bin/octave-3.4.0, file was built for i386 which is not the architecture being linked (x86_64) > Perhaps these undefined symbols are due to the wrong architecture (x86_64) as opposed to i386? This is definitely the problem. It is important to pass -arch i386 to both the compiler and the linker, otherwise -arch x86_64 is chosen by default. Since octave and its libraries are compiled for i386, this can't work. I've added -arch i386 everywhere I've thought of at octave compile time (ie. CFLAGS, FFLAGS, LDFLAGS, CXXFLAGS) and checked that they were still there in pkg.m and mkoctfile and mkoctfile-3.4.0 shell scripts. Compiling packages and oct files works here and the -arch option is everywhere: % ./mkoctfile --print ALL_CFLAGS -I/Applications/Octave.app/Contents/Resources/include/octave-3.4.0/octave/.. -I/Applications/Octave.app/Contents/Resources/include/octave-3.4.0/octave -I/Applications/Octave.app/Contents/Resources/include -O1 -g -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -arch i386 -msse3 -msse2 -msse -sse -sse2 -m32 -I/Applications/Octave.app/Contents/Resources/include -I/usr/X11/include/fontconfig -I/Applications/Octave.app/Contents/Resources/include/readline -D_THREAD_SAFE -pthread % ./mkoctfile --print ALL_LDFLAGS -fPIC -arch i386 -L/Applications/Octave.app/Contents/Resources/lib -B/Applications/Octave.app/Contents/Resources/lib/gcc -L/usr/lib -lz -lbz2 -lxml2 I don't understand why mkoctfile calls the right arguments when compiling oct file and not when compiling mex file. - Can you send me a code snippet example of mex files so that I can try it too ? (I've never used MEX files, only OCT files personally) Julien From findtype at gmail.com Thu Apr 21 14:37:49 2011 From: findtype at gmail.com (findtype) Date: Thu, 21 Apr 2011 15:37:49 -0400 Subject: re-interpreting Octave output In-Reply-To: <4DB0784D.4040908@nist.gov> References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> <4DB0784D.4040908@nist.gov> Message-ID: More naively, a related question is this. How do you select a part of the output for further use? Is there a way to copy it to a clipboard? The output from my octave (in cygwin), does not respond to mouse commands. Ted F. On Thu, Apr 21, 2011 at 2:32 PM, Przemek Klosowski < przemek.klosowski at nist.gov> wrote: > On 04/21/2011 11:24 AM, Sergei Steshenko wrote: > > - _no_ questions need to be asked about types of entities - because >> Data::Dumper prints in _Perl_ format. >> >> GNU Octave prints/dumps internal data in all kinds of formats which >> are neither descriptive enough nor compatible with Octave itself. >> > > Sergei has a point here---it is actually pretty useful to be able to cut > and paste sections of the interpreter output to re-execute them. Octave > makes it a little hard: > > - interactive code is interspersed with prompts, which is annoying > especially when trying to re-execute a multi-line segment of code, > e.g. a loop, by cutting and pasting within a session. > > - default data output is not formatted as a valid Octave input > > For those reasons, I find that PS2("") is actually quite useful, to the > point that I recommend it as a default. I'd even go as far as suggesting > PS1(""), or at least PS1("# \\s:\\#>\n"), so that it doesn't get in the way > of cutting and pasting. > > Do other people agree that it is in general useful to be able to put the > command and data outputs back into the interpreter, in the way Sergei's > Data::Dumper example showed? The commands can be accomodated by manipulating > PSx(), but data would need some assist from the interpreter, i.e. adding [] > characters to printouts, like: > > # octave:18> a=[1 2 3; 4 5 6] > a = [ > > 1 2 3 > 4 5 6 > ] > > and other, more complex things for cell arrays, structures, etc. Does it > seem worth doing? > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > -------------- next part -------------- An HTML attachment was scrubbed... URL: From WKrekeler at cleanearthtech.com Thu Apr 21 15:49:05 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Thu, 21 Apr 2011 20:49:05 +0000 Subject: re-interpreting Octave output In-Reply-To: References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> <4DB0784D.4040908@nist.gov> Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB212D6CF9@CETEX1.cleanearth.ceprivate> From: help-octave-bounces at octave.org [mailto:help-octave-bounces at octave.org] On Behalf Of findtype Sent: Thursday, April 21, 2011 2:38 PM To: Przemek Klosowski Cc: help-octave at octave.org Subject: Re: re-interpreting Octave output More naively, a related question is this. How do you select a part of the output for further use? Is there a way to copy it to a clipboard? The output from my octave (in cygwin), does not respond to mouse commands. Ted F. ______________________________ Ted You might try enabling the mouse edit features for cygwin. Right click on the shortcut you use to open cygwin, select properties. Go to the options tab and check 'QuickEdit mode' and 'Insert mode'. Reopen cygwin, launch octave and see if you can now use the mouse to highlight (hold left mouse and drag) and paste (right-click while highlighted selection is highlighted). Alternatively you could dump the results of your calculations to a file using fopen, fwrite, and fclose. Or save to an oct or mat binary file that can be read using the load command in octave. William Krekeler -------------- next part -------------- An HTML attachment was scrubbed... URL: From jwe at octave.org Thu Apr 21 15:52:59 2011 From: jwe at octave.org (John W. Eaton) Date: Thu, 21 Apr 2011 16:52:59 -0400 Subject: re-interpreting Octave output In-Reply-To: References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> <4DB0784D.4040908@nist.gov> Message-ID: <19888.39211.575359.887544@coredump.lan> On 21-Apr-2011, findtype wrote: | More naively, a related question is this. ?How do you select a part of the | output for further use? ?Is there a way to? | copy it to a clipboard? ?The output from my octave (in cygwin), does not | respond to mouse commands. ? Octave doesn't really have anything to do with cutting and pasting. What terminal are you running Octave in? I think that's the application that needs to respond to selecting text, cutting, and pasting. Does the advice near the bottom of the following page about enabling quick edit mode for cut and paste still apply (I don't have Cygwin, so can't test it myself)? http://www-sldnt.slac.stanford.edu/nld/new/Docs/GettingStarted/Cygwin/ jwe From xmrcl0 at gmail.com Thu Apr 21 18:31:59 2011 From: xmrcl0 at gmail.com (Marcelo Pinto) Date: Thu, 21 Apr 2011 20:31:59 -0300 Subject: Download file from Octave script Message-ID: Hi, I need to process some data from files that should be downloaded from internet. Someone knows if it's possible to download files from a Octave script (something like 'wget')? Tks, Marcelo. From xmrcl0 at gmail.com Thu Apr 21 18:36:43 2011 From: xmrcl0 at gmail.com (Marcelo Pinto) Date: Thu, 21 Apr 2011 20:36:43 -0300 Subject: Download file from Octave script In-Reply-To: References: Message-ID: I'm sorry, I RTFM and found. Thanks, Marcelo. On Thu, Apr 21, 2011 at 8:31 PM, Marcelo Pinto wrote: > Hi, > > I need to process some data from files that should be downloaded from > internet. Someone knows if it's possible to download files from a > Octave script (something like 'wget')? > > Tks, > Marcelo. > From jordigh at octave.org Thu Apr 21 19:42:32 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Thu, 21 Apr 2011 19:42:32 -0500 Subject: Download file from Octave script In-Reply-To: References: Message-ID: On 21 April 2011 18:36, Marcelo Pinto wrote: > On Thu, Apr 21, 2011 at 8:31 PM, Marcelo Pinto wrote: >> I need to process some data from files that should be downloaded from >> internet. Someone knows if it's possible to download files from a >> Octave script (something like 'wget')? > I'm sorry, I RTFM and found. For future reference for anyone else who might be reading this, the relevant FM to R is here: http://www.gnu.org/software/octave/doc/interpreter/URL-Manipulation.html#URL-Manipulation - Jordi G. H. From martin at mhelm.de Thu Apr 21 19:53:25 2011 From: martin at mhelm.de (Martin Helm) Date: Fri, 22 Apr 2011 02:53:25 +0200 Subject: Download file from Octave script In-Reply-To: References: Message-ID: <201104220253.26474.martin@mhelm.de> Am Freitag, 22. April 2011, 02:42:32 schrieb Jordi Guti?rrez Hermoso: > the relevant FM to R is here: > I cannot resist to tell you that made me lough. From jordigh at octave.org Thu Apr 21 20:44:58 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Thu, 21 Apr 2011 20:44:58 -0500 Subject: Concurrent Octave installations and mkoctfile Message-ID: Can I have a recommendation on how to have two separate Octave installations and easily use mkoctfile for both of them? Background information: I have the Debian packages installed mostly so I can still check how things were in 3.2.4 when people ask about it, but I mostly work myself with the development sources. At the moment I need to test my implementation of bwlabeln, but for various reasons I need the development sources to test on. While I can think of painful fudging around with include and linking paths, I'm hoping there's a simple solution that involves minimal fuss. TIA, - Jordi G. H. From bpabbott at mac.com Thu Apr 21 21:04:04 2011 From: bpabbott at mac.com (Ben Abbott) Date: Thu, 21 Apr 2011 22:04:04 -0400 Subject: Concurrent Octave installations and mkoctfile In-Reply-To: References: Message-ID: <133E218D-CAB5-4AC3-88DF-FCF00B3A077E@mac.com> On Apr 21, 2011, at 9:44 PM, Jordi Guti?rrez Hermoso wrote: > Can I have a recommendation on how to have two separate Octave > installations and easily use mkoctfile for both of them? > > Background information: I have the Debian packages installed mostly so > I can still check how things were in 3.2.4 when people ask about it, > but I mostly work myself with the development sources. At the moment I > need to test my implementation of bwlabeln, but for various reasons I > need the development sources to test on. While I can think of painful > fudging around with include and linking paths, I'm hoping there's a > simple solution that involves minimal fuss. > > TIA, > - Jordi G. H. I haven't tried, but have been giving some thought to attempting to create a run-mkoctfile that mirrors the way run-octave works. Is there a reason that won't work? Ben From jordigh at octave.org Thu Apr 21 22:49:12 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Thu, 21 Apr 2011 22:49:12 -0500 Subject: Concurrent Octave installations and mkoctfile In-Reply-To: <133E218D-CAB5-4AC3-88DF-FCF00B3A077E@mac.com> References: <133E218D-CAB5-4AC3-88DF-FCF00B3A077E@mac.com> Message-ID: 2011/4/21 Ben Abbott : > On Apr 21, 2011, at 9:44 PM, Jordi Guti?rrez Hermoso wrote: > >> Can I have a recommendation on how to have two separate Octave >> installations and easily use mkoctfile for both of them? > > I haven't tried, but have been giving some thought to attempting to > create a run-mkoctfile that mirrors the way run-octave works. > > Is there a reason that won't work? At first I thought this sounded like a great idea and was about to implement it, but then I thought a bit more... what about running that oct file afterwards? When you create it and link it, should its rpath point to the libraries inside the Octave build directory or the install directory or both? Would you need to make sure that run-mkoctfile from the build dir gives priority to the include and linking paths of the build and install directories? Maybe these questions have easy answers, maybe they don't. What do you think? - Jordi G. H. From bpabbott at mac.com Thu Apr 21 23:18:37 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 22 Apr 2011 00:18:37 -0400 Subject: Concurrent Octave installations and mkoctfile In-Reply-To: References: <133E218D-CAB5-4AC3-88DF-FCF00B3A077E@mac.com> Message-ID: On Apr 21, 2011, at 11:49 PM, Jordi Guti?rrez Hermoso wrote: > 2011/4/21 Ben Abbott : >> On Apr 21, 2011, at 9:44 PM, Jordi Guti?rrez Hermoso wrote: >> >>> Can I have a recommendation on how to have two separate Octave >>> installations and easily use mkoctfile for both of them? >> >> I haven't tried, but have been giving some thought to attempting to >> create a run-mkoctfile that mirrors the way run-octave works. >> >> Is there a reason that won't work? > > At first I thought this sounded like a great idea and was about to > implement it, but then I thought a bit more... what about running that > oct file afterwards? When you create it and link it, should its rpath > point to the libraries inside the Octave build directory or the > install directory or both? Would you need to make sure that > run-mkoctfile from the build dir gives priority to the include and > linking paths of the build and install directories? > > Maybe these questions have easy answers, maybe they don't. What do you > think? > > - Jordi G. H. Your suggestion to give priority to the include and linking paths of the build and install directories sounds like a good idea. I'll eventually, give it a try, but as I'm on MacOS I'll have additional problems ... so I'm hoping on of you Linux guys can find a solution that I may build on. Ben From ilikolik at gmail.com Fri Apr 22 02:43:49 2011 From: ilikolik at gmail.com (olga_kruglova) Date: Fri, 22 Apr 2011 00:43:49 -0700 (PDT) Subject: nesting function error in leasqrdemo.m Message-ID: <1303458229231-3467565.post@n4.nabble.com> Hello everybody, I have been testing leasqrdemo.m to see how it works to make my own routine. But when I try to run octave gives me an error : error: nested functions not implemented in this context error: near line 75 of file `leasqrdemo.m.m' parse error near line 75 of file leasqrdemo.m syntax error >>> function y = leasqrfunc(x,p); ^ error: source: error sourcing file `leasqrdemo.m' Could you please help to understand why it happens? Thank you very much in advance! Olga -- View this message in context: http://octave.1599824.n4.nabble.com/nesting-function-error-in-leasqrdemo-m-tp3467565p3467565.html Sent from the Octave - General mailing list archive at Nabble.com. From lists at juliensalort.org Fri Apr 22 02:57:39 2011 From: lists at juliensalort.org (Julien Salort) Date: Fri, 22 Apr 2011 09:57:39 +0200 Subject: mkoctfile problems with Octave 3.4.0, OSX 10.6.7 In-Reply-To: <0BF9AFE2-292E-452D-94E3-2829B5D761FE@mac.com> References: <6DC17324-AC84-402B-932D-F53B76900D45@mac.com> <980F1CB7-2009-485B-9814-6634EB045151@juliensalort.org> <0BF9AFE2-292E-452D-94E3-2829B5D761FE@mac.com> Message-ID: <79898DAA-26E1-435E-B8CD-CACD7C837C5A@juliensalort.org> Le 21 avr. 2011 ? 21:28, Scott Wardle a ?crit : > Hi Julien, > > Attached is the .c source file that I wish to compile as a .mex. Apparently, it works if you compile it from the command line rather than from octave [1]: % mkoctfile --mex bitparitycheck.c That's weird because "pkg install" works from octave... [1] to do this, you need to add /Applications/Octave.app/Contents/Resources/bin to you PATH environment variable, ie. % export PATH="/Applications/Octave.app/Contents/Resources/bin:$PATH" Julien From ilikolik at gmail.com Fri Apr 22 07:38:43 2011 From: ilikolik at gmail.com (Olga Kruglova) Date: Fri, 22 Apr 2011 14:38:43 +0200 Subject: nesting function error in leasqrdemo.m In-Reply-To: <201104221434.28564.martin@mhelm.de> References: <1303458229231-3467565.post@n4.nabble.com> <201104221434.28564.martin@mhelm.de> Message-ID: It is an example how leasqr.m performs fitting procedure for exponential function, http://lis.epfl.ch/cgi-bin/dwww?type=file&location=/usr/share/doc/octave-forge/scripts/optim/leasqrdemo.m Olga On Fri, Apr 22, 2011 at 2:34 PM, Martin Helm wrote: > Am Freitag, 22. April 2011, 09:43:49 schrieb olga_kruglova: > > Hello everybody, > > > > I have been testing leasqrdemo.m to see how it works to make my own > > routine. But when I try to run octave gives me an error : > > > > error: nested functions not implemented in this context > > error: near line 75 of file `leasqrdemo.m.m' > > parse error near line 75 of file leasqrdemo.m > > > > syntax error > > > > >>> function y = leasqrfunc(x,p); > > > > ^ > > > > error: source: error sourcing file `leasqrdemo.m' > > > > Could you please help to understand why it happens? Thank you very much > in > > advance! > > > > Olga > > > Forgive me my ignorance, but where does leasqrdemo come from, I can not > find it > as part of octave and I cannot find it as part of the current optim > package? > > -- Kind regards, Olga -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at mhelm.de Fri Apr 22 07:50:12 2011 From: martin at mhelm.de (Martin Helm) Date: Fri, 22 Apr 2011 14:50:12 +0200 Subject: nesting function error in leasqrdemo.m In-Reply-To: References: <1303458229231-3467565.post@n4.nabble.com> <201104221434.28564.martin@mhelm.de> Message-ID: <201104221450.13781.martin@mhelm.de> Am Freitag, 22. April 2011, 14:38:43 schrieb Olga Kruglova: > It is an example how leasqr.m performs fitting procedure for exponential > function, > http://lis.epfl.ch/cgi-bin/dwww?type=file&location=/usr/share/doc/octave-fo > rge/scripts/optim/leasqrdemo.m > > Olga > > On Fri, Apr 22, 2011 at 2:34 PM, Martin Helm wrote: > > Am Freitag, 22. April 2011, 09:43:49 schrieb olga_kruglova: > > > Hello everybody, > > > > > > I have been testing leasqrdemo.m to see how it works to make my own > > > routine. But when I try to run octave gives me an error : > > > > > > error: nested functions not implemented in this context > > > error: near line 75 of file `leasqrdemo.m.m' > > > parse error near line 75 of file leasqrdemo.m > > > > > > syntax error > > > > > > >>> function y = leasqrfunc(x,p); > > > >>> > > > ^ > > > > > > error: source: error sourcing file `leasqrdemo.m' > > > > > > Could you please help to understand why it happens? Thank you very much > > > > in > > > > > advance! > > > > > > Olga > > > > Forgive me my ignorance, but where does leasqrdemo come from, I can not > > find it > > as part of octave and I cannot find it as part of the current optim > > package? Please answer at the bottom not at the top it is easier to read and is the usual way here. I copied the script and ran it without error message. Using octvae 3.4, optim package 1.0.16 on 64 bit linux. Can you tell us which version of octave, optim and operating system you use to compare. From ilikolik at gmail.com Fri Apr 22 07:58:30 2011 From: ilikolik at gmail.com (Olga Kruglova) Date: Fri, 22 Apr 2011 14:58:30 +0200 Subject: nesting function error in leasqrdemo.m In-Reply-To: <201104221450.13781.martin@mhelm.de> References: <1303458229231-3467565.post@n4.nabble.com> <201104221434.28564.martin@mhelm.de> <201104221450.13781.martin@mhelm.de> Message-ID: On Fri, Apr 22, 2011 at 2:50 PM, Martin Helm wrote: > Am Freitag, 22. April 2011, 14:38:43 schrieb Olga Kruglova: > > It is an example how leasqr.m performs fitting procedure for exponential > > function, > > > http://lis.epfl.ch/cgi-bin/dwww?type=file&location=/usr/share/doc/octave-fo > > rge/scripts/optim/leasqrdemo.m > > > > Olga > > > > On Fri, Apr 22, 2011 at 2:34 PM, Martin Helm wrote: > > > Am Freitag, 22. April 2011, 09:43:49 schrieb olga_kruglova: > > > > Hello everybody, > > > > > > > > I have been testing leasqrdemo.m to see how it works to make my own > > > > routine. But when I try to run octave gives me an error : > > > > > > > > error: nested functions not implemented in this context > > > > error: near line 75 of file `leasqrdemo.m.m' > > > > parse error near line 75 of file leasqrdemo.m > > > > > > > > syntax error > > > > > > > > >>> function y = leasqrfunc(x,p); > > > > >>> > > > > ^ > > > > > > > > error: source: error sourcing file `leasqrdemo.m' > > > > > > > > Could you please help to understand why it happens? Thank you very > much > > > > > > in > > > > > > > advance! > > > > > > > > Olga > > > > > > Forgive me my ignorance, but where does leasqrdemo come from, I can not > > > find it > > > as part of octave and I cannot find it as part of the current optim > > > package? > > Please answer at the bottom not at the top it is easier to read and is the > usual way here. > > I copied the script and ran it without error message. > Using octvae 3.4, optim package 1.0.16 on 64 bit linux. > > Can you tell us which version of octave, optim and operating system you use > to > compare. > > It is octave 3.2.4 i686-pc-mingw32 gcc-4.4.0 on WindowsXP SP3. Olga -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at mhelm.de Fri Apr 22 08:15:26 2011 From: martin at mhelm.de (Martin Helm) Date: Fri, 22 Apr 2011 15:15:26 +0200 Subject: nesting function error in leasqrdemo.m In-Reply-To: References: <1303458229231-3467565.post@n4.nabble.com> <201104221450.13781.martin@mhelm.de> Message-ID: <201104221515.27759.martin@mhelm.de> Am Freitag, 22. April 2011, 14:58:30 schrieb Olga Kruglova: > It is octave 3.2.4 i686-pc-mingw32 gcc-4.4.0 on WindowsXP SP3. I hope now a windows user will jump in here since I cannot test if that makes any difference and I am out of possibilities at this point. Just one additional note. If you want a demo for leasqr there is one demo inbuilt into the leasqr function, you can call it by typing demo leasqr at the octave prompt. To see its source code you type type leasqr at the octave command prompt and scroll to the end. From martin at mhelm.de Fri Apr 22 07:34:27 2011 From: martin at mhelm.de (Martin Helm) Date: Fri, 22 Apr 2011 14:34:27 +0200 Subject: nesting function error in leasqrdemo.m In-Reply-To: <1303458229231-3467565.post@n4.nabble.com> References: <1303458229231-3467565.post@n4.nabble.com> Message-ID: <201104221434.28564.martin@mhelm.de> Am Freitag, 22. April 2011, 09:43:49 schrieb olga_kruglova: > Hello everybody, > > I have been testing leasqrdemo.m to see how it works to make my own > routine. But when I try to run octave gives me an error : > > error: nested functions not implemented in this context > error: near line 75 of file `leasqrdemo.m.m' > parse error near line 75 of file leasqrdemo.m > > syntax error > > >>> function y = leasqrfunc(x,p); > > ^ > > error: source: error sourcing file `leasqrdemo.m' > > Could you please help to understand why it happens? Thank you very much in > advance! > > Olga > Forgive me my ignorance, but where does leasqrdemo come from, I can not find it as part of octave and I cannot find it as part of the current optim package? From skianagh at googlemail.com Fri Apr 22 08:25:45 2011 From: skianagh at googlemail.com (Penfold) Date: Fri, 22 Apr 2011 06:25:45 -0700 (PDT) Subject: nesting function error in leasqrdemo.m In-Reply-To: <201104221515.27759.martin@mhelm.de> References: <1303458229231-3467565.post@n4.nabble.com> <201104221434.28564.martin@mhelm.de> <201104221450.13781.martin@mhelm.de> <201104221515.27759.martin@mhelm.de> Message-ID: <1303478745199-3467958.post@n4.nabble.com> Works fine for me. Octave 3.2.3 on WinXp SP3 Have you been editing the file? From line 75 onwards the file contents are: function y = leasqrfunc(x,p) % sprintf('called leasqrfunc(x,[%e %e]\n', p(1),p(2)) % y = p(1)+p(2)*x; y=p(1)*exp(-p(2)*x); function y = leasqrdfdp(x,f,p,dp,func) % y = [0*x+1, x]; y= [exp(-p(2)*x), -p(1)*x.*exp(-p(2)*x)]; -- View this message in context: http://octave.1599824.n4.nabble.com/nesting-function-error-in-leasqrdemo-m-tp3467565p3467958.html Sent from the Octave - General mailing list archive at Nabble.com. From WKrekeler at cleanearthtech.com Fri Apr 22 08:58:07 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Fri, 22 Apr 2011 13:58:07 +0000 Subject: re-interpreting Octave output In-Reply-To: References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> <4DB0784D.4040908@nist.gov> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6CF9@CETEX1.cleanearth.ceprivate> Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB212D6DFD@CETEX1.cleanearth.ceprivate> From: findtype [mailto:findtype at gmail.com] Sent: Thursday, April 21, 2011 11:57 PM To: William Krekeler Subject: Re: re-interpreting Octave output Thanks, William! The cygwin operations indeed get the mouse highlighting to work. However, a right-click does nothing but make the highlighting disappear. Evidently I'm doing something wrong. Any suggestion? Ted F. On Thu, Apr 21, 2011 at 4:49 PM, William Krekeler > wrote: From: help-octave-bounces at octave.org [mailto:help-octave-bounces at octave.org] On Behalf Of findtype Sent: Thursday, April 21, 2011 2:38 PM To: Przemek Klosowski Cc: help-octave at octave.org Subject: Re: re-interpreting Octave output More naively, a related question is this. How do you select a part of the output for further use? Is there a way to copy it to a clipboard? The output from my octave (in cygwin), does not respond to mouse commands. Ted F. ______________________________ Ted You might try enabling the mouse edit features for cygwin. Right click on the shortcut you use to open cygwin, select properties. Go to the options tab and check 'QuickEdit mode' and 'Insert mode'. Reopen cygwin, launch octave and see if you can now use the mouse to highlight (hold left mouse and drag) and paste (right-click while highlighted selection is highlighted). Alternatively you could dump the results of your calculations to a file using fopen, fwrite, and fclose. Or save to an oct or mat binary file that can be read using the load command in octave. William Krekeler Ted, Glad I could help, but I apologize for the original post error. To paste directions should read 'double right click' to paste. William -------------- next part -------------- An HTML attachment was scrubbed... URL: From WKrekeler at cleanearthtech.com Fri Apr 22 09:11:34 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Fri, 22 Apr 2011 14:11:34 +0000 Subject: nesting function error in leasqrdemo.m In-Reply-To: <1303478745199-3467958.post@n4.nabble.com> References: <1303458229231-3467565.post@n4.nabble.com> <201104221434.28564.martin@mhelm.de> <201104221450.13781.martin@mhelm.de> <201104221515.27759.martin@mhelm.de> <1303478745199-3467958.post@n4.nabble.com> Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB212D6E36@CETEX1.cleanearth.ceprivate> demo leasqr succeeded on Octave 3.2.4 Win 7 SP1 Bill -- View this message in context: http://octave.1599824.n4.nabble.com/nesting-function-error-in-leasqrdemo-m-tp3467565p3467958.html _______________________________________________ Help-octave mailing list Help-octave at octave.org https://mailman.cae.wisc.edu/listinfo/help-octave From shermanjj at gmail.com Fri Apr 22 09:16:22 2011 From: shermanjj at gmail.com (James Sherman Jr.) Date: Fri, 22 Apr 2011 10:16:22 -0400 Subject: re-interpreting Octave output In-Reply-To: <6765D38A4FDFC347A2934D0D5AB0F1AB212D6DFD@CETEX1.cleanearth.ceprivate> References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> <4DB0784D.4040908@nist.gov> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6CF9@CETEX1.cleanearth.ceprivate> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6DFD@CETEX1.cleanearth.ceprivate> Message-ID: On Fri, Apr 22, 2011 at 9:58 AM, William Krekeler < WKrekeler at cleanearthtech.com> wrote: > *From:* findtype [mailto:findtype at gmail.com] > *Sent:* Thursday, April 21, 2011 11:57 PM > *To:* William Krekeler > *Subject:* Re: re-interpreting Octave output > > > > Thanks, William! The cygwin operations indeed get the mouse highlighting > to work. However, a right-click does nothing but make the highlighting > disappear. Evidently I'm doing something wrong. Any suggestion? > > > > Ted F. > > Again, this is a cygwin issue and not an octave one. If I remember correctly, after highlighting, hitting "enter" or "ctrl-c" (I can't remember which one) will copy to the clipboard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andybuckle at gmail.com Fri Apr 22 09:26:48 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Fri, 22 Apr 2011 15:26:48 +0100 Subject: re-interpreting Octave output In-Reply-To: References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> <4DB0784D.4040908@nist.gov> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6CF9@CETEX1.cleanearth.ceprivate> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6DFD@CETEX1.cleanearth.ceprivate> Message-ID: On Fri, Apr 22, 2011 at 3:16 PM, James Sherman Jr. wrote: > > > On Fri, Apr 22, 2011 at 9:58 AM, William Krekeler > wrote: >> >> From: findtype [mailto:findtype at gmail.com] >> Sent: Thursday, April 21, 2011 11:57 PM >> To: William Krekeler >> Subject: Re: re-interpreting Octave output >> >> >> >> Thanks, William! ?The cygwin operations indeed get the mouse highlighting >> to work. ?However, a right-click does nothing but make the highlighting >> disappear. ?Evidently I'm doing something wrong. ?Any suggestion? >> >> >> >> Ted F. > > Again, this is a cygwin issue and not an octave one. ?If I remember > correctly, after highlighting, hitting "enter" or "ctrl-c" (I can't remember > which one) will copy to the clipboard. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave These work with DOS, MSYS and cygwin, usually. right click on the window's title bar edit/mark mouse drag to highlight enter to send to the copy buffer It can be configured differently: explore the options by right clicking on the window's title bar -- /* andy buckle */ From WKrekeler at cleanearthtech.com Fri Apr 22 09:29:28 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Fri, 22 Apr 2011 14:29:28 +0000 Subject: re-interpreting Octave output In-Reply-To: References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> <4DB0784D.4040908@nist.gov> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6CF9@CETEX1.cleanearth.ceprivate> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6DFD@CETEX1.cleanearth.ceprivate> Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB212D6E88@CETEX1.cleanearth.ceprivate> It is often useful to copy temporary output to generate new script lines. Yes, as asked, it is a cygwin issue, but if the user is using octave inside cygwin and that impacts the user interface to octave it becomes an octave issue. Not everyone has the choice of what operating system to use. Many work environment foist windows upon unsuspecting users and then expect them to do scientific processing. Many windows users have little understanding of how Linux, or similar interfaces work. These interfaces define the underlying way that users interface Octave. I think it is appropriate to help these users to make their Octave experience a positive one. Everyone is initially a helpless user and we don't know who will end up being major project contributors. Finally, sometimes we need to focus less on whether the venue is appropriate and more on being civil human beings willing to provide others assistance when they need it. William Again, this is a cygwin issue and not an octave one. If I remember correctly, after highlighting, hitting "enter" or "ctrl-c" (I can't remember which one) will copy to the clipboard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Potorti at isti.cnr.it Fri Apr 22 10:51:31 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Fri, 22 Apr 2011 17:51:31 +0200 Subject: re-interpreting Octave output In-Reply-To: <4DB0784D.4040908@nist.gov> References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> <4DB0784D.4040908@nist.gov> Message-ID: >Do other people agree that it is in general useful to be able to put the >command and data outputs back into the interpreter, in the way Sergei's >Data::Dumper example showed? The commands can be accomodated by >manipulating PSx(), but data would need some assist from the >interpreter, i.e. adding [] characters to printouts, like: > ># octave:18> a=[1 2 3; 4 5 6] >a = [ > > 1 2 3 > 4 5 6 >] > >and other, more complex things for cell arrays, structures, etc. Does it >seem worth doing? Yes, I think it would be worth doing. For example by setting an appropriate global variable. Hoping that this can serve as an encouragement for someone willing to do it :) -- Francesco Potort? (ricercatore) Voice: +39 050 315 3058 (op.2111) ISTI - Area della ricerca CNR Fax: +39 050 315 2040 via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/ From fdgibbons at gmail.com Fri Apr 22 10:53:27 2011 From: fdgibbons at gmail.com (fgibbons) Date: Fri, 22 Apr 2011 08:53:27 -0700 (PDT) Subject: Gnuplot freezes in Win7 / 3.2.4 In-Reply-To: <1288373135934-3019495.post@n4.nabble.com> References: <20100706233610.15820.qmail@web3801.mail.bbt.yahoo.co.jp> <1288373135934-3019495.post@n4.nabble.com> Message-ID: <1303487607212-3468198.post@n4.nabble.com> Found the same problem on my aging XP system: gnuplot seemed blocked after partially rendering. Luckily for me, reinstalling (but unchecking oct2mat package on Octave-forge menu) resolved that. -Frank -- View this message in context: http://octave.1599824.n4.nabble.com/Gnuplot-freezes-in-Win7-3-2-4-tp2279218p3468198.html Sent from the Octave - General mailing list archive at Nabble.com. From Potorti at isti.cnr.it Fri Apr 22 10:54:07 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Fri, 22 Apr 2011 17:54:07 +0200 Subject: Specifying RGB triples In-Reply-To: <1303369577.5846.38.camel@hauberg-laptop> References: <1303368987703-3465253.post@n4.nabble.com> <1303369577.5846.38.camel@hauberg-laptop> Message-ID: >> 2) Would saving to pdf from Octave achieve the same level of resolution as >> the 1200 dpi from Inkscape? It should make no difference, neither in Octave nor in Inkscape. The pdf Octave output and the svg Inkscape output are both vector formats, and the resolution you set should be irrelevant unless you embed some bitmap objects, wich is not the normal case with graphics and I think never happens when using 'plot'. -- Francesco Potort? (ricercatore) Voice: +39 050 315 3058 (op.2111) ISTI - Area della ricerca CNR Fax: +39 050 315 2040 via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/ From jason1391978 at yahoo.com Fri Apr 22 09:36:22 2011 From: jason1391978 at yahoo.com (echemist) Date: Fri, 22 Apr 2011 07:36:22 -0700 (PDT) Subject: using nelder_mead_min Message-ID: <1303482982880-3468080.post@n4.nabble.com> Hi all, I am new to Octave. What I wish to do is to fit some experimental data to a model using the Nelder-Mead method. I am using the root mean squared deviation (RMSD) as my merit function (function to be minimized by Nelder-Mead). I am trying to figure out how to use the function nelder_mead_min. I tried searching the forum, but haven't found the answer to my question. I apologize if I missed something in that search. According to the information here: http://octave.sourceforge.net/optim/function/nelder_mead_min.html the parameters that nelder_mead_min requires are the function name (as a string), a list of arguments, and an optional vector of control variables. I am having trouble with the list of arguments. What are these arguments? My general understanding of the Nelder-Mead method is that it is started with N+1 values defining the initial vertices of the simplex in an N-dimension space. So, is this list of arguments that N+1 initial guesses for that simplex? If I need to provide the function with other parameters (not to be minimized by Nelder-Mead), how can I do that? Thanks for any help! Jason -- View this message in context: http://octave.1599824.n4.nabble.com/using-nelder-mead-min-tp3468080p3468080.html Sent from the Octave - General mailing list archive at Nabble.com. From findtype at gmail.com Fri Apr 22 11:17:39 2011 From: findtype at gmail.com (findtype) Date: Fri, 22 Apr 2011 12:17:39 -0400 Subject: re-interpreting Octave output In-Reply-To: <6765D38A4FDFC347A2934D0D5AB0F1AB212D6DFD@CETEX1.cleanearth.ceprivate> References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> <4DB0784D.4040908@nist.gov> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6CF9@CETEX1.cleanearth.ceprivate> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6DFD@CETEX1.cleanearth.ceprivate> Message-ID: Both of the following suggestions worked.... Highlight, then double-right-click in order to paste. Highlight + , then single-right-click in order to paste. Thanks so much for taking time for the advice! And the philosophical note about "initially a helpless user" is right on the money for my situation, as it has involved getting started simultaneously with octave, cygwin, and emacs, whence the "proper" aegis for each question could be far from clear. I must say that, overall, my brief experience with getting assistance with Octave has been much better than some evil experiences with paid support services such as at MS, Dell, etc., with eternal phone menus, call re-directions, lack of answers, etc. Best regards to all, Ted F. On Fri, Apr 22, 2011 at 9:58 AM, William Krekeler < WKrekeler at cleanearthtech.com> wrote: > *From:* findtype [mailto:findtype at gmail.com] > *Sent:* Thursday, April 21, 2011 11:57 PM > *To:* William Krekeler > > *Subject:* Re: re-interpreting Octave output > > > > Thanks, William! The cygwin operations indeed get the mouse highlighting > to work. However, a right-click does nothing but make the highlighting > disappear. Evidently I'm doing something wrong. Any suggestion? > > > > Ted F. > > > > On Thu, Apr 21, 2011 at 4:49 PM, William Krekeler < > WKrekeler at cleanearthtech.com> wrote: > > *From:* help-octave-bounces at octave.org [mailto: > help-octave-bounces at octave.org] *On Behalf Of *findtype > *Sent:* Thursday, April 21, 2011 2:38 PM > *To:* Przemek Klosowski > *Cc:* help-octave at octave.org > *Subject:* Re: re-interpreting Octave output > > > > More naively, a related question is this. How do you select a part of the > output for further use? Is there a way to > copy it to a clipboard? The output from my octave (in cygwin), does not > respond to mouse commands. > > > > Ted F. > > ______________________________ > > Ted > > > > You might try enabling the mouse edit features for cygwin. Right click on > the shortcut you use to open cygwin, select properties. Go to the options > tab and check 'QuickEdit mode' and 'Insert mode'. Reopen cygwin, launch > octave and see if you can now use the mouse to highlight (hold left mouse > and drag) and paste (right-click while highlighted selection is > highlighted). > > > > Alternatively you could dump the results of your calculations to a file > using fopen, fwrite, and fclose. Or save to an oct or mat binary file that > can be read using the load command in octave. > > > > William Krekeler > > Ted, > > > > Glad I could help, but I apologize for the original post error. To paste > directions should read 'double right click' to paste. > > > > William > -------------- next part -------------- An HTML attachment was scrubbed... URL: From findtype at gmail.com Fri Apr 22 11:22:57 2011 From: findtype at gmail.com (findtype) Date: Fri, 22 Apr 2011 12:22:57 -0400 Subject: re-interpreting Octave output In-Reply-To: References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> <4DB0784D.4040908@nist.gov> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6CF9@CETEX1.cleanearth.ceprivate> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6DFD@CETEX1.cleanearth.ceprivate> Message-ID: Thanks, Andy, that works also! Ted F. On Fri, Apr 22, 2011 at 10:26 AM, Andy Buckle wrote: > On Fri, Apr 22, 2011 at 3:16 PM, James Sherman Jr. > wrote: > > > > > > On Fri, Apr 22, 2011 at 9:58 AM, William Krekeler > > wrote: > >> > >> From: findtype [mailto:findtype at gmail.com] > >> Sent: Thursday, April 21, 2011 11:57 PM > >> To: William Krekeler > >> Subject: Re: re-interpreting Octave output > >> > >> > >> > >> Thanks, William! The cygwin operations indeed get the mouse > highlighting > >> to work. However, a right-click does nothing but make the highlighting > >> disappear. Evidently I'm doing something wrong. Any suggestion? > >> > >> > >> > >> Ted F. > > > > Again, this is a cygwin issue and not an octave one. If I remember > > correctly, after highlighting, hitting "enter" or "ctrl-c" (I can't > remember > > which one) will copy to the clipboard. > > _______________________________________________ > > Help-octave mailing list > > Help-octave at octave.org > > https://mailman.cae.wisc.edu/listinfo/help-octave > > These work with DOS, MSYS and cygwin, usually. > > right click on the window's title bar > edit/mark > mouse drag to highlight > enter to send to the copy buffer > > It can be configured differently: explore the options by right > clicking on the window's title bar > > -- > /* andy buckle */ > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pathematica at gmail.com Fri Apr 22 11:31:30 2011 From: pathematica at gmail.com (pathematica) Date: Fri, 22 Apr 2011 09:31:30 -0700 (PDT) Subject: Patches to the manual Message-ID: <1303489890252-3468264.post@n4.nabble.com> Recently, I posted a question about syntax required for a particular problem (see specifying RGB triplets). I received the information I required within minutes (literally) in the next post. The discussion that followed suggested that the functionality I required was not well documented. A later post suggested submitting a patch for the manual. I have a hard copy of the manual and I have checked the online version (which is presumably the most up to date one). I have self taught coding skills for high level languages, with a tiny amount of experience of writing machine code. I have taken a maths degree relatively late in life but I have never had any formal education in computing (used in the general sense to include coding). I have a sense of guilt that I use this great software without contributing to the generation of code. I am slightly intimidated by the idea of contributing patches for the code itself. The same sense of a lack of technical insight also discourages contributing prose for the manual. It did occur to me that I might submit some simple text for the manual on the solution the problem for which I had sought help. Both the hardcopy manual and the online have sections at the beginning that describe how individuals might submit code for patches to the program. Unfortunately, neither appear to offer information about how individuals might contribute relatively non-technical prose for the manual. Have I missed the relevant part of the book (or the relevant link)? Would the addition of a link and a means for contributing prose for the manual? Is there an official wiki somewhere, that might form the basis of revisions to the manual? If not, would it help if there were one? (I'm afraid I would not know how to set one up). Thanks for the program itself and for the rapid help available in the forum. -- View this message in context: http://octave.1599824.n4.nabble.com/Patches-to-the-manual-tp3468264p3468264.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at octave.org Fri Apr 22 11:50:05 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 22 Apr 2011 11:50:05 -0500 Subject: Patches to the manual In-Reply-To: <1303489890252-3468264.post@n4.nabble.com> References: <1303489890252-3468264.post@n4.nabble.com> Message-ID: On 22 April 2011 11:31, pathematica wrote: > It did occur to me that I might submit some simple text for the manual on > the solution the problem for which I had sought help. Thanks a lot for proposing this help. There's no need to feel guilty, but I'm very glad you have considered contributing to Octave. > Is there an official wiki somewhere, that might form the basis of > revisions to the manual? We do have a wiki. If you can write draft additions to the manual there but are uncomfortable with preparing patches to the manual, I can take whatever you write there and prepare the patches, crediting you. It has a password because it's our makeshift captcha. I'll send you the password privately in a minute. Thanks, - Jordi G. H. From jebaluno at mailbox.sc.edu Sun Apr 17 15:31:34 2011 From: jebaluno at mailbox.sc.edu (Jerry Ebalunode) Date: Sun, 17 Apr 2011 16:31:34 -0400 Subject: parcellfun howto In-Reply-To: Message-ID: <1303072294.24620.6.camel@jebalunode-ThinkPad-X201-Tablet> in a forum you mentioned a way of emulating matlabs parfor in the snippet below is to parfor k = 1:100 do_stuff (k); endparfor loop_body = @ k do_stuff(k); parcellfun(@loop_body,cell2mat(1:100)); I tried as recommended but it didn't work. Could tell me what I am doing wrong. Thanks for your quick response. -Jerry From jwe at octave.org Fri Apr 22 13:57:44 2011 From: jwe at octave.org (John W. Eaton) Date: Fri, 22 Apr 2011 14:57:44 -0400 Subject: re-interpreting Octave output In-Reply-To: <6765D38A4FDFC347A2934D0D5AB0F1AB212D6E88@CETEX1.cleanearth.ceprivate> References: <444676.36474.qm@web112120.mail.gq1.yahoo.com> <4DB0784D.4040908@nist.gov> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6CF9@CETEX1.cleanearth.ceprivate> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6DFD@CETEX1.cleanearth.ceprivate> <6765D38A4FDFC347A2934D0D5AB0F1AB212D6E88@CETEX1.cleanearth.ceprivate> Message-ID: <19889.53160.860224.193873@coredump.lan> On 22-Apr-2011, William Krekeler wrote: | It is often useful to copy temporary output to generate new script lines. Yes, | as asked, it is a cygwin issue, but if the user is using octave inside cygwin | and that impacts the user interface to octave it becomes an octave | issue. By saying that Octave doesn't have anything to do with cutting and pasting when it is running in a terminal, I was merely trying to explain the technical point that the keyboard commands or mouse buttons that control cutting and pasting are not in any way controlled by Octave. I was hoping to provide some insight into how things work so that some better understanding might be gained. jwe From pathematica at gmail.com Fri Apr 22 17:17:16 2011 From: pathematica at gmail.com (pathematica) Date: Fri, 22 Apr 2011 15:17:16 -0700 (PDT) Subject: Patches to the manual In-Reply-To: References: <1303489890252-3468264.post@n4.nabble.com> Message-ID: <1303510636370-3469059.post@n4.nabble.com> I have added an entry to the wiki. The question remains whether it would be useful to have instructions in the manual how to contribute to the manual itself (rather than to the code). On the other hand, as the manual exists, I presume that the present arrangement is sufficient! Best wishes -- View this message in context: http://octave.1599824.n4.nabble.com/Patches-to-the-manual-tp3468264p3469059.html Sent from the Octave - General mailing list archive at Nabble.com. From chethanuniversal at gmail.com Fri Apr 22 22:49:56 2011 From: chethanuniversal at gmail.com (Chethan S) Date: Sat, 23 Apr 2011 09:19:56 +0530 Subject: Geospatial data functions Message-ID: Hi all! I am a student working on geospatial data, particularly satellite imagery. Currently I am a MATLAB user wanting to switch to GNU Octave. With a casual web search I learnt that GNU Octave is missing out several functions for Geospatial Data Import and Access ( http://www.denney.ws/octave/3.0.1/Mapping.html). Are those functions available in latest version of Octave? Thanks and regards, Chethan S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chethanuniversal at gmail.com Sat Apr 23 00:33:07 2011 From: chethanuniversal at gmail.com (Chethan S) Date: Sat, 23 Apr 2011 11:03:07 +0530 Subject: make error: octave 3.4.0 building from source Message-ID: Hi all! I have been trying to install GNU Octave 3.4.0 from source on my Ubuntu 10.10. I could run just ./configure without any errors. Then when I run make I see following errors: make[3]: Entering directory `/home/chethan/Applications/octave-3.4.0/doc/faq' TEXINPUTS="./..:$TEXINPUTS" \ MAKEINFO='/bin/sh /home/chethan/Applications/octave-3.4.0/build-aux/missing --run makeinfo -I .' \ texi2dvi OctaveFAQ.texi egrep: Invalid range end make[3]: *** [OctaveFAQ.dvi] Error 1 make[3]: Leaving directory `/home/chethan/Applications/octave-3.4.0/doc/faq' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/chethan/Applications/octave-3.4.0/doc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/chethan/Applications/octave-3.4.0' make: *** [all] Error 2 What is the reason for this and how I can set it right? Thanks and regards, Chethan S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordigh at octave.org Sat Apr 23 00:54:17 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Sat, 23 Apr 2011 00:54:17 -0500 Subject: Patches to the manual In-Reply-To: <1303510636370-3469059.post@n4.nabble.com> References: <1303489890252-3468264.post@n4.nabble.com> <1303510636370-3469059.post@n4.nabble.com> Message-ID: On 22 April 2011 17:17, pathematica wrote: > I have added an entry to the wiki. Namely, this one: http://wiki.octave.org/wiki.pl?Producing_Graphical_Output I'll see about adding this discussion and examples to the manual. Where did you have in mind that it should go? - Jordi G. H. From jordigh at octave.org Sat Apr 23 00:55:43 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Sat, 23 Apr 2011 00:55:43 -0500 Subject: make error: octave 3.4.0 building from source In-Reply-To: References: Message-ID: On 23 April 2011 00:33, Chethan S wrote: > I see following errors: > > make[3]: Entering directory > `/home/chethan/Applications/octave-3.4.0/doc/faq' > TEXINPUTS="./..:$TEXINPUTS" \ > ??? MAKEINFO='/bin/sh > /home/chethan/Applications/octave-3.4.0/build-aux/missing --run makeinfo > -I .' \ > ??? texi2dvi OctaveFAQ.texi > egrep: Invalid range end [snip] > What is the reason for this and how I can set it right? The reason was some texinfo incompatibility thing and the workaround is to do "LANG=C make" instead of plain "make". - Jordi G. H. From jordigh at octave.org Sat Apr 23 00:58:35 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Sat, 23 Apr 2011 00:58:35 -0500 Subject: Geospatial data functions In-Reply-To: References: Message-ID: On 22 April 2011 22:49, Chethan S wrote: > Hi all! > > I am a student working on geospatial data, particularly satellite imagery. > Currently I am a MATLAB user wanting to switch to GNU Octave. With a casual > web search I learnt that GNU Octave is missing out several functions for > Geospatial Data Import and Access > (http://www.denney.ws/octave/3.0.1/Mapping.html). > > Are those functions available in latest version of Octave? You can see which functions are available in Octave or Octave-Forge at the following location: http://octave.sourceforge.net/functions_by_alpha.php Unfortunately, it seems that the geospatial toolbox is still not at all implemented, and it looks like a major effort to do so. I do not know what to suggest. Sorry. - Jordi G. H. From chethanuniversal at gmail.com Sat Apr 23 03:06:20 2011 From: chethanuniversal at gmail.com (Chethan S) Date: Sat, 23 Apr 2011 13:36:20 +0530 Subject: make error: octave 3.4.0 building from source In-Reply-To: References: Message-ID: I tried running ./configure and this time with LANG=C make. Still I encountered the same error: Making all in faq make[3]: Entering directory `/home/chethan/Applications/octave-3.4.0/doc/faq' TEXINPUTS="./..:$TEXINPUTS" \ MAKEINFO='/bin/sh /home/chethan/Applications/octave-3.4.0/build-aux/missing --run makeinfo -I .' \ texi2dvi OctaveFAQ.texi make[3]: *** [OctaveFAQ.dvi] Error 1 make[3]: Leaving directory `/home/chethan/Applications/octave-3.4.0/doc/faq' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/chethan/Applications/octave-3.4.0/doc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/chethan/Applications/octave-3.4.0' make: *** [all] Error 2 except for "egrep: Invalid range end" which was missing! Thanks and regards, Chethan S. 2011/4/23 Jordi Guti?rrez Hermoso > On 23 April 2011 00:33, Chethan S wrote: > > I see following errors: > > > > make[3]: Entering directory > > `/home/chethan/Applications/octave-3.4.0/doc/faq' > > TEXINPUTS="./..:$TEXINPUTS" \ > > MAKEINFO='/bin/sh > > /home/chethan/Applications/octave-3.4.0/build-aux/missing --run makeinfo > > -I .' \ > > texi2dvi OctaveFAQ.texi > > egrep: Invalid range end > [snip] > > What is the reason for this and how I can set it right? > > The reason was some texinfo incompatibility thing and the workaround > is to do "LANG=C make" instead of plain "make". > > - Jordi G. H. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pathematica at gmail.com Sat Apr 23 03:54:10 2011 From: pathematica at gmail.com (pathematica) Date: Sat, 23 Apr 2011 01:54:10 -0700 (PDT) Subject: Patches to the manual In-Reply-To: References: <1303489890252-3468264.post@n4.nabble.com> <1303510636370-3469059.post@n4.nabble.com> Message-ID: <1303548850111-3469675.post@n4.nabble.com> HI Jordi The page numbers cited refer to Version 3 of the manual (ISBN 9-780954-612061) My contribution to the wiki was not the whole section on plotting (someone had already started a section on the plot function and it seemed appropriate to include it there), rather the bit headed "Specifying color" (appended to the end; the number in the specimen Octave code start again from 1). As the wiki does not have all of the text that is present in the manual, first I had to back fill some information about the general properties of the plot function. There was a brief introduction to the syntax (reprising page 193 of the manual). There was a description of some aspects of the 'fmt' and 'property-value' arguments (reprising some of the content on page 194, but expanding some of the points). Some of the entry was abbreviated. For example: I did not describe the variations in the syntax for the initial arguments specifying dependent variable, with its various opportunities for implying independent variable, or defining the independent variable explicitly. I did not expand on variations in the syntax for the 'fmt' argument, which is discussed on the manual on page 195 of the manual. In particular, I did not explain how to combine more than one argument into a single 'fmt' value as described on page 195. Additions Probably best included on page 195 Suggested words for the index: 'color' (at present this only refers to page 231, which discusses surface plots) 'RGB notation in plots' I introduced the syntax for the use of 'color' as a 'property-value' pair. I reprised some of the discussion of property-value pairs given on page 194 but mine was more verbose (and less technical, as it was aimed at a less sophisticated audience). Perhaps some of this might be included on page 194 I tried to describe the specific details about how the RGB values should be passed, including: details of its format (a row vector); details of its elements (a value in the closed range [0, 1]); advice how to specify RGB triplets as conventional two byte integers (using decimals); advice how to specify RGB triplets as conventional two byte integers (using hexadecimals). I think this would best be included either in or below the section that is headed "plot (h, ...) Function File possibly just below the subsection heading 'c' (at the beginning of a hanging indent) on page 195, just before the subsection heading ";title;" A suitable subsection heading might be " ..., 'color', RGBvalue, ... " The problem I face in offering suggestions is to mesh with the original text and to get the balance right between terseness (presumably to keep down the size of the manual and the printing costs) and verbosity (to assist the relatively unsophisticated or neophytes to Octave). To illustrate the difficulty, this post itself has become somewhat long! This discussion also highlights the problem of editing a wiki, which uses a different approach to the manual, rather than having a facility to edit (in ways that would not necessarily lead to change before approval) of the text of the manual itself. Best wishes. -- View this message in context: http://octave.1599824.n4.nabble.com/Patches-to-the-manual-tp3468264p3469675.html Sent from the Octave - General mailing list archive at Nabble.com. From pathematica at gmail.com Sat Apr 23 04:58:01 2011 From: pathematica at gmail.com (pathematica) Date: Sat, 23 Apr 2011 02:58:01 -0700 (PDT) Subject: Patches to the manual In-Reply-To: <1303548850111-3469675.post@n4.nabble.com> References: <1303489890252-3468264.post@n4.nabble.com> <1303510636370-3469059.post@n4.nabble.com> <1303548850111-3469675.post@n4.nabble.com> Message-ID: <1303552681031-3469723.post@n4.nabble.com> By the way, I have also added instructions for achieving a "cubic" aspect ratio in three-dimensional plots. You guys explained how to do this for me in a previous thread. This does not appear to be well-documented in the manual. The entry in the wiki might be considered for translation to a form suitable for inclusion on page 210 in the manual, perhaps in a subsection headed (by hanging indent), "axis" before the one headed "view". Best wishes -- View this message in context: http://octave.1599824.n4.nabble.com/Patches-to-the-manual-tp3468264p3469723.html Sent from the Octave - General mailing list archive at Nabble.com. From sedwards2 at cinci.rr.com Sat Apr 23 08:17:04 2011 From: sedwards2 at cinci.rr.com (Stuart Edwards) Date: Sat, 23 Apr 2011 09:17:04 -0400 Subject: Geospatial data functions In-Reply-To: References: Message-ID: On Apr 23, 2011, at 1:58 AM, Jordi Guti?rrez Hermoso wrote: > On 22 April 2011 22:49, Chethan S wrote: >> Hi all! >> >> I am a student working on geospatial data, particularly satellite imagery. >> Currently I am a MATLAB user wanting to switch to GNU Octave. With a casual >> web search I learnt that GNU Octave is missing out several functions for >> Geospatial Data Import and Access >> (http://www.denney.ws/octave/3.0.1/Mapping.html). >> >> Are those functions available in latest version of Octave? > > You can see which functions are available in Octave or Octave-Forge at > the following location: > > http://octave.sourceforge.net/functions_by_alpha.php > > Unfortunately, it seems that the geospatial toolbox is still not at > all implemented, and it looks like a major effort to do so. I do not > know what to suggest. Sorry. > > - Jordi G. H. > Depending on your needs, GRASS GIS ( http://grass.fbk.eu/) has some useful image processing capabilities Stu From chethanuniversal at gmail.com Sat Apr 23 08:38:09 2011 From: chethanuniversal at gmail.com (Chethan S) Date: Sat, 23 Apr 2011 19:08:09 +0530 Subject: Geospatial data functions In-Reply-To: References: Message-ID: I am already a GRASS User. In order to manipulate images in a specific manner I am making use of MATLAB functions - some built-in, some written by me. As a FOSS enthusiast I wanted to get my work done in Octave. Anyway I am looking for alternative functions and if everything goes fine I will get my work done in Octave. Thanks and regards, Chethan S. 2011/4/23 Stuart Edwards > > On Apr 23, 2011, at 1:58 AM, Jordi Guti?rrez Hermoso wrote: > > > On 22 April 2011 22:49, Chethan S wrote: > >> Hi all! > >> > >> I am a student working on geospatial data, particularly satellite > imagery. > >> Currently I am a MATLAB user wanting to switch to GNU Octave. With a > casual > >> web search I learnt that GNU Octave is missing out several functions for > >> Geospatial Data Import and Access > >> (http://www.denney.ws/octave/3.0.1/Mapping.html). > >> > >> Are those functions available in latest version of Octave? > > > > You can see which functions are available in Octave or Octave-Forge at > > the following location: > > > > http://octave.sourceforge.net/functions_by_alpha.php > > > > Unfortunately, it seems that the geospatial toolbox is still not at > > all implemented, and it looks like a major effort to do so. I do not > > know what to suggest. Sorry. > > > > - Jordi G. H. > > > Depending on your needs, GRASS GIS ( http://grass.fbk.eu/) has some useful > image processing capabilities > > Stu -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordigh at octave.org Sat Apr 23 09:08:10 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Sat, 23 Apr 2011 09:08:10 -0500 Subject: make error: octave 3.4.0 building from source In-Reply-To: References: Message-ID: 2011/4/23 Chethan S : > I tried running ./configure and this time with LANG=C make. Still I > encountered the same error: > > Making all in faq > make[3]: Entering directory > `/home/chethan/Applications/octave-3.4.0/doc/faq' > TEXINPUTS="./..:$TEXINPUTS" \ > ??? MAKEINFO='/bin/sh > /home/chethan/Applications/octave-3.4.0/build-aux/missing --run makeinfo > -I .' \ > ??? texi2dvi OctaveFAQ.texi > make[3]: *** [OctaveFAQ.dvi] Error 1 > make[3]: Leaving directory `/home/chethan/Applications/octave-3.4.0/doc/faq' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/chethan/Applications/octave-3.4.0/doc' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/chethan/Applications/octave-3.4.0' > make: *** [all] Error 2 > > except for "egrep: Invalid range end" which was missing! > Well, I'm mystified. There isn't an error there at all, so I wonder what make is seeing. At any rate, this is only about building the documentation. A bigger workaround is to not build the documentation at all. Disable it from the configure script. - Jordi G. H. From jwe at octave.org Sat Apr 23 13:37:23 2011 From: jwe at octave.org (John W. Eaton) Date: Sat, 23 Apr 2011 14:37:23 -0400 Subject: make error: octave 3.4.0 building from source In-Reply-To: References: Message-ID: <19891.7267.242734.317588@coredump.lan> On 23-Apr-2011, Jordi Guti?rrez Hermoso wrote: | 2011/4/23 Chethan S : | > I tried running ./configure and this time with LANG=C make. Still I | > encountered the same error: | > | > Making all in faq | > make[3]: Entering directory | > `/home/chethan/Applications/octave-3.4.0/doc/faq' | > TEXINPUTS="./..:$TEXINPUTS" \ | > ??? MAKEINFO='/bin/sh | > /home/chethan/Applications/octave-3.4.0/build-aux/missing --run makeinfo | > -I .' \ | > ??? texi2dvi OctaveFAQ.texi | > make[3]: *** [OctaveFAQ.dvi] Error 1 | > make[3]: Leaving directory `/home/chethan/Applications/octave-3.4.0/doc/faq' | > make[2]: *** [all-recursive] Error 1 | > make[2]: Leaving directory `/home/chethan/Applications/octave-3.4.0/doc' | > make[1]: *** [all-recursive] Error 1 | > make[1]: Leaving directory `/home/chethan/Applications/octave-3.4.0' | > make: *** [all] Error 2 | > | > except for "egrep: Invalid range end" which was missing! | > | | Well, I'm mystified. There isn't an error there at all, so I wonder | what make is seeing. | | At any rate, this is only about building the documentation. A bigger | workaround is to not build the documentation at all. Disable it from | the configure script. Is the problem the same as the one reported here http://old.nabble.com/texi2dvi%3A-locale-dependent-error-in-egrep--A-z--td28075122.html ? jwe From chethanuniversal at gmail.com Sat Apr 23 18:11:08 2011 From: chethanuniversal at gmail.com (Chethan S) Date: Sun, 24 Apr 2011 04:41:08 +0530 Subject: make error: octave 3.4.0 building from source In-Reply-To: <19891.7267.242734.317588@coredump.lan> References: <19891.7267.242734.317588@coredump.lan> Message-ID: I think it is not the error mentioned there. As you might have seen, in my case after I ran make as LANG=C make that "egrep: Invalid range end" vanished. Also I don't see errors like > LC_ALL=de_DE.utf8 /usr/bin/texi2dvi /some/path/and/file.texi > /usr/bin/texi2dvi: cannot read .//some/path/and/file.texi, skipping. > as mentioned in that link. Thanks and regards, Chethan S. 2011/4/24 John W. Eaton > On 23-Apr-2011, Jordi Guti?rrez Hermoso wrote: > > | 2011/4/23 Chethan S : > | > I tried running ./configure and this time with LANG=C make. Still I > | > encountered the same error: > | > > | > Making all in faq > | > make[3]: Entering directory > | > `/home/chethan/Applications/octave-3.4.0/doc/faq' > | > TEXINPUTS="./..:$TEXINPUTS" \ > | > MAKEINFO='/bin/sh > | > /home/chethan/Applications/octave-3.4.0/build-aux/missing --run > makeinfo > | > -I .' \ > | > texi2dvi OctaveFAQ.texi > | > make[3]: *** [OctaveFAQ.dvi] Error 1 > | > make[3]: Leaving directory > `/home/chethan/Applications/octave-3.4.0/doc/faq' > | > make[2]: *** [all-recursive] Error 1 > | > make[2]: Leaving directory > `/home/chethan/Applications/octave-3.4.0/doc' > | > make[1]: *** [all-recursive] Error 1 > | > make[1]: Leaving directory `/home/chethan/Applications/octave-3.4.0' > | > make: *** [all] Error 2 > | > > | > except for "egrep: Invalid range end" which was missing! > | > > | > | Well, I'm mystified. There isn't an error there at all, so I wonder > | what make is seeing. > | > | At any rate, this is only about building the documentation. A bigger > | workaround is to not build the documentation at all. Disable it from > | the configure script. > > Is the problem the same as the one reported here > > > http://old.nabble.com/texi2dvi%3A-locale-dependent-error-in-egrep--A-z--td28075122.html > > ? > > jwe > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinsta00 at hotmail.com Sun Apr 24 00:19:34 2011 From: chinsta00 at hotmail.com (Andy Chee) Date: Sun, 24 Apr 2011 15:19:34 +1000 Subject: Octave 3.4.0 does not detect my GraphicsMagick 1.3.12 Message-ID: Hi all. I'm trying to install Octave 3.4.0 but at the end of ./configure I get the following warning: configure:54866: WARNING: GraphicsMagick++ library fails tests. The imread function for reading image files will not be fully functional. Looking through config.log I find the following: configure:31204: $PKG_CONFIG --exists --print-errors "$magick++" configure:31207: $? = 0 configure:31230: checking Magick++.h usability configure:31230: g++ -c -g -O2 -I/usr/local/include/GraphicsMagick conftest.cpp >&5 configure:31230: $? = 0 configure:31230: result: yes configure:31230: checking Magick++.h presence configure:31230: g++ -E -I/usr/local/include/GraphicsMagick conftest.cpp configure:31230: $? = 0 configure:31230: result: yes configure:31230: checking for Magick++.h configure:31230: result: yes configure:31233: checking for Magick::ColorRGB in Magick++.h configure:31254: g++ -o conftest -g -O2 -I/usr/local/include/GraphicsMagick conftest.cpp -L/usr/local/lib -lGraphicsMagick++ -lGraphicsMagick -lm >&5 /usr/local/lib/libGraphicsMagick.a(magick_libGraphicsMagick_la-image.o): In function `DisplayImages': /home/chinsta/GraphicsMagick-1.3.12/magick/image.c:1265: undefined reference to `XOpenDisplay' /home/chinsta/GraphicsMagick-1.3.12/magick/image.c:1268: undefined reference to `XSetErrorHandler' /home/chinsta/GraphicsMagick-1.3.12/magick/image.c:1294: undefined reference to `XCloseDisplay' /usr/local/lib/libGraphicsMagick.a(magick_libGraphicsMagick_la-image.o): In function `AnimateImages': /home/chinsta/GraphicsMagick-1.3.12/magick/image.c:467: undefined reference to `XOpenDisplay' /home/chinsta/GraphicsMagick-1.3.12/magick/image.c:470: undefined reference to `XSetErrorHandler' /home/chinsta/GraphicsMagick-1.3.12/magick/image.c:478: undefined reference to `XCloseDisplay' /usr/local/lib/libGraphicsMagick.a(magick_libGraphicsMagick_la-operator.o): In function `QuantumPowCB': /home/chinsta/GraphicsMagick-1.3.12/magick/operator.c:1554: undefined reference to `GOMP_critical_name_start' /home/chinsta/GraphicsMagick-1.3.12/magick/operator.c:1564: undefined reference to `GOMP_critical_name_end' /home/chinsta/GraphicsMagick-1.3.12/magick/operator.c:1564: undefined reference to `GOMP_critical_name_end' /usr/local/lib/libGraphicsMagick.a(magick_libGraphicsMagick_la-operator.o): In function `QuantumDepthCB': /home/chinsta/GraphicsMagick-1.3.12/magick/operator.c:575: undefined reference to `GOMP_critical_name_start' /home/chinsta/GraphicsMagick-1.3.12/magick/operator.c:585: undefined reference to `GOMP_critical_name_end' /home/chinsta/GraphicsMagick-1.3.12/magick/operator.c:585: undefined reference to `GOMP_critical_name_end' ....and it continues like that for a while. I assume it's a missing file, misplaced directory or something along those lines, but I need some help troubleshooting. I had a look at the config.log of an older octave-3.2.4, but it looks like the magick checking routine is completely different (and successful too) I did a search through the message archive for similar problems and there are references to a GraphicsMagick-devel. But I can't find this on the www.graphicsmagick.org site, and the references I found were RPMs for Debian and SuSE. I'm not sure whether this is what I need though (I'm using Slackware 13.0) If someone can give me an idea of where to go and what to do it would be much appreciated. cheers Andrew PS. apart from not detecting GraphicsMagick, Octave 3.4 built cleanly, though I did struggle getting BLAS, ATLAS & LAPACK built and installed correctly beforehand (mainly because I don't know what I'm doing!) From marco.atzeri at gmail.com Sun Apr 24 03:44:15 2011 From: marco.atzeri at gmail.com (marco atzeri) Date: Sun, 24 Apr 2011 10:44:15 +0200 Subject: Octave 3.4.0 does not detect my GraphicsMagick 1.3.12 In-Reply-To: References: Message-ID: On Sun, Apr 24, 2011 at 7:19 AM, Andy Chee wrote: > > Hi all. > > I'm trying to install Octave 3.4.0 but at the end of ./configure I get the following warning: > > configure:54866: WARNING: GraphicsMagick++ library fails tests. ?The imread function for reading image files will not be fully functional. > > Looking through config.log I find the following: > > configure:31204: $PKG_CONFIG --exists --print-errors "$magick++" > configure:31207: $? = 0 > configure:31230: checking Magick++.h usability > configure:31230: g++ -c -g -O2 -I/usr/local/include/GraphicsMagick ? ?conftest.cpp >&5 > configure:31230: $? = 0 > configure:31230: result: yes > configure:31230: checking Magick++.h presence > configure:31230: g++ -E -I/usr/local/include/GraphicsMagick ? ?conftest.cpp > configure:31230: $? = 0 > configure:31230: result: yes > configure:31230: checking for Magick++.h > configure:31230: result: yes > configure:31233: checking for Magick::ColorRGB in Magick++.h > configure:31254: g++ -o conftest -g -O2 -I/usr/local/include/GraphicsMagick ? ? conftest.cpp -L/usr/local/lib ? -lGraphicsMagick++ -lGraphicsMagick ? -lm ? >&5 > /usr/local/lib/libGraphicsMagick.a(magick_libGraphicsMagick_la-image.o): In function `DisplayImages': > /home/chinsta/GraphicsMagick-1.3.12/magick/image.c:1265: undefined reference to `XOpenDisplay' > /home/chinsta/GraphicsMagick-1.3.12/magick/image.c:1268: undefined reference to `XSetErrorHandler' > /home/chinsta/GraphicsMagick-1.3.12/magick/image.c:1294: undefined reference to `XCloseDisplay' > /usr/local/lib/libGraphicsMagick.a(magick_libGraphicsMagick_la-image.o): In function `AnimateImages': > /home/chinsta/GraphicsMagick-1.3.12/magick/image.c:467: undefined reference to `XOpenDisplay' > /home/chinsta/GraphicsMagick-1.3.12/magick/image.c:470: undefined reference to `XSetErrorHandler' > /home/chinsta/GraphicsMagick-1.3.12/magick/image.c:478: undefined reference to `XCloseDisplay' > /usr/local/lib/libGraphicsMagick.a(magick_libGraphicsMagick_la-operator.o): In function `QuantumPowCB': > /home/chinsta/GraphicsMagick-1.3.12/magick/operator.c:1554: undefined reference to `GOMP_critical_name_start' > /home/chinsta/GraphicsMagick-1.3.12/magick/operator.c:1564: undefined reference to `GOMP_critical_name_end' > /home/chinsta/GraphicsMagick-1.3.12/magick/operator.c:1564: undefined reference to `GOMP_critical_name_end' > /usr/local/lib/libGraphicsMagick.a(magick_libGraphicsMagick_la-operator.o): In function `QuantumDepthCB': > /home/chinsta/GraphicsMagick-1.3.12/magick/operator.c:575: undefined reference to `GOMP_critical_name_start' > /home/chinsta/GraphicsMagick-1.3.12/magick/operator.c:585: undefined reference to `GOMP_critical_name_end' > /home/chinsta/GraphicsMagick-1.3.12/magick/operator.c:585: undefined reference to `GOMP_critical_name_end' XOpenDisplay is coming from xlib, so you miss some development lib > > ....and it continues like that for a while. > > I assume it's a missing file, misplaced directory or something along those lines, but I need some help troubleshooting. > > I had a look at the config.log of an older octave-3.2.4, but it looks like the magick checking routine is completely different (and successful too) > > I did a search through the message archive for similar problems and there are references to a GraphicsMagick-devel. ?But I can't find this on the www.graphicsmagick.org site, and the references I found were RPMs for Debian and SuSE. ?I'm not sure whether this is what I need though (I'm using Slackware 13.0) > > If someone can give me an idea of where to go and what to do it would be much appreciated. > > cheers > > Andrew > > PS. apart from not detecting GraphicsMagick, Octave 3.4 built cleanly, though I did struggle getting BLAS, ATLAS & LAPACK built and installed correctly beforehand (mainly because I don't know what I'm doing!) > > Marco From chethanuniversal at gmail.com Sun Apr 24 11:05:51 2011 From: chethanuniversal at gmail.com (Chethan S) Date: Sun, 24 Apr 2011 21:35:51 +0530 Subject: make error: octave 3.4.0 building from source In-Reply-To: References: <19891.7267.242734.317588@coredump.lan> Message-ID: Hi all! I solved my problem this way. Its not actually the right way but it solved my problem. I installed 'octave3.2' from Ubuntu repository and then ran './configure' and 'make' for octave 3.4.0 installation from source. This time everything went fine with no errors. Later I uninstalled 'octave3.2' and ran 'sudo make install' to install the latest version! Thanks and regards, Chethan S. 2011/4/24 Chethan S > I think it is not the error mentioned there. As you might have seen, in my > case after I ran make as LANG=C make that "egrep: Invalid range end" > vanished. Also I don't see errors like > >> LC_ALL=de_DE.utf8 /usr/bin/texi2dvi /some/path/and/file.texi >> /usr/bin/texi2dvi: cannot read .//some/path/and/file.texi, skipping. >> > as mentioned in that link. > > > Thanks and regards, > > Chethan S. > > 2011/4/24 John W. Eaton > > On 23-Apr-2011, Jordi Guti?rrez Hermoso wrote: >> >> | 2011/4/23 Chethan S : >> | > I tried running ./configure and this time with LANG=C make. Still I >> | > encountered the same error: >> | > >> | > Making all in faq >> | > make[3]: Entering directory >> | > `/home/chethan/Applications/octave-3.4.0/doc/faq' >> | > TEXINPUTS="./..:$TEXINPUTS" \ >> | > MAKEINFO='/bin/sh >> | > /home/chethan/Applications/octave-3.4.0/build-aux/missing --run >> makeinfo >> | > -I .' \ >> | > texi2dvi OctaveFAQ.texi >> | > make[3]: *** [OctaveFAQ.dvi] Error 1 >> | > make[3]: Leaving directory >> `/home/chethan/Applications/octave-3.4.0/doc/faq' >> | > make[2]: *** [all-recursive] Error 1 >> | > make[2]: Leaving directory >> `/home/chethan/Applications/octave-3.4.0/doc' >> | > make[1]: *** [all-recursive] Error 1 >> | > make[1]: Leaving directory `/home/chethan/Applications/octave-3.4.0' >> | > make: *** [all] Error 2 >> | > >> | > except for "egrep: Invalid range end" which was missing! >> | > >> | >> | Well, I'm mystified. There isn't an error there at all, so I wonder >> | what make is seeing. >> | >> | At any rate, this is only about building the documentation. A bigger >> | workaround is to not build the documentation at all. Disable it from >> | the configure script. >> >> Is the problem the same as the one reported here >> >> >> http://old.nabble.com/texi2dvi%3A-locale-dependent-error-in-egrep--A-z--td28075122.html >> >> ? >> >> jwe >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From JohnCreighton_ at hotmail.com Sun Apr 24 17:30:26 2011 From: JohnCreighton_ at hotmail.com (John Creighton) Date: Sun, 24 Apr 2011 15:30:26 -0700 (PDT) Subject: readline error, ncurses? Message-ID: <1303684226488-3472181.post@n4.nabble.com> I'm installing octave in the vmwear lunix virtual machine used by sage I get the following errors when running configure: configure:50209: result: no configure:50223: WARNING: I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, or -ltermlib! configure:50242: checking for rl_set_keyboard_input_timeout in -lreadline configure:50275: gcc -o conftest -g -O2 -pthread conftest.c -lreadline >&5 /usr/local/lib/libreadline.so: undefined reference to `PC'+ /usr/local/lib/libreadline.so: undefined reference to `tgetflag' /usr/local/lib/libreadline.so: undefined reference to `tgetent' /usr/local/lib/libreadline.so: undefined reference to `UP' /usr/local/lib/libreadline.so: undefined reference to `tputs' /usr/local/lib/libreadline.so: undefined reference to `tgoto' /usr/local/lib/libreadline.so: undefined reference to `tgetnum' /usr/local/lib/libreadline.so: undefined reference to `BC' /usr/local/lib/libreadline.so: undefined reference to `tgetstr' collect2: ld returned 1 exit status configure:50275: $? = 1 configure: failed program was: Acording to: http://www.linuxquestions.org/questions/programming-9/undefined-reference-to-readline-494533/ I need the lncurses library. This makes me think that line configure:50223: should give me an error instead of a warning. Any advice? -- View this message in context: http://octave.1599824.n4.nabble.com/readline-error-ncurses-tp3472181p3472181.html Sent from the Octave - General mailing list archive at Nabble.com. From tduell at iinet.net.au Sun Apr 24 19:06:10 2011 From: tduell at iinet.net.au (Terry Duell) Date: Mon, 25 Apr 2011 10:06:10 +1000 Subject: Help please converting Matlab image code Message-ID: Hullo All, I have run in to difficulty finding a suitable 'translation' of some Matlab code. As I understand it, the purpose of this code is to adjust the histogram of of 'gray_in' to match reference image 'gray_reference'. The code obtains a histogram of reference gray image ('grey_reference' uint8 0-255) hist_reference = hist(double(gray_reference(:)),[0:255]); The output, 'hist_reference' appears to be a 255 vector of the bin counts. This is then used in the 'histeq' function along with another gray image ('gray_in' double 0-1); [j,t] = histeq(gray_in,hist_reference); and the output, 't' is then massaged to produce the an output image ('out') which is one of the 3 images making up an RGB. %% Now compute output image for a=1:size(gray_in,3) q = in(:,:,a); qm=interp1([0:255]/256,t(:),q(:)); out(:,:,a) = uint8(256 * reshape(qm,size(gray_in(:,:,a)))); The problem I have is that the Octave 'histeq' function baulks at being passed the vector 'hist_reference', as 'histeq' calls 'gray2ind' which will only accept a positive integer as it's second argument. I have spent some time looking through the available Octave functions, but have not yet seen any way of reproducing the effect of this code. Does anyone have any suggestions as to how this might be done? Cheers, -- Regards, Terry Duell From joonsoo.shin at gmail.com Mon Apr 25 07:50:14 2011 From: joonsoo.shin at gmail.com (neo7891) Date: Mon, 25 Apr 2011 05:50:14 -0700 (PDT) Subject: leasqr problem - covp is 'NA'!!! In-Reply-To: References: <1302883790276-3452439.post@n4.nabble.com> <4DAC8153.9080402@nist.gov> Message-ID: <1303735814149-3473092.post@n4.nabble.com> Thank you guys, I tried just with 3 parameters, and it worked! Thank you again!!! -- View this message in context: http://octave.1599824.n4.nabble.com/leasqr-problem-covp-is-NA-tp3452439p3473092.html Sent from the Octave - General mailing list archive at Nabble.com. From clustro at gmail.com Mon Apr 25 09:18:00 2011 From: clustro at gmail.com (clustro) Date: Mon, 25 Apr 2011 07:18:00 -0700 (PDT) Subject: Can't get vector arrow symbol to show up on plots Message-ID: <1303741080480-3473240.post@n4.nabble.com> Hello there, I cannot get the vector arrow symbol (among other things) to appear in the labels of my plots. For example: x = 1:10; y = x.^2; plot(x,y) title('\vec{x}') All that shows up in the title is "vecx", not an x with arrow over it. I also cannot get bold fonts to appear. If I try: title('\Sigma') I get an uppercase Greek sigma letter. But, if I try: title('\bf\Sigma') Instead I get "/Verdana-bold ", where is the correctly-printed uppercase Greek sigma letter symbol. I have tried: "set(0,'defaulttextinterpreter','latex'", as well as 'tex' and 'none' I have also tried: "set(gca,'interpreter','latex')", as well as 'tex' and 'none. What gives? Can anyone tell me what I am doing wrong? :[ Thanks, -Brad Ridder -- View this message in context: http://octave.1599824.n4.nabble.com/Can-t-get-vector-arrow-symbol-to-show-up-on-plots-tp3473240p3473240.html Sent from the Octave - General mailing list archive at Nabble.com. From berndheinze69 at yahoo.de Mon Apr 25 09:17:56 2011 From: berndheinze69 at yahoo.de (Bernd Heinze) Date: Mon, 25 Apr 2011 15:17:56 +0100 (BST) Subject: Bessel-filter problems Message-ID: <405892.42067.qm@web27706.mail.ukl.yahoo.com> Hello, I'm trying to use a bessel-filter to filter out frequencies out of a signal, but I keep on getting an error: fNyq = 2.5e9; fLow = 29e6; fHigh = 33e6; [b,a] = besself(10, [fLow/fNyq, fHigh/fNyq], 'z', 'stop'); error: bilinear: must have at least as many poles as zeroes in s-plane This error also occurs if I decrease the filter order to 2. Does anybody know how to resolve this error? Is there a way filtering a signal using the s-plane, as filter needs z-plane. Also is there some kind of "buttord" for the bessil filter computations? Thanks for your help! Bernd From jordigh at octave.org Mon Apr 25 09:24:48 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Mon, 25 Apr 2011 09:24:48 -0500 Subject: Efficiently iterating over Nd array in oct file Message-ID: I'm agonising over an implementation detail of bwlabeln. I need to iterate over each voxel of boolNDArray *and* consider each voxel's neighbours. If I use a linear index and just iterate up to boolNDArray::nelem(), I would have to call ind2sub for each pixel in order to consider its neighbours, and I'm trying to avoid that call. I was hoping for something like Array::next() if such a function existed or to impement it myself. Any other suggestions? Thanks, - Jordi G. H. From jordigh at octave.org Mon Apr 25 09:27:30 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Mon, 25 Apr 2011 09:27:30 -0500 Subject: Concurrent Octave installations and mkoctfile In-Reply-To: References: <133E218D-CAB5-4AC3-88DF-FCF00B3A077E@mac.com> Message-ID: 2011/4/21 Ben Abbott : > On Apr 21, 2011, at 11:49 PM, Jordi Guti?rrez Hermoso wrote: > >> 2011/4/21 Ben Abbott : >>> On Apr 21, 2011, at 9:44 PM, Jordi Guti?rrez Hermoso wrote: >>> >>>> Can I have a recommendation on how to have two separate Octave >>>> installations and easily use mkoctfile for both of them? >>> >>> I haven't tried, but have been giving some thought to attempting to >>> create a run-mkoctfile that mirrors the way run-octave works. >>> >>> Is there a reason that won't work? >> >> At first I thought this sounded like a great idea and was about to >> implement it, but then I thought a bit more... what about running that >> oct file afterwards? When you create it and link it, should its rpath >> point to the libraries inside the Octave build directory or the >> install directory or both? Would you need to make sure that >> run-mkoctfile from the build dir gives priority to the include and >> linking paths of the build and install directories? >> >> Maybe these questions have easy answers, maybe they don't. What do you >> think? > > Your suggestion to give priority to the include and linking paths of > the build and install directories sounds like a good idea. On second thought, it probably wasn't. The mkoctfile script already checks for the OCTAVE_HOME variable and points everything there if the variable is set. It was easier to install the development Octave build in a directory, point OCTAVE_HOME to that directory and call that installation's mkoctfile. Less work than futzing around with the locations and installation in the build directory. - Jordi G. H. From soren at hauberg.org Mon Apr 25 09:33:28 2011 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Mon, 25 Apr 2011 16:33:28 +0200 Subject: Efficiently iterating over Nd array in oct file In-Reply-To: References: Message-ID: <1303742008.1837.16.camel@hauberg-laptop> man, 25 04 2011 kl. 09:24 -0500, skrev Jordi Guti?rrez Hermoso: > I'm agonising over an implementation detail of bwlabeln. I need to > iterate over each voxel of boolNDArray *and* consider each voxel's > neighbours. If I use a linear index and just iterate up to > boolNDArray::nelem(), I would have to call ind2sub for each pixel in > order to consider its neighbours, and I'm trying to avoid that call. I > was hoping for something like Array::next() if such a > function existed or to impement it myself. Any other suggestions? I never found a good way of doing it :-( You can see what we did in 'convn' -- I think it is similar to your needs. S?ren From kerkklokker at gmail.com Mon Apr 25 14:21:19 2011 From: kerkklokker at gmail.com (kloof) Date: Mon, 25 Apr 2011 12:21:19 -0700 (PDT) Subject: =?UTF-8?Q?fields_not_found_in_struct_because_?= =?UTF-8?Q?of_'=C2=B5'_(micro)_symbol_in_field_name?= Message-ID: <1303759279734-3473913.post@n4.nabble.com> Dear all, How to overcome the following peculiarity?? >From an ascii data file I put the header section into a struct(). The {variable,value} sets of that header are properly put in the struct() with setfield(). On the command line I can extract the detector delay time with getfield(structname,'Det delay [?s]') But only from the command line! When I put this in a script it seems to not_find it ; probably due to the annoying '?' symbol (see below for why i think so). I see two possible solutions: 1) replace the '?' in the text before converting to a struct (setfield()). 2) replace the '?' in search text when using getfield(). In either case I can't seem the get the replacement working, or I don't understand howto: octave:16> ff=toascii("?") ff = 66 53 octave:17> char(ff) ans = B5 octave:18> b="ee?" b = ee? octave:19> regexprep (b,char(ff),'u') ans = ee? octave:20> strcat ('GG',char(ff),'t') ans = GGB5t octave:21> remarks: 1) The B5 code for the '?' symbol seems correct, but neither 'regexprep()' nor 'strcat()' seem to correlate the code with the symbol. 2) I'm running Octave 3.4.0, compiled on Ubuntu 10.10 (utf8) and the ascii data file is ISO-8859. questions: 1) Is this a utf8 <-> ISO-8859 problem? 2) does regexprep() understand the B5 code as a '?' symbol? Do I need to convert it? 3) In the commands as copied above, I have inserted the '?' into variable 'b' by copy-paste with the mouse inside my Octave terminal session. Does that change ISO-8859 into UTF8? 4) Does anybody have a better idea how to cope with symbols like this that become variable names in a struct? many thanks -- View this message in context: http://octave.1599824.n4.nabble.com/fields-not-found-in-struct-because-of-micro-symbol-in-field-name-tp3473913p3473913.html Sent from the Octave - General mailing list archive at Nabble.com. From g.p.biele at psykologi.uio.no Mon Apr 25 15:00:31 2011 From: g.p.biele at psykologi.uio.no (Guido Biele) Date: Mon, 25 Apr 2011 22:00:31 +0200 Subject: Problem with calling one octfile form another octfile Message-ID: <4DB5D2DF.9060209@psykologi.uio.no> Hi, Background: In the context of fitting some learning models to behavioral data I am using 2 octfiles. octfile (a) organizes a grid search and calls octfile (b) which implements a learning model. Problem: The value i get back from file (b) is "funny". I.e. I know that file (b) performs as expected. However, when i call (a) multiple times from (b), the first value I obtain from (a) is always ok, but all following values are incorrect (a constant positive number). I suspect I might be doing something wrong when i try to extract a double_value from the octave_list which holds the output from (a). Here is the relevant portion of the c++ code for octfile (a): ////////////////// begin code extract ////////////////// // define octave function to be used in grid search, the function handle is passed as the first argument to the grid-search octfile (a) octave_function *fcn = argv(0).function_value (); // intitialize octave_value variable to which output of (b) is allocated octave_value tmpLLH; // initialize double variable to pass model-fit (desired output of octfile (b)) double llh; // call octfile (b) from the grid-search octfile tmpLLH = feval(fcn, model_input, nargout); // get double from the octave_value variable llh = tmpLLH.double_value(); // i could also directly use feval(fcn, model_input, nargout)(0).double_value();, but this doesn't change my problem ... ////////////////// end code extract ////////////////// (the full file is also attached. I am c++ novice, so please excuse eventual oddities or inefficiencies) The above described problem persists if I simply pass the function that needs to be evaluated as a string. I do not think that the problem is in octfile (b) which implements the learning model, because this file produces fine results as long as I call it from a simple octave-m-file. Any help with this problem would be very much appreciated. Cheers - guido -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: run_fit_grid.cpp URL: From hpek at phys.au.dk Mon Apr 25 16:13:12 2011 From: hpek at phys.au.dk (Hans-Peter Engelund Kristiansen) Date: Mon, 25 Apr 2011 23:13:12 +0200 Subject: Gnuplot missing Message-ID: <20110425231312.13396zl18btlrz6w@webmail.nfit.au.dk> Hello I am running mac OS X 10.6.7 snow leopard, and would like a precompiled octave with gnuplot. That is not easy for me - please help Here is what I have done: "http://www.gnu.org/software/octave/" -> "Download" -> "Mac OS X Octave Forge" -> "Octave.app for Mac OS X" -> "2011-04-08 binary of Octave 3.4.0" -> "octave-3.4.0-i386.dmg" But the 'Extras' folder where gnuplot should be found is empty :-( and I can not find gnuplot on its own. Regards /Peter From jordigh at octave.org Mon Apr 25 16:19:05 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Mon, 25 Apr 2011 16:19:05 -0500 Subject: readline error, ncurses? In-Reply-To: <1303684226488-3472181.post@n4.nabble.com> References: <1303684226488-3472181.post@n4.nabble.com> Message-ID: On 24 April 2011 17:30, John Creighton wrote: > I'm installing octave in the vmwear lunix virtual machine used by sage I get > the following errors when running configure: > > configure:50209: result: no > configure:50223: WARNING: I couldn't find -ltermcap, -lterminfo, -lncurses, > -lcurses, or -ltermlib! You would need to install development libraries on that virtual machine, which can be difficult depending on the details of that virtual machine. Doesn't Sage already ship a precompiled Octave version? I was under the impression that it did. - Jordi G. H. From liamg at me.com Mon Apr 25 17:20:17 2011 From: liamg at me.com (Liam Groener) Date: Mon, 25 Apr 2011 15:20:17 -0700 Subject: Gnuplot missing In-Reply-To: <20110425231312.13396zl18btlrz6w@webmail.nfit.au.dk> References: <20110425231312.13396zl18btlrz6w@webmail.nfit.au.dk> Message-ID: <3B01EDE9-0629-4DA5-8282-33BE1D198D5F@me.com> On Apr 25, 2011, at 2:13 PM, Hans-Peter Engelund Kristiansen wrote: > Hello > > I am running mac OS X 10.6.7 snow leopard, and would like a precompiled octave with gnuplot. That is not easy for me - please help > > > Here is what I have done: > > "http://www.gnu.org/software/octave/" -> "Download" -> "Mac OS X Octave Forge" -> "Octave.app for Mac OS X" -> "2011-04-08 binary of Octave 3.4.0" -> "octave-3.4.0-i386.dmg" > > But the 'Extras' folder where gnuplot should be found is empty :-( > and I can not find gnuplot on its own. > > > Regards /Peter > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave You can download a newer build by clicking on the following link: http://upload.grenoble.cnrs.fr/telechargement/eOVUbOnrWB/octave-3.4.0-i386.dmg This download includes a dmg of gnuplot in its "Extras Folder." -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordigh at octave.org Mon Apr 25 17:23:02 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Mon, 25 Apr 2011 17:23:02 -0500 Subject: Can't get vector arrow symbol to show up on plots In-Reply-To: <1303741080480-3473240.post@n4.nabble.com> References: <1303741080480-3473240.post@n4.nabble.com> Message-ID: On 25 April 2011 09:18, clustro wrote: > I cannot get the vector arrow symbol (among other things) to appear in the > labels of my plots. What Octave version, what OS, how did you install it, what plotting backend are you using? (If you don't know, it's probably gnuplot). From jordigh at octave.org Mon Apr 25 18:13:47 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Mon, 25 Apr 2011 18:13:47 -0500 Subject: Efficiently iterating over Nd array in oct file In-Reply-To: <1303742008.1837.16.camel@hauberg-laptop> References: <1303742008.1837.16.camel@hauberg-laptop> Message-ID: 2011/4/25 S?ren Hauberg : > man, 25 04 2011 kl. 09:24 -0500, skrev Jordi Guti?rrez Hermoso: >> I'm agonising over an implementation detail of bwlabeln. I need to >> iterate over each voxel of boolNDArray *and* consider each voxel's >> neighbours. If I use a linear index and just iterate up to >> boolNDArray::nelem(), I would have to call ind2sub for each pixel in >> order to consider its neighbours, and I'm trying to avoid that call. I >> was hoping for something like Array::next() if such a >> function existed or to impement it myself. Any other suggestions? > > I never found a good way of doing it :-( You can see what we did in > 'convn' -- I think it is similar to your needs. Thanks, S?ren. I guess you mean the gymnastics around liboctave/oct-convn.cc:85 ? - Jordi G. H. From mail at chipmuenk.de Tue Apr 26 02:20:21 2011 From: mail at chipmuenk.de (Chipmuenk) Date: Tue, 26 Apr 2011 00:20:21 -0700 (PDT) Subject: Bessel-filter problems In-Reply-To: <405892.42067.qm@web27706.mail.ukl.yahoo.com> References: <405892.42067.qm@web27706.mail.ukl.yahoo.com> Message-ID: <1303802421890-3474882.post@n4.nabble.com> Hello Bernd, I'm also seeing strange kind of errors with the new besself function, additionally I get the error message "invalid use of script in index expression" But are you sure that you really want to construct such a filter? Your ratio between corner frequencies and the Nyquist frequency (2.5 GHz ???) is quite high. Throw in a filter order of 10 and you will get a filter with coefficients that are numerically ill-behaved. Constructing a butterworth filter from your data shows what I mean: The resulting coefficients range from 1 to 1e5, i.e. they differ in scale by about 17 bits. The other question is: Do you really need a bessel filter? If you need a near-linear phase and a gentle roll-off, FIR filters are used in most cases. Best regards, Christian -- View this message in context: http://octave.1599824.n4.nabble.com/Bessel-filter-problems-tp3473247p3474882.html Sent from the Octave - General mailing list archive at Nabble.com. From ilikolik at gmail.com Tue Apr 26 02:46:10 2011 From: ilikolik at gmail.com (olga_kruglova) Date: Tue, 26 Apr 2011 00:46:10 -0700 (PDT) Subject: nesting function error in leasqrdemo.m In-Reply-To: <1303478745199-3467958.post@n4.nabble.com> References: <1303458229231-3467565.post@n4.nabble.com> <201104221434.28564.martin@mhelm.de> <201104221450.13781.martin@mhelm.de> <201104221515.27759.martin@mhelm.de> <1303478745199-3467958.post@n4.nabble.com> Message-ID: <1303803970454-3474917.post@n4.nabble.com> No, I have not edited file. -- View this message in context: http://octave.1599824.n4.nabble.com/nesting-function-error-in-leasqrdemo-m-tp3467565p3474917.html Sent from the Octave - General mailing list archive at Nabble.com. From soren at hauberg.org Tue Apr 26 02:47:40 2011 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Tue, 26 Apr 2011 09:47:40 +0200 Subject: Efficiently iterating over Nd array in oct file In-Reply-To: References: <1303742008.1837.16.camel@hauberg-laptop> Message-ID: <1303804060.1798.3.camel@hauberg-laptop> man, 25 04 2011 kl. 18:13 -0500, skrev Jordi Guti?rrez Hermoso: > 2011/4/25 S?ren Hauberg : > > man, 25 04 2011 kl. 09:24 -0500, skrev Jordi Guti?rrez Hermoso: > >> I'm agonising over an implementation detail of bwlabeln. I need to > >> iterate over each voxel of boolNDArray *and* consider each voxel's > >> neighbours. If I use a linear index and just iterate up to > >> boolNDArray::nelem(), I would have to call ind2sub for each pixel in > >> order to consider its neighbours, and I'm trying to avoid that call. I > >> was hoping for something like Array::next() if such a > >> function existed or to impement it myself. Any other suggestions? > > > > I never found a good way of doing it :-( You can see what we did in > > 'convn' -- I think it is similar to your needs. > > Thanks, S?ren. I guess you mean the gymnastics around > liboctave/oct-convn.cc:85 ? Indeed I do. I did the first (brain-dead) implementation and Jaroslav made it quite a bit faster using the "gymnastics" (they're a bit hard to read, but I remember them being quite a bit faster than the straight-forward implementation. S?ren From martin at mhelm.de Tue Apr 26 04:14:50 2011 From: martin at mhelm.de (Martin Helm) Date: Tue, 26 Apr 2011 11:14:50 +0200 Subject: nesting function error in leasqrdemo.m In-Reply-To: <1303803970454-3474917.post@n4.nabble.com> References: <1303458229231-3467565.post@n4.nabble.com> <1303478745199-3467958.post@n4.nabble.com> <1303803970454-3474917.post@n4.nabble.com> Message-ID: <201104261114.50843.martin@mhelm.de> Am Dienstag, 26. April 2011, 09:46:10 schrieb olga_kruglova: > No, I have not edited file. > > -- > View this message in context: > http://octave.1599824.n4.nabble.com/nesting-function-error-in-leasqrdemo-m > -tp3467565p3474917.html Sent from the Octave - General mailing list archive > at Nabble.com. _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave That means you have no optim package loaded. What does pkg load optim tell you? Does it work afterwards? From kerkklokker at gmail.com Tue Apr 26 04:25:08 2011 From: kerkklokker at gmail.com (kloof) Date: Tue, 26 Apr 2011 02:25:08 -0700 (PDT) Subject: =?UTF-8?Q?Re:_fields_not_found_in_struct_becaus?= =?UTF-8?Q?e_of_'=C2=B5'_(micro)_symbol_in_field_name?= In-Reply-To: <1303759279734-3473913.post@n4.nabble.com> References: <1303759279734-3473913.post@n4.nabble.com> Message-ID: <1303809908199-3475032.post@n4.nabble.com> In 2006 there was a discussion on "Accepting arbitrary strings as structure field names": https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2006-November/005040.html but this does not concern 'composed' characters like '?', I think, but standard ascii symbols like '#', which are represented as 1 instead of 2 ascii integers. Below I have a string hdr{27} that contains a '?' symbol. octave:4> hdr{27} ans = Delay M2 [?s] 0 octave:5> toascii ("#") ans = 35 octave:6> toascii ("?") ans = 66 53 octave:7> toascii (hdr{27}) ans = Columns 1 through 13: 68 101 108 97 121 32 77 50 32 91 53 115 93 Columns 14 and 15: 9 48 octave:8> Again: on command line nr 6, I have pasted the '?' symbol using the mouse. The code [66 53] does not appear in the translation of the string hdr{27}. This means I cannot even replace or remove such characters in Octave, right? How can I tackle this problem? -- View this message in context: http://octave.1599824.n4.nabble.com/fields-not-found-in-struct-because-of-micro-symbol-in-field-name-tp3473913p3475032.html Sent from the Octave - General mailing list archive at Nabble.com. From andybuckle at gmail.com Tue Apr 26 04:45:06 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Tue, 26 Apr 2011 10:45:06 +0100 Subject: =?ISO-8859-1?Q?Re=3A_fields_not_found_in_struct_because_of_=27=B5=27_=28micr?= =?ISO-8859-1?Q?o=29_symbol_in_field_name?= In-Reply-To: <1303809908199-3475032.post@n4.nabble.com> References: <1303759279734-3473913.post@n4.nabble.com> <1303809908199-3475032.post@n4.nabble.com> Message-ID: On Tue, Apr 26, 2011 at 10:25 AM, kloof wrote: > In 2006 there was a discussion on "Accepting arbitrary strings as structure > field names": > https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2006-November/005040.html > > but this does not concern 'composed' characters like '?', I think, but > standard ascii symbols like '#', which are represented as 1 instead of 2 > ascii integers. > > Below I have a string hdr{27} that contains a '?' symbol. > > octave:4> hdr{27} > ans = Delay M2 [?s] ? ? 0 > > octave:5> toascii ("#") > ans = ?35 > octave:6> toascii ("?") > ans = > > ? 66 ? 53 > > > octave:7> toascii (hdr{27}) > ans = > > ?Columns 1 through 13: > > ? ?68 ? 101 ? 108 ? ?97 ? 121 ? ?32 ? ?77 ? ?50 ? ?32 ? ?91 ? ?53 ? 115 > 93 > > ?Columns 14 and 15: > > ? ? 9 ? ?48 > > octave:8> > > Again: on command line nr 6, I have pasted the '?' symbol using the mouse. > The code [66 53] does not appear in the translation of the string hdr{27}. > > This means I cannot even replace or remove such characters in Octave, right? > How can I tackle this problem? I had a problem using text from a file as variable names. I stripped all non alphanumeric chars like this var((var<'a' | var>'z') & (var<'A' | var>'Z') & (var<'0' | var>'9'))=[]; Does this work for you? (It is a shame that the mu is not replaced with micro or something) -- /* andy buckle */ From kerkklokker at gmail.com Tue Apr 26 05:02:56 2011 From: kerkklokker at gmail.com (kloof) Date: Tue, 26 Apr 2011 03:02:56 -0700 (PDT) Subject: =?UTF-8?Q?Re:_fields_not_found_in_struct_becaus?= =?UTF-8?Q?e_of_'=C2=B5'_(micro)_symbol_in_field_name?= In-Reply-To: References: <1303759279734-3473913.post@n4.nabble.com> <1303809908199-3475032.post@n4.nabble.com> Message-ID: <1303812176039-3475084.post@n4.nabble.com> Hi Andy, that indeed does the job! I had not thought about inverting the selection like you propose. It _does_ render the variable name somewhat non-informative, but at least I can use it now. thanks! if anyone knows how to handle non-standard (non-ascii?) symbols in field names, please post! -- View this message in context: http://octave.1599824.n4.nabble.com/fields-not-found-in-struct-because-of-micro-symbol-in-field-name-tp3473913p3475084.html Sent from the Octave - General mailing list archive at Nabble.com. From martin at mhelm.de Tue Apr 26 05:20:41 2011 From: martin at mhelm.de (Martin Helm) Date: Tue, 26 Apr 2011 12:20:41 +0200 Subject: nesting function error in leasqrdemo.m In-Reply-To: References: <1303458229231-3467565.post@n4.nabble.com> <201104261114.50843.martin@mhelm.de> Message-ID: <201104261220.42701.martin@mhelm.de> Am Dienstag, 26. April 2011, 11:23:47 schrieb Olga Kruglova: > On Tue, Apr 26, 2011 at 11:14 AM, Martin Helm wrote: > > Am Dienstag, 26. April 2011, 09:46:10 schrieb olga_kruglova: > > > No, I have not edited file. > > > > > > -- > > > > > View this message in context: > > http://octave.1599824.n4.nabble.com/nesting-function-error-in-leasqrdemo- > > m > > > > > -tp3467565p3474917.html Sent from the Octave - General mailing list > > > > archive > > > > > at Nabble.com. _______________________________________________ > > > Help-octave mailing list > > > Help-octave at octave.org > > > https://mailman.cae.wisc.edu/listinfo/help-octave > > > > That means you have no optim package loaded. > > What does > > pkg load optim > > tell you? > > Does it work afterwards? > > It tells me that "package is not installed". But how can I install it? > Thank you very much in advance! > > Olga Please keep the list on copy. Since you are using windows, the easiest way for you is to run the installer. At some point it shows you what it wants to install and there is a list of additional packages like optim you can select. You can select all of them with one exception. Please DO NOT select oct2mat!! Let the installer finish and optim will be available. From raju.mailinglists at gmail.com Tue Apr 26 07:30:47 2011 From: raju.mailinglists at gmail.com (Kamaraju S Kusumanchi) Date: Tue, 26 Apr 2011 08:30:47 -0400 Subject: OT: finding the weights used in weighted least squares regression Message-ID: The weighted least squares regression is done by solving W A x = W b for x, where W is nxn, A is nxm, x is mx1, b is nx1. W is a diagonal matrix. My question is that, in the above set up, if we are given A, x, b is it possible to solve for the W? thanks -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/ From bpabbott at mac.com Tue Apr 26 08:00:36 2011 From: bpabbott at mac.com (Ben Abbott) Date: Tue, 26 Apr 2011 09:00:36 -0400 Subject: OT: finding the weights used in weighted least squares regression In-Reply-To: References: Message-ID: On Apr 26, 2011, at 8:30 AM, Kamaraju S Kusumanchi wrote: > The weighted least squares regression is done by solving > W A x = W b > for x, where W is nxn, A is nxm, x is mx1, b is nx1. W is a diagonal matrix. > > My question is that, in the above set up, if we are given A, x, b is it > possible to solve for the W? > > thanks If I understand what you'd like to do, I think the solution is ... W = (A*(A\b)-b) ./ (A*x-b) Ben From peter.norlindh at gmail.com Tue Apr 26 09:38:44 2011 From: peter.norlindh at gmail.com (Peter Norlindh) Date: Tue, 26 Apr 2011 16:38:44 +0200 Subject: Arrays of Strings Message-ID: Hi, I have formed an array, B, of strings. A = ["one"; "two"; "three"]; B = cellstr (A); I would like to use the individual strings in a function, but cannot get to them. For example: B (1, 1) >> [1,1] = one (..as opposed to >>"one", which is what I want) How can I fish out the strings "one", "two" and "three"? /hpon -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrags2818 at gmail.com Tue Apr 26 06:49:23 2011 From: mrags2818 at gmail.com (ragan2328) Date: Tue, 26 Apr 2011 04:49:23 -0700 (PDT) Subject: Repeating bug (error: subscript indices must be either positive integers or logicals) Message-ID: <1303818563182-3475251.post@n4.nabble.com> I've been working on this program for the past few hours. It's simply a password generator. I had the program fully functioning, but upon restarting Octave, I keep on getting the message: error: subscript indices must be either positive integers or logicals. Here is the code for the main program: %P1: Pseudocode for Passgen (main) NumberofPass = input(['How many passwords do you require?: ']); if(isempty(NumberofPass)); NumberofPass = 1; endif; NumberofChar = input(['How many characters (6-12) do you require in each password?: ']); if(isempty(NumberofChar)); NumberofChar = 8; elseif(NumberofChar < 6); NumberofChar = 8; disp(['Number of characters is too low, defaulted to 8 characters']) elseif(NumberofChar > 12); NumberofChar = 8; disp(['Number of characters is too great, defaulted to 8 characters']) endif; lowercase = (['a':'z']); uppercase = (['A':'Z' ]); digits = [ '0':'9' ]; PasswordsList = zeros(NumberofPass,NumberofChar); for(passcount = 1:NumberofPass); ValidPassword = false; while(not(ValidPassword)); run OnePassword; run PassCheck; endwhile PasswordsList(passcount,:) = Password; endfor; Passwords = char(PasswordsList); disp(Passwords) ...And the code for the program OnePassword that seems to contain the issue: %P2: Pseudocode for OnePassword (function) letters = [uppercase lowercase]; randomletter = round(rand(1)*52); Password(1) = letters(randomletter); for(n = 2:NumberofChar); randomchar = round(rand(1)*62); allchar = [uppercase lowercase digits]; Password(n) = allchar(randomchar); endfor; return; The error points to the code in the OnePassword program, although when run separately, no issue exists: Password(n) = allchar(randomchar); Although all was normal up until restart. I'm not sure why it's registering this error. Help would be appreciated. -- View this message in context: http://octave.1599824.n4.nabble.com/Repeating-bug-error-subscript-indices-must-be-either-positive-integers-or-logicals-tp3475251p3475251.html Sent from the Octave - General mailing list archive at Nabble.com. From constant3131 at yahoo.fr Tue Apr 26 07:29:10 2011 From: constant3131 at yahoo.fr (constant31) Date: Tue, 26 Apr 2011 05:29:10 -0700 (PDT) Subject: Octave 3.3.91 - impossible to install packages and built-in oct files... Message-ID: <1303820950921-3475338.post@n4.nabble.com> Hello, I installed Octave 3.2.4 from the official setup exe on Windows Vista. All the packages are installed and all work. However, after installing from a zip the 3.3.91 version from the site of Tatsuro Matsuoka: http://www.tatsuromatsuoka.com/octave/Eng/Win/ I tried to add packages to Octave. This was impossible and I'm very frustrated. I copied all the needed packages in the folder /share/octave/packages, each one with the defaul name after untaring the forge archive. When I type: > pkg load optim (for exemple), Octave says: > warning: addpath: C:\Octave\3_3_91\share\octave\packages\miscella: No such file or directory Is like a stupid truncation of the path .... I tried to find WHERE Octave put the list of the folders added in the path with 'addpath' and 'savepath'... but impossible to find too. On the other hand, not only the packages is impossible to add, but the built-in libraries contained in the folder 'lib' (there are many precompiled oct files for some packages) too are impossible to add to Octave. Maybe one by one with 'addpath' but this seems a little bit stupid to do in this way, because there are so many. In Octave 3.2.4 these files are installed in the folder : C:\Octave\3.2.4_gcc-4.4.0\libexec\octave\packages and are automatically recognized. The 3.3.91 version doesn't recognize them. After typing 'help numgradient' for exemple (a compiled function from the optim package), Octave says > error: help: `numgradient' not found Please help me or tell me where to read the corresponding info. Thank you by advance, Constant -- View this message in context: http://octave.1599824.n4.nabble.com/Octave-3-3-91-impossible-to-install-packages-and-built-in-oct-files-tp3475338p3475338.html Sent from the Octave - General mailing list archive at Nabble.com. From clustro at gmail.com Tue Apr 26 09:49:22 2011 From: clustro at gmail.com (clustro) Date: Tue, 26 Apr 2011 07:49:22 -0700 (PDT) Subject: Can't get vector arrow symbol to show up on plots In-Reply-To: References: <1303741080480-3473240.post@n4.nabble.com> Message-ID: <1303829362141-3475631.post@n4.nabble.com> Jordi Guti?rrez Hermoso-2 wrote: > > What Octave version, what OS, how did you install it, what plotting > backend are you using? (If you don't know, it's probably gnuplot). > > 1. Octave version = 3.2.3 2. OS = Ubuntu 10.04.2 3. Installation method = I got Octave from the Ubuntu Software Center. 4. Plotting backend = gnuplot (at least, I am pretty sure it is. My plot windows, when minimized, show up on the bottom panel as "gplt") -- View this message in context: http://octave.1599824.n4.nabble.com/Can-t-get-vector-arrow-symbol-to-show-up-on-plots-tp3473240p3475631.html Sent from the Octave - General mailing list archive at Nabble.com. From bpabbott at mac.com Tue Apr 26 10:12:38 2011 From: bpabbott at mac.com (Ben Abbott) Date: Tue, 26 Apr 2011 11:12:38 -0400 Subject: Arrays of Strings In-Reply-To: References: Message-ID: <57A3960D-942F-46D4-AC1A-3D0A8C368088@mac.com> On Apr 26, 2011, at 10:38 AM, Peter Norlindh wrote: > Hi, > > I have formed an array, B, of strings. > > A = ["one"; "two"; "three"]; > B = cellstr (A); > > I would like to use the individual strings in a function, but cannot get to them. For example: > > B (1, 1) > >> [1,1] = one (..as opposed to >>"one", which is what I want) > > How can I fish out the strings "one", "two" and "three"? > > /hpon You can do what you want by using the curly parentheses to index the cell. B = {"one", "two", "three"}; B{1} ans = one Ben From daryl at daryllee.com Tue Apr 26 12:20:58 2011 From: daryl at daryllee.com (Daryl Lee) Date: Tue, 26 Apr 2011 11:20:58 -0600 Subject: Command line parameters Message-ID: <4DB6FEFA.8040702@daryllee.com> I'm fairly new to Octave. I've figured out how to pass command-line arguments to a script, but only if that script is an executable script or called from the system command line, a la "$ octave myscript.m arg1 arg2". Is there a way to do so from the Octave console? When I am at the Octave prompt and type "myscript arg1 arg2" I get "error: invalid use of script in index expression." I'm using Octave 3.2.4 on a Windows 7 64-bit laptop. Here is the script that I have so far: ==================== % Display command line printf('%s; %d arguments\n', program_name(), nargin); arg_list = argv(); for i = 1:nargin printf('%d argument = %s\n', i, arg_list{i}); endfor printf('\n'); ==================== -- Daryl Lee From martin at mhelm.de Tue Apr 26 12:36:34 2011 From: martin at mhelm.de (Martin Helm) Date: Tue, 26 Apr 2011 19:36:34 +0200 Subject: Command line parameters In-Reply-To: <4DB6FEFA.8040702@daryllee.com> References: <4DB6FEFA.8040702@daryllee.com> Message-ID: <201104261936.35081.martin@mhelm.de> Am Dienstag, 26. April 2011, 19:20:58 schrieb Daryl Lee: > I'm fairly new to Octave. I've figured out how to pass command-line > arguments to a script, but only if that script is an executable script or > called from the system command line, a la "$ octave myscript.m arg1 arg2". > Is there a way to do so from the Octave console? When I am at the Octave > prompt and type "myscript arg1 arg2" I get "error: invalid use of script in > index expression." I'm using Octave 3.2.4 on a Windows 7 64-bit laptop. > > Here is the script that I have so far: > ==================== > % Display command line > > printf('%s; %d arguments\n', program_name(), nargin); > arg_list = argv(); > for i = 1:nargin > printf('%d argument = %s\n', i, arg_list{i}); > endfor > > printf('\n'); > ==================== I am really not sure if I understood what you want. But what about system("octave myscript.m a b") at the octave command prompt? From daryl at daryllee.com Tue Apr 26 13:45:42 2011 From: daryl at daryllee.com (Daryl Lee) Date: Tue, 26 Apr 2011 12:45:42 -0600 Subject: Command line parameters In-Reply-To: <201104261936.35081.martin@mhelm.de> References: <4DB6FEFA.8040702@daryllee.com> <201104261936.35081.martin@mhelm.de> Message-ID: <4DB712D6.7000109@daryllee.com> On 4/26/2011 11:36 AM, Martin Helm wrote: > Am Dienstag, 26. April 2011, 19:20:58 schrieb Daryl Lee: >> I'm fairly new to Octave. I've figured out how to pass command-line >> arguments to a script, but only if that script is an executable script or >> called from the system command line, a la "$ octave myscript.m arg1 arg2". >> Is there a way to do so from the Octave console? When I am at the Octave >> prompt and type "myscript arg1 arg2" I get "error: invalid use of script in >> index expression." I'm using Octave 3.2.4 on a Windows 7 64-bit laptop. >> >> Here is the script that I have so far: >> ==================== >> % Display command line >> >> printf('%s; %d arguments\n', program_name(), nargin); >> arg_list = argv(); >> for i = 1:nargin >> printf('%d argument = %s\n', i, arg_list{i}); >> endfor >> >> printf('\n'); >> ==================== > > I am really not sure if I understood what you want. But what about > system("octave myscript.m a b") > > at the octave command prompt? > > Well, that works, but the value of arg_list (or any other variable, I'm guessing) isn't available to me after the script terminates. It seems to me (again, perhaps naively) that one primary reason for using the console in the first place is to be to be able to go in after a script runs and examine the values as a debugging step. -- Daryl Lee From martin at mhelm.de Tue Apr 26 14:30:32 2011 From: martin at mhelm.de (Martin Helm) Date: Tue, 26 Apr 2011 21:30:32 +0200 Subject: Command line parameters In-Reply-To: <4DB712D6.7000109@daryllee.com> References: <4DB6FEFA.8040702@daryllee.com> <201104261936.35081.martin@mhelm.de> <4DB712D6.7000109@daryllee.com> Message-ID: <201104262130.33163.martin@mhelm.de> Am Dienstag, 26. April 2011, 20:45:42 schrieb Daryl Lee: > Well, that works, but the value of arg_list (or any other variable, I'm > guessing) isn't available to me after the script terminates. It seems to > me (again, perhaps naively) that one primary reason for using the console > in the first place is to be to be able to go in after a script runs and > examine the values as a debugging step. I do not really understand that - if you need to pass values and get values back - why not simply write a function for this. That is what functions are for. From jwe at octave.org Tue Apr 26 14:34:51 2011 From: jwe at octave.org (John W. Eaton) Date: Tue, 26 Apr 2011 15:34:51 -0400 Subject: Command line parameters In-Reply-To: <4DB712D6.7000109@daryllee.com> References: <4DB6FEFA.8040702@daryllee.com> <201104261936.35081.martin@mhelm.de> <4DB712D6.7000109@daryllee.com> Message-ID: <19895.7771.252167.24238@coredump.lan> On 26-Apr-2011, Daryl Lee wrote: | On 4/26/2011 11:36 AM, Martin Helm wrote: | > Am Dienstag, 26. April 2011, 19:20:58 schrieb Daryl Lee: | >> I'm fairly new to Octave. I've figured out how to pass command-line | >> arguments to a script, but only if that script is an executable script or | >> called from the system command line, a la "$ octave myscript.m arg1 arg2". | >> Is there a way to do so from the Octave console? When I am at the Octave | >> prompt and type "myscript arg1 arg2" I get "error: invalid use of script in | >> index expression." I'm using Octave 3.2.4 on a Windows 7 64-bit laptop. | >> | >> Here is the script that I have so far: | >> ==================== | >> % Display command line | >> | >> printf('%s; %d arguments\n', program_name(), nargin); | >> arg_list = argv(); | >> for i = 1:nargin | >> printf('%d argument = %s\n', i, arg_list{i}); | >> endfor | >> | >> printf('\n'); | >> ==================== | > | > I am really not sure if I understood what you want. But what about | > system("octave myscript.m a b") | > | > at the octave command prompt? | > | > | | Well, that works, but the value of arg_list (or any other variable, I'm | guessing) isn't available to me after the script terminates. It seems to me | (again, perhaps naively) that one primary reason for using the console in | the first place is to be to be able to go in after a script runs and examine | the values as a debugging step. Scripts in Octave do not accept arguments, but functions do, so maybe you want to use functions instead, and have your function return the values you need? But if you insist on using a script, you just need to define the variables it needs before calling it since the script is executed in the same top-level scope as the commands you type at the prompt. So you could write something like if (! exist ("arg_list", "var")) arg_list = argv (); endif ... in your script so that it would use the argv function if arg_list was not already defined. When calling it from the command line, you could use arg_list = { ... }; myscript to first define arg_list then execute the script. jwe From andybuckle at gmail.com Tue Apr 26 14:39:50 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Tue, 26 Apr 2011 20:39:50 +0100 Subject: Problem with calling one octfile form another octfile In-Reply-To: <4DB5D2DF.9060209@psykologi.uio.no> References: <4DB5D2DF.9060209@psykologi.uio.no> Message-ID: On Mon, Apr 25, 2011 at 9:00 PM, Guido Biele wrote: > Hi, > > Background: > In the context of fitting some learning models to behavioral data I am using > 2 octfiles. octfile (a) organizes a grid search and calls octfile (b) which > implements a learning model. > > Problem: > The value i get back from file (b) is "funny". I.e. I know that file (b) > performs as expected. However, when i call (a) multiple times from (b), the > first value I obtain from (a) is always ok, but all following values are > incorrect (a constant positive number). > I suspect I might be doing something wrong when i try to extract a > double_value from the octave_list which holds the output from (a). Here is > the relevant portion of the c++ code for octfile (a): > > ////////////////// begin code extract ////////////////// > ?// define octave function to be used in grid search, the function handle is > passed as the first argument to the grid-search octfile (a) > ?octave_function *fcn = argv(0).function_value (); > > // intitialize octave_value variable to which output of (b) is allocated > octave_value tmpLLH; > > // initialize double variable to pass model-fit (desired output of octfile > (b)) > double llh; > > // call octfile (b) from the grid-search octfile > tmpLLH = feval(fcn, model_input, nargout); > // get double from the octave_value variable > llh = tmpLLH.double_value(); > > // i could also directly use feval(fcn, model_input, > nargout)(0).double_value();, but this doesn't change my problem ... > ////////////////// end code extract ////////////////// > > (the full file is also attached. I am c++ novice, so please excuse eventual > oddities or inefficiencies) > > The above described problem persists if I simply pass the function that > needs to be evaluated as a string. > I do not think that the problem is in octfile (b) which implements the > learning model, because this file produces fine results as long as I call it > from a simple octave-m-file. > > Any help with this problem would be very much appreciated. > > Cheers - guido > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > > (I have not had the time to look at your code in detail). When I have called one oct-file from another, I have implemented a C++ interface to function b, (try to avoid feval). I think this should be faster. With luck, it will also fix your problem. -- /* andy buckle */ From felipo.bacani at gmail.com Tue Apr 26 14:50:12 2011 From: felipo.bacani at gmail.com (fBacani) Date: Tue, 26 Apr 2011 12:50:12 -0700 (PDT) Subject: Piecewise function in octave In-Reply-To: References: <1303847412832-1633239.post@n4.nabble.com> <1303847412834-1633241.post@n4.nabble.com> Message-ID: <1303847412792-3476357.post@n4.nabble.com> Guys, thank you so much for this thread! I've implemented a triangular function using this idea, here's the code: fC= @(x,a,b) (x-a)/(b-a); fD= @(x,b,c) (c-x)/(c-b); f2= @(x,a,b,c) fC(x,a,b) .* (x < b) + 1 .* (x==b) + fD(x,b,c) .* (x>b); f1= @(x,a,b,c) 0 .* (x<a) + f2(x,a,b,c) .* (x>a); f = @(x,a,b,c) f1(x,a,b,c) .*(x<c) + 0 .* (x>c); mesh = @(a,c) [a-1:.1:c+1] triang = @(a,b,c) plot(mesh(a,c),f(mesh(a,c),a,b,c)); The triangular function below: http://octave.1599824.n4.nabble.com/file/n3476357/Captura_de_tela.png was generated calling "triang(1,2,4)". Cheers, Felipo -- View this message in context: http://octave.1599824.n4.nabble.com/Piecewise-function-in-octave-tp1633239p3476357.html Sent from the Octave - General mailing list archive at Nabble.com. From berndheinze69 at yahoo.de Tue Apr 26 15:10:36 2011 From: berndheinze69 at yahoo.de (Bernd Heinze) Date: Tue, 26 Apr 2011 21:10:36 +0100 (BST) Subject: AW: Bessel-filter problems In-Reply-To: <405892.42067.qm@web27706.mail.ukl.yahoo.com> Message-ID: <141316.88931.qm@web27706.mail.ukl.yahoo.com> Hello Christian, thanks for your reply. Unfortunately I'm not an filter expert, I played around with Diadem and decided that a Bessel filter with said parameters gives me the best results. I assumed if it works in Diadem it will also work in Octave. > But are you sure that you really want to construct such a filter? Your ratio > between corner frequencies and the Nyquist frequency (2.5 GHz ???) is quite > high. Throw in a filter order of 10 and you will get a filter with > coefficients that are numerically ill-behaved. The data is taken from an oscilloscope which has a sampling rate of 5 GHz. As my signal contains many high frequencies this sampling rate is necessary. (Although it might be possible to reduce it by a factor of 2 or 4) > Constructing a butterworth filter from your data shows what I mean: The > resulting coefficients range from 1 to 1e5, i.e. they differ in scale by > about 17 bits. I assume this means that by using the filter I might get larger "errors" or imprecissions in my signal? Regards, Bernd From forkandwait at gmail.com Tue Apr 26 15:36:31 2011 From: forkandwait at gmail.com (fork) Date: Tue, 26 Apr 2011 20:36:31 +0000 (UTC) Subject: Command line parameters References: <4DB6FEFA.8040702@daryllee.com> Message-ID: Daryl Lee daryllee.com> writes: > > When I am at the Octave > prompt and type "myscript arg1 arg2" I get "error: i There is a vocabulary issue here, I think: "scripts" (version 1) are files with octave code that is run from the octave prompt as if they had been "sourced". The octave session is the scope for these files, so they just see the currently assigned variables and assign variables that can be seen after the script falls off the end of the file. They don't take parameters, they just run in current scope. argv and friends are (basically) meaningless when run this way. You generally don't want to use them "scripts" (version 2) are executable files run from the _shell_ prompt, which have to handle input parameters from outside octave; argv etc are used here. These are very useful, since they allow real math processing in the unix environment. "functions" are, well, functions that take parameters using the traditional f(x,y) syntax we all love so well. These can _only_ be run within an octave session or a script; they can't be run from the shell prompt. From forkandwait at gmail.com Tue Apr 26 15:42:07 2011 From: forkandwait at gmail.com (fork) Date: Tue, 26 Apr 2011 20:42:07 +0000 (UTC) Subject: Command line parameters References: <4DB6FEFA.8040702@daryllee.com> Message-ID: fork gmail.com> writes: > > Daryl Lee daryllee.com> writes: > > > > > When I am at the Octave > > prompt and type "myscript arg1 arg2" I get "error: i > > There is a vocabulary issue here, I think: > > "scripts" (version 1) are files with octave code that is run from the octave > prompt as if they had been "sourced". So in the above, you would assign variables however the script might need them, then just call "myscript". OR, you would open a _shell_ and run $ myscript arg1 arg2 What you probably want is to write a _function_ and call it as "myfunc(arg1, arg2)" in the octave prompt From daryl at daryllee.com Tue Apr 26 16:08:07 2011 From: daryl at daryllee.com (Daryl Lee) Date: Tue, 26 Apr 2011 15:08:07 -0600 Subject: Command line parameters In-Reply-To: <19895.7771.252167.24238@coredump.lan> References: <4DB6FEFA.8040702@daryllee.com> <201104261936.35081.martin@mhelm.de> <4DB712D6.7000109@daryllee.com> <19895.7771.252167.24238@coredump.lan> Message-ID: <4DB73437.7010505@daryllee.com> On 4/26/2011 1:34 PM, John W. Eaton wrote: > On 26-Apr-2011, Daryl Lee wrote: > > | On 4/26/2011 11:36 AM, Martin Helm wrote: > |> Am Dienstag, 26. April 2011, 19:20:58 schrieb Daryl Lee: > |>> I'm fairly new to Octave. I've figured out how to pass command-line > |>> arguments to a script, but only if that script is an executable script or > |>> called from the system command line, a la "$ octave myscript.m arg1 arg2". > |>> Is there a way to do so from the Octave console? When I am at the Octave > |>> prompt and type "myscript arg1 arg2" I get "error: invalid use of script in > |>> index expression." I'm using Octave 3.2.4 on a Windows 7 64-bit laptop. > |>> > |>> Here is the script that I have so far: > |>> ==================== > |>> % Display command line > |>> > |>> printf('%s; %d arguments\n', program_name(), nargin); > |>> arg_list = argv(); > |>> for i = 1:nargin > |>> printf('%d argument = %s\n', i, arg_list{i}); > |>> endfor > |>> > |>> printf('\n'); > |>> ==================== > |> > |> I am really not sure if I understood what you want. But what about > |> system("octave myscript.m a b") > |> > |> at the octave command prompt? > |> > |> > | > | Well, that works, but the value of arg_list (or any other variable, I'm > | guessing) isn't available to me after the script terminates. It seems to me > | (again, perhaps naively) that one primary reason for using the console in > | the first place is to be to be able to go in after a script runs and examine > | the values as a debugging step. > > Scripts in Octave do not accept arguments, but functions do, so maybe > you want to use functions instead, and have your function return the > values you need? > > But if you insist on using a script, you just need to define the > variables it needs before calling it since the script is executed in > the same top-level scope as the commands you type at the prompt. So > you could write something like > > if (! exist ("arg_list", "var")) > arg_list = argv (); > endif > > ... > > in your script so that it would use the argv function if arg_list was > not already defined. When calling it from the command line, you could > use > > arg_list = { ... }; > myscript > > to first define arg_list then execute the script. > > jwe > > That works nicely. Thanks! I'm scrambling around trying to get a real bit of work done and figure out a whole new tool to do it with. All the help is greatly appreciated. -- Daryl Lee From lists at juliensalort.org Tue Apr 26 16:20:38 2011 From: lists at juliensalort.org (Julien Salort) Date: Tue, 26 Apr 2011 23:20:38 +0200 Subject: Gnuplot missing References: <20110425231312.13396zl18btlrz6w@webmail.nfit.au.dk> Message-ID: Hans-Peter Engelund Kristiansen writes: > I am running mac OS X 10.6.7 snow leopard, and would like a > precompiled octave with gnuplot. That is not easy for me - please help > > Here is what I have done: > > "http://www.gnu.org/software/octave/" -> "Download" -> "Mac OS X > Octave Forge" -> "Octave.app for Mac OS X" -> "2011-04-08 binary of > Octave 3.4.0" -> "octave-3.4.0-i386.dmg" I have built a new version that includes a Gnuplot (built by Pantxo Diribarne). Since it has not been uploaded to sourceforge, I have just added a permanent link on my personal website: Hope this helps, Julien -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on a mailing list? From raju.mailinglists at gmail.com Wed Apr 27 00:19:44 2011 From: raju.mailinglists at gmail.com (Kamaraju S Kusumanchi) Date: Wed, 27 Apr 2011 01:19:44 -0400 Subject: OT: finding the weights used in weighted least squares regression References: Message-ID: Ben Abbott wrote: > > If I understand what you'd like to do, I think the solution is ... > > W = (A*(A\b)-b) ./ (A*x-b) > No. This is not the solution. Consider the following example octave:10> n=5, m=2, W = diag(rand(n,1)), A = rand(n,m), b = rand(n,1), x = (W*A) \ (W*b), (A*(A\b)-b) ./ (A*x-b) n = 5 m = 2 W = 0.63718 0.00000 0.00000 0.00000 0.00000 0.00000 0.75466 0.00000 0.00000 0.00000 0.00000 0.00000 0.69982 0.00000 0.00000 0.00000 0.00000 0.00000 0.08992 0.00000 0.00000 0.00000 0.00000 0.00000 0.94621 A = 0.833095 0.568790 0.792483 0.536521 0.702069 0.588282 0.036704 0.529085 0.238762 0.427252 b = 0.86356 0.77943 0.77652 0.98000 0.49344 x = 0.32941 0.97441 ans = 2.07510 -7.79993 2.55568 0.23533 112.87186 Hence W is not same as (A*(A\b)-b) ./ (A*x-b) . thanks -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/ From shermanjj at gmail.com Wed Apr 27 00:48:53 2011 From: shermanjj at gmail.com (James Sherman Jr.) Date: Wed, 27 Apr 2011 01:48:53 -0400 Subject: OT: finding the weights used in weighted least squares regression In-Reply-To: References: Message-ID: On Wed, Apr 27, 2011 at 1:19 AM, Kamaraju S Kusumanchi < raju.mailinglists at gmail.com> wrote: > Ben Abbott wrote: > > > > If I understand what you'd like to do, I think the solution is ... > > > > W = (A*(A\b)-b) ./ (A*x-b) > > > > No. This is not the solution. Consider the following example > > octave:10> n=5, m=2, W = diag(rand(n,1)), A = rand(n,m), b = rand(n,1), x = > (W*A) \ (W*b), (A*(A\b)-b) ./ (A*x-b) > n = 5 > m = 2 > W = > > 0.63718 0.00000 0.00000 0.00000 0.00000 > 0.00000 0.75466 0.00000 0.00000 0.00000 > 0.00000 0.00000 0.69982 0.00000 0.00000 > 0.00000 0.00000 0.00000 0.08992 0.00000 > 0.00000 0.00000 0.00000 0.00000 0.94621 > > A = > > 0.833095 0.568790 > 0.792483 0.536521 > 0.702069 0.588282 > 0.036704 0.529085 > 0.238762 0.427252 > > b = > > 0.86356 > 0.77943 > 0.77652 > 0.98000 > 0.49344 > > x = > > 0.32941 > 0.97441 > > ans = > > 2.07510 > -7.79993 > 2.55568 > 0.23533 > 112.87186 > > > Hence W is not same as (A*(A\b)-b) ./ (A*x-b) . > > thanks > -- > Kamaraju S Kusumanchi > http://malayamaarutham.blogspot.com/ > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > This seems like an ill-posed problem to me. (or in other words the answer is no, you can't solve for W or at least not a specific W). If you're given A, x, and b, then either 1) Ax =b, then no matter what W you choose, left multiplying by W on both sides gives you a true statement WAx = Wb or 2) Ax ~=b, then if you want to solve for a W such that WAx = Wb, equates to W(Ax-b) = 0, which is to say that as long as Ax-b is in the null space of W (or that Ax-b is an eigenvector with eigenvalue 0) you are free to choose any W that satisfies this condition. This is in essence a linear system with n^2 unknowns (size of W) with only n equations. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at chipmuenk.de Wed Apr 27 06:12:05 2011 From: mail at chipmuenk.de (Chipmuenk) Date: Wed, 27 Apr 2011 04:12:05 -0700 (PDT) Subject: AW: Bessel-filter problems In-Reply-To: <141316.88931.qm@web27706.mail.ukl.yahoo.com> References: <405892.42067.qm@web27706.mail.ukl.yahoo.com> <141316.88931.qm@web27706.mail.ukl.yahoo.com> Message-ID: <1303902725023-3477805.post@n4.nabble.com> Hello Bernd, given a sampling rate of 5 GHz (or 1 GHz as well), you can only use the simplest of DSP in the fastest available technology, i.e. you would have to design your own ASIC (on which hardware do you plan to do your number crunching?) Even with a custom-specific IC, you would have to use very short wordlengths to perform multiplications and additions in the given time frame. Even with a cascaded filter implementation (much more robust to coefficient and data quantization than direct form filters), I would guess you probably need coefficients with at least 12 ... 14 bit wordlength and about the same for your data. If your coefficients are too short, your filter may easily become unstable (poles outside unit circle) or you may end up with massive errors in your filter characteristic. Oppenheim / Schafer, "Discrete-time signal processing" gives a good desription of these effects in fixpoint filters. What about an analog solution? You're way up in the RF domain. Good luck, Christian -- View this message in context: http://octave.1599824.n4.nabble.com/Bessel-filter-problems-tp3473247p3477805.html Sent from the Octave - General mailing list archive at Nabble.com. From andybuckle at gmail.com Wed Apr 27 06:18:44 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Wed, 27 Apr 2011 12:18:44 +0100 Subject: Octave 3.3.91 - impossible to install packages and built-in oct files... In-Reply-To: <1303820950921-3475338.post@n4.nabble.com> References: <1303820950921-3475338.post@n4.nabble.com> Message-ID: On Tue, Apr 26, 2011 at 1:29 PM, constant31 wrote: > Hello, > > I installed Octave 3.2.4 from the official setup exe on Windows Vista. All > the packages are installed and all work. > > However, after installing from a zip the 3.3.91 version from the site of > Tatsuro Matsuoka: > ? http://www.tatsuromatsuoka.com/octave/Eng/Win/ > I tried to add packages to Octave. This was impossible and I'm very > frustrated. > > I copied all the needed packages in the folder /share/octave/packages, each > one with the defaul name after untaring the forge archive. > > When I type: > ?> pkg load optim ?(for exemple), Octave says: > ?> warning: addpath: C:\Octave\3_3_91\share\octave\packages\miscella: No > such file or directory > > Is like a stupid truncation of the path .... > > I tried to find WHERE Octave put the list of the folders added in the path > with 'addpath' and 'savepath'... but impossible to find too. > > On the other hand, not only the packages is impossible to add, but the > built-in libraries contained in the folder 'lib' (there are many precompiled > oct files for some packages) too are impossible to add to Octave. Maybe one > by one with 'addpath' but this seems a little bit stupid to do in this way, > because there are so many. > > In Octave 3.2.4 these files are installed in the folder : > ?C:\Octave\3.2.4_gcc-4.4.0\libexec\octave\packages > and are automatically recognized. The 3.3.91 version doesn't recognize them. > After typing 'help numgradient' for exemple (a compiled function from the > optim package), Octave says >> error: help: `numgradient' not found > > Please help me or tell me where to read the corresponding info. Thank you by > advance, > Constant I have not tried copying packages between installations. I guess you would need to look carefully at what was needed to install a package. have you tried getting new packages from sourceforge http://octave.sourceforge.net/packages.php and doing pkg install foo.tar.gz ? -- /* andy buckle */ From sergstesh at yahoo.com Wed Apr 27 06:26:35 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Wed, 27 Apr 2011 04:26:35 -0700 (PDT) Subject: AW: Bessel-filter problems Message-ID: <508329.26747.qm@web112110.mail.gq1.yahoo.com> --- On Tue, 4/26/11, Bernd Heinze wrote: > From: Bernd Heinze > Subject: AW: Bessel-filter problems > To: help-octave at octave.org > Date: Tuesday, April 26, 2011, 1:10 PM > Hello Christian, > > thanks for your reply. Unfortunately I'm not an filter > expert, I played around with Diadem and decided that a > Bessel filter with said parameters gives me the best > results. I assumed if it works in Diadem it will also work > in Octave. > > > > But are you sure that you really want to construct > such a filter? Your ratio > > between corner frequencies and the Nyquist frequency > (2.5 GHz ???) is quite > > high. Throw in a filter order of 10 and you will get a > filter with > > coefficients that are numerically ill-behaved. > > The data is taken from an oscilloscope which has a sampling > rate of 5 GHz. As my signal contains many high frequencies > this sampling rate is necessary. (Although it might be > possible to reduce it by a factor of 2 or 4) > > > Constructing a butterworth filter from your data shows > what I mean: The > > resulting coefficients range from 1 to 1e5, i.e. they > differ in scale by > > about 17 bits. > > I assume this means that by using the filter I might get > larger "errors" or imprecissions in my signal? > > Regards, > Bernd One has to be quite careful dealing with numeric accuracy. Please find below an Email from 2008 of mine with a practical demo/recipe attached (butterworth_numeric_accuracy.m). Regards, Sergei. The Email from 2008: --- On Tue, 5/6/08, Sergei Steshenko wrote: > From: Sergei Steshenko > Subject: ripple in Butterworth filter created by 'butter' (was "RE: 'long double' support ?") > To: "Schirmacher, Rolf" , help at octave.org, pkienzle at projects.sourceforge.net, dastew at sympatico.ca > Cc: help at octave.org > Date: Tuesday, May 6, 2008, 1:52 PM > > --- "Schirmacher, Rolf" > wrote: > > > > > Perhaps you might give more details on the package / > function you encouter > > the issue with and/or your actual problem as the root > cause and/or best > > solution / workaround might be different to a "brute > force" approach of > > increasing precision? > > > > Rolf > > > > Hello All, > > the problem I had was with Butterworth filter created by > 'butter'. > > The problem was/is ripple in the passband - there can be no > ripple anywhere because > of the definition of Butterworth filter. > > The problem is not specific to 'octave' - a couple of years > ago I found the same problem in > 'scilab'. > > Attached is a script which demonstrates the problem. > > The script also demonstrates how to avoid the problem using > the > > " > [z,p,g] = butter(...) > ???return filter as zero-pole-gain rather > than coefficients of the > ???numerator and denominator polynomials. > " > > form of 'butter' - I think this should be THE recommended > way to use the function. > > With > > zorder = 4 > > the ripple is about 0.006; with > > zorder = 5 > > or higher the filter becomes completely incoherent - just > try to run the script. > > > I suggest to copy-paste the script into documentation - > this will hopefully help others > to avoid the trap. > > Thanks, > ? Sergei. > > Applications From Scratch: http://appsfromscratch.berlios.de/ > > > ? ? ? > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile.? Try it now.? http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > -----Inline Attachment Follows----- > > > -----Inline Attachment Follows----- > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www.cae.wisc.edu/mailman/listinfo/help-octave > -------------- next part -------------- A non-text attachment was scrubbed... Name: butterworth_numeric_accuracy.m Type: text/x-objcsrc Size: 2027 bytes Desc: 2844240695-butterworth_numeric_accuracy.m URL: From sergstesh at yahoo.com Wed Apr 27 06:30:40 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Wed, 27 Apr 2011 04:30:40 -0700 (PDT) Subject: AW: Bessel-filter problems In-Reply-To: <1303902725023-3477805.post@n4.nabble.com> Message-ID: <4622.74849.qm@web112101.mail.gq1.yahoo.com> --- On Wed, 4/27/11, Chipmuenk wrote: > From: Chipmuenk > Subject: Re: AW: Bessel-filter problems > To: help-octave at octave.org > Date: Wednesday, April 27, 2011, 4:12 AM > Hello Bernd, > > given a sampling rate of 5 GHz (or 1 GHz as well), you can > only use the > simplest of DSP in the fastest available technology, i.e. > you would have to > design your own ASIC (on which hardware do you plan to do > your number > crunching?) > > Even with a custom-specific IC, you would have to use very > short wordlengths > to perform multiplications and additions in the given time > frame. > > Even with a cascaded filter implementation (much more > robust to coefficient > and data quantization than direct form filters), I would > guess you probably > need coefficients with at least 12 ... 14 bit wordlength > and about the same > for your data. > > If your coefficients are too short, your filter may easily > become unstable > (poles outside unit circle) or you may end up with massive > errors in your > filter characteristic. Oppenheim / Schafer, "Discrete-time > signal > processing" gives a good desription of these effects in > fixpoint filters. > > What about an analog solution? You're way up in the RF > domain. > > Good luck, > > Christian > > -- > View this message in context: http://octave.1599824.n4.nabble.com/Bessel-filter-problems-tp3473247p3477805.html > Sent from the Octave - General mailing list archive at > Nabble.com. > _______________________________________________ Maybe it's already been suggested here, but why not run overlapping windowed FFT transforms on the sampled signal ? Hundreds of thousands of samples can be easily dealt with using the approach, and arbitrary filter can be applied. Arbitrary in a sense amplitude vs frequency and phase vs frequency can be whatever. Regards, Sergei. From raju.mailinglists at gmail.com Wed Apr 27 07:09:03 2011 From: raju.mailinglists at gmail.com (Kamaraju S Kusumanchi) Date: Wed, 27 Apr 2011 08:09:03 -0400 Subject: OT: finding the weights used in weighted least squares regression References: Message-ID: James Sherman Jr. wrote: > This seems like an ill-posed problem to me. (or in other words the answer > is no, you can't solve for W or at least not a specific W). > I think so too! But I just wanted to make sure if I am missing something. > 2) Ax ~=b, then if you want to solve for a W such that WAx = Wb, equates > to W(Ax-b) = 0, which is to say that as long as Ax-b is in the null space > of W (or that Ax-b is an eigenvector with eigenvalue 0) you are free to > choose > any W that satisfies this condition. This is in essence a linear system > with n^2 unknowns (size of W) with only n equations. FWIW, W is a diagonal matrix. So there are only n unknowns, not n^2. Also when A is a long thin matrix and when the system is solved by least squares, W(Ax-b) is not exactly zero. There is always a residual. In other words, W(Ax-b) ~= 0. thanks -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/ From bpabbott at mac.com Wed Apr 27 07:24:52 2011 From: bpabbott at mac.com (Ben Abbott) Date: Wed, 27 Apr 2011 08:24:52 -0400 Subject: OT: finding the weights used in weighted least squares regression In-Reply-To: References: Message-ID: On Apr 27, 2011, at 1:19 AM, Kamaraju S Kusumanchi wrote: > Ben Abbott wrote: >> >> If I understand what you'd like to do, I think the solution is ... >> >> W = (A*(A\b)-b) ./ (A*x-b) >> > > No. This is not the solution. Consider the following example > > octave:10> n=5, m=2, W = diag(rand(n,1)), A = rand(n,m), b = rand(n,1), x = > (W*A) \ (W*b), (A*(A\b)-b) ./ (A*x-b) > n = 5 > m = 2 > W = > > 0.63718 0.00000 0.00000 0.00000 0.00000 > 0.00000 0.75466 0.00000 0.00000 0.00000 > 0.00000 0.00000 0.69982 0.00000 0.00000 > 0.00000 0.00000 0.00000 0.08992 0.00000 > 0.00000 0.00000 0.00000 0.00000 0.94621 > > A = > > 0.833095 0.568790 > 0.792483 0.536521 > 0.702069 0.588282 > 0.036704 0.529085 > 0.238762 0.427252 > > b = > > 0.86356 > 0.77943 > 0.77652 > 0.98000 > 0.49344 > > x = > > 0.32941 > 0.97441 > > ans = > > 2.07510 > -7.79993 > 2.55568 > 0.23533 > 112.87186 > > > Hence W is not same as (A*(A\b)-b) ./ (A*x-b) . > > thanks > -- > Kamaraju S Kusumanchi > http://malayamaarutham.blogspot.com/ Ok. I see my mistake now. Essentially you want to solve for W where ... diag (W) * (A * x - b) = c But you don't know "c". However, you do know that "c" are the least square errors. I don't see a direct solution. Would an iterative solution work? I don't know how stable it would be but, is something like below acceptable? err = @(u) x - (diag (u) * A) \ (diag (u) * b); W = fsolve (err, ones (n, 1)) I expect the options for fsolve will need to be added to get an accurate result. Ben From martin at mhelm.de Wed Apr 27 07:22:09 2011 From: martin at mhelm.de (Martin Helm) Date: Wed, 27 Apr 2011 14:22:09 +0200 Subject: Octave 3.3.91 - impossible to install packages and built-in oct files... In-Reply-To: References: <1303820950921-3475338.post@n4.nabble.com> Message-ID: <201104271422.10683.martin@mhelm.de> Am Mittwoch, 27. April 2011, 13:18:44 schrieb Andy Buckle: > I have not tried copying packages between installations. I guess you > would need to look carefully at what was needed to install a package. > I tried just for fun, it will not work, except it is a package with m-files only. > have you tried getting new packages from sourceforge > http://octave.sourceforge.net/packages.php > > and doing > pkg install foo.tar.gz > ? This is definitely mandatory to make it work. Most packages need to be recompiled so that the linker links them to the new octave libraries. From peter.norlindh at gmail.com Wed Apr 27 08:54:54 2011 From: peter.norlindh at gmail.com (Peter Norlindh) Date: Wed, 27 Apr 2011 15:54:54 +0200 Subject: Memory exausted Message-ID: Hi, After a few executions, Octave throws an error message: "memory exhausted...". The command "clear" does not resolve the problem. My program produces a plot, and that seems to be causing the problem. How do I clear the "plot" memory? /hpon -------------- next part -------------- An HTML attachment was scrubbed... URL: From raju.mailinglists at gmail.com Wed Apr 27 09:11:44 2011 From: raju.mailinglists at gmail.com (Kamaraju S Kusumanchi) Date: Wed, 27 Apr 2011 10:11:44 -0400 Subject: OT: finding the weights used in weighted least squares regression References: Message-ID: Ben Abbott wrote: > Ok. I see my mistake now. Essentially you want to solve for W where ... > > diag (W) * (A * x - b) = c > > But you don't know "c". However, you do know that "c" are the least square > errors. > > I don't see a direct solution. Would an iterative solution work? Yes, an iteration solution is also fine. > I don't know how stable it would be but, is something like below > acceptable? > > err = @(u) x - (diag (u) * A) \ (diag (u) * b); > W = fsolve (err, ones (n, 1)) > This gives me an error octave:11> err = @(u) x - (diag (u) * A) \ (diag (u) * b); octave:12> W = fsolve (err, ones (n, 1)) error: fsolve: unable to solve non-square systems error: fsolve: evaluation of user-supplied function failed error: evaluating assignment expression near line 12, column 3 The documentation of fsolve (help fsolve), does not clearly tell how to specify the FCN argument. Could you please help me out with the error? thanks -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/ From pathematica at gmail.com Wed Apr 27 09:16:24 2011 From: pathematica at gmail.com (pathematica) Date: Wed, 27 Apr 2011 07:16:24 -0700 (PDT) Subject: Memory exausted In-Reply-To: References: Message-ID: <1303913784731-3478245.post@n4.nabble.com> clf (clear figure) If you have more than one figure, then you will need to specify which figure. eg, for figure(2) figure(2); clf; -- View this message in context: http://octave.1599824.n4.nabble.com/Memory-exausted-tp3478199p3478245.html Sent from the Octave - General mailing list archive at Nabble.com. From andybuckle at gmail.com Wed Apr 27 09:51:37 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Wed, 27 Apr 2011 15:51:37 +0100 Subject: Repeating bug (error: subscript indices must be either positive integers or logicals) In-Reply-To: <1303818563182-3475251.post@n4.nabble.com> References: <1303818563182-3475251.post@n4.nabble.com> Message-ID: On Tue, Apr 26, 2011 at 12:49 PM, ragan2328 wrote: > I've been working on this program for the past few hours. It's simply a > password generator. I had the program fully functioning, but upon restarting > Octave, I keep on getting the message: > > error: ?subscript indices must be either positive integers or logicals. > > Here is the code for the main program: > > > %P1: Pseudocode for Passgen (main) > NumberofPass = input(['How many passwords do you require?: ']); > > if(isempty(NumberofPass)); > ? NumberofPass = 1; > endif; > > NumberofChar = input(['How many characters (6-12) do you require in each > password?: ']); > > if(isempty(NumberofChar)); > ? NumberofChar = 8; > ? elseif(NumberofChar < 6); > ? ? ?NumberofChar = 8; > ? ? ?disp(['Number of characters is too low, defaulted to 8 characters']) > ? elseif(NumberofChar > 12); > ? ? ?NumberofChar = 8; > ? ? ?disp(['Number of characters is too great, defaulted to 8 characters']) > endif; > > lowercase = (['a':'z']); > > uppercase = (['A':'Z' ]); > > digits = [ '0':'9' ]; > > PasswordsList = zeros(NumberofPass,NumberofChar); > > for(passcount = 1:NumberofPass); > ? ValidPassword = false; > ? while(not(ValidPassword)); > ? ? ?run OnePassword; > ? ? ?run PassCheck; > ? endwhile > ? PasswordsList(passcount,:) = Password; > endfor; > > Passwords = char(PasswordsList); > > disp(Passwords) > > > > > ...And the code for the program OnePassword that seems to contain the issue: > > > > %P2: Pseudocode for OnePassword (function) > > letters = [uppercase lowercase]; > randomletter = round(rand(1)*52); > Password(1) = letters(randomletter); > > for(n = 2:NumberofChar); > ? randomchar = round(rand(1)*62); > ? allchar = [uppercase lowercase digits]; > ? Password(n) = allchar(randomchar); > endfor; > return; > > > > The error points to the code in the OnePassword program, although when run > separately, no issue exists: > Password(n) = allchar(randomchar); > > Although all was normal up until restart. I'm not sure why it's registering > this error. Help would be appreciated. I fiddled with the code til it worked (attached), using Mingw Octave 3.2.4. Notes - I avoided improving it too much, otherwise you would not see the bug. I leave exercises for the reader... - The thing you call a function in the comment, is a script. A function has a function declaration. A function would be better. http://www.gnu.org/software/octave/doc/interpreter/Defining-Functions.html#Defining-Functions - In your code (why are you calling it pseudocode?), randomletter could be zero. Indices must be 1 or more. Indeed the error message you got should have been "subscript indices must be either natural numbers or logicals". - I commented out the password check, as you did not give it the code. - All your loops are unnecessary. Do something like PasswordsList=ceil(rand(NumberofPass,NumberofChar)*length(allchar)) PasswordsList = char(allchar(PasswordsList)) -- /* andy buckle */ -------------- next part -------------- A non-text attachment was scrubbed... Name: OnePassword.m Type: application/octet-stream Size: 212 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: passgen.m Type: application/octet-stream Size: 919 bytes Desc: not available URL: From mrags2818 at gmail.com Wed Apr 27 10:07:59 2011 From: mrags2818 at gmail.com (ragan2328) Date: Wed, 27 Apr 2011 08:07:59 -0700 (PDT) Subject: Repeating bug (error: subscript indices must be either positive integers or logicals) In-Reply-To: References: <1303818563182-3475251.post@n4.nabble.com> Message-ID: Thanks for the advice, just for clarification, the reason for the seemingly repetitive loops was that the first letter needed to be a letter, which is ultimately the whole reason for PassCheck. I forgot to delete the pseudocode part (I originally wrote that out entirely). This was my first ever program in Octave so forgive how amateur it seems. I appreciate all your help! -- View this message in context: http://octave.1599824.n4.nabble.com/Repeating-bug-error-subscript-indices-must-be-either-positive-integers-or-logicals-tp3475251p3478411.html Sent from the Octave - General mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpabbott at mac.com Wed Apr 27 11:49:30 2011 From: bpabbott at mac.com (Ben Abbott) Date: Wed, 27 Apr 2011 12:49:30 -0400 Subject: OT: finding the weights used in weighted least squares regression In-Reply-To: References: Message-ID: <04408035-C74E-45DC-81D4-8A58AB4399D9@mac.com> On Apr 27, 2011, at 10:11 AM, Kamaraju S Kusumanchi wrote: > Ben Abbott wrote: > >> Ok. I see my mistake now. Essentially you want to solve for W where ... >> >> diag (W) * (A * x - b) = c >> >> But you don't know "c". However, you do know that "c" are the least square >> errors. >> >> I don't see a direct solution. Would an iterative solution work? > > Yes, an iteration solution is also fine. > >> I don't know how stable it would be but, is something like below >> acceptable? >> >> err = @(u) x - (diag (u) * A) \ (diag (u) * b); >> W = fsolve (err, ones (n, 1)) >> > > This gives me an error > > octave:11> err = @(u) x - (diag (u) * A) \ (diag (u) * b); > octave:12> W = fsolve (err, ones (n, 1)) > error: fsolve: unable to solve non-square systems > error: fsolve: evaluation of user-supplied function failed > error: evaluating assignment expression near line 12, column 3 > > > The documentation of fsolve (help fsolve), does not clearly tell how to > specify the FCN argument. Could you please help me out with the error? > > thanks This example works for me with Octave 3.4. I assume one of the recent changesets is responsible. You can try to use sqp. err = @(u) norm (x - (diag (u) * A) \ (diag (u) * b)); W = sqp (ones (n, 1), err) The result looks unstable to me. Ben From mrags2818 at gmail.com Wed Apr 27 11:59:57 2011 From: mrags2818 at gmail.com (ragan2328) Date: Wed, 27 Apr 2011 09:59:57 -0700 (PDT) Subject: Repeating bug (error: subscript indices must be either positive integers or logicals) In-Reply-To: References: <1303818563182-3475251.post@n4.nabble.com> Message-ID: Hey Andy, I've had yet another problem dealing with an infinite loop I was hoping you could help out with. I have a feeling this one is a quick fix. Additionally, the details of the assignment were to create a generator that outputted a password, but that it must have at least one uppercase letter, one lowercase letter, one digit, and the first character must be a letter. Now, the problem I've been having was that the password never seems to pass the requirements in PassCheck, resulting in an infinite loop. I'm reattaching my revised programs, I hope you can help me out on this one. Thanks so much again. -- View this message in context: http://octave.1599824.n4.nabble.com/Repeating-bug-error-subscript-indices-must-be-either-positive-integers-or-logicals-tp3475251p3478763.html Sent from the Octave - General mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From st.grundmann at gmail.com Wed Apr 27 13:11:42 2011 From: st.grundmann at gmail.com (st.grundmann) Date: Wed, 27 Apr 2011 11:11:42 -0700 (PDT) Subject: Mac OSX 10.6.5 update In-Reply-To: <048CBA8A-3AE9-40A9-B737-BE991E9C6E4C@gmail.com> References: <65A2FBED-D27B-41B0-A2C2-A210314DF702@mac.com> <1D91377D-FD60-4ED0-B2CD-7531C817920E@sbcglobal.net> <048CBA8A-3AE9-40A9-B737-BE991E9C6E4C@gmail.com> Message-ID: <1303927902267-3479025.post@n4.nabble.com> just for completeness: 6) change DYLD_FRAMEWORK_PATH to DYLD_FRAMEWORK_PATH="${ROOT}/lib" and save. -- View this message in context: http://octave.1599824.n4.nabble.com/Mac-OSX-10-6-5-update-tp3041761p3479025.html Sent from the Octave - General mailing list archive at Nabble.com. From andybuckle at gmail.com Wed Apr 27 14:53:03 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Wed, 27 Apr 2011 20:53:03 +0100 Subject: Repeating bug (error: subscript indices must be either positive integers or logicals) In-Reply-To: References: <1303818563182-3475251.post@n4.nabble.com> Message-ID: On Wed, Apr 27, 2011 at 5:59 PM, ragan2328 wrote: > Hey Andy, > > I've had yet another problem dealing with an infinite loop I was > hoping you could help out with. I have a feeling this one is a quick > fix. Additionally, the details of the assignment were to create a > generator that outputted a password, but that it must have at least > one uppercase letter, one lowercase letter, one digit, and the first > character must be a letter. > > Now, the problem I've been having was that the password never seems to > pass the requirements in PassCheck, resulting in an infinite loop. I'm > reattaching my revised programs, I hope you can help me out on this > one. Thanks so much again. > I made PassCheck into a function. I think I fixed it. I think the first letter check part was broken. Then I ran out of time (for today) -- /* andy buckle */ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PassCheck.m Type: text/x-matlab Size: 739 bytes Desc: not available URL: From raju.mailinglists at gmail.com Wed Apr 27 15:10:40 2011 From: raju.mailinglists at gmail.com (Kamaraju S Kusumanchi) Date: Wed, 27 Apr 2011 16:10:40 -0400 Subject: OT: finding the weights used in weighted least squares regression References: <04408035-C74E-45DC-81D4-8A58AB4399D9@mac.com> Message-ID: Ben Abbott wrote: > err = @(u) norm (x - (diag (u) * A) \ (diag (u) * b)); > W = sqp (ones (n, 1), err) > > The result looks unstable to me. > Yeah! The actual W and the W obtained via sqp seem to be very different. I guess it is time to move on In any case, thanks for the help. I did learn some new functionalities in Octave. -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/ From Allen.Windhorn at emerson.com Wed Apr 27 15:15:35 2011 From: Allen.Windhorn at emerson.com (Allen.Windhorn at emerson.com) Date: Wed, 27 Apr 2011 15:15:35 -0500 Subject: Repeating bug (error: subscript indices must be either positiveintegers or logicals) In-Reply-To: References: <1303818563182-3475251.post@n4.nabble.com> Message-ID: <9364AF34D87CEB4C86A574178FD2A2C44022A9@mkts24.na.ls.ia.priv> From: help-octave-bounces at octave.org On Behalf Of ragan2328 > I've had yet another problem dealing with an infinite loop I was > hoping you could help out with. I have a feeling this one is a quick > fix. Additionally, the details of the assignment were to create a > generator that outputted a password, but that it must have at least > one uppercase letter, one lowercase letter, one digit, and the first > character must be a letter. > Now, the problem I've been having was that the password never seems > to pass the requirements in PassCheck, resulting in an infinite > loop. I'm reattaching my revised programs, I hope you can help me > out on this one. Thanks so much again. I didn't look for your bug, but you might try a different approach. I made a similar password generator, but what I would recommend is to first generate a password of (say) n all lower-case letters. Randomly change the case of the first letter with a probability of 0.5: lower1 = 1; if (rand() > 0.5) password(1) = toupper(password(1); lower1 = 0; end Take the next k characters where k is a random integer between 1 and (n-3) and change them to random digits: n = length(password); k = floor(rand()*(n-3)+1); digs = int2str(floor(10*rand(k,1))); password(2:k+1) = digs; Maybe the value of k should be biased or limited to a lower number since there aren't as many digits as letters. Take the last (n-k-1) characters and change a random number of them to upper case (but not all, unless the first character is lower case): m = floor(rand()*(n-k-2+lower1)); password(k+2:k+2+m) = toupper(password(k+2:k+2+m); I haven't tested this exhaustively so it wants some careful counting in case I'm off by one somewhere. m should range from 0 to two less than the remaining number of letters, or one less if the first letter is lower case. Then scramble the last n-1 characters: password(2:n) = shuffle(password(2:n)); I wrote a shuffle function below but there is probably already one out there somewhere. function chars = shuffle(str) %shuffle(str) Return shuffled string % Randomly permute characters of string and return shuffled version % chars = str; for idx = 1:length(str) swp = randpick(1:length(str)); tmp = chars(idx); chars(idx) = chars(swp); chars(swp) = tmp; end endfunction % function k = randpick(rng) % Select a random integer within range k = floor(rand()*length(rng)+1); endfunction % Regards, Allen -------------- next part -------------- An HTML attachment was scrubbed... URL: From jwe at octave.org Wed Apr 27 15:22:04 2011 From: jwe at octave.org (John W. Eaton) Date: Wed, 27 Apr 2011 16:22:04 -0400 Subject: Repeating bug (error: subscript indices must be either positiveintegers or logicals) In-Reply-To: <9364AF34D87CEB4C86A574178FD2A2C44022A9@mkts24.na.ls.ia.priv> References: <1303818563182-3475251.post@n4.nabble.com> <9364AF34D87CEB4C86A574178FD2A2C44022A9@mkts24.na.ls.ia.priv> Message-ID: <19896.31468.463286.874696@coredump.lan> On 27-Apr-2011, Allen.Windhorn at emerson.com wrote: | I wrote a shuffle function below but there is probably already one out | there somewhere. | | function chars = shuffle(str) | %shuffle(str) Return shuffled string | % Randomly permute characters of string and return shuffled version | % | chars = str; | for idx = 1:length(str) | swp = randpick(1:length(str)); | tmp = chars(idx); | chars(idx) = chars(swp); | chars(swp) = tmp; | end | endfunction You could use str(randperm (numel (str)) to randomly permute the elements of STR. jwe From yury.tarasievich at gmail.com Thu Apr 28 00:09:38 2011 From: yury.tarasievich at gmail.com (Yury T.) Date: Wed, 27 Apr 2011 22:09:38 -0700 (PDT) Subject: AW: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <201104141716.05657.martin@mhelm.de> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104141716.05657.martin@mhelm.de> Message-ID: <1303967378427-3480157.post@n4.nabble.com> Hello, I'm hitting the same issue. Octave 3.4.0, smallish trivial matrix, can't plot on two machines; graphics_toolkit is set to "fltk", BTW. Any chance of this influencing? So, as they say on savannah that the issue's fixed in the development code, does anybody know the location of pertinent snapshot, or the cutoff date for versioning system? Did anyone try the fixed sources? Eventually, will there be a minor release? -Yury martin_helm wrote: > > ... > I filed a bug report on that > http://savannah.gnu.org/bugs/?33072 > ... > -- View this message in context: http://octave.1599824.n4.nabble.com/RE-error-memory-exhausted-or-requested-size-too-large-for-range-of-Octave-s-index-type-tp3435859p3480157.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at octave.org Thu Apr 28 00:27:22 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Thu, 28 Apr 2011 00:27:22 -0500 Subject: AW: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <1303967378427-3480157.post@n4.nabble.com> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104141716.05657.martin@mhelm.de> <1303967378427-3480157.post@n4.nabble.com> Message-ID: On 28 April 2011 00:09, Yury T. wrote: > So, as they say on savannah that the issue's fixed in the development code, > does anybody know the location of pertinent snapshot, or the cutoff date for > versioning system? Did anyone try the fixed sources? Are you asking about the changeset that fixed that bug? It looks like it was this one: http://hg.savannah.gnu.org/hgweb/octave/rev/919cadf334f8 You can either apply this patch manually to your sources, or you can use Mercurial to update to that changeset and build a release from there. > Eventually, will there be a minor release? Yes, there should be a minor 3.4.1 release "soon", as I understand it. HTH, - Jordi G. H. From yury.tarasievich at gmail.com Thu Apr 28 00:48:48 2011 From: yury.tarasievich at gmail.com (Yury T.) Date: Wed, 27 Apr 2011 22:48:48 -0700 (PDT) Subject: AW: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104141716.05657.martin@mhelm.de> <1303967378427-3480157.post@n4.nabble.com> Message-ID: <1303969728192-3480206.post@n4.nabble.com> *If* that patch is what it takes to make 3.4.0 octave plot without the discussed issue, *then* it's precisely what I need. :) Thank you! I'll test this directly. -Yury Jordi Guti?rrez Hermoso-2 wrote: > > On 28 April 2011 00:09, Yury T. <yury.tarasievich at gmail.com> wrote: >> So, as they say on savannah that the issue's fixed in the development >> code, >> does anybody know the location of pertinent snapshot, or the cutoff date >> for >> versioning system? Did anyone try the fixed sources? > > Are you asking about the changeset that fixed that bug? It looks like > it was this one: > > http://hg.savannah.gnu.org/hgweb/octave/rev/919cadf334f8 > > You can either apply this patch manually to your sources, or you can > use Mercurial to update to that changeset and build a release from > there. > ... > -- View this message in context: http://octave.1599824.n4.nabble.com/RE-error-memory-exhausted-or-requested-size-too-large-for-range-of-Octave-s-index-type-tp3435859p3480206.html Sent from the Octave - General mailing list archive at Nabble.com. From yury.tarasievich at gmail.com Thu Apr 28 01:19:22 2011 From: yury.tarasievich at gmail.com (Yury T.) Date: Wed, 27 Apr 2011 23:19:22 -0700 (PDT) Subject: AW: AW: WG: AW: error: memory exhausted or requested size too large for range of Octave's index type In-Reply-To: <1303969728192-3480206.post@n4.nabble.com> References: <576093.82821.qm@web29703.mail.ird.yahoo.com> <201104141716.05657.martin@mhelm.de> <1303967378427-3480157.post@n4.nabble.com> <1303969728192-3480206.post@n4.nabble.com> Message-ID: <1303971562171-3480241.post@n4.nabble.com> Yes, it is! With this patch, the title issue of the thread is resolved (at least, in Octave 3.4.0, with my data, on my systems). Thanks again, to all concerned! -Yury Yury T. wrote: > > *If* that patch is what it takes to make 3.4.0 octave plot without the > discussed issue, *then* it's precisely what I need. :) > > Jordi Guti?rrez Hermoso-2 wrote: >> >> ... >> Are you asking about the changeset that fixed that bug? It looks like >> it was this one: >> >> http://hg.savannah.gnu.org/hgweb/octave/rev/919cadf334f8 >> >> You can either apply this patch manually to your sources, or you can >> use Mercurial to update to that changeset and build a release from >> there. >> ... >> > -- View this message in context: http://octave.1599824.n4.nabble.com/RE-error-memory-exhausted-or-requested-size-too-large-for-range-of-Octave-s-index-type-tp3435859p3480241.html Sent from the Octave - General mailing list archive at Nabble.com. From arawak1 at yahoo.com Thu Apr 28 08:34:16 2011 From: arawak1 at yahoo.com (Ronald Francis) Date: Thu, 28 Apr 2011 09:34:16 -0400 Subject: Octave installation on iMac Message-ID: I have installed Octave, Gnuplot, the latest X11, and yet I receive a message saying that Gnuplot must be installed. They are all in 'Applications'. What am I missing? I have tried everything I can think of. Please hep! Octave response is: dyld: Library not loaded: /usr/Xdyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib Referenced from: /usr/X11R6/lib/libfontconfig.1.dylib Reason: Incompatible library version: libfontconfig.1.dylib requires version 13.0.0 or later, but libfreetype.6.dylib provides version 10.0.0 11/lib/libfreetype.6.dylib Referenced from: /usr/X11R6/lib/libfontconfig.1.dylib Reason: Incompatible library version: libfontconfig.1.dylib requires version 13.0.0 or later, but libfreetype.6.dylib provides version 10.0.0 /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 71: 3570 Trace/BPT trap GNUTERM="${GNUTERM}" GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}" GNUHELP="${GNUHELP}" DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}" GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}" GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}" "${ROOT}/bin/gnuplot-4.2.6" "$@" /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 71: 3576 Trace/BPT trap GNUTERM="${GNUTERM}" GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}" GNUHELP="${GNUHELP}" DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}" GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}" GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}" "${ROOT}/bin/gnuplot-4.2.6" "$@" error: you must have gnuplot installed to display graphics; if you have gnuplot installed in a non-standard location, see the 'gnuplot_binary' function From st.grundmann at gmail.com Thu Apr 28 08:39:49 2011 From: st.grundmann at gmail.com (Steffen Grundmann) Date: Thu, 28 Apr 2011 15:39:49 +0200 Subject: Octave installation on iMac In-Reply-To: References: Message-ID: Look for DYLD_LIBRARY in the Archive. I had a similar issue recently and a workaround is documented there. Steffen Am 28.04.2011 15:35 schrieb "Ronald Francis" : > I have installed Octave, Gnuplot, the latest X11, and yet I receive a message saying that Gnuplot must be installed. They are all in 'Applications'. What am I missing? I have tried everything I can think of. Please hep! > > Octave response is: > > dyld: Library not loaded: /usr/Xdyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib > Referenced from: /usr/X11R6/lib/libfontconfig.1.dylib > Reason: Incompatible library version: libfontconfig.1.dylib requires version 13.0.0 or later, but libfreetype.6.dylib provides version 10.0.0 > 11/lib/libfreetype.6.dylib > Referenced from: /usr/X11R6/lib/libfontconfig.1.dylib > Reason: Incompatible library version: libfontconfig.1.dylib requires version 13.0.0 or later, but libfreetype.6.dylib provides version 10.0.0 > /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 71: 3570 Trace/BPT trap GNUTERM="${GNUTERM}" GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}" GNUHELP="${GNUHELP}" DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}" GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}" GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}" "${ROOT}/bin/gnuplot-4.2.6" "$@" > /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 71: 3576 Trace/BPT trap GNUTERM="${GNUTERM}" GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}" GNUHELP="${GNUHELP}" DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}" GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}" GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}" "${ROOT}/bin/gnuplot-4.2.6" "$@" > error: you must have gnuplot installed to display graphics; if you have gnuplot installed in a non-standard location, see the 'gnuplot_binary' function > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.arteaga at gmail.com Thu Apr 28 10:57:56 2011 From: daniel.arteaga at gmail.com (Daniel Arteaga) Date: Thu, 28 Apr 2011 17:57:56 +0200 Subject: Vectorization quiz In-Reply-To: References: Message-ID: <4DB98E84.30503@gmail.com> Al 21/04/11 16:37, En/na James Sherman Jr. ha escrit: > On Thu, Apr 21, 2011 at 4:49 AM, Daniel Arteaga > > wrote: > > Hi, > > How could I vectorize the following piece of code? > > P = zeros(size(fInf)); > for i = 1:length(fInf) > P(i) = sum( S2( fLin > fInf(i) & fLin < fSup(i) ) ); > endfor > > where > > fInf is a vector of length 1000 > fSup is a vector of length 1000 > P is a vector of length 1000 > S2 is a vector of length 50000 > fLin is a vector of length 50000 > > Thank you very much in advance, > > Daniel > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > > > Well, I'm not saying that this is the best way, but you could try this: > > n = length(fInf); > m = length(fLin); > > fLin_repeated = repmat(fLin, [1, n]); > S2_repeated = repmat(S2, [1, n]); > fInf_repeated = repmat(fInf', [m, 1]); > fSup_repeated = repmat(fSup', [m, 1]); > > tmp1 = (fLin_repeated > fInf_repeated) & (fLin_repeated < fSup_repeated); > P = sum( S2_repeated .* tmp1 )'; > > I particularly don't like the last line. I feel like there is a > function to do the masking part instead of doing the multiplications, > but for the life of me I can't remember what it is. The downside is > that you will have 4 different 50000 by 1000 matrices, which may or may > not be problematic. Thank you very much for your answer. It comes down that I'm somewhat memory-limited, so it is not very convenient to have such big matrices. Maybe particioning S2 in smaller chunks as you suggest we could get a good compromise between memory consumption and speed. From daniel.arteaga at gmail.com Thu Apr 28 10:58:08 2011 From: daniel.arteaga at gmail.com (Daniel Arteaga) Date: Thu, 28 Apr 2011 17:58:08 +0200 Subject: Vectorization quiz In-Reply-To: References: Message-ID: Al 21/04/11 16:37, En/na James Sherman Jr. ha escrit: > On Thu, Apr 21, 2011 at 4:49 AM, Daniel Arteaga > > wrote: > > Hi, > > How could I vectorize the following piece of code? > > P = zeros(size(fInf)); > for i = 1:length(fInf) > P(i) = sum( S2( fLin > fInf(i) & fLin < fSup(i) ) ); > endfor > > where > > fInf is a vector of length 1000 > fSup is a vector of length 1000 > P is a vector of length 1000 > S2 is a vector of length 50000 > fLin is a vector of length 50000 > > Thank you very much in advance, > > Daniel > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > > > Well, I'm not saying that this is the best way, but you could try this: > > n = length(fInf); > m = length(fLin); > > fLin_repeated = repmat(fLin, [1, n]); > S2_repeated = repmat(S2, [1, n]); > fInf_repeated = repmat(fInf', [m, 1]); > fSup_repeated = repmat(fSup', [m, 1]); > > tmp1 = (fLin_repeated > fInf_repeated) & (fLin_repeated < fSup_repeated); > P = sum( S2_repeated .* tmp1 )'; > > I particularly don't like the last line. I feel like there is a > function to do the masking part instead of doing the multiplications, > but for the life of me I can't remember what it is. The downside is > that you will have 4 different 50000 by 1000 matrices, which may or may > not be problematic. Thank you very much for your answer. It comes down that I'm somewhat memory-limited, so it is not very convenient to have such big matrices. Maybe particioning S2 in smaller chunks as you suggest we could get a good compromise between memory consumption and speed. From mbmiller+l at gmail.com Thu Apr 28 11:56:02 2011 From: mbmiller+l at gmail.com (Mike Miller) Date: Thu, 28 Apr 2011 11:56:02 -0500 (CDT) Subject: OT: finding the weights used in weighted least squares regression In-Reply-To: References: Message-ID: On Tue, 26 Apr 2011, Kamaraju S Kusumanchi wrote: > The weighted least squares regression is done by solving > W A x = W b > for x, where W is nxn, A is nxm, x is mx1, b is nx1. W is a diagonal matrix. > > My question is that, in the above set up, if we are given A, x, b is it > possible to solve for the W? We usually have an equation of this form: y = X*b + e The y vector (nx1) and X matrix (nxp) are given and we want to solve for b (px1) attempting to minimize the variance of hypothetical e (nx1) -- the least squares solution, but we assume that the variance-covariance matrix of e is of the form eye(n)*s^2 for some s. We can estimate s. But what if the var-covar matrix of e is of a different form? Let's give it the general form V (nxn, not necessarily diagonal) where V is symmetric non-negative definite. It turns out that if V is positive definite (all positive eigenvalues), you can produce a matrix U=chol(inv(V)) such that U*y = U*X*b + U*e where U*e has var-covar matrix eye(n). This makes it possible to get a proper solution for b like so: b = (U*X)\(U*y) I assume that your "A x = b" is what I would call "X b = y". In other words, I think the W you want is the U I've given. This means that you have to know something about the structure of your residuals. Are there groups of observations that allow you to estimate residual variances for the elements of e? If so, you can use an iterative feasible generalized least squares method: (1) b = X\y ; [implicitly assumes cov(e) = eye(n)*s^2] (2) eOLS = y - X*b ; [compute residuals] (3) compute var-covar matrix V based on eOLS -- I can't tell you how because I don't know the structure of your data. (4) U = chol(inv(V)) ; (5) b = (U*X)\(U*y) ; (6) eGLS = y - X*b ; (7) compute var-covar matrix V based on eGLS -- again, I can't tell you how because I don't know the structure of your data. (8) repeat steps 4-7 until b stops changing. It should not require many iterations. Mike -- Michael B. Miller, Ph.D. Bioinformatics Specialist Minnesota Center for Twin and Family Research Department of Psychology University of Minnesota From clustro at gmail.com Thu Apr 28 13:16:48 2011 From: clustro at gmail.com (clustro) Date: Thu, 28 Apr 2011 11:16:48 -0700 (PDT) Subject: How to change default print directory? Message-ID: <1304014608059-3481790.post@n4.nabble.com> Hi there, Does anyone know how, when printing plots to pdf or ps, to change which directory Octave puts the plots in? At the moment is defaults to my /home folder. I tried "help print" and didn't see anything really. I also tried searching the nabble forum for "default print directory" and didn't see anything there either. If anyone knows, I would appreciate it. Thanks! -Brad Ridder -- View this message in context: http://octave.1599824.n4.nabble.com/How-to-change-default-print-directory-tp3481790p3481790.html Sent from the Octave - General mailing list archive at Nabble.com. From andybuckle at gmail.com Thu Apr 28 13:41:57 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Thu, 28 Apr 2011 19:41:57 +0100 Subject: How to change default print directory? In-Reply-To: <1304014608059-3481790.post@n4.nabble.com> References: <1304014608059-3481790.post@n4.nabble.com> Message-ID: On Thu, Apr 28, 2011 at 7:16 PM, clustro wrote: > Hi there, > > Does anyone know how, when printing plots to pdf or ps, to change which > directory Octave puts the plots in? > > At the moment is defaults to my /home folder. > > I tried "help print" and didn't see anything really. > > I also tried searching the nabble forum for "default print directory" and > didn't see anything there either. > > If anyone knows, I would appreciate it. > > Thanks! > > -Brad Ridder > They go to the current working directory, this is returned using pwd, and can be changed using cd. You can also specify a complete path like /home/smith/fig.ps or c:\plots\fig.ps (depending on your system). -- /* andy buckle */ From martin at mhelm.de Thu Apr 28 13:59:57 2011 From: martin at mhelm.de (Martin Helm) Date: Thu, 28 Apr 2011 20:59:57 +0200 Subject: How to change default print directory? In-Reply-To: <1304014608059-3481790.post@n4.nabble.com> References: <1304014608059-3481790.post@n4.nabble.com> Message-ID: <201104282059.58433.martin@mhelm.de> Am Donnerstag, 28. April 2011, 20:16:48 schrieb clustro: > Hi there, > > Does anyone know how, when printing plots to pdf or ps, to change which > directory Octave puts the plots in? > > At the moment is defaults to my /home folder. > > I tried "help print" and didn't see anything really. > > I also tried searching the nabble forum for "default print directory" and > didn't see anything there either. > > If anyone knows, I would appreciate it. > > Thanks! > > -Brad Ridder A quick test with 3.4 shows me that print("/home/martinh/scratch/test.ps") puts the file to exactly that location. Is that what you looked for? From wahaj87 at yahoo.com Thu Apr 28 14:06:26 2011 From: wahaj87 at yahoo.com (wahaj87) Date: Thu, 28 Apr 2011 12:06:26 -0700 (PDT) Subject: How to use command "set xtics 0,5,10 in octave 3.2.4 ? Message-ID: <1304017586803-3481890.post@n4.nabble.com> Hi I am trying to use command set xtics 0,5,10 in my octave program. Above command is given in gnuplot 4.4 manual on page 112. It shows error : error: invalid conversion from string to real N-d array error: set: expecting graphics handle as first argument I have also tried gset formly but found on the forum that it is obsolete. How to use the command correctly as given above ? I am using windows xp. __gnuplot_version__ ans = 4.4.0octave-mingw32 Thanks. -- View this message in context: http://octave.1599824.n4.nabble.com/How-to-use-command-set-xtics-0-5-10-in-octave-3-2-4-tp3481890p3481890.html Sent from the Octave - General mailing list archive at Nabble.com. From wahaj87 at yahoo.com Thu Apr 28 14:20:20 2011 From: wahaj87 at yahoo.com (LifeTime) Date: Thu, 28 Apr 2011 12:20:20 -0700 (PDT) Subject: How to use "set xtics 0,5,10 in octave 3.2.4 ? Message-ID: <764102.17866.qm@web38801.mail.mud.yahoo.com> Hi I am trying to use command set xtics 0,5,10 in my octave program. Above command is given in gnuplot 4.4 manual on page 112. It shows error : error: invalid conversion from string to real N-d array error: set: expecting graphics handle as first argument I have also tried gset formly but found on the forum that it is obsolete. How to use the command correctly as given above ? I am using windows xp. ?__gnuplot_version__ ans = 4.4.0octave-mingw32 Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From przemek.klosowski at nist.gov Thu Apr 28 16:18:53 2011 From: przemek.klosowski at nist.gov (Przemek Klosowski) Date: Thu, 28 Apr 2011 17:18:53 -0400 Subject: Repeating bug (error: subscript indices must be either positive integers or logicals) In-Reply-To: References: <1303818563182-3475251.post@n4.nabble.com> <4DB70AE3.5010005@nist.gov> Message-ID: <4DB9D9BD.3040608@nist.gov> On 04/27/2011 01:59 AM, Mike Ragan wrote: > I get the following message when I run Passgen: > > subscript indices must be either positive integers or logicals. > error: called from `OnePassword' in file > C:\Users\Mike\DOCUME~1\2010-11\EG1002\OnePassword.m near line 12, Octave is complaining about those code lines: randomchar = round(rand(1)*62) allchar = [uppercase lowercase digits]; Password(n) = allchar(randomchar); So your problem occurs when rand(1) is pretty close to zero, specifically when it's smaller than 1/62; your randomchar ends up being zero which is an illegal index into the allchar array. You need to make sure that the randomchar index falls within the range 1..length(allchar), for instance: randomchar = 1+round(rand(1)*length(allchar)) Fortunately, rand() never returns 1 so we won't get caught on the other end of this interval. From daryl at daryllee.com Thu Apr 28 16:44:49 2011 From: daryl at daryllee.com (Daryl Lee) Date: Thu, 28 Apr 2011 15:44:49 -0600 Subject: strcat not found--MinGW Message-ID: <4DB9DFD1.70401@daryllee.com> I'm trying to embed my Octave function into a C++ program, using MinGW/MSYS on a Windows 7 machine. Here's the Octave function (example2.m): function [resultString] = example2(inString) resultString = strcat ('Good morning, ', inString); end And when I run it from the Octave prompt it works as expected. Now I create a stand-alone program (test2.cpp) to call it: #include #include #include #include #include int main() { string_vector argv(2); argv(0) = "test2"; argv(1) = "-q"; octave_main(2, argv.c_str_vec(), 1); octave_value_list in; in(0) = "Hero"; octave_value_list out = feval("example2", in); std::cout << out(0).string_value() << std::endl; return 0; } I build this with $ mkoctfile --link-stand-alone test2.cpp -o test2 and when I run test2, the program fails with "strcat undefined" on line 2 of the Octave function. It works fine on my Linux/Ubuntu box. What do I need to do to get such functions defined? -- Daryl Lee From bpabbott at mac.com Thu Apr 28 17:24:03 2011 From: bpabbott at mac.com (Ben Abbott) Date: Thu, 28 Apr 2011 18:24:03 -0400 Subject: How to use "set xtics 0,5,10 in octave 3.2.4 ? In-Reply-To: <764102.17866.qm@web38801.mail.mud.yahoo.com> References: <764102.17866.qm@web38801.mail.mud.yahoo.com> Message-ID: <2BA22E59-8B38-4234-8F26-2CDC6FA0882B@mac.com> On Apr 28, 2011, at 3:20 PM, LifeTime wrote: > Hi > > I am trying to use command > > set xtics 0,5,10 > > in my octave program. Above command is given in gnuplot 4.4 manual on page 112. It shows error : > > error: invalid conversion from string to real N-d array > error: set: expecting graphics handle as first argument > > I have also tried gset formly but found on the forum that it is obsolete. > > How to use the command correctly as given above ? > > I am using windows xp. > > __gnuplot_version__ > ans = 4.4.0octave-mingw32 > > Thanks. The syntax you're using is no longer supported. The new method is ... set (gca, "xtick", [0 5 10]) Ben From wahaj87 at yahoo.com Fri Apr 29 05:21:15 2011 From: wahaj87 at yahoo.com (wahaj87) Date: Fri, 29 Apr 2011 03:21:15 -0700 (PDT) Subject: How to use "set xtics 0,5,10 in octave 3.2.4 ? In-Reply-To: <2BA22E59-8B38-4234-8F26-2CDC6FA0882B@mac.com> References: <764102.17866.qm@web38801.mail.mud.yahoo.com> <2BA22E59-8B38-4234-8F26-2CDC6FA0882B@mac.com> Message-ID: <1304072475582-3483364.post@n4.nabble.com> Hi bpabbott Thanks indeed. Can you please mention where to get the manual or help where these updated commands are mentioned for use in octave. For example as you sent "set (gca, "xtick", [0 5 10]) " . As all the accompanied manuals with octave installer 3.2.4 for windows hav'nt mentioned this change. This took my life's one week. Thanks to you. -- View this message in context: http://octave.1599824.n4.nabble.com/How-to-use-set-xtics-0-5-10-in-octave-3-2-4-tp3481919p3483364.html Sent from the Octave - General mailing list archive at Nabble.com. From wahaj87 at yahoo.com Fri Apr 29 06:54:48 2011 From: wahaj87 at yahoo.com (wahaj87) Date: Fri, 29 Apr 2011 04:54:48 -0700 (PDT) Subject: How to set x-axis tic values without moving the graph ? Message-ID: <1304078088536-3483494.post@n4.nabble.com> Hi I have a two dimensional graph in octave. I have used command : semilogy("myarray","color","g"); It worked fine, as I require log scale for y-axis. On x-axis it shows number of points (722) in my array named "myarray" labeled from 0 to 800, with tics at difference of 100. But I want that it should label 0 to -180, center point which is 722/2= 361 should be labeld 0, and point 722 should be labeled as 180. ie; 0...100...200...300...(361)...400...600...700...800 should be seen as -180............................0............................180 I tried command set(gca,"xtick",[-180,180]) but it only show one tic on xaxis labeled 180 like give below: ...............180.............................................. How to solve this problem ? -- View this message in context: http://octave.1599824.n4.nabble.com/How-to-set-x-axis-tic-values-without-moving-the-graph-tp3483494p3483494.html Sent from the Octave - General mailing list archive at Nabble.com. From chethanuniversal at gmail.com Fri Apr 29 22:46:55 2011 From: chethanuniversal at gmail.com (Chethan S) Date: Sat, 30 Apr 2011 09:16:55 +0530 Subject: How do you install octave? Message-ID: Hi all! Recently I installed Octave in Ubuntu 10.10 from source. I just used, ./configure, make and sudo make install commands. Now that I have freshly installed Ubuntu 11.04 I am interested to know what parameters do you use during configure - like 64-bit support, links to various libraries etc. Can anyone write down the typical configure options for me? Regards, Chethan S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shaypb at westnet.com.au Sat Apr 30 00:27:30 2011 From: shaypb at westnet.com.au (shay) Date: Fri, 29 Apr 2011 22:27:30 -0700 (PDT) Subject: create a while loop to store arrays Message-ID: <1304141250603-3485402.post@n4.nabble.com> hey guys, I have a 'for' loop that creates three arrays and concatenates them into a single array I need to make a 'while' loop within the 'for' loop to create a user defined number of these concatenated arrays and store them all on separate lines within another array. ie. numberofarrays = input('number of arrays = ') a = 'stringa' b = 'stringb' c = 'stringc' d = [a,b,c] %repeat a1 = 'stringa1' .... e = [a1,b1,c1] all_arrays = [d;e;f;g...;numberofarrays] Sorry if its a bit vague, please ask for any clarification if necessary. Thanks, Shay -- View this message in context: http://octave.1599824.n4.nabble.com/create-a-while-loop-to-store-arrays-tp3485402p3485402.html Sent from the Octave - General mailing list archive at Nabble.com. From andybuckle at gmail.com Sat Apr 30 02:10:30 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Sat, 30 Apr 2011 08:10:30 +0100 Subject: How do you install octave? In-Reply-To: References: Message-ID: On Sat, Apr 30, 2011 at 4:46 AM, Chethan S wrote: > Hi all! > > Recently I installed Octave in Ubuntu 10.10 from source. I just used, > ./configure, make and sudo make install commands. Now that I have freshly > installed Ubuntu 11.04 I am interested to know what parameters do you use > during configure - like 64-bit support, links to various libraries etc. > > Can anyone write down the typical configure options for me? The typical configure for me is nothing, because the defaults are eminently sensible. 1) with a mercurial checkout, there is a HACKING file that is quite useful. This may be in the archive source bundles. not sure. 2) The bootstrap options can be passed to ./autogen.sh ./bootstrap --help 3) ./configure --help -- /* andy buckle */ From bobatnet at gmail.com Sat Apr 30 02:50:59 2011 From: bobatnet at gmail.com (b0b) Date: Sat, 30 Apr 2011 00:50:59 -0700 (PDT) Subject: Use octave from C++ code Message-ID: <1304149859632-3485500.post@n4.nabble.com> I am trying to use the Octave Control System Toolbox (OCST) from my own C++ code. First, I searched for the control system functions (e.g. sysmult, tf, etc.) if their equivalent functions in liboctave exists defined in the headers (octave.h, etc.). But I couldnt find any except some Matrix functions. Second, I wrote an Octave function ('pControlError') for doing my work and tried to call it using 'feval'. int main (const int argc, char ** argv) { const char * argvv [] = {"main", "-q"}; octave_main (2, (char **) argvv, true); octave_value_list plant_tf, sysArgs; Matrix plant_num(1,1), plant_den(1,2); plant_num (0,0)= 1; plant_den (0,0)= 1; plant_den (0,1)= 1; sysArgs (0) = 10; sysArgs (1) = plant_num; sysArgs (2) = plant_den; const octave_value_list result = feval ("pControlError", sysArgs, 1); std::cout << "result is " << result (0).scalar_value () << std::endl; do_octave_atexit (); return 0; } then compiled the code using: >> mkoctfile --link-stand-alone main.cpp -o main Now, while executing the code, i get the error that 'pControlError' is not found: error: feval: function `pControlError' not found Whereas, I have copied the function pControlError into: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m Also, if there were inbuilt function in liboctave for the OCST it would be better as I need a fast code.-- View this message in context: http://octave.1599824.n4.nabble.com/Use-octave-from-C-code-tp3485500p3485500.html Sent from the Octave - General mailing list archive at Nabble.com. From m.p.zajac at gmail.com Sat Apr 30 04:53:28 2011 From: m.p.zajac at gmail.com (alhaim) Date: Sat, 30 Apr 2011 02:53:28 -0700 (PDT) Subject: =?UTF-8?Q?while/for_statement_=E2=80=94_what's_wrong_in_a_code=3F?= Message-ID: <1304157208179-3485616.post@n4.nabble.com> 0 down vote favorite Hi everybody. This is my Octave code for K= 1:10 while ( p < 1 ) ceil(log2(K)) + 1/(1-(1-p)^K) %function p = p + sens; K endwhile; endfor K and here is an output: ans = 10.000 K = 1 ans = 5.0000 K = 1 ans = 3.3333 K = 1 ans = 2.5000 K = 1 ans = 2 K = 1 ans = 1.6667 K = 1 ans = 1.4286 K = 1 ans = 1.2500 K = 1 ans = 1.1111 K = 1 ans = 1 K = 1 K = 10 So, as you can see -- in inner while statement value of K is fixed to 1. What I am supposed to do to vary this value between 1 and 10. Why it is not working? I have no idea why this inner while statement is proceed only once? -- View this message in context: http://octave.1599824.n4.nabble.com/while-for-statement-what-s-wrong-in-a-code-tp3485616p3485616.html Sent from the Octave - General mailing list archive at Nabble.com. From liamg at me.com Sat Apr 30 05:15:56 2011 From: liamg at me.com (Liam Groener) Date: Sat, 30 Apr 2011 03:15:56 -0700 Subject: =?windows-1252?Q?Re=3A_while/for_statement_=97_what=27s_wrong_in?= =?windows-1252?Q?_a_code=3F?= In-Reply-To: <1304157208179-3485616.post@n4.nabble.com> References: <1304157208179-3485616.post@n4.nabble.com> Message-ID: On Apr 30, 2011, at 2:53 AM, alhaim wrote: > > Hi everybody. This is my Octave code > > for K= 1:10 > while ( p < 1 ) > ceil(log2(K)) + 1/(1-(1-p)^K) %function > p = p + sens; > K > endwhile; > endfor > > K > > and here is an output: > > ans = 10.000 > K = 1 > ans = 5.0000 > K = 1 > ans = 3.3333 > K = 1 > ans = 2.5000 > K = 1 > ans = 2 > K = 1 > ans = 1.6667 > K = 1 > ans = 1.4286 > K = 1 > ans = 1.2500 > K = 1 > ans = 1.1111 > K = 1 > ans = 1 > K = 1 > K = 10 > > So, as you can see -- in inner while statement value of K is fixed to 1. > What I am supposed to do to vary this value between 1 and 10. Why it is not Before the start of the for loop initialize p to 0 or whatever? The way you've written it, p will always be greater than 1 for all K's above 1. From liamg at me.com Sat Apr 30 05:20:41 2011 From: liamg at me.com (Liam Groener) Date: Sat, 30 Apr 2011 03:20:41 -0700 Subject: =?windows-1252?Q?Re=3A_while/for_statement_=97_what=27s_wrong_in?= =?windows-1252?Q?_a_code=3F?= In-Reply-To: References: <1304157208179-3485616.post@n4.nabble.com> Message-ID: <5764A105-6CE4-4F76-88E6-70D46E67A540@me.com> On Apr 30, 2011, at 3:15 AM, Liam Groener wrote: > > Before the start of the for loop initialize p to 0 or whatever? The way you've written it, p will always be greater than 1 for all K's above 1. Oop's, that should be initialize p before the while loop, not the for loop. From m.p.zajac at gmail.com Sat Apr 30 05:21:14 2011 From: m.p.zajac at gmail.com (alhaim) Date: Sat, 30 Apr 2011 03:21:14 -0700 (PDT) Subject: =?UTF-8?Q?Re:_while/for_statement_=E2=80=94_what's_wrong_in_a_code=3F?= In-Reply-To: References: <1304157208179-3485616.post@n4.nabble.com> Message-ID: <1304158874492-3485642.post@n4.nabble.com> I should have mention it before -- p is set to 0.01 at the beginning. The whole code goes like this: sens = 0.1; p = 0.1; %K = 1; %ceil(log_2 K)+ 1/[1-(1-p)^K] for K= 1:10 while ( p < 1 ) ceil(log2(K)) + 1/(1-(1-p)^K) p = p + sens; K endwhile; endfor K-- View this message in context: http://octave.1599824.n4.nabble.com/while-for-statement-what-s-wrong-in-a-code-tp3485616p3485642.html Sent from the Octave - General mailing list archive at Nabble.com. From liamg at me.com Sat Apr 30 05:34:07 2011 From: liamg at me.com (Liam Groener) Date: Sat, 30 Apr 2011 03:34:07 -0700 Subject: =?utf-8?Q?Re:_while/for_statement_=E2=80=94_what's_wrong_in_a_co?= =?utf-8?Q?de=3F?= In-Reply-To: <1304158874492-3485642.post@n4.nabble.com> References: <1304157208179-3485616.post@n4.nabble.com> <1304158874492-3485642.post@n4.nabble.com> Message-ID: <5E82FEE2-BDBA-4762-B6AE-A1198D0C9946@me.com> Sent from my iPad On Apr 30, 2011, at 3:21 AM, alhaim wrote: > I should have mention it before -- p is set to 0.01 at the beginning. > > The whole code goes like this: > > > sens = 0.1; > p = 0.1; > > %K = 1; > > %ceil(log_2 K)+ 1/[1-(1-p)^K] > for K= 1:10 > while ( p < 1 ) > ceil(log2(K)) + 1/(1-(1-p)^K) > p = p + sens; > K > endwhile; > endfor > > K-- > View this message in context: http://octave.1599824.n4.nabble.com/while-for-statement-what-s-wrong-in-a-code-tp3485616p3485642.html > Sent from the Octave - General mailing list archive at Nabble.com. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave Yep, but the p=0.1 should be the first statement in the for loop, just before the while statement. Otherwise p will always be greater than 1 for K greater than 1. From m.p.zajac at gmail.com Sat Apr 30 05:52:09 2011 From: m.p.zajac at gmail.com (alhaim) Date: Sat, 30 Apr 2011 03:52:09 -0700 (PDT) Subject: =?UTF-8?Q?Re:_while/for_statement_=E2=80=94_what's_wrong_in_a_code=3F?= In-Reply-To: <5E82FEE2-BDBA-4762-B6AE-A1198D0C9946@me.com> References: <1304157208179-3485616.post@n4.nabble.com> <1304158874492-3485642.post@n4.nabble.com> <5E82FEE2-BDBA-4762-B6AE-A1198D0C9946@me.com> Message-ID: <1304160729355-3485676.post@n4.nabble.com> You're right. Thanks.-- View this message in context: http://octave.1599824.n4.nabble.com/while-for-statement-what-s-wrong-in-a-code-tp3485616p3485676.html Sent from the Octave - General mailing list archive at Nabble.com. From wahaj87 at yahoo.com Sat Apr 30 17:49:47 2011 From: wahaj87 at yahoo.com (wahaj87) Date: Sat, 30 Apr 2011 15:49:47 -0700 (PDT) Subject: strcat not found--MinGW In-Reply-To: <4DB9DFD1.70401@daryllee.com> References: <4DB9DFD1.70401@daryllee.com> Message-ID: <1304203787084-3486706.post@n4.nabble.com> Hi Daryl Lee Your program is very nice. I am learning from it. Here is simple solution for your problem. 1 - I used this command to build the stand alone executable on vista and xp machines. mkoctfile -Lc:\Octave\lib -LC:\octave\include\octave-3.2.4\octave --link-stand-alone test2.cpp -o test2 above command is little different from yours, I think some path is not seen by octave compiler on my computer for lapack library, so I manually given the library path. Now I opened a command prompt, and cd to the directory where i have test2.exe, and run it. The same error you mention pop up. You know why ? This is also a path problem. So to make it right quickly , I copied the strcat.m from directroy "C:\Octave\share\octave\3.2.4\m\strings" to directory where test2.exe exists. Run it again. Again two errors pop up , demanding max and find undefined. So I again copied max.oct and find.oct from directory "C:\Octave\libexec\octave\3.2.4\oct\i686-pc-mingw32", to directory where test2.exe exists. Now I run the test2.exe ! and wow it says in output : Good morning,Hero tHAtS IT.-- View this message in context: http://octave.1599824.n4.nabble.com/strcat-not-found-MinGW-tp3482336p3486706.html Sent from the Octave - General mailing list archive at Nabble.com.