From highegg at gmail.com Thu Oct 1 00:57:59 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Thu, 1 Oct 2009 07:57:59 +0200 Subject: Error on a simple struct assignment In-Reply-To: <4AC329BF.9070204@septentrio.com> References: <4AC329BF.9070204@septentrio.com> Message-ID: <69d8d540909302257n38f4eab1h4b771a296fc8abda@mail.gmail.com> On Wed, Sep 30, 2009 at 11:49 AM, Eric Salemi wrote: > Hi, > > I'm working with Octave 3.2.2 on a windows XP machine. I type the > following 3 commands and get a error after the 3rd (you'll notice the > 2nd and 3rd commands are exactly the same): > > ?> s = struct; > > ?> s(1,1,1).field1 = 0 > s = > { > ? field1 = 0 > } > > ?> s(1,1,1).field1 = 0 > error: invalid assignment to cs-list outside multiple assignment. > error: assignment failed, or no method for `struct = scalar' > > Maybe there is something I don't understand, but I don't see why Octave > consider s(1,1,1).field1 as a cs-list in the 3rd command. As a side > note, doing the same with (2,2,2) as index works flawlessly. Can I > consider this issue a bug? Is there a workaround? > > Eric. > > Works for me with both 3.2.3 and 3.3.50+. I suggest you try 3.2.3. hth -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From carlo.defalco at gmail.com Thu Oct 1 02:48:42 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Thu, 1 Oct 2009 09:48:42 +0200 Subject: A point in a vector? In-Reply-To: <200909302111.50345.ct529@york.ac.uk> References: <200909302111.50345.ct529@york.ac.uk> Message-ID: <815F5BBE-6739-4D86-8CB7-3B2B2E7BB4AD@gmail.com> On 30 Sep 2009, at 22:11, Corrado wrote: > Dear list, > > I have a strange requirement .... I have a vector, for example > > v=[0,0,0,0,1,2,4,6,8,8,8,8]. I have a value,for example x=4.8. > > I would like to understand in which sub interval of v is x. > > In this case, v would be in the sub interval [4,6] that is in the > subinterval > starting from element j=7 to the element j+1=8. > > Can we do that with an octave command? > > Regards > -- > Corrado Topi this is done as follows in the function "findspan" from the nurbs package j = min (lookup (v, x, "lr") - 1, n); just out of curiosity, is your "v" an open knot vector for a B-spline? c. From highegg at gmail.com Thu Oct 1 02:54:23 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Thu, 1 Oct 2009 09:54:23 +0200 Subject: A point in a vector? In-Reply-To: <200909302111.50345.ct529@york.ac.uk> References: <200909302111.50345.ct529@york.ac.uk> Message-ID: <69d8d540910010054u2432cf1bl5be98fa21268118d@mail.gmail.com> On Wed, Sep 30, 2009 at 10:11 PM, Corrado wrote: > Dear list, > > I have a strange requirement .... I have a vector, for example > > v=[0,0,0,0,1,2,4,6,8,8,8,8]. I have a value,for example x=4.8. > > I would like to understand in which sub interval of v is x. > > In this case, v would be in the sub interval [4,6] that is in the subinterval > starting from element j=7 to the element j+1=8. > > Can we do that with an octave command? > > Regards > -- Try "help lookup" -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From ct529 at york.ac.uk Thu Oct 1 04:21:36 2009 From: ct529 at york.ac.uk (Corrado) Date: Thu, 1 Oct 2009 10:21:36 +0100 Subject: IRLS or other iteratively reweighted optimization algorithms in octave Message-ID: <200910011021.37029.ct529@york.ac.uk> Dear list, is there an iterative re weighted least square algorithm or any or other iteratively re weigthed optimisation algorithms for non linear (and possibly non parametric) optimisation problems available in Octave? Regards -- Corrado Topi Global Climate Change & Biodiversity Indicators Area 18,Department of Biology University of York, York, YO10 5YW, UK Phone: + 44 (0) 1904 328645, E-mail: ct529 at york.ac.uk From bpabbott at mac.com Thu Oct 1 05:59:15 2009 From: bpabbott at mac.com (Ben Abbott) Date: Thu, 01 Oct 2009 06:59:15 -0400 Subject: feval call to a subfunction fails when it is in a subfunction In-Reply-To: References: <4AC40894.70707@sidney.com> Message-ID: <0896992E-1E61-4404-8F3C-9CBFAC2F0A90@mac.com> On Sep 30, 2009, at 9:53 PM, Ben Abbott wrote: > > On Sep 30, 2009, at 9:40 PM, Sidney Markowitz wrote: > >> I'm new to using Octave and don't know if this is a bug in my code, a >> bug in Octave, or something wrong with my installed copy of Octave. >> >> The following code demonstrates the problem. The first feval, in the >> main function, works and the result is displayed. The other feval, >> inside the subfunction switchyard2, gets an error in line 9 >> error: feval: function `mysin' not found >> >> I am using Octave version 3.2.2 compiled on my Macbook under MacOS >> 10.6.1, downloaded and built from Macports. I put the following text >> in >> a file named ./switchyard.m and invoked it in the Octave command >> line by >> typing switchyard(10) >> >> Do others get the same results? Is there a bug in my example code? >> Is it >> a bug in Octave? >> >> function y = switchyard(x) >> z = feval('mysin', x); >> disp(z); >> y = switchyard2(x); >> return; >> endfunction >> >> function y = switchyard2(x) >> y = feval('mysin', x); >> return; >> endfunction >> >> function y= mysin(x) >> y = sin(x); >> return; >> endfunction > > > It appears that I'm getting the same. > > octave-3.2.2:4> switchyard(pi) > 1.2246e-16 > error: feval: function `mysin' not found > error: called from: > error: /Users/bpabbott/switchyard.m at line 9, column 5 > error: /Users/bpabbott/switchyard.m at line 4, column 6 > > 01 function y = switchyard(x) > 02 z = feval('mysin', x); > 03 disp(z); > 04 y = switchyard2(x); > 05 return; > 06 endfunction > 07 > 08 function y = switchyard2(x) > 09 y = feval('mysin', x); > 10 return; > 11 endfunction > 12 > 13 function y= mysin(x) > 14 y = sin(x); > 15 return; > 16 endfunction > > I'm also running Mac OS 10.6. > > I'm presently building the developers sources, so I can't check them > till tomorrow. > > Ben With the developers sources, it works as expected. octave:3> switchyard(pi) 1.2246e-16 ans = 1.2246e-16 Ben From sidney at sidney.com Thu Oct 1 12:10:34 2009 From: sidney at sidney.com (Sidney Markowitz) Date: Fri, 02 Oct 2009 06:10:34 +1300 Subject: feval call to a subfunction fails when it is in a subfunction In-Reply-To: <0896992E-1E61-4404-8F3C-9CBFAC2F0A90@mac.com> References: <4AC40894.70707@sidney.com> <0896992E-1E61-4404-8F3C-9CBFAC2F0A90@mac.com> Message-ID: <4AC4E28A.4010301@sidney.com> Ben Abbott wrote, On 1/10/09 11:59 PM: > With the developers sources, it works as expected. I made a modified Macports portfile changing only version 3.2.2 to 3.2.3 (and changing the md5, sha1, and rmd160 hash values of course), which built fine. Octave 3.2.3 exhibits the same incorrect behavior as 3.2.2 I verified that the older Octave version (3.0 or so) in the Ubuntu distribution repository does run this test case ok, I'm in the process of building Octave 3.2.3 on my Ubuntu machine to see what it does. From jamesanthonydevore at gmail.com Thu Oct 1 14:02:50 2009 From: jamesanthonydevore at gmail.com (Jim DeVore) Date: Thu, 1 Oct 2009 12:02:50 -0700 Subject: Pipe command output in windows Message-ID: Dear fellow Ocave Users,I am a College student, and would like to promote Octave o my fellow engineering students, but one roadblock remains: I cannot copy command line output under windows. I have tried all the traditional piping methods,but cant get it working. If you can show me how to copy command window output to a text file, Many of my classmates will likely use Octave. Thanks! -JTech -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091001/249ef4a9/attachment.html From highegg at gmail.com Thu Oct 1 14:36:12 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Thu, 1 Oct 2009 21:36:12 +0200 Subject: feval call to a subfunction fails when it is in a subfunction In-Reply-To: <4AC4E28A.4010301@sidney.com> References: <4AC40894.70707@sidney.com> <0896992E-1E61-4404-8F3C-9CBFAC2F0A90@mac.com> <4AC4E28A.4010301@sidney.com> Message-ID: <69d8d540910011236y3ede2bcre3bd2638fb0c30ce@mail.gmail.com> On Thu, Oct 1, 2009 at 7:10 PM, Sidney Markowitz wrote: > Ben Abbott wrote, On 1/10/09 11:59 PM: >> With the developers sources, it works as expected. > > I made a modified Macports portfile changing only version 3.2.2 to 3.2.3 > (and changing the md5, sha1, and rmd160 hash values of course), which > built fine. > > Octave 3.2.3 exhibits the same incorrect behavior as 3.2.2 > > I verified that the older Octave version (3.0 or so) in the Ubuntu > distribution repository does run this test case ok, > > I'm in the process of building Octave 3.2.3 on my Ubuntu machine to see > what it does. The rather general fix for development sources was not transplantable to 3.2.3 due to the binary compatibility policy. A separate fix needs to be created. -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From tmacchant at yahoo.co.jp Thu Oct 1 14:45:48 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Fri, 2 Oct 2009 04:45:48 +0900 (JST) Subject: Pipe command output in windows In-Reply-To: Message-ID: <20091001194549.46080.qmail@web3813.mail.bbt.yahoo.co.jp> Hello One of the convenient methods is use 'quick edit mode' in the cmd screen of octave. Please see the below http://www.softwaretipsandtricks.com/windowsxp/articles/124/1/Command-Prompt--Quick-edit-mode This is very useful facility on the cmd prompt. BTW In my case, the pipe works, C:\Programs\Octave\3.2.2_gcc-4.3.0\bin> echo disp("hello") | octave > Hello.txt ******Hello.txt 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'. hello ********** If you don't want to carry out redirction in the octave install folder. Please set the 'PATH' environmental variable. Regards Tatsuro Regards Tatsuro --- Jim DeVore wrote: > Dear fellow Ocave Users,I am a College student, and would like to promote > Octave o my fellow engineering students, but one roadblock remains: I cannot > copy command line output under windows. I have tried all the traditional > piping methods,but cant get it working. > If you can show me how to copy command window output to a text file, Many of > my classmates will likely use Octave. > Thanks! > -JTech > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > -------------------------------------- Yahoo! JAPAN - Internet Security for teenagers and parents. http://pr.mail.yahoo.co.jp/security/ From sidney at sidney.com Thu Oct 1 14:59:47 2009 From: sidney at sidney.com (Sidney Markowitz) Date: Fri, 02 Oct 2009 08:59:47 +1300 Subject: feval call to a subfunction fails when it is in a subfunction In-Reply-To: <69d8d540910011236y3ede2bcre3bd2638fb0c30ce@mail.gmail.com> References: <4AC40894.70707@sidney.com> <0896992E-1E61-4404-8F3C-9CBFAC2F0A90@mac.com> <4AC4E28A.4010301@sidney.com> <69d8d540910011236y3ede2bcre3bd2638fb0c30ce@mail.gmail.com> Message-ID: <4AC50A33.90508@sidney.com> Jaroslav Hajek wrote, On 2/10/09 8:36 AM: > The rather general fix for development sources was not transplantable > to 3.2.3 due to the binary compatibility policy. A separate fix needs > to be created. So this is a known bug in the 3.2.3 branch? Which bug # is it? I didn't find it (or didn't notice it) searching for problems with feval. Is the problem with feval just one symptom of something more general? Is this considered serious enough to port to the 3.2.x branch? I don't have much experience with Octave yet, but this completely breaks mgene, a large gene prediction package that was my reason for trying to get Octave to work, and it does look like this use of feval would be quite common. From highegg at gmail.com Thu Oct 1 15:21:52 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Thu, 1 Oct 2009 22:21:52 +0200 Subject: feval call to a subfunction fails when it is in a subfunction In-Reply-To: <4AC50A33.90508@sidney.com> References: <4AC40894.70707@sidney.com> <0896992E-1E61-4404-8F3C-9CBFAC2F0A90@mac.com> <4AC4E28A.4010301@sidney.com> <69d8d540910011236y3ede2bcre3bd2638fb0c30ce@mail.gmail.com> <4AC50A33.90508@sidney.com> Message-ID: <69d8d540910011321n7efb1133v1809bc4f522c6770@mail.gmail.com> On Thu, Oct 1, 2009 at 9:59 PM, Sidney Markowitz wrote: > Jaroslav Hajek wrote, On 2/10/09 8:36 AM: >> >> The rather general fix for development sources was not transplantable >> to 3.2.3 due to the binary compatibility policy. A separate fix needs >> to be created. > > So this is a known bug in the 3.2.3 branch? Which bug # is it? I didn't find > it (or didn't notice it) searching for problems with feval. Is the problem > with feval just one symptom of something more general? > I didn't actually check, but I believe it is an instance of this problem: http://www.nabble.com/Using-STR2FUNC-in-sub-function-to-refer-to-other-sub-function(s)-td25401966.html#a25432999 > Is this considered serious enough to port to the 3.2.x branch? I don't have > much experience with Octave yet, but this completely breaks mgene, a large > gene prediction package that was my reason for trying to get Octave to work, > and it does look like this use of feval would be quite common. > I don't think this ever worked, so it's not really a regression... if I have the time, I'll invent a patch for 3.2.4. The relevant patch for 3.3.50+ is http://hg.savannah.gnu.org/hgweb/octave/rev/8d79f36ebdde and it may be usable with 3.2.3 sources or just use the development sources. It can't be transplanted to the 3.2.x tree because a new member field is added which is a kind of change that generally breaks binary compatibility. -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From macy at sfo.com Thu Oct 1 15:22:27 2009 From: macy at sfo.com (macy at sfo.com) Date: Thu, 1 Oct 2009 13:22:27 -0700 (PDT) Subject: feval call to a subfunction fails when it is in a subfunction In-Reply-To: <4AC50A33.90508@sidney.com> References: <4AC40894.70707@sidney.com> <0896992E-1E61-4404-8F3C-9CBFAC2F0A90@mac.com> <4AC4E28A.4010301@sidney.com> <69d8d540910011236y3ede2bcre3bd2638fb0c30ce@mail.gmail.com> <4AC50A33.90508@sidney.com> Message-ID: <1268.66.81.36.236.1254428547.squirrel@cp01.sfo.com> Have you tried using octave 2.1.50a ?? It's small runs on WinXP or Win98 nicely. I've had to use that in order to get the super fast plotting functions that used to exist. Robert > Jaroslav Hajek wrote, On 2/10/09 8:36 AM: >> The rather general fix for development sources was not transplantable >> to 3.2.3 due to the binary compatibility policy. A separate fix needs >> to be created. > > So this is a known bug in the 3.2.3 branch? Which bug # is it? I didn't > find it (or didn't notice it) searching for problems with feval. Is the > problem with feval just one symptom of something more general? > > Is this considered serious enough to port to the 3.2.x branch? I don't > have much experience with Octave yet, but this completely breaks mgene, > a large gene prediction package that was my reason for trying to get > Octave to work, and it does look like this use of feval would be quite > common. From sidney at sidney.com Thu Oct 1 15:34:56 2009 From: sidney at sidney.com (Sidney Markowitz) Date: Fri, 02 Oct 2009 09:34:56 +1300 Subject: feval call to a subfunction fails when it is in a subfunction In-Reply-To: <69d8d540910011321n7efb1133v1809bc4f522c6770@mail.gmail.com> References: <4AC40894.70707@sidney.com> <0896992E-1E61-4404-8F3C-9CBFAC2F0A90@mac.com> <4AC4E28A.4010301@sidney.com> <69d8d540910011236y3ede2bcre3bd2638fb0c30ce@mail.gmail.com> <4AC50A33.90508@sidney.com> <69d8d540910011321n7efb1133v1809bc4f522c6770@mail.gmail.com> Message-ID: <4AC51270.6060608@sidney.com> Jaroslav Hajek wrote, On 2/10/09 9:21 AM: > I don't think this ever worked, so it's not really a regression... I don't know about the general case of the bug, but the feval test that I posted does work in the 3.0.1 version that is in the Ubuntu repository. And it certainly worked when mgene was written, which makes it a regression from the standpoint of at least that application that relies on Octave. That's not an argument or a complaint, of course, just a datapoint in case whether it worked in 3.0 influences what you decide to do for 3.2.4. In any case I appreciate your looking at it and would especially appreciate having it fixed in a stable release. From mi.zhou at STJUDE.ORG Thu Oct 1 16:54:47 2009 From: mi.zhou at STJUDE.ORG (Mi Zhou) Date: Thu, 1 Oct 2009 16:54:47 -0500 Subject: 3.2.3 compiling error Message-ID: <1254434087.7032.240.camel@hc-mzhou-l> Hi, I'm trying to compile octave-3.2.3 on CentOS5.3 64bit machine. Got this error: ../src/liboctinterp.so: undefined reference to `std::basic_istream >::ignore()' ../src/liboctinterp.so: undefined reference to `__cxa_get_exception_ptr' Have anybody seen this? Thanks, Mi Zhou St. Jude Children's Research Hospital Email Disclaimer: www.stjude.org/emaildisclaimer From thomas.weber.mail at gmail.com Thu Oct 1 23:05:14 2009 From: thomas.weber.mail at gmail.com (Thomas Weber) Date: Fri, 2 Oct 2009 06:05:14 +0200 Subject: 3.2.3 compiling error In-Reply-To: <1254434087.7032.240.camel@hc-mzhou-l> References: <1254434087.7032.240.camel@hc-mzhou-l> Message-ID: <20091002040514.GA6634@atlan> On Thu, Oct 01, 2009 at 04:54:47PM -0500, Mi Zhou wrote: > Hi, > > I'm trying to compile octave-3.2.3 on CentOS5.3 64bit machine. Got this > error: > > ../src/liboctinterp.so: undefined reference to `std::basic_istream std::char_traits >::ignore()' > ../src/liboctinterp.so: undefined reference to `__cxa_get_exception_ptr' Which compiler? Thomas From highegg at gmail.com Fri Oct 2 00:42:09 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Fri, 2 Oct 2009 07:42:09 +0200 Subject: feval call to a subfunction fails when it is in a subfunction In-Reply-To: <4AC51270.6060608@sidney.com> References: <4AC40894.70707@sidney.com> <0896992E-1E61-4404-8F3C-9CBFAC2F0A90@mac.com> <4AC4E28A.4010301@sidney.com> <69d8d540910011236y3ede2bcre3bd2638fb0c30ce@mail.gmail.com> <4AC50A33.90508@sidney.com> <69d8d540910011321n7efb1133v1809bc4f522c6770@mail.gmail.com> <4AC51270.6060608@sidney.com> Message-ID: <69d8d540910012242s147fb6bbw4813a3a0d15f4624@mail.gmail.com> On Thu, Oct 1, 2009 at 10:34 PM, Sidney Markowitz wrote: > Jaroslav Hajek wrote, On 2/10/09 9:21 AM: >> >> I don't think this ever worked, so it's not really a regression... > > I don't know about the general case of the bug, but the feval test that I > posted does work in the 3.0.1 version that is in the Ubuntu repository. And > it certainly worked when mgene was written, which makes it a regression from > the standpoint of at least that application that relies on Octave. > When trying with 3.0.5, the feval call really works, but "mysin" is inserted into global namespace, which is wrong. So on the whole, it doesn't work correctly, although the result is more satisfactory for you (maybe for most people). In reality it doesn't really matter since the symbol table code has been completely rewritten since. best -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From tmacchant at yahoo.co.jp Fri Oct 2 09:59:03 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Fri, 2 Oct 2009 23:59:03 +0900 (JST) Subject: Pipe command output in windows Message-ID: <20091002145903.116.qmail@web3806.mail.bbt.yahoo.co.jp> Hello I have forgotten to cc. this mail to hep-octave.octave.org. So I will forward it. Regards Tatsuro --- Tatsuro MATSUOKA wrote: > Hello > > > --- Jim DeVore wrote: > > > Thanks for your prompt help!I got the copy trick to work as you described. > > But as for the piping, I do not quite understand your syntax. > > If you would be willing to explain that as well, that would be fantastic! > > -JTech > > Sorry I have missed to delete reply that was almost completed. I do not have enough power to > write > again to you. > > I only show simple screen shot. > > From cmd prompt > > ********************* > d:\usr\Tatsu>cd D:\usr\Tatsu\program\Octave\test2 > > D:\usr\Tatsu\program\Octave\test2>dir test3.m > Volume in drive D has no label. > Volume Serial Number is ACCF-78A8 > > Directory of D:\usr\Tatsu\program\Octave\test2 > > 2009/10/02 18:43 102 test3.m > 1 File(s) 102 bytes > 0 Dir(s) 50,182,217,728 bytes free > > D:\usr\Tatsu\program\Octave\test2>type test3.m > f=@(x) x./((1-x).*(1-x))-0.25*exp(20-(10000)./(450+250*x)); > % > [x, info] = fsolve (f, 0.8) > T=450+250*x > > D:\usr\Tatsu\program\Octave\test2>octave test3.m > 'octave' is not recognized as an internal or external command, > operable program or batch file. > > D:\usr\Tatsu\program\Octave\test2>set PATH=C:\Programs\Octave\3.2.2_gcc-4.3.0\bi > n;%PATH% > > D:\usr\Tatsu\program\Octave\test2>octave test3.m > GNU Octave, version 3.2.2 > 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 "i686-pc-mingw32". > > 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'. > > x = 0.83633 > info = -4.4829e-007 > T = 659.08 > > > D:\usr\Tatsu\program\Octave\test2>octave test3.m > test3.txt > > D:\usr\Tatsu\program\Octave\test2>type test3.txt > GNU Octave, version 3.2.2 > 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 "i686-pc-mingw32". > > 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'. > > x = 0.83633 > info = -4.4829e-007 > T = 659.08 > > D:\usr\Tatsu\program\Octave\test2>type test3.m | octave > GNU Octave, version 3.2.2 > 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 "i686-pc-mingw32". > > 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'. > > x = 0.83633 > info = -4.4829e-007 > T = 659.08 > > D:\usr\Tatsu\program\Octave\test2>type test3.m | octave > test3.txt > > D:\usr\Tatsu\program\Octave\test2>type test3.txt > GNU Octave, version 3.2.2 > 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 "i686-pc-mingw32". > > 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'. > > x = 0.83633 > info = -4.4829e-007 > T = 659.08 > > ************************** > set PATH=C:\Programs\Octave\3.2.2_gcc-4.3.0\bin;%PATH% > > is not required if you set PATH to bin folder of octave by control panel (Windows XP). > > Reference > > http://www.helpwithwindows.com/WindowsXP/howto-04.html > http://vlaurie.com/computers2/Articles/environment.htm > http://vistaonwindows.com/environment_variables.html > http://ss64.com/nt/ > > Regards > > Tatsuro > > > 2009/10/1 Tatsuro MATSUOKA > > > > Hello > > > > > > One of the convenient methods is use 'quick edit mode' in the cmd screen of > > > octave. > > > > > > Please see the below > > > > > > > > > > http://www.softwaretipsandtricks.com/windowsxp/articles/124/1/Command-Prompt--Quick-edit-mode > > > > > > This is very useful facility on the cmd prompt. > > > > > > BTW > > > In my case, the pipe works, > > > > > > C:\Programs\Octave\3.2.2_gcc-4.3.0\bin> echo disp("hello") | octave > > > > Hello.txt > > > > > > ******Hello.txt > > > 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'. > > > > > > hello > > > ********** > > > > > > If you don't want to carry out redirction in the octave install folder. > > > Please set the 'PATH' > > > environmental variable. > > > > > > Regards > > > > > > Tatsuro > > > > > > Regards > > > > > > Tatsuro > > > > > > --- Jim DeVore wrote: > > > > > > > Dear fellow Ocave Users,I am a College student, and would like to promote > > > > Octave o my fellow engineering students, but one roadblock remains: I > > > cannot > > > > copy command line output under windows. I have tried all the traditional > > > > piping methods,but cant get it working. > > > > If you can show me how to copy command window output to a text file, Many > > > of > > > > my classmates will likely use Octave. > > > > Thanks! > > > > -JTech > > > > > _______________________________________________ > > > > Help-octave mailing list > > > > Help-octave at octave.org > > > > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > > > > > > > > > > > > -------------------------------------- > > > Yahoo! JAPAN - Internet Security for teenagers and parents. > > > http://pr.mail.yahoo.co.jp/security/ > > > > > > > > -------------------------------------- > Yahoo! JAPAN - Internet Security for teenagers and parents. > http://pr.mail.yahoo.co.jp/security/ > -------------------------------------- Yahoo! JAPAN - Internet Security for teenagers and parents. http://pr.mail.yahoo.co.jp/security/ From tmacchant at yahoo.co.jp Fri Oct 2 09:59:08 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Fri, 2 Oct 2009 23:59:08 +0900 (JST) Subject: Pipe command output in windows Message-ID: <20091002145908.63864.qmail@web3808.mail.bbt.yahoo.co.jp> Hello I have forgotten to cc. this mail to hep-octave.octave.org. So I will forward it. Regards Tatsuro --- Tatsuro MATSUOKA wrote: > Hello > > > --- Jim DeVore wrote: > > > Thanks for your prompt help!I got the copy trick to work as you described. > > But as for the piping, I do not quite understand your syntax. > > If you would be willing to explain that as well, that would be fantastic! > > -JTech > > Sorry I have missed to delete reply that was almost completed. I do not have enough power to > write > again to you. > > I only show simple screen shot. > > From cmd prompt > > ********************* > d:\usr\Tatsu>cd D:\usr\Tatsu\program\Octave\test2 > > D:\usr\Tatsu\program\Octave\test2>dir test3.m > Volume in drive D has no label. > Volume Serial Number is ACCF-78A8 > > Directory of D:\usr\Tatsu\program\Octave\test2 > > 2009/10/02 18:43 102 test3.m > 1 File(s) 102 bytes > 0 Dir(s) 50,182,217,728 bytes free > > D:\usr\Tatsu\program\Octave\test2>type test3.m > f=@(x) x./((1-x).*(1-x))-0.25*exp(20-(10000)./(450+250*x)); > % > [x, info] = fsolve (f, 0.8) > T=450+250*x > > D:\usr\Tatsu\program\Octave\test2>octave test3.m > 'octave' is not recognized as an internal or external command, > operable program or batch file. > > D:\usr\Tatsu\program\Octave\test2>set PATH=C:\Programs\Octave\3.2.2_gcc-4.3.0\bi > n;%PATH% > > D:\usr\Tatsu\program\Octave\test2>octave test3.m > GNU Octave, version 3.2.2 > 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 "i686-pc-mingw32". > > 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'. > > x = 0.83633 > info = -4.4829e-007 > T = 659.08 > > > D:\usr\Tatsu\program\Octave\test2>octave test3.m > test3.txt > > D:\usr\Tatsu\program\Octave\test2>type test3.txt > GNU Octave, version 3.2.2 > 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 "i686-pc-mingw32". > > 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'. > > x = 0.83633 > info = -4.4829e-007 > T = 659.08 > > D:\usr\Tatsu\program\Octave\test2>type test3.m | octave > GNU Octave, version 3.2.2 > 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 "i686-pc-mingw32". > > 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'. > > x = 0.83633 > info = -4.4829e-007 > T = 659.08 > > D:\usr\Tatsu\program\Octave\test2>type test3.m | octave > test3.txt > > D:\usr\Tatsu\program\Octave\test2>type test3.txt > GNU Octave, version 3.2.2 > 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 "i686-pc-mingw32". > > 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'. > > x = 0.83633 > info = -4.4829e-007 > T = 659.08 > > ************************** > set PATH=C:\Programs\Octave\3.2.2_gcc-4.3.0\bin;%PATH% > > is not required if you set PATH to bin folder of octave by control panel (Windows XP). > > Reference > > http://www.helpwithwindows.com/WindowsXP/howto-04.html > http://vlaurie.com/computers2/Articles/environment.htm > http://vistaonwindows.com/environment_variables.html > http://ss64.com/nt/ > > Regards > > Tatsuro > > > 2009/10/1 Tatsuro MATSUOKA > > > > Hello > > > > > > One of the convenient methods is use 'quick edit mode' in the cmd screen of > > > octave. > > > > > > Please see the below > > > > > > > > > > http://www.softwaretipsandtricks.com/windowsxp/articles/124/1/Command-Prompt--Quick-edit-mode > > > > > > This is very useful facility on the cmd prompt. > > > > > > BTW > > > In my case, the pipe works, > > > > > > C:\Programs\Octave\3.2.2_gcc-4.3.0\bin> echo disp("hello") | octave > > > > Hello.txt > > > > > > ******Hello.txt > > > 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'. > > > > > > hello > > > ********** > > > > > > If you don't want to carry out redirction in the octave install folder. > > > Please set the 'PATH' > > > environmental variable. > > > > > > Regards > > > > > > Tatsuro > > > > > > Regards > > > > > > Tatsuro > > > > > > --- Jim DeVore wrote: > > > > > > > Dear fellow Ocave Users,I am a College student, and would like to promote > > > > Octave o my fellow engineering students, but one roadblock remains: I > > > cannot > > > > copy command line output under windows. I have tried all the traditional > > > > piping methods,but cant get it working. > > > > If you can show me how to copy command window output to a text file, Many > > > of > > > > my classmates will likely use Octave. > > > > Thanks! > > > > -JTech > > > > > _______________________________________________ > > > > Help-octave mailing list > > > > Help-octave at octave.org > > > > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > > > > > > > > > > > > -------------------------------------- > > > Yahoo! JAPAN - Internet Security for teenagers and parents. > > > http://pr.mail.yahoo.co.jp/security/ > > > > > > > > -------------------------------------- > Yahoo! JAPAN - Internet Security for teenagers and parents. > http://pr.mail.yahoo.co.jp/security/ > -------------------------------------- Yahoo! JAPAN - Internet Security for teenagers and parents. http://pr.mail.yahoo.co.jp/security/ From mi.zhou at STJUDE.ORG Fri Oct 2 09:46:59 2009 From: mi.zhou at STJUDE.ORG (Mi Zhou) Date: Fri, 2 Oct 2009 09:46:59 -0500 Subject: 3.2.3 compiling error In-Reply-To: <20091002040514.GA6634@atlan> References: <1254434087.7032.240.camel@hc-mzhou-l> <20091002040514.GA6634@atlan> Message-ID: <1254494819.7032.245.camel@hc-mzhou-l> g++ (Gcc) 4.1.2 On Thu, 2009-10-01 at 23:05 -0500, Thomas Weber wrote: > On Thu, Oct 01, 2009 at 04:54:47PM -0500, Mi Zhou wrote: > > Hi, > > > > I'm trying to compile octave-3.2.3 on CentOS5.3 64bit machine. Got this > > error: > > > > ../src/liboctinterp.so: undefined reference to `std::basic_istream > std::char_traits >::ignore()' > > ../src/liboctinterp.so: undefined reference to `__cxa_get_exception_ptr' > > Which compiler? > > Thomas > Email Disclaimer: www.stjude.org/emaildisclaimer From babelproofreader at gmail.com Sat Oct 3 05:52:34 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Sat, 3 Oct 2009 03:52:34 -0700 (PDT) Subject: Problem creating complied oct file Message-ID: <25727690.post@talk.nabble.com> I have written a function that by necessity uses a loop for recursive calculations and also has loops within the main loop and as a result it is very slow. Despite much investigation I have not been able to find out how to vectorise this function and so have decided to compile an oct file as I believe the loop structures can be easily written in c++. However I am having problems just passing arguments to the function and retrieving the output value. My code so far, in a file called "loop.cc", is #include #include DEFUN_DLD (loop, args, , "Help String") { octave_value retval; double numbers = args(0); // Do something octave_stdout << "The input values are " << numbers << "\n"; retval = numbers; return retval; } The input, args(0), is a column vector of values, but when I try compiling I get the error message loop.cc: In function ?octave_value_list Floop(const octave_value_list&, int)?: loop.cc:7: error: cannot convert ?octave_value? to ?double? in initialization Can anyone suggest how I can pass a column vector of values (consisting of positive and negative numbers with up to 6 decimal places) as an argument to the function? Also, in anticipation of problems in returning calculated values, what would be the correct syntax for the function to return 2 separate column vectors after calculations based on the input? -- View this message in context: http://www.nabble.com/Problem-creating-complied-oct-file-tp25727690p25727690.html Sent from the Octave - General mailing list archive at Nabble.com. From babelproofreader at gmail.com Sat Oct 3 05:54:15 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Sat, 3 Oct 2009 03:54:15 -0700 (PDT) Subject: Problem creating compiled oct file Message-ID: <25727690.post@talk.nabble.com> I have written a function that by necessity uses a loop for recursive calculations and also has loops within the main loop and as a result it is very slow. Despite much investigation I have not been able to find out how to vectorise this function and so have decided to compile an oct file as I believe the loop structures can be easily written in c++. However I am having problems just passing arguments to the function and retrieving the output value. My code so far, in a file called "loop.cc", is #include #include DEFUN_DLD (loop, args, , "Help String") { octave_value retval; double numbers = args(0); // Do something octave_stdout << "The input values are " << numbers << "\n"; retval = numbers; return retval; } The input, args(0), is a column vector of values, but when I try compiling I get the error message loop.cc: In function ?octave_value_list Floop(const octave_value_list&, int)?: loop.cc:7: error: cannot convert ?octave_value? to ?double? in initialization Can anyone suggest how I can pass a column vector of values (consisting of positive and negative numbers with up to 6 decimal places) as an argument to the function? Also, in anticipation of problems in returning calculated values, what would be the correct syntax for the function to return 2 separate column vectors after calculations based on the input? -- View this message in context: http://www.nabble.com/Problem-creating-compiled-oct-file-tp25727690p25727690.html Sent from the Octave - General mailing list archive at Nabble.com. From soren at hauberg.org Sat Oct 3 06:03:56 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Sat, 03 Oct 2009 13:03:56 +0200 Subject: Problem creating compiled oct file In-Reply-To: <25727690.post@talk.nabble.com> References: <25727690.post@talk.nabble.com> Message-ID: <1254567836.4439.5.camel@sh-t400> l?r, 03 10 2009 kl. 03:54 -0700, skrev babelproofreader: > DEFUN_DLD (loop, args, , "Help String") > { > octave_value retval; > double numbers = args(0); > // Do something > octave_stdout << "The input values are " << numbers << "\n"; > retval = numbers; > return retval; > } > > The input, args(0), is a column vector of values, but when I try compiling I > get the error message C++ has a much more strict type system, so you can't expect it to work out types for you at run-time. You need to do something like ColumnVector c = args (0).column_vector_value (); octave_stdout << c (0) << std::endl; To see which member functions the 'octave_value' class has, you can look at http://octave.sourceforge.net/doxygen/html/classoctave__value.html To get some more knowledge about the C++ API, you might want to read the Appendix in the Octave manual. S?ren From Thomas.Treichl at gmx.net Sat Oct 3 06:38:04 2009 From: Thomas.Treichl at gmx.net (Thomas Treichl) Date: Sat, 03 Oct 2009 13:38:04 +0200 Subject: Octave.app 3.2.3 for Mac OS X 10.4.x and 10.5.x Message-ID: <4AC7379C.20308@gmx.net> Hi, by the end of this year I'll take a break from building future versions of Octave.app. If there is somebody out there who likes to do this job in the future then you're very welcome. The build scripts already are part of the Octave-Forge project so that you can have a look at them but maybe they need to be adapted to your Mac. I think that for many of you as for me Octave.app was and still is a useful ready-to-run program, so I must say that I'd also like to see future versions of it even if I'm not the one who builds them. For now, I have uploaded the compressed disc images *.dmg including Octave.app 3.2.3 for PPC and i386 MacOSX to the SourceForge's server. The system requirements for the PPC architecture are MacOSX 10.4.x or newer and a PPC G4 processor or better, for the i386 architecture MacOSX 10.4.x or 10.5.x. You can get it from http://octave.sourceforge.net. We have had more than 6600 downloads for Octave.app 3.2.2 the past 2 months. Now, if you find this program useful then please support its development. See http://www.octave.org/help-wanted.html for more information about how you can help. If you want to update Octave.app from version 3.0.x then you also should read the announcement for Octave.app 3.2.0 which can be found at http://www-old.cae.wisc.edu/pipermail/help-octave/2009-June/014739.html The md5 check sums of the compressed disc images are: MD5 (octave-3.2.3-ppc.dmg) = f2028c1456be495f717e4eb70d2fb4e9 MD5 (octave-3.2.3-i386.dmg) = d84df2fe253f586c8c801436ffc658eb That's it from my side, enjoy, Thomas From babelproofreader at gmail.com Sat Oct 3 09:47:30 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Sat, 3 Oct 2009 07:47:30 -0700 (PDT) Subject: Problem creating compiled oct file In-Reply-To: <1254567836.4439.5.camel@sh-t400> References: <25727690.post@talk.nabble.com> <1254567836.4439.5.camel@sh-t400> Message-ID: <25729477.post@talk.nabble.com> C++ has a much more strict type system, so you can't expect it to work out types for you at run-time. You need to do something like ColumnVector c = args (0).column_vector_value (); octave_stdout << c (0) << std::endl; What syntax would I use to access the individual elements of c? -- View this message in context: http://www.nabble.com/Problem-creating-compiled-oct-file-tp25727690p25729477.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Sun Oct 4 01:33:28 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Sun, 4 Oct 2009 08:33:28 +0200 Subject: Problem creating compiled oct file In-Reply-To: <25729477.post@talk.nabble.com> References: <25727690.post@talk.nabble.com> <1254567836.4439.5.camel@sh-t400> <25729477.post@talk.nabble.com> Message-ID: <7E70D461-BC2B-4FC1-B670-58B8A8A373DF@gmail.com> On 3 Oct 2009, at 16:47, babelproofreader wrote: > > C++ has a much more strict type system, so you can't expect it to work > out types for you at run-time. You need to do something like > > ColumnVector c = args (0).column_vector_value (); > octave_stdout << c (0) << std::endl; > > What syntax would I use to access the individual elements of c? That's already shown in S?ren's example: "c (0)" stands for the first element of c the example below shows how you would print all elements of c for (ii = octave_idx_type (0); ii Hi, Thank you for reading my post. I have installed "octave" and "xv". Both of them work correctly. I want to use "xv" as "octave"'s image viewer. I read one should use a command such as: image_viewer("xv"); My problem is the following: where does this command has to be executed? - At "octave"'s command line? - In a "~/.octaverc" file? - ... And... if it was not too much asking, could you post me your "~/.octaverc" file because I have none and cannot find any sample on the Internet . Thank you for you help in advance , all the best, -- Lmhelp -- View this message in context: http://www.nabble.com/octave---xv---image-viewer-tp25736979p25736979.html Sent from the Octave - General mailing list archive at Nabble.com. From soren at hauberg.org Sun Oct 4 07:12:00 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Sun, 04 Oct 2009 14:12:00 +0200 Subject: octave - xv - image viewer In-Reply-To: <25736979.post@talk.nabble.com> References: <25736979.post@talk.nabble.com> Message-ID: <1254658320.5143.6.camel@sh-t400> Hi, s?n, 04 10 2009 kl. 04:05 -0700, skrev lmhelp: > I want to use "xv" as "octave"'s image viewer. > > I read one should use a command such as: > image_viewer("xv"); I believe you should use image_viewer ("xv %s"); > My problem is the following: > where does this command has to be executed? > - At "octave"'s command line? > - In a "~/.octaverc" file? Both options work. > And... if it was not too much asking, could you post me your > "~/.octaverc" file because I have none and cannot find any > sample on the Internet . Most people do not have such a file as the default settings work quite well. The '~/.octaverc' is just an Octave script that is evaluated when Octave is started. This means you can put any commands in this file. In your case, just create a file with the following contents: image_viewer ("xv %s"); and that should be it. S?ren From lmbox at wanadoo.fr Sun Oct 4 07:25:19 2009 From: lmbox at wanadoo.fr (lmhelp) Date: Sun, 4 Oct 2009 05:25:19 -0700 (PDT) Subject: octave - xv - image viewer In-Reply-To: <25736979.post@talk.nabble.com> References: <25736979.post@talk.nabble.com> Message-ID: <25737526.post@talk.nabble.com> Hi, Thank you for your answer. So, I created a ".octaverc" in my home folder "/home/lmhelp" containing: ------------------------------------------------------------------------------------ image_viewer("xv %s"); ------------------------------------------------------------------------------------ (that's all the file contains). Now, when I launch "octave", I get the following error message: ------------------------------------------------------------------------------------ error: 'image_viewer' undefined near line 1 column 1 error: near line 1 of file '/home/lmhelp/.octaverc' ------------------------------------------------------------------------------------ It looks like there is something else going wrong... Can you help me? Thanks and all the best, -- Lmhelp -- View this message in context: http://www.nabble.com/octave---xv---image-viewer-tp25736979p25737526.html Sent from the Octave - General mailing list archive at Nabble.com. From soren at hauberg.org Sun Oct 4 07:31:18 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Sun, 04 Oct 2009 14:31:18 +0200 Subject: octave - xv - image viewer In-Reply-To: <25737526.post@talk.nabble.com> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> Message-ID: <1254659478.5143.7.camel@sh-t400> s?n, 04 10 2009 kl. 05:25 -0700, skrev lmhelp: > Now, when I launch "octave", I get the following error message: > ------------------------------------------------------------------------------------ > error: 'image_viewer' undefined near line 1 column 1 > error: near line 1 of file '/home/lmhelp/.octaverc' > ------------------------------------------------------------------------------------ > > It looks like there is something else going wrong... What version of Octave are you running? S?ren From lmbox at wanadoo.fr Sun Oct 4 07:40:06 2009 From: lmbox at wanadoo.fr (lmhelp) Date: Sun, 4 Oct 2009 05:40:06 -0700 (PDT) Subject: octave - xv - image viewer In-Reply-To: <1254659478.5143.7.camel@sh-t400> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> Message-ID: <25737634.post@talk.nabble.com> GNU Octave, version 2.1.73 All the best, -- Lmhelp S?ren Hauberg wrote: > > s?n, 04 10 2009 kl. 05:25 -0700, skrev lmhelp: >> Now, when I launch "octave", I get the following error message: >> ------------------------------------------------------------------------------------ >> error: 'image_viewer' undefined near line 1 column 1 >> error: near line 1 of file '/home/lmhelp/.octaverc' >> ------------------------------------------------------------------------------------ >> >> It looks like there is something else going wrong... > > What version of Octave are you running? > > S?ren > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://www.nabble.com/octave---xv---image-viewer-tp25736979p25737634.html Sent from the Octave - General mailing list archive at Nabble.com. From soren at hauberg.org Sun Oct 4 07:54:06 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Sun, 04 Oct 2009 14:54:06 +0200 Subject: octave - xv - image viewer In-Reply-To: <25737634.post@talk.nabble.com> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> Message-ID: <1254660846.5143.10.camel@sh-t400> s?n, 04 10 2009 kl. 05:40 -0700, skrev lmhelp: > GNU Octave, version 2.1.73 There's your problem: you are using a very old version of Octave. The 'image_viewer' function was introduced in Octave 3.0, so you'll need to upgrade if you want to use this function. I do believe that Octave 2.1.x uses 'xv' by default to show images, so I'm not sure you'll actually need the 'image_viewer' function. But in any case, it is a good idea to upgrade to the 3.2.x series. S?ren From lmbox at wanadoo.fr Sun Oct 4 08:05:02 2009 From: lmbox at wanadoo.fr (lmhelp) Date: Sun, 4 Oct 2009 06:05:02 -0700 (PDT) Subject: octave - xv - image viewer In-Reply-To: <1254660846.5143.10.camel@sh-t400> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> <1254660846.5143.10.camel@sh-t400> Message-ID: <25737832.post@talk.nabble.com> Ok... snif. I am going to upgrade to Octave > 3.0. I'll let you know if it works or not. "My" Octave doesn't seam to be using "xv" by default... Where can I check which default image viewer Octave uses? Thank you for your help and all the best, -- Lmhelp S?ren Hauberg wrote: > s?n, 04 10 2009 kl. 05:40 -0700, skrev lmhelp: >> GNU Octave, version 2.1.73 > > There's your problem: you are using a very old version of Octave. The > 'image_viewer' function was introduced in Octave 3.0, so you'll need to > upgrade if you want to use this function. > > I do believe that Octave 2.1.x uses 'xv' by default to show images, so > I'm not sure you'll actually need the 'image_viewer' function. > > But in any case, it is a good idea to upgrade to the 3.2.x series. > > S?ren -- View this message in context: http://www.nabble.com/octave---xv---image-viewer-tp25736979p25737832.html Sent from the Octave - General mailing list archive at Nabble.com. From lmbox at wanadoo.fr Sun Oct 4 08:06:59 2009 From: lmbox at wanadoo.fr (lmhelp) Date: Sun, 4 Oct 2009 06:06:59 -0700 (PDT) Subject: octave - xv - image viewer In-Reply-To: <25737832.post@talk.nabble.com> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> <1254660846.5143.10.camel@sh-t400> <25737832.post@talk.nabble.com> Message-ID: <25737843.post@talk.nabble.com> Ooops, by the way... my "xv" version is 3.10a What do you think about that? Thanks, -- Lmhelp -- View this message in context: http://www.nabble.com/octave---xv---image-viewer-tp25736979p25737843.html Sent from the Octave - General mailing list archive at Nabble.com. From soren at hauberg.org Sun Oct 4 08:17:23 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Sun, 04 Oct 2009 15:17:23 +0200 Subject: octave - xv - image viewer In-Reply-To: <25737832.post@talk.nabble.com> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> <1254660846.5143.10.camel@sh-t400> <25737832.post@talk.nabble.com> Message-ID: <1254662243.5143.14.camel@sh-t400> s?n, 04 10 2009 kl. 06:05 -0700, skrev lmhelp: > Ok... snif. > I am going to upgrade to Octave > 3.0. > I'll let you know if it works or not. It comes with a large set of wonderful new features, so you should be happy to have an excuse to upgrade :-) > "My" Octave doesn't seam to be using "xv" by default... > Where can I check which default image viewer Octave uses? I don't have a version of 2.1.x on my machine, so I'm not sure. I think you should look at the source for the 'image' function, to see what's going on. To do this, run type image from the Octave prompt. > Ooops, by the way... my "xv" version is 3.10a > What do you think about that? I haven't used 'xv' in ages, so I don't really know; sorry. S?ren From babelproofreader at gmail.com Sun Oct 4 10:22:15 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Sun, 4 Oct 2009 08:22:15 -0700 (PDT) Subject: Problem creating compiled oct file In-Reply-To: <25727690.post@talk.nabble.com> References: <25727690.post@talk.nabble.com> Message-ID: <25738985.post@talk.nabble.com> I have written a function that by necessity uses a loop for recursive calculations and also has loops within the main loop and as a result it is very slow. Despite much investigation I have not been able to find out how to vectorise this function and so have decided to compile an oct file as I believe the loop structures can be easily written in c++. However I am having problems just passing arguments to the function and retrieving the output value. My code so far, in a file called "loop.cc", is.... My immediate problem is now solved and I post the code below in the hope that it will help others who may search this forum. #include #include DEFUN_DLD (basicloop, args, , "Help String") { octave_value retval; ColumnVector c = args(0).column_vector_value (); // This is the input argument, in column vector form ColumnVector d(c); // This will be the output column vector returned to Octave by "retval" int ii; // Declare the loop counter ii as integer type for (ii = octave_idx_type (0); ii References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> <1254660846.5143.10.camel@sh-t400> <25737832.post@talk.nabble.com> <1254662243.5143.14.camel@sh-t400> Message-ID: <25739350.post@talk.nabble.com> Hi again, I managed to install "Octave version 3.0.1". It took a little time because I had to upgrade my "Debian box" from "Etch" to "Lenny" first to be able to do a simple: # apt-get install octave3.0 The command "image_viewer("xv %s");" launched at "Octave"'s command line doesn't fail anymore. Would you help me a bit more? With "Matlab" I would do: --------------------------------------------------------------------------- pout = imread('pout.tif'); figure(1); imshow(pout); --------------------------------------------------------------------------- Resulting in the display of the image "pout.tif" in a window called "Figure 1". Can you tell me how to do the same with "Octave"? Thank you and all the best, -- Lmhelp -- View this message in context: http://www.nabble.com/octave---xv---image-viewer-tp25736979p25739350.html Sent from the Octave - General mailing list archive at Nabble.com. From soren at hauberg.org Sun Oct 4 11:10:04 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Sun, 04 Oct 2009 18:10:04 +0200 Subject: octave - xv - image viewer In-Reply-To: <25739350.post@talk.nabble.com> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> <1254660846.5143.10.camel@sh-t400> <25737832.post@talk.nabble.com> <1254662243.5143.14.camel@sh-t400> <25739350.post@talk.nabble.com> Message-ID: <1254672604.5143.18.camel@sh-t400> s?n, 04 10 2009 kl. 09:06 -0700, skrev lmhelp: > With "Matlab" I would do: > --------------------------------------------------------------------------- > pout = imread('pout.tif'); > figure(1); > imshow(pout); > --------------------------------------------------------------------------- > Resulting in the display of the image "pout.tif" in a window called > "Figure 1". > > Can you tell me how to do the same with "Octave"? Since you are running Octave 3.0.x, you need to install the 'image' package to get the 'imread' function. In Debian, I think you just have to apt-get install 'octave-image'. S?ren From lmbox at wanadoo.fr Sun Oct 4 11:28:11 2009 From: lmbox at wanadoo.fr (lmhelp) Date: Sun, 4 Oct 2009 09:28:11 -0700 (PDT) Subject: octave - xv - image viewer In-Reply-To: <1254672604.5143.18.camel@sh-t400> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> <1254660846.5143.10.camel@sh-t400> <25737832.post@talk.nabble.com> <1254662243.5143.14.camel@sh-t400> <25739350.post@talk.nabble.com> <1254672604.5143.18.camel@sh-t400> Message-ID: <25739594.post@talk.nabble.com> Hi, Thank you: I installed "octave_image" just as you said (version 1.0.6-3 by the way). I could execute properly: -------------------------------------------------------------------------------------------------- > pout = imread("pout.tif"); > imshow(pout); -------------------------------------------------------------------------------------------------- The problem is that the image is not opened with "xv". Even if I launch "image_viewer("xv %s");" first. Do you know what the problem can be? Thanks and all the best, -- Lmhelp -- View this message in context: http://www.nabble.com/octave---xv---image-viewer-tp25736979p25739594.html Sent from the Octave - General mailing list archive at Nabble.com. From soren at hauberg.org Sun Oct 4 11:33:17 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Sun, 04 Oct 2009 18:33:17 +0200 Subject: octave - xv - image viewer In-Reply-To: <25739594.post@talk.nabble.com> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> <1254660846.5143.10.camel@sh-t400> <25737832.post@talk.nabble.com> <1254662243.5143.14.camel@sh-t400> <25739350.post@talk.nabble.com> <1254672604.5143.18.camel@sh-t400> <25739594.post@talk.nabble.com> Message-ID: <1254673997.5143.20.camel@sh-t400> s?n, 04 10 2009 kl. 09:28 -0700, skrev lmhelp: > I could execute properly: > -------------------------------------------------------------------------------------------------- > > pout = imread("pout.tif"); > > imshow(pout); > -------------------------------------------------------------------------------------------------- > > The problem is that the image is not opened with "xv". > Even if I launch "image_viewer("xv %s");" first. Well, what does actually happen? Is the image shown? If so, how is it displayed? Is an error message printed or something like that? S?ren From lmbox at wanadoo.fr Sun Oct 4 11:49:27 2009 From: lmbox at wanadoo.fr (lmhelp) Date: Sun, 4 Oct 2009 09:49:27 -0700 (PDT) Subject: octave - xv - image viewer In-Reply-To: <1254673997.5143.20.camel@sh-t400> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> <1254660846.5143.10.camel@sh-t400> <25737832.post@talk.nabble.com> <1254662243.5143.14.camel@sh-t400> <25739350.post@talk.nabble.com> <1254672604.5143.18.camel@sh-t400> <25739594.post@talk.nabble.com> <1254673997.5143.20.camel@sh-t400> Message-ID: <25739663.post@talk.nabble.com> Yes, the image is shown in a window (very simple window with no menus nor anything). In fact, two windows show up (I am using "Ion" as a window manager): - one with title "Figure 1" and empty, - the other one, with title "/tmp/oct-n0ZWKD" showing the image. I have no error message printed. I only have a warning after launching "imread": ----------------------------------------------------------------------------- warning: isstr is obsolete and will be removed from a future version of Octave, please use ischar instead ----------------------------------------------------------------------------- Sooner, I saw "xv" error messages but they went away very swiftly (I couldn't note down the messages) but I cannot reproduce that anymore... Are you yourself using "xv" as an image viewer? Thank you and all the best, -- Lmhelp -- View this message in context: http://www.nabble.com/octave---xv---image-viewer-tp25736979p25739663.html Sent from the Octave - General mailing list archive at Nabble.com. From Potorti at isti.cnr.it Sun Oct 4 12:31:23 2009 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Sun, 04 Oct 2009 19:31:23 +0200 Subject: octave - xv - image viewer In-Reply-To: <25737832.post@talk.nabble.com> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> <1254660846.5143.10.camel@sh-t400> <25737832.post@talk.nabble.com> Message-ID: >"My" Octave doesn't seam to be using "xv" by default... >Where can I check which default image viewer Octave uses? By looking at the imege function's help for Octave 2.1 I read: It first tries to use 'display' from 'ImageMagick' then 'xv' and then 'xloadimage' -- 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 lmbox at wanadoo.fr Sun Oct 4 12:46:00 2009 From: lmbox at wanadoo.fr (lmhelp) Date: Sun, 4 Oct 2009 10:46:00 -0700 (PDT) Subject: octave - xv - image viewer In-Reply-To: <25739663.post@talk.nabble.com> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> <1254660846.5143.10.camel@sh-t400> <25737832.post@talk.nabble.com> <1254662243.5143.14.camel@sh-t400> <25739350.post@talk.nabble.com> <1254672604.5143.18.camel@sh-t400> <25739594.post@talk.nabble.com> <1254673997.5143.20.camel@sh-t400> <25739663.post@talk.nabble.com> Message-ID: <25740301.post@talk.nabble.com> Despite the fact that I am not sure "xv" displayed the image (and not for instance the default Octave image viewer which is [I don't know])... the image is displayed and, in a certain way, it is what I wanted... :) If I choose: --------------------------------------------------------------------------------------- > image_viewer("ImageMagick %s"); or > image_viewer("xloadimage %s"); or > image_viewer("toto %s"); --------------------------------------------------------------------------------------- the image is not displayed. If I choose: --------------------------------------------------------------------------------------- > image_viewer("xv %s"); --------------------------------------------------------------------------------------- the image is displayed (the window which title was previously "Figure 1" is now "Gnuplot"). Thank you very much S?ren for your precious help: you really helped me a lot :) Thank you too to Francesco Potort?. All the best, -- Lmhelp -- View this message in context: http://www.nabble.com/octave---xv---image-viewer-tp25736979p25740301.html Sent from the Octave - General mailing list archive at Nabble.com. From soren at hauberg.org Sun Oct 4 14:08:14 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Sun, 04 Oct 2009 21:08:14 +0200 Subject: octave - xv - image viewer In-Reply-To: <25740301.post@talk.nabble.com> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> <1254660846.5143.10.camel@sh-t400> <25737832.post@talk.nabble.com> <1254662243.5143.14.camel@sh-t400> <25739350.post@talk.nabble.com> <1254672604.5143.18.camel@sh-t400> <25739594.post@talk.nabble.com> <1254673997.5143.20.camel@sh-t400> <25739663.post@talk.nabble.com> <25740301.post@talk.nabble.com> Message-ID: <1254683294.5143.25.camel@sh-t400> s?n, 04 10 2009 kl. 10:46 -0700, skrev lmhelp: > Despite the fact that I am not sure "xv" displayed the image (and not > for instance the default Octave image viewer which is [I don't know])... > the image is displayed and, in a certain way, it is what I wanted... :) By default, Octave 3.0.x and 3.2.x uses Gnuplot to display images. This has the advantage that you can plot on top of images, e.g. imshow (blabla) hold on plot (1:10, sin (1:10)) hold off You cannot do this if you use an external image viewer. Anyway, it seems that you solved your problem, which was the most important thing :-) S?ren From lmbox at wanadoo.fr Sun Oct 4 15:09:53 2009 From: lmbox at wanadoo.fr (lmhelp) Date: Sun, 4 Oct 2009 13:09:53 -0700 (PDT) Subject: octave - xv - image viewer In-Reply-To: <1254683294.5143.25.camel@sh-t400> References: <25736979.post@talk.nabble.com> <25737526.post@talk.nabble.com> <1254659478.5143.7.camel@sh-t400> <25737634.post@talk.nabble.com> <1254660846.5143.10.camel@sh-t400> <25737832.post@talk.nabble.com> <1254662243.5143.14.camel@sh-t400> <25739350.post@talk.nabble.com> <1254672604.5143.18.camel@sh-t400> <25739594.post@talk.nabble.com> <1254673997.5143.20.camel@sh-t400> <25739663.post@talk.nabble.com> <25740301.post@talk.nabble.com> <1254683294.5143.25.camel@sh-t400> Message-ID: <25741687.post@talk.nabble.com> Thank you for this remark and for your help :) All the best to you, -- Lmhelp S?ren Hauberg wrote: > > By default, Octave 3.0.x and 3.2.x uses Gnuplot to display images. This > has the advantage that you can plot on top of images, e.g. > > imshow (blabla) > hold on > plot (1:10, sin (1:10)) > hold off > > You cannot do this if you use an external image viewer. > > Anyway, it seems that you solved your problem, which was the most > important thing :-) > > S?ren > -- View this message in context: http://www.nabble.com/octave---xv---image-viewer-tp25736979p25741687.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Mon Oct 5 03:14:42 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Mon, 5 Oct 2009 10:14:42 +0200 Subject: Problem creating compiled oct file In-Reply-To: <25738985.post@talk.nabble.com> References: <25727690.post@talk.nabble.com> <25738985.post@talk.nabble.com> Message-ID: On 4 Oct 2009, at 17:22, babelproofreader wrote: > int ii; > // Declare the loop counter ii as integer type > > for (ii = octave_idx_type (0); ii the > loop It is better, for code portability, to use "octave_idx_type" rather than "int" as the type for vector indices so you could change the above to > for (octave_idx_type ii (0); ii Hi, i have question regarding the import of a text in a file. The file looks like this: Tasd Bs Req wr Dqw rqr hy 3:04:34 5.34 -3 3 45.6 -3 3 3:03:34 5.34 -35 6 45.6 -35 6 3:43:2 5.34 -35 6 45.6 -35 6 I used the command: "textline = fgetl(fid);" to import the text line. The output of textline is: Tasd Bs Req wr Dqw rqr hy The point is that he saves just the letters in a column. Like this: A=textline(:,1) A=T But i need the whole word "Tasd". Is there a way to extract the whole word till the blankspace without using A=textline(:,1:4). I need to change the word "Tasd" in the file and that includes adding or removing letters. When i save it with this command: H = fscanf(fid, '%s %s %s %s %s %s%s', [7 1]); He still saves just the letters not the whole words between the blankspaces. Hopefully somenone can help me or givem i a hint. Thanks in advance. Sebastian -- View this message in context: http://www.nabble.com/problem%3A-importing-text-tp25747135p25747135.html Sent from the Octave - General mailing list archive at Nabble.com. From highegg at gmail.com Mon Oct 5 08:05:02 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Mon, 5 Oct 2009 15:05:02 +0200 Subject: problem: importing text In-Reply-To: <25747135.post@talk.nabble.com> References: <25747135.post@talk.nabble.com> Message-ID: <69d8d540910050605u734ea59bodd374d3a38a1d644@mail.gmail.com> On Mon, Oct 5, 2009 at 10:46 AM, s4y wrote: > > Hi, i have question regarding the import of a text in a file. > The file looks like this: > Tasd ? ? ? ? ? ?Bs ? ? ?Req ?wr Dqw ?rqr ? ? ? ?hy > 3:04:34 5.34 ? ?-3 ? ? ?3 ? ? ? 45.6 ? ?-3 ? ? ?3 > 3:03:34 5.34 ? ?-35 ? ? 6 ? ? ? 45.6 ? ?-35 ? ? 6 > 3:43:2 ?5.34 ? ?-35 ? ? 6 ? ? ? 45.6 ? ?-35 ? ? 6 > > I used the command: "textline = fgetl(fid);" to import the text line. > The output of textline is: > Tasd ? ?Bs ? ? ?Req ?wr Dqw ?rqr ? ? ? ?hy > > The point is that he saves just the letters in a column. > Like this: A=textline(:,1) > A=T > > But i need the whole word "Tasd". Is there a way to extract the whole word > till the blankspace without using > A=textline(:,1:4). I need to change the word "Tasd" in the file and that > includes adding or removing letters. > When i save it with this command: > H = fscanf(fid, '%s %s %s %s %s %s%s', [7 1]); > He still saves just the letters not the whole words between the blankspaces. > Hopefully somenone can help me or givem i a hint. > Thanks in advance. > Sebastian > -- try using fscanf(fid, '%s %s %s %s %s %s%s', 'C'); for other, often more convenient options, see help strsplit (split a string into delimited parts) help dlmread (parse a file with delimited table) regards -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From Jim.Langston at Sun.COM Mon Oct 5 10:23:27 2009 From: Jim.Langston at Sun.COM (Jim Langston) Date: Mon, 05 Oct 2009 11:23:27 -0400 Subject: OpenSolaris update Message-ID: <4ACA0F6F.4000204@sun.com> Hi all, I have gotten Octave 3.0.5 to go through the process of being accepted by OpenSolaris and it has gone through the voting process, I'm waiting for it to move from /pending to /contrib. I have been experimenting with 3.2.2, but it does not compile with the latest version of gcc that comes with OpenSolaris (I'm trying to figure out what the problem is). On a second note: Will any Octave engineers be at SuperComputing09 ?? Any booth activity ?? Thanks, Jim -- ///////////////////////////////////////////// Jim Langston Sun Microsystems, Inc. (513) 702-4741 (Cell) (877) 854-5583 (AccessLine) AIM: jl9594 jim.langston at sun.com From rishiamrit at gmail.com Mon Oct 5 10:57:44 2009 From: rishiamrit at gmail.com (Rishi Amrit) Date: Mon, 5 Oct 2009 10:57:44 -0500 Subject: Problems compiling octave 3.2.3 Message-ID: My configuration script ran fine. But when I run make, I get the following output: *********************************************************** * * To compile Octave, you will need a recent versions of * the following software: * * GNU Make (a recent version) * * g++ (preferably a recent 4.x version) * * flex (2.5.4 or a more recent version) -- required if * you need to recreate lex.cc from lex.l * * bison (1.31 or a more recent version) -- required if * you need to recreate parse.cc from parse.y * * gperf (3.0.1 or a more recent version) -- required if * you need to recreate oct-gperf.h from octave.gperf * * Now would be a good time to read INSTALL.OCTAVE if * you have not done so already. * *********************************************************** make -f octMakefile all make[1]: Entering directory `/home/amrit/octave-3.2.3' making octave-bug from octave-bug.in chmod a+rx octave-bug making octave-config from octave-config.in chmod a+rx octave-config making mkoctfile from mkoctfile.in chmod a+rx mkoctfile making run-octave from run-octave.in run-octave is unchanged chmod a+rx "run-octave" make -C libcruft all make[2]: Entering directory `/home/amrit/octave-3.2.3/libcruft' making mkf77def from mkf77def.in mkf77def is unchanged chmod a+rx mkf77def make -C amos all make[3]: Entering directory `/home/amrit/octave-3.2.3/libcruft/amos' warning: run make in parent directory to update libraries make[3]: Leaving directory `/home/amrit/octave-3.2.3/libcruft/amos' make -C blas-xtra all make[3]: Entering directory `/home/amrit/octave-3.2.3/libcruft/blas-xtra' warning: run make in parent directory to update libraries make[3]: Leaving directory `/home/amrit/octave-3.2.3/libcruft/blas-xtra' make -C daspk all make[3]: Entering directory `/home/amrit/octave-3.2.3/libcruft/daspk' warning: run make in parent directory to update libraries make[3]: Leaving directory `/home/amrit/octave-3.2.3/libcruft/daspk' make -C dasrt all make[3]: Entering directory `/home/amrit/octave-3.2.3/libcruft/dasrt' warning: run make in parent directory to update libraries make[3]: Leaving directory `/home/amrit/octave-3.2.3/libcruft/dasrt' make -C dassl all make[3]: Entering directory `/home/amrit/octave-3.2.3/libcruft/dassl' warning: run make in parent directory to update libraries make[3]: Leaving directory `/home/amrit/octave-3.2.3/libcruft/dassl' make -C lapack-xtra all make[3]: Entering directory `/home/amrit/octave-3.2.3/libcruft/lapack-xtra' warning: run make in parent directory to update libraries make[3]: Leaving directory `/home/amrit/octave-3.2.3/libcruft/lapack-xtra' make -C misc all make[3]: Entering directory `/home/amrit/octave-3.2.3/libcruft/misc' make[3]: Leaving directory `/home/amrit/octave-3.2.3/libcruft/misc' make[2]: *** [misc] Error 2 make[2]: Leaving directory `/home/amrit/octave-3.2.3/libcruft' make[1]: *** [libcruft] Error 2 make[1]: Leaving directory `/home/amrit/octave-3.2.3' make: *** [all] Error 2 Any idea what is missing on my computer ? Thanks, Best, Rishi -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091005/dccaea45/attachment-0001.html From david0815 at gmx.de Mon Oct 5 11:38:33 2009 From: david0815 at gmx.de (bat_boy) Date: Mon, 5 Oct 2009 09:38:33 -0700 (PDT) Subject: How can I change FontSize of Axis TickLabel ? Message-ID: <25754145.post@talk.nabble.com> Hi there! I'm using octave 3.0.0 and would like the ticklabel to be much taller. Using something like set(gca,"fontsize","16"): does yield a warning: set: invalid property `FontSize' How would I do this for the legend? Any suggestions? Thanks! -- View this message in context: http://www.nabble.com/How-can-I-change-FontSize-of-Axis-TickLabel---tp25754145p25754145.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at gmail.com Mon Oct 5 13:59:48 2009 From: jordigh at gmail.com (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Mon, 5 Oct 2009 13:59:48 -0500 Subject: OpenSolaris update In-Reply-To: <4ACA0F6F.4000204@sun.com> References: <4ACA0F6F.4000204@sun.com> Message-ID: <9543b3a40910051159r469359ccv2eb01a8a0e3298cd@mail.gmail.com> 2009/10/5 Jim Langston : > Will any Octave engineers be at SuperComputing09 ?? Any booth > activity ?? Octave could really use the publicity. Maybe one of these days we'll get together some cohesive Octave Foundation or something of the sort to promote the software and manage its finances (or even, give it finances to manage). From Jim.Langston at Sun.COM Mon Oct 5 14:16:40 2009 From: Jim.Langston at Sun.COM (Jim Langston) Date: Mon, 05 Oct 2009 15:16:40 -0400 Subject: OpenSolaris update In-Reply-To: <9543b3a40910051159r469359ccv2eb01a8a0e3298cd@mail.gmail.com> References: <4ACA0F6F.4000204@sun.com> <9543b3a40910051159r469359ccv2eb01a8a0e3298cd@mail.gmail.com> Message-ID: <4ACA4618.9030501@sun.com> Jordi Guti?rrez Hermoso wrote: > 2009/10/5 Jim Langston : > >> Will any Octave engineers be at SuperComputing09 ?? Any booth >> activity ?? >> > > Octave could really use the publicity. Maybe one of these days we'll > get together some cohesive Octave Foundation or something of the sort > to promote the software and manage its finances (or even, give it > finances to manage). > Yes, I was hoping maybe to see an Octave booth, or even a booth with some other software that had Octave in it showing it off. I haven't look at the vendors yet, but I suspect Matlab will be there. Jim -- ///////////////////////////////////////////// Jim Langston Sun Microsystems, Inc. (513) 702-4741 (Cell) (877) 854-5583 (AccessLine) AIM: jl9594 jim.langston at sun.com -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091005/04c1da43/attachment.html From highegg at gmail.com Tue Oct 6 00:42:47 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Tue, 6 Oct 2009 07:42:47 +0200 Subject: 3.2.3 compiling error In-Reply-To: <1254434087.7032.240.camel@hc-mzhou-l> References: <1254434087.7032.240.camel@hc-mzhou-l> Message-ID: <69d8d540910052242s76249646ra60214c9f6cb84ba@mail.gmail.com> On Thu, Oct 1, 2009 at 11:54 PM, Mi Zhou wrote: > Hi, > > I'm trying to compile octave-3.2.3 on CentOS5.3 64bit machine. Got this > error: > > ../src/liboctinterp.so: undefined reference to `std::basic_istream std::char_traits >::ignore()' > ../src/liboctinterp.so: undefined reference to `__cxa_get_exception_ptr' > > Have anybody seen this? > > Thanks, > > Mi Zhou > St. Jude Children's Research Hospital > > Can you post your config.log somewhere? (Or email compressed) -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From snowboardshome at gmx.de Tue Oct 6 05:33:39 2009 From: snowboardshome at gmx.de (s4y) Date: Tue, 6 Oct 2009 03:33:39 -0700 (PDT) Subject: problem: importing text In-Reply-To: <25747135.post@talk.nabble.com> References: <25747135.post@talk.nabble.com> Message-ID: <25766360.post@talk.nabble.com> thanks a lot -- View this message in context: http://www.nabble.com/problem%3A-importing-text-tp25747135p25766360.html Sent from the Octave - General mailing list archive at Nabble.com. From amca01 at gmail.com Tue Oct 6 07:19:20 2009 From: amca01 at gmail.com (Alasdair McAndrew) Date: Tue, 6 Oct 2009 23:19:20 +1100 Subject: Encryption tools - DES, AES etc? Message-ID: <1d67a53c0910060519iba22f2frb2bd679d391171f5@mail.gmail.com> Has anybody written some procedures for Octave to perform basic encryption (using block ciphers such as DES, AES, Twofish etc), using the different modes (ECB, CBC etc)? I couldn't find any on Octave Forge, but maybe I wasn't looking hard enough. Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew From wligtenberg at gmail.com Tue Oct 6 07:31:43 2009 From: wligtenberg at gmail.com (Willem Ligtenberg) Date: Tue, 6 Oct 2009 14:31:43 +0200 Subject: Barplot with errorbars. Message-ID: Hi, Could someone help me to create plot like these: http://www.mathworks.com/matlabcentral/fx_files/10803/3/barweb2.png At this moment I can create line plots with errorbars for multiple datasets using hold, and color the lines manually. However, that has the downside that some data points overlap. Any help is greatly appreciated. Cheers, Willem Ligtenberg From vic at norton.name Tue Oct 6 09:40:54 2009 From: vic at norton.name (Vic Norton) Date: Tue, 6 Oct 2009 10:40:54 -0400 Subject: Octave.app 3.2.3 for Mac OS X 10.4.x and 10.5.x In-Reply-To: <4AC7379C.20308@gmx.net> References: <4AC7379C.20308@gmx.net> Message-ID: <881EBB54-A656-405D-AD61-F2FD099F8938@norton.name> Thanks, Tom. I don't know what I'd do without Octave.app. I have not generally been successful at compiling Octave on a Mac. I must add that Octave.app 3.2.3 works fine for me on Mac OSX 10.6.1. Apparently my applications of Octave do not need compiled oct-files--- though I am very fuzzy about this. Regards, Vic On Oct 3, 2009, at 7:38 AM, Thomas Treichl wrote: > Hi, > > by the end of this year I'll take a break from building future > versions of > Octave.app. If there is somebody out there who likes to do this job > in the > future then you're very welcome. The build scripts already are part > of the > Octave-Forge project so that you can have a look at them but maybe > they need > to be adapted to your Mac. I think that for many of you as for me > Octave.app > was and still is a useful ready-to-run program, so I must say that > I'd also > like to see future versions of it even if I'm not the one who builds > them. > > For now, I have uploaded the compressed disc images *.dmg including > Octave.app 3.2.3 for PPC and i386 MacOSX to the SourceForge's server. > The system requirements for the PPC architecture are MacOSX 10.4.x or > newer and a PPC G4 processor or better, for the i386 architecture > MacOSX > 10.4.x or 10.5.x. You can get it from http://octave.sourceforge.net. > > We have had more than 6600 downloads for Octave.app 3.2.2 the past 2 > months. > Now, if you find this program useful then please support its > development. See > http://www.octave.org/help-wanted.html for more information about > how you can help. > > If you want to update Octave.app from version 3.0.x then you also > should > read the announcement for Octave.app 3.2.0 which can be found at > http://www-old.cae.wisc.edu/pipermail/help-octave/2009-June/ > 014739.html > > The md5 check sums of the compressed disc images are: > MD5 (octave-3.2.3-ppc.dmg) = f2028c1456be495f717e4eb70d2fb4e9 > MD5 (octave-3.2.3-i386.dmg) = d84df2fe253f586c8c801436ffc658eb > > That's it from my side, enjoy, > > Thomas > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave From david0815 at gmx.de Tue Oct 6 09:53:25 2009 From: david0815 at gmx.de (bat_boy) Date: Tue, 6 Oct 2009 07:53:25 -0700 (PDT) Subject: How can I change FontSize of Axis TickLabel ? In-Reply-To: <25754145.post@talk.nabble.com> References: <25754145.post@talk.nabble.com> Message-ID: <25770294.post@talk.nabble.com> Never mind, I exported my data and am now using gnuplot ;) Thx anyway. -- View this message in context: http://www.nabble.com/How-can-I-change-FontSize-of-Axis-TickLabel---tp25754145p25770294.html Sent from the Octave - General mailing list archive at Nabble.com. From rishiamrit at gmail.com Tue Oct 6 09:32:26 2009 From: rishiamrit at gmail.com (Rishi Amrit) Date: Tue, 6 Oct 2009 09:32:26 -0500 Subject: degugger problems in ver 3.2.3 Message-ID: Hi, I think this was one of the problems in Version 3.2 also, but seem to be there in the latest version too. When using the statement 'keyboard', I dont see the local variables in the workspace. If a master function is calling another sub function, and I have a keyboard in the sub function, when the execution enters debugging mode, I do not see the variables in the sub function. Does any one else also faced the same issue ? Thanks, Rishi -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091006/866165f2/attachment.html From rishiamrit at gmail.com Tue Oct 6 09:47:35 2009 From: rishiamrit at gmail.com (Rishi Amrit) Date: Tue, 6 Oct 2009 09:47:35 -0500 Subject: Assigning matrices to structures. Message-ID: Hi, The following statement: a{1:10} = zeros(1,2) used to work until version 3.0.5. It does not work from 3.2 onwards. Any suggestions on how to change the code to make it work with the new versions of Octave ? I dont want to add for loops. Thanks, Rishi -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091006/8e4ba1f7/attachment.html From highegg at gmail.com Tue Oct 6 11:02:41 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Tue, 6 Oct 2009 18:02:41 +0200 Subject: Assigning matrices to structures. In-Reply-To: References: Message-ID: <69d8d540910060902v3fd7fa37of5c206ad141d65cf@mail.gmail.com> On Tue, Oct 6, 2009 at 4:47 PM, Rishi Amrit wrote: > Hi, > ?? The following statement: > a{1:10} = zeros(1,2) > used to work until version 3.0.5. It does not work from 3.2 onwards. Any > suggestions on how to change the code to make it work with the new versions > of Octave ? I dont want to add for loops. > Thanks, > Rishi This was, in fact, an accidental "misfeature". a{1:10} generates a cs-list, so it should be enclosed in [] to form a valid set of lvalues. Either of the following should work as a replacement (and probably work in 3.0.5 too): a(1:10) = {zeros(1,2)}; [a{1:10}] = deal (zeros(1,2)); hth -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From shermanj at umd.edu Tue Oct 6 11:06:15 2009 From: shermanj at umd.edu (James Sherman Jr.) Date: Tue, 6 Oct 2009 12:06:15 -0400 Subject: Assigning matrices to structures. In-Reply-To: References: Message-ID: <6800c3890910060906m59513470i69730f94f7fa5cde@mail.gmail.com> I'm sure that there is a better/more elegant solution, but you could do something like: B = zeros(1,2); X = repmat(B, [1 10]); a = mat2cell(X, 1, 2*ones(1,2)); On Tue, Oct 6, 2009 at 10:47 AM, Rishi Amrit wrote: > Hi, > The following statement: > > a{1:10} = zeros(1,2) > > used to work until version 3.0.5. It does not work from 3.2 onwards. Any > suggestions on how to change the code to make it work with the new versions > of Octave ? I dont want to add for loops. > > Thanks, > > Rishi > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091006/4b404584/attachment.html From Bard.Skaflestad at sintef.no Tue Oct 6 11:12:26 2009 From: Bard.Skaflestad at sintef.no (=?iso-8859-1?Q?B=E5rd_Skaflestad?=) Date: Tue, 6 Oct 2009 18:12:26 +0200 Subject: Assigning matrices to structures. In-Reply-To: References: Message-ID: <47AC1666471FFC41873637D50D111B8126955C1C97@SINTEFEXMBX01.sintef.no> Hi, You can use regular indexing on the array you're assigning to and explict CELL creation of the assigned value. For instance a(1:10) = {zeros(1,2)}; For much more on the semantics of this and related issues I recommend Loren Shure's (of The MathWorks) blog entry http://blogs.mathworks.com/loren/2008/01/24/deal-or-no-deal/ Best regards, -- B?rd Skaflestad SINTEF ICT, Applied Mathematics. ________________________________________ From: Rishi Amrit [rishiamrit at gmail.com] Sent: 06 October 2009 16:47 To: help-octave Subject: Assigning matrices to structures. Hi, The following statement: a{1:10} = zeros(1,2) used to work until version 3.0.5. It does not work from 3.2 onwards. Any suggestions on how to change the code to make it work with the new versions of Octave ? I dont want to add for loops. Thanks, Rishi From michael at grossbach.org Tue Oct 6 11:18:51 2009 From: michael at grossbach.org (Michael Grossbach) Date: Tue, 06 Oct 2009 18:18:51 +0200 Subject: degugger problems in ver 3.2.3 In-Reply-To: References: Message-ID: <4ACB6DEB.7010905@grossbach.org> Rishi Amrit wrote: > Hi, > I think this was one of the problems in Version 3.2 also, but seem to be > there in the latest version too. When using the statement 'keyboard', I dont > see the local variables in the workspace. If a master function is calling > another sub function, and I have a keyboard in the sub function, when > the execution enters debugging mode, I do not see the variables in the sub > function. Does any one else also faced the same issue ? > > Thanks, > > Rishi Yes, same thing here on Debian lenny (3.2.3 compiled from source) Michael From bpabbott at mac.com Tue Oct 6 11:19:56 2009 From: bpabbott at mac.com (Ben Abbott) Date: Tue, 06 Oct 2009 12:19:56 -0400 Subject: How can I change FontSize of Axis TickLabel ? In-Reply-To: <25754145.post@talk.nabble.com> References: <25754145.post@talk.nabble.com> Message-ID: On Oct 5, 2009, at 12:38 PM, bat_boy wrote: > > Hi there! > I'm using octave 3.0.0 and would like the ticklabel to be much taller. > Using something like > set(gca,"fontsize","16"): > does yield a > warning: set: invalid property `FontSize' > > How would I do this for the legend? > > Any suggestions? > Thanks! The feature you're looking for is not in the 3.0.x series, but is in the 3.2.x series. An upgrade is all that is needed. Ben From michael at grossbach.org Tue Oct 6 11:23:19 2009 From: michael at grossbach.org (Michael Grossbach) Date: Tue, 06 Oct 2009 18:23:19 +0200 Subject: degugger problems in ver 3.2.3 In-Reply-To: <4ACB6DEB.7010905@grossbach.org> References: <4ACB6DEB.7010905@grossbach.org> Message-ID: <4ACB6EF7.7010506@grossbach.org> Michael Grossbach wrote: > Rishi Amrit wrote: >> Hi, >> I think this was one of the problems in Version 3.2 also, but seem to be >> there in the latest version too. When using the statement 'keyboard', I dont >> see the local variables in the workspace. If a master function is calling >> another sub function, and I have a keyboard in the sub function, when >> the execution enters debugging mode, I do not see the variables in the sub >> function. Does any one else also faced the same issue ? >> >> Thanks, >> >> Rishi > Yes, same thing here on Debian lenny (3.2.3 compiled from source) > Michael I should have added that I use dbstop() instead then I I don't face this issue. But having the old keyboard functionality back would indeed be nice. Michael Michael From jwe at octave.org Tue Oct 6 11:24:55 2009 From: jwe at octave.org (John W. Eaton) Date: Tue, 6 Oct 2009 12:24:55 -0400 Subject: degugger problems in ver 3.2.3 In-Reply-To: References: Message-ID: <19147.28503.680490.990346@segfault.lan> On 6-Oct-2009, Rishi Amrit wrote: | I think this was one of the problems in Version 3.2 also, but seem to be | there in the latest version too. When using the statement 'keyboard', I dont | see the local variables in the workspace. If a master function is calling | another sub function, and I have a keyboard in the sub function, when | the execution enters debugging mode, I do not see the variables in the sub | function. Does any one else also faced the same issue ? How about providing an example of precisely what you are doing, showing where you are putting the keyboard command, and precisely what variables you expect to see at that point, etc.? If you are reporting a bug, it helps to report the bug on the bug list instead of the help list, and also include code that can be used to duplicate the problem. I can't tell exactly what you are doing from your description above. jwe From Thomas.Treichl at gmx.net Tue Oct 6 13:59:20 2009 From: Thomas.Treichl at gmx.net (Thomas Treichl) Date: Tue, 06 Oct 2009 20:59:20 +0200 Subject: Octave.app 3.2.3 for Mac OS X 10.4.x and 10.5.x In-Reply-To: <881EBB54-A656-405D-AD61-F2FD099F8938@norton.name> References: <4AC7379C.20308@gmx.net> <881EBB54-A656-405D-AD61-F2FD099F8938@norton.name> Message-ID: <4ACB9388.9000700@gmx.net> Vic Norton schrieb: > Thanks, Tom. I don't know what I'd do without Octave.app. I have not > generally been successful at compiling Octave on a Mac. > > I must add that Octave.app 3.2.3 works fine for me on Mac OSX 10.6.1. > Apparently my applications of Octave do not need compiled oct-files--- > though I am very fuzzy about this. > > Regards, > > Vic Thanks Vic, I hope we find someone who volunteers to build more Octave.app apps for a while ;) Yes, you are talking about an essential point. Currently Octave.app is compiled against 10.4 and works perfectly on 10.5, too. On 10.6 it works but it doesn not work perfectly anymore. I don't know how long we should build future versions of Octave.app against 10.4 SDK or if we "now" or after 3.2.x just can say that newer Octave.app versions are build for 10.6 only with pure 64bit support like the OS likes it best and no PPC version and no 32bit Intel version anymore?! Maybe things then become more easy (to pack the whole app) compared to as it is right now. Everybodies comments welcome... Thomas From jshwbe at gmail.com Tue Oct 6 14:42:44 2009 From: jshwbe at gmail.com (Josh Wiebe) Date: Tue, 6 Oct 2009 15:42:44 -0400 Subject: error: A(I,J,...) = X: dimensions mismatch Message-ID: Hello all, I have a small bit of code that reads in a sequential data file, plucks the relevant data, and then appends that data to a file. The code works fine when I have two or more months with the same number of days, but crashes when they are not equal. The error message is: error: A(I,J,...) = X: dimensions mismatch Here is the code snip. N, filename, stationid, year, month, etc. are defined earlier. for i=1:N temp=dlmread(sprintf("%i%i%i.dat", stationid, year, month), ' "," '); L=length(temp) yeari = temp (15:L, 6); %begins at row 15, year is in column 6 monthi = temp (15:L, 9); dayi = temp (15:L, 12); houri = temp (15:L, 15); winddir = temp (15:L, 36); windspd = temp (15:L, 42); winddat(:,1) = yeari; %puts data into one matrix winddat(:,2) = monthi; winddat(:,3) = dayi; winddat(:,4) = houri; winddat(:,5) = winddir; winddat(:,6) = windspd; dlmwrite(filename, winddat, ",", "-append"); %writes data to file then an if statement to loop over. I can post the full code if this would help. Thanks for your feedback and advice, Josh -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091006/a8c7c4b3/attachment.html From sergstesh at yahoo.com Tue Oct 6 15:16:15 2009 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Tue, 6 Oct 2009 13:16:15 -0700 (PDT) Subject: Encryption tools - DES, AES etc? In-Reply-To: <1d67a53c0910060519iba22f2frb2bd679d391171f5@mail.gmail.com> Message-ID: <465458.26213.qm@web112117.mail.gq1.yahoo.com> --- On Tue, 10/6/09, Alasdair McAndrew wrote: > From: Alasdair McAndrew > Subject: Encryption tools - DES, AES etc? > To: help-octave at octave.org > Date: Tuesday, October 6, 2009, 5:19 AM > Has anybody written some procedures > for Octave to perform basic > encryption (using block ciphers such as DES, AES, Twofish > etc), using > the different modes (ECB, CBC etc)?? I couldn't find > any on Octave > Forge, but maybe I wasn't looking hard enough. > > Thanks, > Alasdair > > -- Why not call a stand-alone program ? They work fast. Regards, Sergei. From febty82 at gmail.com Tue Oct 6 21:56:32 2009 From: febty82 at gmail.com (febty febriani) Date: Wed, 7 Oct 2009 11:56:32 +0900 Subject: how to know number of lines from input file Message-ID: <1964ddb30910061956m31de6ebu56caea2c719613a6@mail.gmail.com> Dear all, If I have command like below : fh=fopen("$dir/data-1day-1Hz/result-${year}${month}${num}.dat","r"); y=fscanf(fh,"%lf"); are there any tricks to know number of lines from the input file? any helps are appreciated. thanks very much. best regards, febty -- ****** febty febriani Indonesian Institute of Sciences Research Center for Physics Kompleks PUSPIPTEK Serpong, Indonesia, 15314 -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091007/c4a5a2ba/attachment.html From highegg at gmail.com Wed Oct 7 00:23:49 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Wed, 7 Oct 2009 07:23:49 +0200 Subject: error: A(I,J,...) = X: dimensions mismatch In-Reply-To: References: Message-ID: <69d8d540910062223o64e356b3kd089ece7f37314ac@mail.gmail.com> On Tue, Oct 6, 2009 at 9:42 PM, Josh Wiebe wrote: > Hello all, > > I have a small bit of code that reads in a sequential data file, plucks the > relevant data, and then appends that data to a file.? The code works fine > when I have two or more months with the same number of days, but crashes > when they are not equal.? The error message is: > > error: A(I,J,...) = X: dimensions mismatch > > Here is the code snip.? N, filename, stationid, year, month, etc. are > defined earlier. > > for i=1:N > ??? temp=dlmread(sprintf("%i%i%i.dat", stationid, year, month), ' "," '); > ??? L=length(temp) > ??? yeari = temp (15:L, 6); %begins at row 15, year is in column 6 > ??? monthi = temp (15:L, 9); > ??? dayi = temp (15:L, 12); > ??? houri = temp (15:L, 15); > ??? winddir = temp (15:L, 36); > ??? windspd = temp (15:L, 42); > ??? winddat(:,1) = yeari; %puts data into one matrix > ??? winddat(:,2) = monthi; > ??? winddat(:,3) = dayi; > ??? winddat(:,4) = houri; > ??? winddat(:,5) = winddir; > ??? winddat(:,6) = windspd; > > ??? dlmwrite(filename, winddat, ",", "-append"); %writes data to file > Are you clearing winddata after this? Or set it to empty matrix. If you don't, then in the next cycle, L must obviously not change. > then an if statement to loop over.? I can post the full code if this would > help. > Posting a full code, together with minimal necessary data files, never hurts. I suggest you always do that. > Thanks for your feedback and advice, > Josh > hth -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From soren at hauberg.org Wed Oct 7 00:52:29 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Wed, 07 Oct 2009 07:52:29 +0200 Subject: how to know number of lines from input file In-Reply-To: <1964ddb30910061956m31de6ebu56caea2c719613a6@mail.gmail.com> References: <1964ddb30910061956m31de6ebu56caea2c719613a6@mail.gmail.com> Message-ID: <1254894749.4845.5.camel@sh-t400> ons, 07 10 2009 kl. 11:56 +0900, skrev febty febriani: > If I have command like below : > > fh=fopen("$dir/data-1day-1Hz/result-${year}${month}${num}.dat","r"); > y=fscanf(fh,"%lf"); > > are there any tricks to know number of lines from the input file? If your file only contains numbers, then you can just use the 'load' command, which will give you a neatly formated matrix. If you know the number of numbers in each line, then you can also do something like y = fscanf (fh, "%lf", [N, Inf]) where N is the number of numbers per line. S?ren From febty82 at gmail.com Wed Oct 7 03:15:56 2009 From: febty82 at gmail.com (febty febriani) Date: Wed, 7 Oct 2009 17:15:56 +0900 Subject: how to know number of lines from input file In-Reply-To: <1254894749.4845.5.camel@sh-t400> References: <1964ddb30910061956m31de6ebu56caea2c719613a6@mail.gmail.com> <1254894749.4845.5.camel@sh-t400> Message-ID: <1964ddb30910070115j7ad99952q5ea1c5705fe76b6@mail.gmail.com> thanks very much for your response. but when wrote lixe below ; fh=fopen("$dir/data-1day-1Hz/result-${year}${month}${num}.dat","r"); y=fscanf(fh,"%lf",[N, inf]); without any definitons of N, I met an error message that I must define N. I tried to define N by writing N=number lines of data before fh so my script will be: N=number fh=fopen("$dir/data-1day-1Hz/result-${year}${month}${num}.dat","r"); y=fscanf(fh,"%lf"); but it didn't work. any suggestions are appreciated. Thanks very much. best regards, febty 2009/10/7 S?ren Hauberg > ons, 07 10 2009 kl. 11:56 +0900, skrev febty febriani: > > If I have command like below : > > > > fh=fopen("$dir/data-1day-1Hz/result-${year}${month}${num}.dat","r"); > > y=fscanf(fh,"%lf"); > > > > are there any tricks to know number of lines from the input file? > > If your file only contains numbers, then you can just use the 'load' > command, which will give you a neatly formated matrix. > > If you know the number of numbers in each line, then you can also do > something like > > y = fscanf (fh, "%lf", [N, Inf]) > > where N is the number of numbers per line. > > S?ren > > -- ****** febty febriani Indonesian Institute of Sciences Research Center for Physics Kompleks PUSPIPTEK Serpong, Indonesia, 15314 -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091007/c9e9cb45/attachment.html From highegg at gmail.com Wed Oct 7 04:18:00 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Wed, 7 Oct 2009 11:18:00 +0200 Subject: how to know number of lines from input file In-Reply-To: <1964ddb30910061956m31de6ebu56caea2c719613a6@mail.gmail.com> References: <1964ddb30910061956m31de6ebu56caea2c719613a6@mail.gmail.com> Message-ID: <69d8d540910070218y1b499d6cvdf8326984f2cc37e@mail.gmail.com> On Wed, Oct 7, 2009 at 4:56 AM, febty febriani wrote: > Dear all, > > If I have command like below : > > fh=fopen("$dir/data-1day-1Hz/result-${year}${month}${num}.dat","r"); > y=fscanf(fh,"%lf"); > > are there any tricks to know number of lines from the input file? > any helps are appreciated. > thanks very much. > > > best regards, > febty > > -- > I have realized that fskipl, which was on my TODO list, could be slightly extended to be usable also for this purpose, which often comes up. -- Built-in Function: fskipl (FID, COUNT) Skips a given number of lines, i.e. discards characters until an end-of-line is met exactly COUNT-times, or end-of-file occurs. Returns the number of lines skipped (end-of-line sequences encountered). If COUNT is omitted, it defaults to 1. COUNT may also be `Inf', in which case lines are skipped to the end of file. This form is suitable for counting lines in a file. See also: fgetl, fgets So, with fskipl, you can now easily count lines of a file in advance by fid = fopen (..., "r"); nlines = fskipl (fid, Inf); frewind (f); of course, the file must be seekable (no pipe or socket). Optionally you may want to add +1 to nlines to account for the characters between the last newline and EOF (usually there are none, because most editors and programs consistently terminate each line by \n). fskipl is now available in development sources: http://hg.savannah.gnu.org/hgweb/octave/rev/531280b07625 Still, you should be aware that this method requires two walks through the file. -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From Brian.Kaczynski at Atheros.com Wed Oct 7 05:59:29 2009 From: Brian.Kaczynski at Atheros.com (Brian Kaczynski) Date: Wed, 7 Oct 2009 03:59:29 -0700 Subject: "pkg" command not found Message-ID: <4ACC7491.8020608@Atheros.com> Hello, I am trying to install extra packages from Octave-Forge on Linux (kernel 2.6.9-42.ELsmp). However, Octave does not recognize the command "pkg". I get a syntax error on "pkg" and "help pkg" returns "help: sorry, 'pkg' is not documented". Does anyone know what I need to do to get "pkg" to work? Thanks, -Brian Kaczynski From jshwbe at gmail.com Wed Oct 7 08:18:12 2009 From: jshwbe at gmail.com (Josh Wiebe) Date: Wed, 7 Oct 2009 09:18:12 -0400 Subject: error: A(I,J,...) = X: dimensions mismatch In-Reply-To: <69d8d540910062223o64e356b3kd089ece7f37314ac@mail.gmail.com> References: <69d8d540910062223o64e356b3kd089ece7f37314ac@mail.gmail.com> Message-ID: Thanks Jaroslav, adding the line: clear winddat after the dlmwrite command fixes the problem. Josh On Wed, Oct 7, 2009 at 1:23 AM, Jaroslav Hajek wrote: > On Tue, Oct 6, 2009 at 9:42 PM, Josh Wiebe wrote: > > Hello all, > > > > I have a small bit of code that reads in a sequential data file, plucks > the > > relevant data, and then appends that data to a file. The code works fine > > when I have two or more months with the same number of days, but crashes > > when they are not equal. The error message is: > > > > error: A(I,J,...) = X: dimensions mismatch > > > > Here is the code snip. N, filename, stationid, year, month, etc. are > > defined earlier. > > > > for i=1:N > > temp=dlmread(sprintf("%i%i%i.dat", stationid, year, month), ' "," '); > > L=length(temp) > > yeari = temp (15:L, 6); %begins at row 15, year is in column 6 > > monthi = temp (15:L, 9); > > dayi = temp (15:L, 12); > > houri = temp (15:L, 15); > > winddir = temp (15:L, 36); > > windspd = temp (15:L, 42); > > winddat(:,1) = yeari; %puts data into one matrix > > winddat(:,2) = monthi; > > winddat(:,3) = dayi; > > winddat(:,4) = houri; > > winddat(:,5) = winddir; > > winddat(:,6) = windspd; > > > > dlmwrite(filename, winddat, ",", "-append"); %writes data to file > > > > Are you clearing winddata after this? Or set it to empty matrix. If > you don't, then in the next cycle, L must obviously not change. > > > then an if statement to loop over. I can post the full code if this > would > > help. > > > > Posting a full code, together with minimal necessary data files, never > hurts. I suggest you always do that. > > > Thanks for your feedback and advice, > > Josh > > > > hth > -- > RNDr. Jaroslav Hajek > computing expert & GNU Octave developer > Aeronautical Research and Test Institute (VZLU) > Prague, Czech Republic > url: www.highegg.matfyz.cz > -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091007/d6814aa0/attachment.html From soren at hauberg.org Wed Oct 7 08:29:35 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Wed, 07 Oct 2009 15:29:35 +0200 Subject: "pkg" command not found In-Reply-To: <4ACC7491.8020608@Atheros.com> References: <4ACC7491.8020608@Atheros.com> Message-ID: <1254922175.4432.30.camel@sh-t400> ons, 07 10 2009 kl. 03:59 -0700, skrev Brian Kaczynski: > I am trying to install extra packages from Octave-Forge on Linux (kernel > 2.6.9-42.ELsmp). However, Octave does not recognize the command "pkg". > I get a syntax error on "pkg" and "help pkg" returns "help: sorry, 'pkg' > is not documented". > > Does anyone know what I need to do to get "pkg" to work? What version of Octave are you using? The 'pkg' command was introduced in Octave 3.0. S?ren From michael at grossbach.org Wed Oct 7 09:53:30 2009 From: michael at grossbach.org (Michael Grossbach) Date: Wed, 07 Oct 2009 16:53:30 +0200 Subject: degugger problems in ver 3.2.3 In-Reply-To: <19147.28503.680490.990346@segfault.lan> References: <19147.28503.680490.990346@segfault.lan> Message-ID: <4ACCAB6A.3010400@grossbach.org> John W. Eaton wrote: > On 6-Oct-2009, Rishi Amrit wrote: > > | I think this was one of the problems in Version 3.2 also, but seem to be > | there in the latest version too. When using the statement 'keyboard', I dont > | see the local variables in the workspace. If a master function is calling > | another sub function, and I have a keyboard in the sub function, when > | the execution enters debugging mode, I do not see the variables in the sub > | function. Does any one else also faced the same issue ? > > How about providing an example of precisely what you are doing, > showing where you are putting the keyboard command, and precisely what > variables you expect to see at that point, etc.? > > If you are reporting a bug, it helps to report the bug on the bug list > instead of the help list, and also include code that can be used to > duplicate the problem. I can't tell exactly what you are doing from > your description above. > > jwe If the function testkeyb function testkeyb(a) b = a; keyboard endfunction is called from the Octave prompt with > testkeyb(1) Octave stops in debugging mode in testkeyb, but debug> a returns error: 'a' undefined near line... Removing the keyboard command from the function and instead issuing the command > dbstop ("testkeyb", 3) and then typing > testkeyb(1) debug >a a = 1 debug> And: many thanks to the developpers for improving the debugger! Everyone interested in the new features see here: http://www.gnu.org/software/octave/NEWS-3.2.html Thanks, Michael From soren at hauberg.org Wed Oct 7 10:48:32 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Wed, 07 Oct 2009 17:48:32 +0200 Subject: "pkg" command not found In-Reply-To: <4ACCB72C.80701@Atheros.com> References: <4ACC7491.8020608@Atheros.com> <1254922175.4432.30.camel@sh-t400> <4ACCB72C.80701@Atheros.com> Message-ID: <1254930512.4631.2.camel@sh-t400> ons, 07 10 2009 kl. 08:43 -0700, skrev Brian Kaczynski: > I started the procedure to install Octave 3.2.3 but I'm running into > problems where it seems I need to install a new version of gcc and > possibly make as well, and who knows what else. Is there an earlier > version of Octave that has the "pkg" feature but won't lead me down a > bottomless rabbit hole of updates to software that I really don't want > to update? I doubt it. It is fairly easy to just download earlier versions and try, but I _guessing_ that you'll run into problems. If you only need a few packages, then it is usually fairly easy to install them without using 'pkg' although this is not recommended (just uncompress the package file and look at the contents). S?ren From soren at hauberg.org Wed Oct 7 11:00:39 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Wed, 07 Oct 2009 18:00:39 +0200 Subject: "pkg" command not found In-Reply-To: <4ACCBA55.4050307@Atheros.com> References: <4ACC7491.8020608@Atheros.com> <1254922175.4432.30.camel@sh-t400> <4ACCB72C.80701@Atheros.com> <1254930512.4631.2.camel@sh-t400> <4ACCBA55.4050307@Atheros.com> Message-ID: <1254931239.4631.5.camel@sh-t400> ons, 07 10 2009 kl. 08:57 -0700, skrev Brian Kaczynski: > Installing the package from the Unix command-line sounds like the best idea. > > Unfortunately, I only got through "configure." When I try to "make all" > I get the following errors: > > gsl-1.0.8 [65]% make all > make[1]: Entering directory `/people/briankaz/gsl-1.0.8/src' > /bin/sh buildgsl_sf.sh > mkoctfile -DHAVE_OCTAVE_21 -v coupling_3j.cc -lgsl > g++ -c -fPIC -I/usr/include/octave-2.1.57 > -I/usr/include/octave-2.1.57/octave -g -O2 -DHAVE_OCTAVE_21 > coupling_3j.cc -o coupling_3j.o > coupling_3j.cc: In function `octave_value_list Fcoupling_3j(const > octave_value_list&, int)': > /usr/include/octave-2.1.57/octave/defun-int.h:36: error: too few > arguments to function `void print_usage(const std::string&, bool)' > coupling_3j.cc:54: error: at this point in file > /usr/include/octave-2.1.57/octave/defun-int.h:36: error: too few > arguments to function `void print_usage(const std::string&, bool)' > coupling_3j.cc:64: error: at this point in file > /usr/include/octave-2.1.57/octave/defun-int.h:36: error: too few > arguments to function `void print_usage(const std::string&, bool)' > coupling_3j.cc:75: error: at this point in file > make[1]: *** [coupling_3j.oct] Error 1 > make[1]: Leaving directory `/people/briankaz/gsl-1.0.8/src' > make: *** [build] Error 2 > gsl-1.0.8 [66]% > > Any ideas what else I'm missing? This looks like the package in question is using parts of the API from more recent version. So, if you really want to make the package work with your old Octave version, you'll have to change the package source code. I think you're better of either running a more recent version of Octave (even if that includes a lot of updates to your system), or running the old monolithic version of Octave-Forge. S?ren From Brian.Kaczynski at Atheros.com Wed Oct 7 10:43:40 2009 From: Brian.Kaczynski at Atheros.com (Brian Kaczynski) Date: Wed, 7 Oct 2009 08:43:40 -0700 Subject: "pkg" command not found In-Reply-To: <1254922175.4432.30.camel@sh-t400> References: <4ACC7491.8020608@Atheros.com> <1254922175.4432.30.camel@sh-t400> Message-ID: <4ACCB72C.80701@Atheros.com> I am using Octave 2.1.57. Which brings me to a second question -- I started the procedure to install Octave 3.2.3 but I'm running into problems where it seems I need to install a new version of gcc and possibly make as well, and who knows what else. Is there an earlier version of Octave that has the "pkg" feature but won't lead me down a bottomless rabbit hole of updates to software that I really don't want to update? Thanks, -Brian S?ren Hauberg wrote: > ons, 07 10 2009 kl. 03:59 -0700, skrev Brian Kaczynski: > >> I am trying to install extra packages from Octave-Forge on Linux (kernel >> 2.6.9-42.ELsmp). However, Octave does not recognize the command "pkg". >> I get a syntax error on "pkg" and "help pkg" returns "help: sorry, 'pkg' >> is not documented". >> >> Does anyone know what I need to do to get "pkg" to work? >> > > What version of Octave are you using? The 'pkg' command was introduced > in Octave 3.0. > > S?ren > > From Brian.Kaczynski at Atheros.com Wed Oct 7 10:57:09 2009 From: Brian.Kaczynski at Atheros.com (Brian Kaczynski) Date: Wed, 7 Oct 2009 08:57:09 -0700 Subject: "pkg" command not found In-Reply-To: <1254930512.4631.2.camel@sh-t400> References: <4ACC7491.8020608@Atheros.com> <1254922175.4432.30.camel@sh-t400> <4ACCB72C.80701@Atheros.com> <1254930512.4631.2.camel@sh-t400> Message-ID: <4ACCBA55.4050307@Atheros.com> S?ren Hauberg wrote: > ons, 07 10 2009 kl. 08:43 -0700, skrev Brian Kaczynski: > >> I started the procedure to install Octave 3.2.3 but I'm running into >> problems where it seems I need to install a new version of gcc and >> possibly make as well, and who knows what else. Is there an earlier >> version of Octave that has the "pkg" feature but won't lead me down a >> bottomless rabbit hole of updates to software that I really don't want >> to update? >> > > I doubt it. It is fairly easy to just download earlier versions and try, > but I _guessing_ that you'll run into problems. If you only need a few > packages, then it is usually fairly easy to install them without using > 'pkg' although this is not recommended (just uncompress the package file > and look at the contents). > > S?ren > Installing the package from the Unix command-line sounds like the best idea. Unfortunately, I only got through "configure." When I try to "make all" I get the following errors: gsl-1.0.8 [65]% make all make[1]: Entering directory `/people/briankaz/gsl-1.0.8/src' /bin/sh buildgsl_sf.sh mkoctfile -DHAVE_OCTAVE_21 -v coupling_3j.cc -lgsl g++ -c -fPIC -I/usr/include/octave-2.1.57 -I/usr/include/octave-2.1.57/octave -g -O2 -DHAVE_OCTAVE_21 coupling_3j.cc -o coupling_3j.o coupling_3j.cc: In function `octave_value_list Fcoupling_3j(const octave_value_list&, int)': /usr/include/octave-2.1.57/octave/defun-int.h:36: error: too few arguments to function `void print_usage(const std::string&, bool)' coupling_3j.cc:54: error: at this point in file /usr/include/octave-2.1.57/octave/defun-int.h:36: error: too few arguments to function `void print_usage(const std::string&, bool)' coupling_3j.cc:64: error: at this point in file /usr/include/octave-2.1.57/octave/defun-int.h:36: error: too few arguments to function `void print_usage(const std::string&, bool)' coupling_3j.cc:75: error: at this point in file make[1]: *** [coupling_3j.oct] Error 1 make[1]: Leaving directory `/people/briankaz/gsl-1.0.8/src' make: *** [build] Error 2 gsl-1.0.8 [66]% Any ideas what else I'm missing? Thanks, -Brian From geychaner at mac.com Wed Oct 7 12:27:08 2009 From: geychaner at mac.com (Glenn Eychaner) Date: Wed, 07 Oct 2009 13:27:08 -0400 Subject: Octave.app 3.2.3 for Mac OS X 10.4.x and 10.5.x In-Reply-To: References: Message-ID: <04A6C807-ABC3-4D4C-BE20-43171398A4EF@mac.com> On Oct 7, 2009, at 9:18 AM, help-octave-request at octave.org wrote: > Vic Norton schrieb: >> Thanks, Tom. I don't know what I'd do without Octave.app. I have not >> generally been successful at compiling Octave on a Mac. >> >> I must add that Octave.app 3.2.3 works fine for me on Mac OSX 10.6.1. >> Apparently my applications of Octave do not need compiled oct- >> files--- >> though I am very fuzzy about this. > > Thanks Vic, I hope we find someone who volunteers to build more > Octave.app apps > for a while ;) > > Yes, you are talking about an essential point. Currently Octave.app > is compiled > against 10.4 and works perfectly on 10.5, too. On 10.6 it works but > it doesn not > work perfectly anymore. > I don't know how long we should build future versions of Octave.app > against 10.4 > SDK or if we "now" or after 3.2.x just can say that newer Octave.app > versions > are build for 10.6 only with pure 64bit support like the OS likes it > best and no > PPC version and no 32bit Intel version anymore?! Maybe things then > become more > easy (to pack the whole app) compared to as it is right now. Just FYI, there is at least one person on the list that won't be going to 10.6 any time soon, due to other application incompatibilities, and still has production machines happily running 10.4. -G. -- Glenn Eychaner (geychaner at lco.cl) Telescope Systems Programmer, Las Campanas Observatory -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091007/0963fab4/attachment.html From thomas.weber.mail at gmail.com Wed Oct 7 15:27:16 2009 From: thomas.weber.mail at gmail.com (Thomas Weber) Date: Wed, 7 Oct 2009 22:27:16 +0200 Subject: "pkg" command not found In-Reply-To: <4ACCB72C.80701@Atheros.com> References: <4ACC7491.8020608@Atheros.com> <1254922175.4432.30.camel@sh-t400> <4ACCB72C.80701@Atheros.com> Message-ID: <20091007202716.GA6042@atlan> On Wed, Oct 07, 2009 at 08:43:40AM -0700, Brian Kaczynski wrote: > I am using Octave 2.1.57. Which brings me to a second question -- > > I started the procedure to install Octave 3.2.3 but I'm running into > problems where it seems I need to install a new version of gcc and > possibly make as well, and who knows what else. Is there an earlier > version of Octave that has the "pkg" feature but won't lead me down a > bottomless rabbit hole of updates to software that I really don't want > to update? How about some sort of virtualization solution? Frankly, you will only run into one issue after the other, with a system that is that old. Thomas From febty82 at gmail.com Wed Oct 7 20:26:00 2009 From: febty82 at gmail.com (febty febriani) Date: Thu, 8 Oct 2009 10:26:00 +0900 Subject: how to know number of lines from input file In-Reply-To: <69d8d540910070218y1b499d6cvdf8326984f2cc37e@mail.gmail.com> References: <1964ddb30910061956m31de6ebu56caea2c719613a6@mail.gmail.com> <69d8d540910070218y1b499d6cvdf8326984f2cc37e@mail.gmail.com> Message-ID: <1964ddb30910071826p1d1be32dj5b02a9aaec219c7b@mail.gmail.com> I think fsikpl is an on-going work. I can't found how to download and install it. I will wait the fskipl release. Ok, I will search other ways to solve my problem. thanks very much. best regards, febty 2009/10/7 Jaroslav Hajek > On Wed, Oct 7, 2009 at 4:56 AM, febty febriani wrote: > > Dear all, > > > > If I have command like below : > > > > fh=fopen("$dir/data-1day-1Hz/result-${year}${month}${num}.dat","r"); > > y=fscanf(fh,"%lf"); > > > > are there any tricks to know number of lines from the input file? > > any helps are appreciated. > > thanks very much. > > > > > > best regards, > > febty > > > > -- > > > > I have realized that fskipl, which was on my TODO list, could be > slightly extended to be usable also for this purpose, which often > comes up. > > -- Built-in Function: fskipl (FID, COUNT) > Skips a given number of lines, i.e. discards characters until an > end-of-line is met exactly COUNT-times, or end-of-file occurs. > Returns the number of lines skipped (end-of-line sequences > encountered). If COUNT is omitted, it defaults to 1. COUNT may > also be `Inf', in which case lines are skipped to the end of file. > This form is suitable for counting lines in a file. > > See also: fgetl, fgets > > So, with fskipl, you can now easily count lines of a file in advance by > > fid = fopen (..., "r"); > nlines = fskipl (fid, Inf); > frewind (f); > > of course, the file must be seekable (no pipe or socket). Optionally > you may want to add +1 to nlines to account for the characters between > the last newline and EOF (usually there are none, because most editors > and programs consistently terminate each line by \n). > fskipl is now available in development sources: > http://hg.savannah.gnu.org/hgweb/octave/rev/531280b07625 > > Still, you should be aware that this method requires two walks through the > file. > > -- > RNDr. Jaroslav Hajek > computing expert & GNU Octave developer > Aeronautical Research and Test Institute (VZLU) > Prague, Czech Republic > url: www.highegg.matfyz.cz > -- ****** febty febriani Indonesian Institute of Sciences Research Center for Physics Kompleks PUSPIPTEK Serpong, Indonesia, 15314 -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091008/56ff7b78/attachment.html From febty82 at gmail.com Wed Oct 7 21:36:56 2009 From: febty82 at gmail.com (febty febriani) Date: Thu, 8 Oct 2009 11:36:56 +0900 Subject: problem with matrices operator Message-ID: <1964ddb30910071936w1465c345sb5e6779160b7993e@mail.gmail.com> Hello everyone, Maybe my case is trivial thing, but I need your thought for it, I have the input file like below : 3.94979789e+06 2.07563383e+08 8.64407341e+07 1.99802918e+06 1.42889076e+06 5.55725247e+06 7.69394731e+05 1.04557613e+07 2.34593537e+06 2.67118351e+06 5.30308365e+06 1.46961852e+06 2.08552153e+06 5.29665190e+06 9.76369774e+04 ...... The file has 2508810 rows. I want to do the simple matrices operator for my input file, so I make the octave command like below : **** fid=fopen("$dir/data-1day-1Hz/fft-${year}${month}.dat","r"); A=fscanf(fid,"%le"); a=A(:,1); b=A(:,2); c=A(:,3); x=c./a; y=c./b; z=c./(a.^2+b.^2); subplot(3,1,1);plot(x); subplot(3,2,1);plot(y); subplot(3,3,1);plot(z); **** But, I met some errors : error: invalid column index = 2 error: evaluating assignment expression near line 4, column 2 I had no idea what problem is, because when I applied the matrices operator not using input file, it was OK. maybe, are there some problem with my command? thanks very much for any helps. best regards, febty -- ****** febty febriani Indonesian Institute of Sciences Research Center for Physics Kompleks PUSPIPTEK Serpong, Indonesia, 15314 -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091008/8cf7e854/attachment.html From jwe at octave.org Wed Oct 7 22:55:42 2009 From: jwe at octave.org (John W. Eaton) Date: Wed, 7 Oct 2009 23:55:42 -0400 Subject: problem with matrices operator In-Reply-To: <1964ddb30910071936w1465c345sb5e6779160b7993e@mail.gmail.com> References: <1964ddb30910071936w1465c345sb5e6779160b7993e@mail.gmail.com> Message-ID: <19149.25278.513170.332427@segfault.lan> On 8-Oct-2009, febty febriani wrote: | Hello everyone, | | Maybe my case is trivial thing, but I need your thought for it, | I have the input file like below : | | 3.94979789e+06 2.07563383e+08 8.64407341e+07 | 1.99802918e+06 1.42889076e+06 5.55725247e+06 | 7.69394731e+05 1.04557613e+07 2.34593537e+06 | 2.67118351e+06 5.30308365e+06 1.46961852e+06 | 2.08552153e+06 5.29665190e+06 9.76369774e+04 | ...... | | The file has 2508810 rows. | I want to do the simple matrices operator for my input file, so I make the | octave command like below : | | **** | fid=fopen("$dir/data-1day-1Hz/fft-${year}${month}.dat","r"); | A=fscanf(fid,"%le"); | | a=A(:,1); | b=A(:,2); | c=A(:,3); | | x=c./a; | y=c./b; | z=c./(a.^2+b.^2); | | subplot(3,1,1);plot(x); | subplot(3,2,1);plot(y); | subplot(3,3,1);plot(z); | **** | | But, I met some errors : | error: invalid column index = 2 | error: evaluating assignment expression near line 4, column 2 | | I had no idea what problem is, because when I applied the matrices operator | not using input file, it was OK. | maybe, are there some problem with my command? What does size (A) tell you? I think it will be a column vector. If your data file contains only numbers, it will be loaded faster with the load function, and the resulting value will have the same number of rows and columns as the file. Try A = load ("$dir/data-1day-1Hz/fft-${year}${month}.dat"); instead of fopen/fscanf. Does your filename really have $ and { and } characters in it? jwe From highegg at gmail.com Thu Oct 8 00:05:01 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Thu, 8 Oct 2009 07:05:01 +0200 Subject: how to know number of lines from input file In-Reply-To: <1964ddb30910071826p1d1be32dj5b02a9aaec219c7b@mail.gmail.com> References: <1964ddb30910061956m31de6ebu56caea2c719613a6@mail.gmail.com> <69d8d540910070218y1b499d6cvdf8326984f2cc37e@mail.gmail.com> <1964ddb30910071826p1d1be32dj5b02a9aaec219c7b@mail.gmail.com> Message-ID: <69d8d540910072205p660d0c7dy6da0cfb7841481a0@mail.gmail.com> On Thu, Oct 8, 2009 at 3:26 AM, febty febriani wrote: > I think fsikpl is an on-going work. I can't found how to download and > install it. I will wait the fskipl release. > Ok, I will search other ways to solve my problem. > thanks very much. > > best regards, > febty If you want it, you need to compile Octave from the development sources: http://hg.savannah.gnu.org/hgweb/octave/ or wait for the next major release (3.4). regards -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From liamg at mac.com Thu Oct 8 00:14:53 2009 From: liamg at mac.com (LiamG) Date: Wed, 7 Oct 2009 22:14:53 -0700 (PDT) Subject: Octave.app 3.2.3 for Mac OS X 10.4.x and 10.5.x In-Reply-To: <4AC7379C.20308@gmx.net> References: <4AC7379C.20308@gmx.net> Message-ID: <25798474.post@talk.nabble.com> Hi, I've been using octave with OS X 10.6 since it (10.6) was released. The only problem I've had was resolved using the modifications to mkoctfile suggested in: http://www.supermegaultragroovy.com/blog/2009/09/17/installing-octave-packages-in-snow-leopard/ I guess this is a hack, but it works for me. _______________________________________________ Help-octave mailing list Help-octave at octave.org https://www-old.cae.wisc.edu/mailman/listinfo/help-octave -- View this message in context: http://www.nabble.com/Octave.app-3.2.3-for-Mac-OS-X-10.4.x-and-10.5.x-tp25727982p25798474.html Sent from the Octave - General mailing list archive at Nabble.com. From febty82 at gmail.com Thu Oct 8 07:22:03 2009 From: febty82 at gmail.com (febty febriani) Date: Thu, 8 Oct 2009 21:22:03 +0900 Subject: problem with matrices operator In-Reply-To: <257355559-1254974996-cardhu_decombobulator_blackberry.rim.net-2133941206-@bda166.bisx.prod.on.blackberry> References: <1964ddb30910071936w1465c345sb5e6779160b7993e@mail.gmail.com> <257355559-1254974996-cardhu_decombobulator_blackberry.rim.net-2133941206-@bda166.bisx.prod.on.blackberry> Message-ID: <1964ddb30910080522n34fd47a8sd1948910a975ea24@mail.gmail.com> Dear all, thanks very much for your response. I tried what John suggested. It worked perfectly with a little trick. Maybe, my data size are too large so Octave can not plot my data, so I used trick to save all the result of matrices operator and plot by gnuplot. For John, I run my Octave script in Bash, because I must run the script more than once, so I used $, and {} to define my data folder. Again, thanks very much. best regards, febty 2009/10/8 > Hi > > Your problem is that you only have one row but you want to read a matrix > in. Say, A(:,1) will give you all rows for the first column whic you have. > > A(:,2) will try to read the second column all rows... But it is not there. > > Fix your iinput and you are done. > > Btw you can use "load" to bring in your file since it only has numbers. Try > that. > > Good luck. > > Leo. > -----Original Message----- > From: febty febriani > Date: Thu, 8 Oct 2009 11:36:56 > To: > Subject: problem with matrices operator > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > > > -- ****** febty febriani Indonesian Institute of Sciences Research Center for Physics Kompleks PUSPIPTEK Serpong, Indonesia, 15314 -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091008/b00aa79a/attachment.html From highegg at gmail.com Thu Oct 8 07:28:32 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Thu, 8 Oct 2009 14:28:32 +0200 Subject: problem with matrices operator In-Reply-To: <1964ddb30910080522n34fd47a8sd1948910a975ea24@mail.gmail.com> References: <1964ddb30910071936w1465c345sb5e6779160b7993e@mail.gmail.com> <257355559-1254974996-cardhu_decombobulator_blackberry.rim.net-2133941206-@bda166.bisx.prod.on.blackberry> <1964ddb30910080522n34fd47a8sd1948910a975ea24@mail.gmail.com> Message-ID: <69d8d540910080528u994a476s3a60dc70214d5ef5@mail.gmail.com> On Thu, Oct 8, 2009 at 2:22 PM, febty febriani wrote: > Dear all, > > thanks very much for your response. I tried what John suggested. It worked > perfectly with a little trick. Maybe, my data size are too large so Octave > can not plot my data, so I used trick to save all the result of matrices > operator and plot by gnuplot. > Why do you think Octave can't plot your data? What happens? > For John, I run my Octave script in Bash, because I must run the script?more > than once, so I used $, and {} to define my?data folder. > You could also do that in Octave. That would probably be better, because starting Octave takes up a nontrivial amount of time. Oh, and please tell me that you *don't* think Octave can't plot your data just because it quits before you can see the plots. -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From sesc at gmx.de Thu Oct 8 09:42:45 2009 From: sesc at gmx.de (=?ISO-8859-1?Q?Sebastian_Sch=F6ps?=) Date: Thu, 08 Oct 2009 16:42:45 +0200 Subject: Octave.app 3.2.3 for Mac OS X 10.4.x and 10.5.x In-Reply-To: <4AC7379C.20308@gmx.net> References: <4AC7379C.20308@gmx.net> Message-ID: <4ACDFA65.80800@gmx.de> Hi, I think that the installation of Octave.app is very easy and this is a clearly advantageous (thanks Thomas), but on the other hand, one can always build octave from MacPorts (so do I). This is just a bit more complicated and gives a tailored binary for your machine (even 64 bit). Maybe one could replace Octave.app by a new installation instruction for Macports? One could also add the application around the binary in Macports, if necessary. Apropos 64 bit: I think there is a drawback when using octave compiled for the new Mac architecture, because FLTK cannot be build yet for 64 bit... Anyway, I guess the building of Octave.app itself is not a big deal, but the testing and i cannot help here, since I prefer the self compiled installation. Bye Sebastian Thomas Treichl wrote: > Hi, > > by the end of this year I'll take a break from building future versions of > Octave.app. If there is somebody out there who likes to do this job in the > future then you're very welcome. The build scripts already are part of the > Octave-Forge project so that you can have a look at them but maybe they need > to be adapted to your Mac. I think that for many of you as for me Octave.app > was and still is a useful ready-to-run program, so I must say that I'd also > like to see future versions of it even if I'm not the one who builds them. > > For now, I have uploaded the compressed disc images *.dmg including > Octave.app 3.2.3 for PPC and i386 MacOSX to the SourceForge's server. > The system requirements for the PPC architecture are MacOSX 10.4.x or > newer and a PPC G4 processor or better, for the i386 architecture MacOSX > 10.4.x or 10.5.x. You can get it from http://octave.sourceforge.net. > > We have had more than 6600 downloads for Octave.app 3.2.2 the past 2 months. > Now, if you find this program useful then please support its development. See > http://www.octave.org/help-wanted.html for more information about how you can help. From macy at sfo.com Thu Oct 8 09:44:41 2009 From: macy at sfo.com (macy at sfo.com) Date: Thu, 8 Oct 2009 07:44:41 -0700 (PDT) Subject: how to know number of lines from input file In-Reply-To: <1964ddb30910071826p1d1be32dj5b02a9aaec219c7b@mail.gmail.com> References: <1964ddb30910061956m31de6ebu56caea2c719613a6@mail.gmail.com> <69d8d540910070218y1b499d6cvdf8326984f2cc37e@mail.gmail.com> <1964ddb30910071826p1d1be32dj5b02a9aaec219c7b@mail.gmail.com> Message-ID: <1109.66.81.51.223.1255013081.squirrel@cp01.sfo.com> At the risk of sounding like a heretic here. Have you looked at python? A colleague of mine wrapped a python script around my octave script that did much like you asked for. In five minutes he had a script that read a file took out lines, interpreted variations of those lines/files and basically removed everything but just the data that I wanted. And, when that data wasn't in the right format for octave, his script changed the lines to make them octave script compatible. And, we're talking lots of variations and some weird data files, too. I think the latest python version that will run on Win98 is 2.5.4 Anyway, the two together are awesome. Robert > I think fsikpl is an on-going work. I can't found how to download and > install it. I will wait the fskipl release. > Ok, I will search other ways to solve my problem. > thanks very much. > > best regards, > febty > From highegg at gmail.com Thu Oct 8 09:49:07 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Thu, 8 Oct 2009 16:49:07 +0200 Subject: how to know number of lines from input file In-Reply-To: <1109.66.81.51.223.1255013081.squirrel@cp01.sfo.com> References: <1964ddb30910061956m31de6ebu56caea2c719613a6@mail.gmail.com> <69d8d540910070218y1b499d6cvdf8326984f2cc37e@mail.gmail.com> <1964ddb30910071826p1d1be32dj5b02a9aaec219c7b@mail.gmail.com> <1109.66.81.51.223.1255013081.squirrel@cp01.sfo.com> Message-ID: <69d8d540910080749h76d72b17h48501d28c0469b61@mail.gmail.com> On Thu, Oct 8, 2009 at 4:44 PM, wrote: > At the risk of sounding like a heretic here. ?Have you looked at python? > A colleague of mine wrapped a python script around my octave script that > did much like you asked for. > > In five minutes he had a script that read a file took out lines, > interpreted variations of those lines/files and basically removed > everything but just the data that I wanted. ?And, when that data wasn't in > the right format for octave, his script changed the lines to make them > octave script compatible. ?And, we're talking lots of variations and some > weird data files, too. > > I think the latest python version that will run on Win98 is 2.5.4 > > Anyway, the two together are awesome. > Yes, and you probably haven't seen Pytave yet :) https://launchpad.net/pytave/ best regs -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From arnoques at gmail.com Thu Oct 8 18:58:25 2009 From: arnoques at gmail.com (Pablo) Date: Thu, 08 Oct 2009 19:58:25 -0400 Subject: Finding only some roots of a polynomial Message-ID: <4ACE7CA1.1090901@gmail.com> Hi everyone! I need to find the roots of some quite big polynomials (order ~800). The root function works fine (and surprisingly fast!), but I don't think it's the best tool forwhat I need. I'm only interested in those roots with high absolute value, so after "roots" works hard to find the 800 complex values, I discard almost all of them. Do you have any suggestion for an algorithm to do that? I did find a book on the subject (McNamee - Numerical Methods for Roots of Polynomials, Vol1 - 2007), and it suggest (I didn't read it thoroughly, yet) that the companion method finds the roots one by one, starting with the one with the largest magnitude. However, there are a multitude of similar methods in the book. Is Octave doing that? In that case I might try to modify the function to stop after a few roots. I peeked in the source code, but I don't know Fortran, so it's kind of hard to understand what is going on. For reference, my current script is %lenght(c) is ~800 r=roots(c)'; %This takes quite long %I only keep roots with abs(r)>=0 and angle(r)>=0 P=abs(r); I=find(P>=1); BB=log(P(I))/deltat; WW=angle(r(I))/deltat; I=find(WW>=0); B=BB(I); W=WW(I); %Now lenght(W) is just around 10 Thank you very much for your answers, and for maintaining this great program! Arnoques From bpabbott at mac.com Thu Oct 8 19:25:10 2009 From: bpabbott at mac.com (Ben Abbott) Date: Thu, 08 Oct 2009 20:25:10 -0400 Subject: Finding only some roots of a polynomial In-Reply-To: <4ACE7CA1.1090901@gmail.com> References: <4ACE7CA1.1090901@gmail.com> Message-ID: <192161A3-682E-478B-AEDA-C1341992ED97@mac.com> On Oct 8, 2009, at 7:58 PM, Pablo wrote: > Hi everyone! > > I need to find the roots of some quite big polynomials (order ~800). > The > root function works fine (and surprisingly fast!), but I don't think > it's the best tool forwhat I need. I'm only interested in those roots > with high absolute value, so after "roots" works hard to find the 800 > complex values, I discard almost all of them. > > Do you have any suggestion for an algorithm to do that? > > I did find a book on the subject (McNamee - Numerical Methods for > Roots > of Polynomials, Vol1 - 2007), and it suggest (I didn't read it > thoroughly, yet) that the companion method finds the roots one by one, > starting with the one with the largest magnitude. However, there are a > multitude of similar methods in the book. > > Is Octave doing that? Octave uses a different approach. Octave constructs a matrix whose characteristic polynomial is the same as the polynomial whose roots are desired. The eigen values of that matrix are then solved for (which are equal to the roots of the characteristic polynomial). http://en.wikipedia.org/wiki/Characteristic_polynomial For info on how Octave calculates the eigen values, type "help eig" at Octave's prompt. Ben From febty82 at gmail.com Thu Oct 8 21:44:32 2009 From: febty82 at gmail.com (febty febriani) Date: Fri, 9 Oct 2009 11:44:32 +0900 Subject: problem with matrices operator In-Reply-To: <1964ddb30910081935g62357867u2924fc99eb4defc4@mail.gmail.com> References: <1964ddb30910071936w1465c345sb5e6779160b7993e@mail.gmail.com> <257355559-1254974996-cardhu_decombobulator_blackberry.rim.net-2133941206-@bda166.bisx.prod.on.blackberry> <1964ddb30910080522n34fd47a8sd1948910a975ea24@mail.gmail.com> <69d8d540910080528u994a476s3a60dc70214d5ef5@mail.gmail.com> <1964ddb30910081935g62357867u2924fc99eb4defc4@mail.gmail.com> Message-ID: <1964ddb30910081944m5c3454cfibdbedd27a9e53113@mail.gmail.com> Sorry, I repost because I added a little explanation about directory. best regards, febty > > 2009/10/8 Jaroslav Hajek > >> On Thu, Oct 8, 2009 at 2:22 PM, febty febriani wrote: >> > Dear all, >> > >> > thanks very much for your response. I tried what John suggested. It >> worked >> > perfectly with a little trick. Maybe, my data size are too large so >> Octave >> > can not plot my data, so I used trick to save all the result of matrices >> > operator and plot by gnuplot. >> > >> >> Why do you think Octave can't plot your data? What happens? >> > > I didn't know what happened. when I did it by manual at the Octave prompt, > I can see my plot. But, when I called my script by using its name (bash > name), such as ./scripts.bash on the terminal, I can not see my plot and > there were any error message on the terminal. So, I saved my Octave result > and plot it by gnuplot. It worked. > >> >> > For John, I run my Octave script in Bash, because I must run the >> script more >> > than once, so I used $, and {} to define my data folder. >> > >> >> You could also do that in Octave. That would probably be better, >> because starting Octave takes up a nontrivial amount of time. >> >> yes, your are right. By using bash, it need much more times to running the >> scripts, but I can get result of all my data all at once. In Octave, I don't >> yet know how to define it. I mean, I need bash to define like below .. >> > > > for year in 2009 > do > for month in 01 ....12 (12 months) > do > for day in 01 ....31 (31 days) > do > for hour in 00....23 (23 hours) > do > for min in 00 > do > for sec in 00 > do > > dir=...... (I define my folder, because I use different folder for data, result and program. It is just for folder arrangement ) > > octave -q < > octave scripts > > EOF > > convert (for picture) > > done > done > done > done > done > done > > rm (remove unused files) > > > best regards, > febty > > > ****** > febty febriani > Indonesian Institute of Sciences > Research Center for Physics > Kompleks PUSPIPTEK > Serpong, Indonesia, 15314 > -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091009/0915bd0e/attachment.html From lrwayne at earthlink.net Thu Oct 8 22:26:16 2009 From: lrwayne at earthlink.net (Leonard Wayne) Date: Thu, 8 Oct 2009 20:26:16 -0700 (GMT-07:00) Subject: Plot window freezes Message-ID: <2940377.1255058776079.JavaMail.root@elwamui-rubis.atl.sa.earthlink.net> Hello. I am running Octave for the first time. When I issue this command plot( 1:10 ) the correct plot is generated, but then the plot window immediately freezes. The cursor coordinates shown in the lower left part of the plot window do not update, and soon Windows reports the plot window is not responding. Does anyone know what could be wrong? I used the Windows installer on Octave Forge. I am running Windows XP with Service Pack 3. Is gnuplot what Octave uses? I have gnuplot installed separately under Cygwin where it seems to work fine. Thank you in advance. - Len From highegg at gmail.com Fri Oct 9 00:42:49 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Fri, 9 Oct 2009 07:42:49 +0200 Subject: Finding only some roots of a polynomial In-Reply-To: <4ACE7CA1.1090901@gmail.com> References: <4ACE7CA1.1090901@gmail.com> Message-ID: <69d8d540910082242w41daad0fje695c2a703a297e0@mail.gmail.com> On Fri, Oct 9, 2009 at 1:58 AM, Pablo wrote: > Hi everyone! > > I need to find the roots of some quite big polynomials (order ~800). The > root function works fine (and surprisingly fast!), but I don't think > it's the best tool forwhat I need. I'm only interested in those roots > with high absolute value, so after "roots" works hard to find the 800 > complex values, I discard almost all of them. > > Do you have any suggestion for an algorithm to do that? > > I did find a book on the subject (McNamee - Numerical Methods for Roots > of Polynomials, Vol1 - 2007), and it suggest (I didn't read it > thoroughly, yet) that the companion method finds the roots one by one, > starting with the one with the largest magnitude. However, there are a > multitude of similar methods in the book. > > Is Octave doing that? > > In that case I might try to modify the function to stop after a few > roots. I peeked in the source code, but I don't know Fortran, so it's > kind of hard to understand what is going on. > > For reference, my current script is > ?%lenght(c) is ~800 > ?r=roots(c)'; %This takes quite long > ?%I only keep roots with abs(r)>=0 and angle(r)>=0 > ?P=abs(r); > ?I=find(P>=1); > ?BB=log(P(I))/deltat; > ?WW=angle(r(I))/deltat; > ?I=find(WW>=0); > ?B=BB(I); > ?W=WW(I); > ?%Now lenght(W) is just around 10 > > Thank you very much for your answers, and for maintaining this great > program! > ?Arnoques Octave takes a simple approach: it constructs a companion matrix of the polynomial whose eigenvalues match the polynomial roots, then uses an eigenvalue solver. You can construct the companion matrix using "compan". So, if you have Octave linked with ARPACK (so that you have the eigs function available), you can do sth like: C = compan (c); eigs (C, 3) # find 3 largest roots. hth -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From carlo.defalco at gmail.com Fri Oct 9 00:46:07 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Fri, 9 Oct 2009 07:46:07 +0200 Subject: problem with matrices operator In-Reply-To: <1964ddb30910081944m5c3454cfibdbedd27a9e53113@mail.gmail.com> References: <1964ddb30910071936w1465c345sb5e6779160b7993e@mail.gmail.com> <257355559-1254974996-cardhu_decombobulator_blackberry.rim.net-2133941206-@bda166.bisx.prod.on.blackberry> <1964ddb30910080522n34fd47a8sd1948910a975ea24@mail.gmail.com> <69d8d540910080528u994a476s3a60dc70214d5ef5@mail.gmail.com> <1964ddb30910081935g62357867u2924fc99eb4defc4@mail.gmail.com> <1964ddb30910081944m5c3454cfibdbedd27a9e53113@mail.gmail.com> Message-ID: <2ACE4365-FC61-4C0B-9CE1-7F71F1659179@gmail.com> On 9 Oct 2009, at 04:44, febty febriani wrote: > > for year in 2009 > do > for month in 01 ....12 (12 months) > do > for day in 01 ....31 (31 days) > do > for hour in 00....23 (23 hours) > do > for min in 00 > do > for sec in 00 > do > > dir=...... (I define my folder, because I use different > folder for data, result and program. It is just for folder > arrangement ) > > octave -q < > octave scripts > > EOF you could do the same just with an octave script ----------8<-------------- #!/path/to/octave ##so that you can run the script from bash year=2009 for month=1:12 for day=1:31 for hour=0:23 min=0; sec=0; dir=<...>; filename=sprintf("%s/data-1day-1Hz/fft-%d%2.2d.dat", dir, year, month); fid=fopen(filename,"r"); # or: # load (filename); ## other octave commands plot (...) print (...) ## to save the plot to a file fclose (fid) endfor endfor endfor ----------8<-------------- this should be __MUCH__ faster as it would not fire up many different instances of octave and gnuplot. HTH, c. From tmacchant at yahoo.co.jp Fri Oct 9 01:05:12 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Fri, 9 Oct 2009 15:05:12 +0900 (JST) Subject: Plot window freezes In-Reply-To: <2940377.1255058776079.JavaMail.root@elwamui-rubis.atl.sa.earthlink.net> Message-ID: <20091009060512.73683.qmail@web3814.mail.bbt.yahoo.co.jp> Hello Please specify version number of octave at the question. On octave 3.2.2-mingw on my computer on win xp, I cannot confirm the behavior that you have pointed out. After plot( 1:10 ) cursor coordinates shown in the lower left part of the plot window did update, correctly. In addition, the mouse zoom in 2D plot worked fine. Regards Tatsuro --- Leonard Wayne wrote: > Hello. > > I am running Octave for the first time. > When I issue this command > > plot( 1:10 ) > > the correct plot is generated, but then > the plot window immediately freezes. The > cursor coordinates shown in the lower left > part of the plot window do not update, and > soon Windows reports the plot window is > not responding. Does anyone know what > could be wrong? > > I used the Windows installer on Octave Forge. > I am running Windows XP with Service Pack 3. > > Is gnuplot what Octave uses? I have gnuplot > installed separately under Cygwin where it > seems to work fine. > > Thank you in advance. > > - Len -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From lrwayne at earthlink.net Fri Oct 9 03:36:31 2009 From: lrwayne at earthlink.net (Leonard Wayne) Date: Fri, 9 Oct 2009 01:36:31 -0700 (GMT-07:00) Subject: Plot window freezes Message-ID: <18366968.1255077391356.JavaMail.root@mswamui-cedar.atl.sa.earthlink.net> Hello. Thank you for the reply. I am using version 3.2.2_gcc-4.3.0. On start-up, Octave reports that it was configured for "i686-pc-mingw32". - Len -----Original Message----- >From: Tatsuro MATSUOKA >Sent: Oct 8, 2009 11:05 PM >To: Leonard Wayne , help-octave at octave.org >Subject: Re: Plot window freezes > >Hello > >Please specify version number of octave at the question. > >On octave 3.2.2-mingw on my computer on win xp, I cannot confirm the behavior that you have pointed >out. > >After > plot( 1:10 ) > >cursor coordinates shown in the lower left part of the plot window did update, correctly. >In addition, the mouse zoom in 2D plot worked fine. > >Regards > >Tatsuro > >--- Leonard Wayne wrote: > >> Hello. >> >> I am running Octave for the first time. >> When I issue this command >> >> plot( 1:10 ) >> >> the correct plot is generated, but then >> the plot window immediately freezes. The >> cursor coordinates shown in the lower left >> part of the plot window do not update, and >> soon Windows reports the plot window is >> not responding. Does anyone know what >> could be wrong? >> >> I used the Windows installer on Octave Forge. >> I am running Windows XP with Service Pack 3. >> >> Is gnuplot what Octave uses? I have gnuplot >> installed separately under Cygwin where it >> seems to work fine. >> >> Thank you in advance. >> >> - Len > > >-------------------------------------- >GyaO! - Anime, Dramas, Movies, and Music videos [FREE] >http://pr.mail.yahoo.co.jp/gyao/ From mgawinecki at gmail.com Fri Oct 9 04:44:11 2009 From: mgawinecki at gmail.com (Maciej Gawinecki) Date: Fri, 09 Oct 2009 11:44:11 +0200 Subject: filling patterns for pie chart Message-ID: <4ACF05EB.4080906@gmail.com> I've been looking for solution to gnuplot pie chart with black-and-white filling patterns (like bars in that gnuplot test command renders: https://hepblog.uchicago.edu/hep/hep4/wp-content/uploads/2008/01/gnuplot.png) I know that Octave has a simple function pie() for drawing pie charts. E.g. I found this example: pie ([3, 2, 1], [0, 0, 1], {"Cheddar", "Swiss", "Camembert"}); colormap([1,0,0;0,1,0;0,0,1;1,1,0;1,0,1;0,1,1]); print('fig.jpg','-djpg'); Can any one there can explain me how can I replace colors with black-and-white filling patterns? Regards, Maciej ps. As an alternative I've tried Perl Chart::Gnuplot::Pie library but Chart::Gnuplot library does not work for me (Windows XP). There is a known issue on that (http://www.perlmonks.org/?node_id=721599), and even turning back to version 0.05 of Perl library for gnuplot does not help. From tmacchant at yahoo.co.jp Fri Oct 9 04:58:47 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Fri, 9 Oct 2009 18:58:47 +0900 (JST) Subject: Plot window freezes In-Reply-To: <18366968.1255077391356.JavaMail.root@mswamui-cedar.atl.sa.earthlink.net> Message-ID: <20091009095847.56067.qmail@web3802.mail.bbt.yahoo.co.jp> Hello --- Leonard Wayne wrote: > Hello. > > Thank you for the reply. > > I am using version 3.2.2_gcc-4.3.0. On start-up, > Octave reports that it was configured for > "i686-pc-mingw32". > > - Len Hmmmmm! I'm using the same version on windows XP professional sp3. Sorry, I have not met such trouble yet. Please try plot (1:10) drawnow("windows", "foo.txt", 9, "debug.txt") In the "debug.txt", commands of gnuplot sent from octave are recorded. Could you send me it as an attachment file? It might give us a hint to solve the problem. Regards Tatsuro -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From febty82 at gmail.com Fri Oct 9 05:28:33 2009 From: febty82 at gmail.com (febty febriani) Date: Fri, 9 Oct 2009 19:28:33 +0900 Subject: problem with matrices operator In-Reply-To: <2ACE4365-FC61-4C0B-9CE1-7F71F1659179@gmail.com> References: <1964ddb30910071936w1465c345sb5e6779160b7993e@mail.gmail.com> <257355559-1254974996-cardhu_decombobulator_blackberry.rim.net-2133941206-@bda166.bisx.prod.on.blackberry> <1964ddb30910080522n34fd47a8sd1948910a975ea24@mail.gmail.com> <69d8d540910080528u994a476s3a60dc70214d5ef5@mail.gmail.com> <1964ddb30910081935g62357867u2924fc99eb4defc4@mail.gmail.com> <1964ddb30910081944m5c3454cfibdbedd27a9e53113@mail.gmail.com> <2ACE4365-FC61-4C0B-9CE1-7F71F1659179@gmail.com> Message-ID: <1964ddb30910090328v3cde312fxf772701fe8c48052@mail.gmail.com> thank you, you are right. It is much more simple and faster than mine. Again, thank you very much. best regards, febty 2009/10/9 Carlo de Falco > > On 9 Oct 2009, at 04:44, febty febriani wrote: > > >> for year in 2009 >> do >> for month in 01 ....12 (12 months) >> do >> for day in 01 ....31 (31 days) >> do >> for hour in 00....23 (23 hours) >> do >> for min in 00 >> do >> for sec in 00 >> do >> >> dir=...... (I define my folder, because I use different folder for >> data, result and program. It is just for folder arrangement ) >> >> octave -q <> >> octave scripts >> >> EOF >> > > you could do the same just with an octave script > > ----------8<-------------- > #!/path/to/octave ##so that you can run the script from bash > > year=2009 > for month=1:12 > for day=1:31 > for hour=0:23 > min=0; sec=0; > dir=<...>; > filename=sprintf("%s/data-1day-1Hz/fft-%d%2.2d.dat", dir, year, > month); > fid=fopen(filename,"r"); # or: > # load (filename); > > ## other octave commands > > plot (...) > print (...) ## to save the plot to a file > > fclose (fid) > endfor > endfor > endfor > ----------8<-------------- > > this should be __MUCH__ faster as it would not fire up many > different instances of octave and gnuplot. > > HTH, > c. > -- ****** febty febriani Indonesian Institute of Sciences Research Center for Physics Kompleks PUSPIPTEK Serpong, Indonesia, 15314 -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091009/691b3ea8/attachment.html From raaahaa at yahoo.com Fri Oct 9 13:08:10 2009 From: raaahaa at yahoo.com (Rahaaa) Date: Fri, 9 Oct 2009 11:08:10 -0700 (PDT) Subject: 'octave' is not recognized as an internal or external command Message-ID: <25824764.post@talk.nabble.com> Hi I have installed octave in windows vista. I cannot run the octave command on shell I don't know what is wrong Can any one please help me with this? I get this error 'octave' is not recognized as an internal or external command, operable program or batch file. Many thanks Raha -- View this message in context: http://www.nabble.com/%27octave%27-is-not-recognized-as-an-internal-or-external-command-tp25824764p25824764.html Sent from the Octave - General mailing list archive at Nabble.com. From tmacchant at yahoo.co.jp Fri Oct 9 14:36:31 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Sat, 10 Oct 2009 04:36:31 +0900 (JST) Subject: Plot window freezes In-Reply-To: <20091009095847.56067.qmail@web3802.mail.bbt.yahoo.co.jp> Message-ID: <20091009193631.15380.qmail@web3805.mail.bbt.yahoo.co.jp> Hello I have looked at your attachment file. However, commands are the same as that produced by my machine and no problem was found. I cannot figure out what prevent your gnuplot works correct. Please try uninstall octave and install it again. However, I cannot say that this makes your gnuplot works correct. Regards Tatsuro --- Tatsuro MATSUOKA wrote: > Hello > > --- Leonard Wayne wrote: > > > Hello. > > > > Thank you for the reply. > > > > I am using version 3.2.2_gcc-4.3.0. On start-up, > > Octave reports that it was configured for > > "i686-pc-mingw32". > > > > - Len > > Hmmmmm! > > I'm using the same version on windows XP professional sp3. > Sorry, I have not met such trouble yet. > > Please try > plot (1:10) > drawnow("windows", "foo.txt", 9, "debug.txt") > > In the "debug.txt", commands of gnuplot sent from octave are recorded. > > Could you send me it as an attachment file? > > It might give us a hint to solve the problem. > > Regards > > Tatsuro > > > -------------------------------------- > GyaO! - Anime, Dramas, Movies, and Music videos [FREE] > http://pr.mail.yahoo.co.jp/gyao/ > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From raaahaa at yahoo.com Fri Oct 9 15:10:22 2009 From: raaahaa at yahoo.com (Rahaaa) Date: Fri, 9 Oct 2009 13:10:22 -0700 (PDT) Subject: 'octave' is not recognized as an internal or external command In-Reply-To: <25826935.post@talk.nabble.com> References: <25824764.post@talk.nabble.com> <25826935.post@talk.nabble.com> Message-ID: <25827199.post@talk.nabble.com> Thank you so much. It solved the problem. Kind regards Raha supawolo wrote: > > depending on where exactly you installed octave, you need to add something > like C:\Program Files\Octave\bin to your path variable. > > > Rahaaa wrote: >> >> Hi >> >> I have installed octave in windows vista. I cannot run the octave command >> on shell >> I don't know what is wrong >> >> Can any one please help me with this? >> >> I get this error >> >> 'octave' is not recognized as an internal or external command, >> operable program or batch file. >> >> Many thanks >> >> Raha >> > > -- View this message in context: http://www.nabble.com/%27octave%27-is-not-recognized-as-an-internal-or-external-command-tp25824764p25827199.html Sent from the Octave - General mailing list archive at Nabble.com. From raaahaa at yahoo.com Fri Oct 9 12:11:56 2009 From: raaahaa at yahoo.com (Rahaaa) Date: Fri, 9 Oct 2009 10:11:56 -0700 (PDT) Subject: 'octave' is not recognized as an internal or external command Message-ID: <25824764.post@talk.nabble.com> Hi I have installed octave in windows vista. I cannot run the octave command on shell I don't know what is wrong Can any one please help me with this? I get this error 'octave' is not recognized as an internal or external command, operable program or batch file. Many thanks Raha -- View this message in context: http://www.nabble.com/%27octave%27-is-not-recognized-as-an-internal-or-external-command-tp25824764p25824764.html Sent from the Octave - General mailing list archive at Nabble.com. From luke_woloszyn at brown.edu Fri Oct 9 14:14:02 2009 From: luke_woloszyn at brown.edu (supawolo) Date: Fri, 9 Oct 2009 12:14:02 -0700 (PDT) Subject: random number generation Message-ID: <25826419.post@talk.nabble.com> I would like to generate a sequence of random numbers via the mersenne twister in octave that is exactly the same as a sequence of random numbers in Matlab. Could someone let me know if they've been able to do this? I've tried various permutations of setting rand('twister',...) in matlab as well as rand('state',...) in octave but i simply cannot get them to generate the same thing. Any help would be very much appreciated. Thanks. -- View this message in context: http://www.nabble.com/random-number-generation-tp25826419p25826419.html Sent from the Octave - General mailing list archive at Nabble.com. From luke_woloszyn at brown.edu Fri Oct 9 14:47:59 2009 From: luke_woloszyn at brown.edu (supawolo) Date: Fri, 9 Oct 2009 12:47:59 -0700 (PDT) Subject: 'octave' is not recognized as an internal or external command In-Reply-To: <25824764.post@talk.nabble.com> References: <25824764.post@talk.nabble.com> Message-ID: <25826935.post@talk.nabble.com> depending on where exactly you installed octave, you need to add something like C:\Program Files\Octave\bin to your path variable. Rahaaa wrote: > > Hi > > I have installed octave in windows vista. I cannot run the octave command > on shell > I don't know what is wrong > > Can any one please help me with this? > > I get this error > > 'octave' is not recognized as an internal or external command, > operable program or batch file. > > Many thanks > > Raha > -- View this message in context: http://www.nabble.com/%27octave%27-is-not-recognized-as-an-internal-or-external-command-tp25824764p25826935.html Sent from the Octave - General mailing list archive at Nabble.com. From dbateman at dbateman.org Fri Oct 9 17:12:23 2009 From: dbateman at dbateman.org (David Bateman) Date: Sat, 10 Oct 2009 00:12:23 +0200 Subject: random number generation In-Reply-To: <25826419.post@talk.nabble.com> References: <25826419.post@talk.nabble.com> Message-ID: <4ACFB547.6070801@dbateman.org> supawolo wrote: > I would like to generate a sequence of random numbers via the mersenne > twister in octave that is exactly the same as a sequence of random numbers > in Matlab. Could someone let me know if they've been able to do this? I've > tried various permutations of setting rand('twister',...) in matlab as well > as rand('state',...) in octave but i simply cannot get them to generate the > same thing. Any help would be very much appreciated. Thanks. > If you mean with the generators form matlab itself, then this is not possible. If you can replace the matlab generator then yes its possible with a purpose built mex file that mimics the Octave code. Check the thread http://sourceforge.net/mailarchive/forum.php?thread_name=425A617A.3010004%40motorola.com&forum_name=octave-dev The code probably still works and probably still creates the same sequences as octave, but be careful of 32 versus 53 bit mantissas for the random numbers D. From udippel at uniten.edu.my Fri Oct 9 23:00:14 2009 From: udippel at uniten.edu.my (Uwe Dippel) Date: Sat, 10 Oct 2009 12:00:14 +0800 Subject: bode not working: sys undefined Message-ID: <4AD006CE.90600@uniten.edu.my> (I don't seem to be all too lucky with my efforts on octave. :( ) I tried one example (rather simple) from https://prof.hti.bfh.ch/sha1/Octave/index/f/bode.html a basic Bode diagram. This is what I get: bode(sys,[],"y_3", {"u_1","u_4"}); error: `sys' undefined near line 3 column 6 error: evaluating argument list element number 1 error: evaluating argument list element number 1 Google didn't help. Since I am still a newbie, I might missing some initial setup, have to do some basic reading. Please tell me where and what. I am on 3.2.2 as recommended. By the way, we did create some data structure as indicated in that site, but it resulted in other, different, errors. Matlab has no 'sys' there in the syntax. Octave seems to be not all too compatible after all? Let's start with this bode problem, though, please! Uwe From leosgb at yahoo.com.br Sat Oct 10 01:30:28 2009 From: leosgb at yahoo.com.br (Leo Britto) Date: Fri, 9 Oct 2009 23:30:28 -0700 (PDT) Subject: bode not working: sys undefined In-Reply-To: <4AD006CE.90600@uniten.edu.my> Message-ID: <363362.9255.qm@web110201.mail.gq1.yahoo.com> Hi Uwe, It looks like you didnt define the "sys" in the bode command. You can try to read here: http://www.obihiro.ac.jp/~suzukim/masuda/octave/html/octave_127.html#SEC192 Look at the "State space system interface functions" for example. Good luck. Leo. --- On Fri, 10/9/09, Uwe Dippel wrote: > From: Uwe Dippel > Subject: bode not working: sys undefined > To: help-octave at octave.org > Date: Friday, October 9, 2009, 9:00 PM > (I don't seem to be all too lucky > with my efforts on octave.? :(? ) > > I tried one example (rather simple) from > https://prof.hti.bfh.ch/sha1/Octave/index/f/bode.html > a basic Bode diagram. > > This is what I get: > > bode(sys,[],"y_3", {"u_1","u_4"}); > error: `sys' undefined near line 3 column 6 > error: evaluating argument list element number 1 > error: evaluating argument list element number 1 > > Google didn't help. Since I am still a newbie, I might > missing some > initial setup, have to do some basic reading. Please tell > me where and > what. I am on 3.2.2 as recommended. > By the way, we did create some data structure as indicated > in that site, > but it resulted in other, different, errors. Matlab has no > 'sys' there > in the syntax. > Octave seems to be not all too compatible after all? > > Let's start with this bode problem, though, please! > > Uwe > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > From dastew at sympatico.ca Sat Oct 10 03:43:15 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Sat, 10 Oct 2009 08:43:15 +0000 Subject: bode not working: sys undefined In-Reply-To: <4AD006CE.90600@uniten.edu.my> References: <4AD006CE.90600@uniten.edu.my> Message-ID: Here is an example: n=6 d=[1 2 6] sys=tf(n,d); sysout(sys) bode(sys) doug > Date: Sat, 10 Oct 2009 12:00:14 +0800 > From: udippel at uniten.edu.my > To: help-octave at octave.org > Subject: bode not working: sys undefined > > (I don't seem to be all too lucky with my efforts on octave. :( ) > > I tried one example (rather simple) from > https://prof.hti.bfh.ch/sha1/Octave/index/f/bode.html > a basic Bode diagram. > > This is what I get: > > bode(sys,[],"y_3", {"u_1","u_4"}); > error: `sys' undefined near line 3 column 6 > error: evaluating argument list element number 1 > error: evaluating argument list element number 1 > > Google didn't help. Since I am still a newbie, I might missing some > initial setup, have to do some basic reading. Please tell me where and > what. I am on 3.2.2 as recommended. > By the way, we did create some data structure as indicated in that site, > but it resulted in other, different, errors. Matlab has no 'sys' there > in the syntax. > Octave seems to be not all too compatible after all? > > Let's start with this bode problem, though, please! > > Uwe > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091010/2c150748/attachment-0001.html From rose at rz.uni-potsdam.de Sat Oct 10 12:55:35 2009 From: rose at rz.uni-potsdam.de (Juergen Rose) Date: Sat, 10 Oct 2009 19:55:35 +0200 Subject: getopt Message-ID: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> Hi, I am looking for a possibility to evaluate the arguments passed to a octave script similar to getopt[s] in bash or Getopt::Std in perl. Any hints are appreciated. Juergen From dastew at sympatico.ca Sat Oct 10 05:48:08 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Sat, 10 Oct 2009 10:48:08 +0000 Subject: getopt In-Reply-To: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: did you see varargin? Doug > Subject: getopt > From: rose at rz.uni-potsdam.de > To: help at octave.org > Date: Sat, 10 Oct 2009 19:55:35 +0200 > > Hi, > > I am looking for a possibility to evaluate the arguments passed to a > octave script similar to getopt[s] in bash or Getopt::Std in perl. > > Any hints are appreciated. > > Juergen > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091010/1bf58582/attachment.html From rose at rz.uni-potsdam.de Sat Oct 10 16:16:25 2009 From: rose at rz.uni-potsdam.de (Juergen Rose) Date: Sat, 10 Oct 2009 23:16:25 +0200 Subject: getopt In-Reply-To: References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> Am Samstag, den 10.10.2009, 10:48 +0000 schrieb dastew at sympatico.ca: > did you see varargin? > > Doug > > > Subject: getopt > > From: rose at rz.uni-potsdam.de > > To: help at octave.org > > Date: Sat, 10 Oct 2009 19:55:35 +0200 > > > > Hi, > > > > I am looking for a possibility to evaluate the arguments passed to a > > octave script similar to getopt[s] in bash or Getopt::Std in perl. > > > > Any hints are appreciated. Hi Doug, I don't understand, what 'varargin' has to do with 'getopt'. octave:1> help varargin -- Keyword: varargin Pass an arbitrary number of arguments into a function. See also: varargout, nargin, nargout I need a function, which I can use to parse arg_list = argv() and which can distinguish between allowed and not allowed options, and between options with and without additional parameter. I.e., I look for something like in Perl: use Getopt::Std; my $opts="dhS:o:N:n:"; my $options={}; getopts($opts,$options); if (defined $options->{d}) {$DBG_LVL=$options->{d};} if (defined $options->{h}) {usage(); exit 0;} if (defined $options->{S}) {$Seed=$options->{S};} .. Regards Juergen From bpabbott at mac.com Sat Oct 10 09:14:19 2009 From: bpabbott at mac.com (Ben Abbott) Date: Sat, 10 Oct 2009 10:14:19 -0400 Subject: getopt In-Reply-To: <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: On Oct 10, 2009, at 5:16 PM, Juergen Rose wrote: > Am Samstag, den 10.10.2009, 10:48 +0000 schrieb dastew at sympatico.ca: >> did you see varargin? >> >> Doug >> >>> Subject: getopt >>> From: rose at rz.uni-potsdam.de >>> To: help at octave.org >>> Date: Sat, 10 Oct 2009 19:55:35 +0200 >>> >>> Hi, >>> >>> I am looking for a possibility to evaluate the arguments passed to a >>> octave script similar to getopt[s] in bash or Getopt::Std in perl. >>> >>> Any hints are appreciated. > > Hi Doug, > > I don't understand, what 'varargin' has to do with 'getopt'. > > octave:1> help varargin > > -- Keyword: varargin > Pass an arbitrary number of arguments into a function. > > See also: varargout, nargin, nargout > > I need a function, which I can use to parse arg_list = argv() and > which > can distinguish between allowed and not allowed options, and between > options with and without additional parameter. > I.e., I look for something like in Perl: > > use Getopt::Std; > my $opts="dhS:o:N:n:"; > my $options={}; > getopts($opts,$options); > if (defined $options->{d}) {$DBG_LVL=$options->{d};} > if (defined $options->{h}) {usage(); exit 0;} > if (defined $options->{S}) {$Seed=$options->{S};} > .. > > Regards Juergen Within a function ... nargin = the number of arguments passed. varargin{n} = the nth argument The variables nargout and vargout are the output counterparts. Below is a very simple example illustrating how varargin works. octave:1> function test_varargin (varargin) > varargin{:} > end octave:2> test_varargin (1, 2, 3, "a", "b", "c") ans = 1 ans = 2 ans = 3 ans = a ans = b ans = c octave:3> Ben From udippel at uniten.edu.my Sat Oct 10 10:18:47 2009 From: udippel at uniten.edu.my (Uwe Dippel) Date: Sat, 10 Oct 2009 23:18:47 +0800 Subject: bode not working: sys undefined Message-ID: <4AD0A5D7.2030705@uniten.edu.my> > Here is an example: > > > n=6 > d=[1 2 6] > sys=tf(n,d); > sysout(sys) > bode(sys) The same goes on ...: octave:1> n=6 n = 6 octave:2> d=[1 2 6] d = 1 2 6 octave:3> sys=tf(n,d); error: `tf' undefined near line 3 column 5 (I would really like to understand what is going wrong here, seemingly all the time!) Uwe From udippel at uniten.edu.my Sat Oct 10 10:24:53 2009 From: udippel at uniten.edu.my (Uwe Dippel) Date: Sat, 10 Oct 2009 23:24:53 +0800 Subject: bode not working: sys undefined Message-ID: <4AD0A745.5070105@uniten.edu.my> > It looks like you didnt define the "sys" in the bode command. You can try to read here: > > http://www.obihiro.ac.jp/~suzukim/masuda/octave/html/octave_127.html#SEC192 > > Look at the "State space system interface functions" for example. > > Good luck. From that link: > Example > > > octave:1> a = [1 2 3; 4 5 6; 7 8 10]; > octave:2> b = [0 0 ; 0 1 ; 1 0]; > octave:3> c = eye (3); > octave:4> sys = ss (a, b, c, [], 0, 3, 0, {"volts", "amps", "joules"}); > octave:5> sysout(sys); > Input(s) > 1: u_1 > 2: u_2 [....] What I get, is the same thing as before: octave:1> a = [1 2 3; 4 5 6; 7 8 10]; octave:2> b = [0 0 ; 0 1 ; 1 0]; octave:3> c = eye (3); octave:4> sys = ss (a, b, c, [], 0, 3, 0, {"volts", "amps", "joules"}); error: `ss' undefined near line 4 column 7 octave:4> (I would really like to understand what is going wrong here, seemingly all the time!) Uwe From rose at rz.uni-potsdam.de Sat Oct 10 19:57:34 2009 From: rose at rz.uni-potsdam.de (Juergen Rose) Date: Sun, 11 Oct 2009 02:57:34 +0200 Subject: getopt In-Reply-To: References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> Am Samstag, den 10.10.2009, 10:14 -0400 schrieb Ben Abbott: > On Oct 10, 2009, at 5:16 PM, Juergen Rose wrote: > > > Am Samstag, den 10.10.2009, 10:48 +0000 schrieb dastew at sympatico.ca: > >> did you see varargin? > >> > >> Doug > >> > >>> Subject: getopt > >>> From: rose at rz.uni-potsdam.de > >>> To: help at octave.org > >>> Date: Sat, 10 Oct 2009 19:55:35 +0200 > >>> > >>> Hi, > >>> > >>> I am looking for a possibility to evaluate the arguments passed to a > >>> octave script similar to getopt[s] in bash or Getopt::Std in perl. > >>> > >>> Any hints are appreciated. > > > > Hi Doug, > > > > I don't understand, what 'varargin' has to do with 'getopt'. > > > > octave:1> help varargin > > > > -- Keyword: varargin > > Pass an arbitrary number of arguments into a function. > > > > See also: varargout, nargin, nargout > > > > I need a function, which I can use to parse arg_list = argv() and > > which > > can distinguish between allowed and not allowed options, and between > > options with and without additional parameter. > > I.e., I look for something like in Perl: > > > > use Getopt::Std; > > my $opts="dhS:o:N:n:"; > > my $options={}; > > getopts($opts,$options); > > if (defined $options->{d}) {$DBG_LVL=$options->{d};} > > if (defined $options->{h}) {usage(); exit 0;} > > if (defined $options->{S}) {$Seed=$options->{S};} > > .. > > > > Regards Juergen > > Within a function ... > > nargin = the number of arguments passed. > varargin{n} = the nth argument > > The variables nargout and vargout are the output counterparts. > > Below is a very simple example illustrating how varargin works. > > octave:1> function test_varargin (varargin) > > varargin{:} > > end > octave:2> test_varargin (1, 2, 3, "a", "b", "c") > ans = 1 > ans = 2 > ans = 3 > ans = a > ans = b > ans = c > octave:3> > > Ben Hi Ben, I not yet understand what varagin has to do with the function getopts, besides the fact that you can perhaps use varagin to write my own function getopts. But I hoped this is already done. If I try to write a function my_getopt, the testing of the options is probably not so hard. But how I can reset argv, that it after the call the call of my_getopt contains only the non option arguments, I have no idea. Juergen From udippel at uniten.edu.my Sat Oct 10 10:44:51 2009 From: udippel at uniten.edu.my (Uwe Dippel) Date: Sat, 10 Oct 2009 23:44:51 +0800 Subject: Improving 'Help'-File (Tutorial) Message-ID: <4AD0ABF3.5070708@uniten.edu.my> Over the last days I have tried to get a grip on Octave, in vain. What I did was going through the help; and what I found was an inconsistency. I fully agree, that those familiar with octave will not encounter this problem; but for newbies it would be a great help, could we newbies distinguish clearly what we can *type* and what is *explanation*. Already here at the very start of the 'Help': > 1.2.1 Creating a Matrix > > To create a new matrix and store it in a variable so that it you can > refer to it later, type the command > > octave:1> A = [ 1, 1, 2; 3, 5, 8; 13, 21, 34 ] > > Octave will respond by printing the matrix in neatly aligned columns. > Ending a command with a semicolon tells Octave to not print the result > of a command. For example > > octave:2> B = rand (3, 2); > > will create a 3 row, 2 column matrix with each element set to a random > value between zero and one. > > To display the value of any variable, simply type the name of the > variable. For example, to display the value stored in the matrix B, > type the command > > octave:3> B > > 1.2.2 Matrix Arithmetic > > Octave has a convenient operator notation for performing matrix > arithmetic. For example, to multiply the matrix a by a scalar value, > type the command > > octave:4> 2 * A > > To multiply the two matrices a and b, type the command > > octave:5> A * B > > and to form the matrix product transpose (A) * A, type the command > > octave:6> A' * A > > 1.2.3 Solving Linear Equations > > To solve the set of linear equations Ax = b, use the left division > operator, ?\?: > > octave:7> A \ b > > This is conceptually equivalent to inv (a) * b, but avoids computing > the inverse of a matrix directly. > > If the coefficient matrix is [...] > Of course, the latter fails with "error: `b' undefined near line 7 column 5" And this isn't the only one. Though, 1-6 follow each other sequentially, and logically. As someone who has gone through 'R' tutorials, I found it very helpful, that all lines starting with '>', and typed sequentially, will result in a given output. While lines explaining syntax are written with the prompt at the beginning. And if the input to a prompt is yet to be defined by the user, the user-part will be written in italics. I really wished something like this was to be found in the examples of octave as well. It simply is a great encouragement, if a sequence of prompts, entered one after the other, actually resulted in some output, and not in a syntax error. Similar things happen on the subsequent pages; up to and including the examples for plots. Uwe From bpabbott at mac.com Sat Oct 10 11:01:02 2009 From: bpabbott at mac.com (Ben Abbott) Date: Sat, 10 Oct 2009 12:01:02 -0400 Subject: getopt In-Reply-To: <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: On Oct 10, 2009, at 8:57 PM, Juergen Rose wrote: > Am Samstag, den 10.10.2009, 10:14 -0400 schrieb Ben Abbott: >> On Oct 10, 2009, at 5:16 PM, Juergen Rose wrote: >> >>> Am Samstag, den 10.10.2009, 10:48 +0000 schrieb dastew at sympatico.ca: >>>> did you see varargin? >>>> >>>> Doug >>>> >>>>> Subject: getopt >>>>> From: rose at rz.uni-potsdam.de >>>>> To: help at octave.org >>>>> Date: Sat, 10 Oct 2009 19:55:35 +0200 >>>>> >>>>> Hi, >>>>> >>>>> I am looking for a possibility to evaluate the arguments passed >>>>> to a >>>>> octave script similar to getopt[s] in bash or Getopt::Std in perl. >>>>> >>>>> Any hints are appreciated. >>> >>> Hi Doug, >>> >>> I don't understand, what 'varargin' has to do with 'getopt'. >>> >>> octave:1> help varargin >>> >>> -- Keyword: varargin >>> Pass an arbitrary number of arguments into a function. >>> >>> See also: varargout, nargin, nargout >>> >>> I need a function, which I can use to parse arg_list = argv() and >>> which >>> can distinguish between allowed and not allowed options, and between >>> options with and without additional parameter. >>> I.e., I look for something like in Perl: >>> >>> use Getopt::Std; >>> my $opts="dhS:o:N:n:"; >>> my $options={}; >>> getopts($opts,$options); >>> if (defined $options->{d}) {$DBG_LVL=$options->{d};} >>> if (defined $options->{h}) {usage(); exit 0;} >>> if (defined $options->{S}) {$Seed=$options->{S};} >>> .. >>> >>> Regards Juergen >> >> Within a function ... >> >> nargin = the number of arguments passed. >> varargin{n} = the nth argument >> >> The variables nargout and vargout are the output counterparts. >> >> Below is a very simple example illustrating how varargin works. >> >> octave:1> function test_varargin (varargin) >>> varargin{:} >>> end >> octave:2> test_varargin (1, 2, 3, "a", "b", "c") >> ans = 1 >> ans = 2 >> ans = 3 >> ans = a >> ans = b >> ans = c >> octave:3> >> >> Ben > > Hi Ben, > I not yet understand what varagin has to do with the function getopts, > besides the fact that you can perhaps use varagin to write my own > function getopts. But I hoped this is already done. I haven't seen a script that tries to parse arguments the way getopts does, so I expect you'll have to write your own. > If I try to write a function my_getopt, the testing of the options is > probably not so hard. But how I can reset argv, that it after the call > the call of my_getopt contains only the non option arguments, I have > no > idea. > Juergen I have no good idea how to handle that problem. Ben From jwe at octave.org Sat Oct 10 11:12:45 2009 From: jwe at octave.org (John W. Eaton) Date: Sat, 10 Oct 2009 12:12:45 -0400 Subject: getopt In-Reply-To: References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: <19152.45693.291876.944624@segfault.lan> On 10-Oct-2009, Ben Abbott wrote: | > If I try to write a function my_getopt, the testing of the options is | > probably not so hard. But how I can reset argv, that it after the call | > the call of my_getopt contains only the non option arguments, I have | > no | > idea. | > Juergen | | I have no good idea how to handle that problem. You would need to do something like [opt_struct, remaining_args] = getopt (opt_string, varargin); then proceed with processing the returned options structure and the remaining arguments. jwe From jwe at octave.org Sat Oct 10 11:16:29 2009 From: jwe at octave.org (John W. Eaton) Date: Sat, 10 Oct 2009 12:16:29 -0400 Subject: bode not working: sys undefined In-Reply-To: <4AD0A5D7.2030705@uniten.edu.my> References: <4AD0A5D7.2030705@uniten.edu.my> Message-ID: <19152.45917.675539.867214@segfault.lan> On 10-Oct-2009, Uwe Dippel wrote: | > Here is an example: | > | > | > n=6 | > d=[1 2 6] | > sys=tf(n,d); | > sysout(sys) | > bode(sys) | | The same goes on ...: | octave:1> n=6 | n = 6 | octave:2> d=[1 2 6] | d = | | 1 2 6 | | octave:3> sys=tf(n,d); | error: `tf' undefined near line 3 column 5 | | (I would really like to understand what is going wrong here, seemingly | all the time!) What version of Octave are you using? The control system tools were removed to a separate package in Octave 3.2. Probably you need to install that. You can find the control package at octave.sf.net. Some binary distributions of Octave also contain pre-built packages (for example, if you are using Debian, you can install the octave-control package with apt-get). jwe From martin at mhelm.de Sat Oct 10 10:20:04 2009 From: martin at mhelm.de (Martin Helm) Date: Sat, 10 Oct 2009 17:20:04 +0200 Subject: getopt In-Reply-To: <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: <200910101720.04892.martin@mhelm.de> Am Samstag, 10. Oktober 2009 23:16:25 schrieb Juergen Rose: > Am Samstag, den 10.10.2009, 10:48 +0000 schrieb dastew at sympatico.ca: > > did you see varargin? > > > > Doug > > > > > Subject: getopt > > > From: rose at rz.uni-potsdam.de > > > To: help at octave.org > > > Date: Sat, 10 Oct 2009 19:55:35 +0200 > > > > > > Hi, > > > > > > I am looking for a possibility to evaluate the arguments passed to a > > > octave script similar to getopt[s] in bash or Getopt::Std in perl. > > > > > > Any hints are appreciated. > > Hi Doug, > > I don't understand, what 'varargin' has to do with 'getopt'. > > octave:1> help varargin > > -- Keyword: varargin > Pass an arbitrary number of arguments into a function. > > See also: varargout, nargin, nargout > > I need a function, which I can use to parse arg_list = argv() and which > can distinguish between allowed and not allowed options, and between > options with and without additional parameter. > I.e., I look for something like in Perl: > > use Getopt::Std; > my $opts="dhS:o:N:n:"; > my $options={}; > getopts($opts,$options); > if (defined $options->{d}) {$DBG_LVL=$options->{d};} > if (defined $options->{h}) {usage(); exit 0;} > if (defined $options->{S}) {$Seed=$options->{S};} > .. > > Regards Juergen > > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave If you want to get the command line options for the script you should take a look at the argv function here is a simple octave script from the octave manual which shows its usage, since it is short I reproduce it here (look at http://www.gnu.org/software/octave/doc/interpreter/Executable-Octave- Programs.html#Executable-Octave-Programs) #! /usr/bin/octave -qf printf ("%s", program_name ()); arg_list = argv (); for i = 1:nargin printf (" %s", arg_list{i}); endfor printf ("\n"); Hope that helps, checking of the command line parameters for type correctness and so on has to be done by yourself. - mh From martin at mhelm.de Sat Oct 10 10:20:04 2009 From: martin at mhelm.de (Martin Helm) Date: Sat, 10 Oct 2009 17:20:04 +0200 Subject: getopt In-Reply-To: <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: <200910101720.04892.martin@mhelm.de> Am Samstag, 10. Oktober 2009 23:16:25 schrieb Juergen Rose: > Am Samstag, den 10.10.2009, 10:48 +0000 schrieb dastew at sympatico.ca: > > did you see varargin? > > > > Doug > > > > > Subject: getopt > > > From: rose at rz.uni-potsdam.de > > > To: help at octave.org > > > Date: Sat, 10 Oct 2009 19:55:35 +0200 > > > > > > Hi, > > > > > > I am looking for a possibility to evaluate the arguments passed to a > > > octave script similar to getopt[s] in bash or Getopt::Std in perl. > > > > > > Any hints are appreciated. > > Hi Doug, > > I don't understand, what 'varargin' has to do with 'getopt'. > > octave:1> help varargin > > -- Keyword: varargin > Pass an arbitrary number of arguments into a function. > > See also: varargout, nargin, nargout > > I need a function, which I can use to parse arg_list = argv() and which > can distinguish between allowed and not allowed options, and between > options with and without additional parameter. > I.e., I look for something like in Perl: > > use Getopt::Std; > my $opts="dhS:o:N:n:"; > my $options={}; > getopts($opts,$options); > if (defined $options->{d}) {$DBG_LVL=$options->{d};} > if (defined $options->{h}) {usage(); exit 0;} > if (defined $options->{S}) {$Seed=$options->{S};} > .. > > Regards Juergen > > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave If you want to get the command line options for the script you should take a look at the argv function here is a simple octave script from the octave manual which shows its usage, since it is short I reproduce it here (look at http://www.gnu.org/software/octave/doc/interpreter/Executable-Octave- Programs.html#Executable-Octave-Programs) #! /usr/bin/octave -qf printf ("%s", program_name ()); arg_list = argv (); for i = 1:nargin printf (" %s", arg_list{i}); endfor printf ("\n"); Hope that helps, checking of the command line parameters for type correctness and so on has to be done by yourself. - mh From rose at rz.uni-potsdam.de Sat Oct 10 21:28:32 2009 From: rose at rz.uni-potsdam.de (Juergen Rose) Date: Sun, 11 Oct 2009 04:28:32 +0200 Subject: getopt In-Reply-To: <19152.45693.291876.944624@segfault.lan> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.45693.291876.944624@segfault.lan> Message-ID: <1255228112.11629.8.camel@tiger.bioinf.cs.uni-potsdam.de> Am Samstag, den 10.10.2009, 12:12 -0400 schrieb John W. Eaton: > On 10-Oct-2009, Ben Abbott wrote: > > | > If I try to write a function my_getopt, the testing of the options is > | > probably not so hard. But how I can reset argv, that it after the call > | > the call of my_getopt contains only the non option arguments, I have > | > no > | > idea. > | > Juergen > | > | I have no good idea how to handle that problem. > > You would need to do something like > > [opt_struct, remaining_args] = getopt (opt_string, varargin); > > then proceed with processing the returned options structure and the > remaining arguments. > > jwe Hi John, thank you for the answer. I did not expect that something like getopt is not yet implemented in octave. All other languages I use (C, bash, perl, R) have such a possibility. For me as a octave newcomer it is not very easy to do it. Juergen From martin at mhelm.de Sat Oct 10 10:35:39 2009 From: martin at mhelm.de (Martin Helm) Date: Sat, 10 Oct 2009 17:35:39 +0200 Subject: bode not working: sys undefined In-Reply-To: <4AD0A5D7.2030705@uniten.edu.my> References: <4AD0A5D7.2030705@uniten.edu.my> Message-ID: <200910101735.39343.martin@mhelm.de> Am Samstag, 10. Oktober 2009 17:18:47 schrieb Uwe Dippel: > > Here is an example: > > > > > > n=6 > > d=[1 2 6] > > sys=tf(n,d); > > sysout(sys) > > bode(sys) > > The same goes on ...: > octave:1> n=6 > n = 6 > octave:2> d=[1 2 6] > d = > > 1 2 6 > > octave:3> sys=tf(n,d); > error: `tf' undefined near line 3 column 5 > > (I would really like to understand what is going wrong here, seemingly > all the time!) > > Uwe > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave For tf you need to load the control package from octave forge pkg load control you can check if it is loaded (or installed) with pkg list at the octave prompt. - mh From kedarnp at gmail.com Sat Oct 10 12:25:29 2009 From: kedarnp at gmail.com (=?UTF-8?B?S2VkYXIgUGF0YW5rYXIgKOCkleClh+CkpuCkvuCksCDgpKrgpL7gpJ/gpKPgpJXgpLAp?=) Date: Sat, 10 Oct 2009 10:25:29 -0700 Subject: Zooming in plots using mouse... Message-ID: Hi, I used octave a few years ago and was able to zoom in/out on plotted data via gnuplot using mouse right click gesture. I recently needed to analyze and plot data, and to my surprise I could not zoom into the plots anymore. I tried using octave on my up-to-date cygwin setup and also on redhat-enterprise-linux 5.2 and my ubuntu 8.10 laptop, but it didn't work on any of these. The versions of octave/gnuplot are as follows: cygwin: octave-3.0.2, gnuplot 4.2.4 RHEL 5.2: octave-3.0.x gnuplot 4.2.4 ubuntu 8.10: octave-3.0.1 gnuplot 4.2 patchlevel-3. Any help greatly appreciated. Regards/Kedar. -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091010/97bd38de/attachment.html From jwe at octave.org Sat Oct 10 12:50:01 2009 From: jwe at octave.org (John W. Eaton) Date: Sat, 10 Oct 2009 13:50:01 -0400 Subject: getopt In-Reply-To: <1255228112.11629.8.camel@tiger.bioinf.cs.uni-potsdam.de> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.45693.291876.944624@segfault.lan> <1255228112.11629.8.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: <19152.51529.84588.692533@segfault.lan> On 11-Oct-2009, Juergen Rose wrote: | thank you for the answer. I did not expect that something like getopt is | not yet implemented in octave. All other languages I use (C, bash, perl, | R) have such a possibility. For me as a octave newcomer it is not very | easy to do it. Procssing getopt-style options is not a common idiom in Octave. It's relatively inconvenient to do result = foo ("-x", x_var, "-y" "-z"); and if you use the command-style syntax: foo -x x_var -y -z instead, you can't assign the result fo the function to a variable and all the arguments are passed to the function as character strings, which is not the usuall thing to do for a numerically-oriented language like Octave. So I would ask why you want to do this. If you tell us what you are trying to do, someone might be able to suggest a convenient way to do it. jwe From storrsjm at email.uc.edu Sat Oct 10 14:14:31 2009 From: storrsjm at email.uc.edu (Judd Storrs) Date: Sat, 10 Oct 2009 15:14:31 -0400 Subject: getopt In-Reply-To: <19152.51529.84588.692533@segfault.lan> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.45693.291876.944624@segfault.lan> <1255228112.11629.8.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.51529.84588.692533@segfault.lan> Message-ID: On Sat, Oct 10, 2009 at 1:50 PM, John W. Eaton wrote: > I would ask why you want to do this. I agree that it's not very useful from within octave, but this would be useful for stand alone scripts (i.e. #!/usr/bin/octave). I've tried going the getopt route before (and I actually implemented it somewhere) but in the end I decided I wanted to use long options to be more consistent other programs I was using. I work some on implementing getopts but it gets pretty hairy and I was having trouble with getting method handles to work. One idea I had was to write it as an .oct wrapper to the real functions. In the end I timed out and instead went with something like this (it's probably not very robust but it works and isn't too hairy): ## Command line defaults opt.prefix = "" ; opt.session = "" ; opt.dim = [ 0 0 0 ] ; opt.hamming = [ false false false ] ; opt.dc = 32 ; opt.kspace = false ; opt.path = "" ; opt.verbose = false ; opt.skip = 0 ; opt.b1cor = 0 ; opt.rr = 0 ; ## Process command line options args = argv() ; i = 1 ; while i <= length(args) option = args{i++} ; switch option case {"-prefix" "--prefix"} opt.prefix = args{i++} ; case {"-session" "--session"} opt.session = args{i++} ; case {"-b1"} opt.b1cor = str2num(args{i++}) ; case {"-dx"} opt.dim(1) = str2num(args{i++}) ; case {"-dy"} opt.dim(2) = str2num(args{i++}) ; case {"-dz"} opt.dim(3) = str2num(args{i++}) ; case {"-d"} opt.dim(:) = str2num(args{i++}) ; case {"-Hx"} opt.hamming(1) = true ; case {"-Hy"} opt.hamming(2) = true ; case {"-Hz"} opt.hamming(3) = true ; case {"-H"} opt.hamming(:) = true ; case {"-s", "--skip"} opt.skip = round(str2num(args{i++})) ; case {"-D", "--dc-points"} opt.dc = round(str2num(args{i++})) ; case {"-k" "--kspace"} opt.kspace = true ; case {"-r"} opt.rr = str2num(args{i++}) ; case {"-v" "--verbose"} opt.verbose = true ; case {"-q" "--silent"} opt.verbose = false ; otherwise opt.path = option ; break ; endswitch endwhile --judd -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091010/bf40f7b3/attachment.html From highegg at gmail.com Sat Oct 10 14:54:23 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Sat, 10 Oct 2009 21:54:23 +0200 Subject: getopt In-Reply-To: <1255228112.11629.8.camel@tiger.bioinf.cs.uni-potsdam.de> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.45693.291876.944624@segfault.lan> <1255228112.11629.8.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: <69d8d540910101254g517cfdcs4c9bea4b0e04606f@mail.gmail.com> On Sun, Oct 11, 2009 at 4:28 AM, Juergen Rose wrote: > Am Samstag, den 10.10.2009, 12:12 -0400 schrieb John W. Eaton: >> On 10-Oct-2009, Ben Abbott wrote: >> >> | > If I try to write a function my_getopt, the testing of the options is >> | > probably not so hard. But how I can reset argv, that it after the call >> | > the call of my_getopt contains only the non option arguments, I have >> | > no >> | > idea. >> | > Juergen >> | >> | I have no good idea how to handle that problem. >> >> You would need to do something like >> >> ? [opt_struct, remaining_args] = getopt (opt_string, varargin); >> >> then proceed with processing the returned options structure and the >> remaining arguments. >> >> jwe > > Hi John, > thank you for the answer. I did not expect that something like getopt is > not yet implemented in octave. All other languages I use (C, bash, perl, > R) have such a possibility. For me as a octave newcomer it is not very > easy to do it. > > Juergen > Octave is most often used interactively, so this requirement does not come up often. But I suppose it shouldn't be hard to implement by wrapping the GNU getopt function. It would just take someone's time. Maybe yours? -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From tmacchant at yahoo.co.jp Sat Oct 10 15:16:54 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Sun, 11 Oct 2009 05:16:54 +0900 (JST) Subject: Fwd: Re: Zooming in plots using mouse... Message-ID: <20091010201654.45402.qmail@web3806.mail.bbt.yahoo.co.jp> Sorry I have forgotten send this reply to help at octave.org --- Tatsuro MATSUOKA wrote: > > Hello > > Currently octave uses pipe to communicate with gnuplot. This makes zooming in plots using mouse. > However, this side effect can be avoided when you use gnuplot 4.3(cvs). > > Please build gnuplot 4.3 by yourself. Building gnuplot from the source in cvs repository is > easy if > autotools, make, gcc, and external dependency libraries are prepared in your machine. > > cd (your working directly) > export CVSROOT=:pserver:anonymous at gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot > cvs login > cvs -z3 checkout gnuplot > cdgnuplot > ./prepare > ./configure > make clean > make > make check > make install-strip > > > If you have further question for building, please ask at the gnuplot ML but not here > > Regards > > Tatsuro > --- Kedar Patankar wrote: > > > Hi, > > > > I used octave a few years ago and was able to zoom in/out on plotted data > > via gnuplot using mouse right click gesture. I recently needed to analyze > > and plot data, and to my surprise I could not zoom into the plots anymore. > > > > I tried using octave on my up-to-date cygwin setup and also on > > redhat-enterprise-linux 5.2 and my ubuntu 8.10 laptop, but it didn't work on > > any of these. The versions of octave/gnuplot are as follows: > > > > cygwin: octave-3.0.2, gnuplot 4.2.4 > > RHEL 5.2: octave-3.0.x gnuplot 4.2.4 > > ubuntu 8.10: octave-3.0.1 gnuplot 4.2 patchlevel-3. > > > > Any help greatly appreciated. > > > > > > Regards/Kedar. > > > _______________________________________________ > > Help-octave mailing list > > Help-octave at octave.org > > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > > > > -------------------------------------- > GyaO! - Anime, Dramas, Movies, and Music videos [FREE] > http://pr.mail.yahoo.co.jp/gyao/ > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From yuri.belenky at gmail.com Sat Oct 10 15:43:04 2009 From: yuri.belenky at gmail.com (Yuri Belenky) Date: Sat, 10 Oct 2009 22:43:04 +0200 Subject: Time delayed transfer function Message-ID: How to add delay to transfer function in Octave? I need simulate system with different delays (or different sampling rates) in feedback path with constant sampling rate in forward path. -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091010/0a663ad2/attachment.html From dastew at sympatico.ca Sat Oct 10 16:08:20 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Sat, 10 Oct 2009 21:08:20 +0000 Subject: Time delayed transfer function In-Reply-To: References: Message-ID: Do you gave all the transfer functions of the loop? Z^-1 is a delay of one sample time, so ad this to the feed back part of your system. If you are a beginner and want some help off-line then send me more info. If what I just said is not the answer then send more info of what you are doing. Doug Date: Sat, 10 Oct 2009 22:43:04 +0200 Subject: Time delayed transfer function From: yuri.belenky at gmail.com To: help-octave at octave.org How to add delay to transfer function in Octave? I need simulate system with different delays (or different sampling rates) in feedback path with constant sampling rate in forward path. -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091010/131b130c/attachment-0001.html From rose at rz.uni-potsdam.de Sun Oct 11 02:22:34 2009 From: rose at rz.uni-potsdam.de (Juergen Rose) Date: Sun, 11 Oct 2009 09:22:34 +0200 Subject: getopt In-Reply-To: <19152.51529.84588.692533@segfault.lan> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.45693.291876.944624@segfault.lan> <1255228112.11629.8.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.51529.84588.692533@segfault.lan> Message-ID: <1255245754.31612.17.camel@tiger.bioinf.cs.uni-potsdam.de> Am Samstag, den 10.10.2009, 13:50 -0400 schrieb John W. Eaton: > On 11-Oct-2009, Juergen Rose wrote: > > | thank you for the answer. I did not expect that something like getopt is > | not yet implemented in octave. All other languages I use (C, bash, perl, > | R) have such a possibility. For me as a octave newcomer it is not very > | easy to do it. > > Procssing getopt-style options is not a common idiom in Octave. > > It's relatively inconvenient to do > > result = foo ("-x", x_var, "-y" "-z"); > > and if you use the command-style syntax: > > foo -x x_var -y -z > > instead, you can't assign the result fo the function to a variable and > all the arguments are passed to the function as character strings, > which is not the usuall thing to do for a numerically-oriented > language like Octave. > > So I would ask why you want to do this. If you tell us what you are > trying to do, someone might be able to suggest a convenient way to do > it. > > jwe I want to write a octave script (superimpose.m) which should superimpose to sets of vectors, these vectors should be contained in two files. My script starts now: #! /usr/bin/octave -qf arg_list = argv(); fileA = arg_list{1}; fileB = arg_list{2}; dataA=load("-ascii",fileA); dataB=load("-ascii",fileB); Until now I load only csv files. Now I want to extend the script that it can't read directly PDB (Brookhaven Protein) files. I.e., I would like to call my script $ superimpose.m file1.csv file2.csv to superimpose to csv files, and $ superimpose.m -p file1.pdb file2.pdb to superimpose to pdb files and perhaps $ superimpose -h to print a help message. inside of the script I want to parse argslist or argv() with a getopt function similar to those used in bash, perl or C. Regards Juergen. From storrsjm at email.uc.edu Sat Oct 10 17:34:56 2009 From: storrsjm at email.uc.edu (Judd Storrs) Date: Sat, 10 Oct 2009 18:34:56 -0400 Subject: getopt In-Reply-To: <1255245754.31612.17.camel@tiger.bioinf.cs.uni-potsdam.de> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.45693.291876.944624@segfault.lan> <1255228112.11629.8.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.51529.84588.692533@segfault.lan> <1255245754.31612.17.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: Suppose you have: #!/usr/bin/octave -qf ## Command line defaults opt.help = false ; opt.pdb = false ; opt.fileA = "" ; opt.fileB = "" ; ## Process command line options args = argv() ; i = 1 ; while i <= length(args) option = args{i} ; switch option case {"-h" "--help"} opt.help = true ; case {"-p" "--pdb"} opt.pdb = true ; otherwise break ; endswitch i++ ; endwhile if opt.help opt disp("Usage") ; exit(1) ; endif opt.fileA = args{i++} ; opt.fileB = args{i++} ; opt On Sun, Oct 11, 2009 at 3:22 AM, Juergen Rose wrote: > $ superimpose.m file1.csv file2.csv > $ ./superimpose.m file1.csv file2.csv opt = { help = 0 pdb = 0 fileA = file1.csv fileB = file2.csv } $ superimpose.m -p file1.pdb file2.pdb > $ ./superimpose.m -p file1.pdb file2.pdb opt = { help = 0 pdb = 1 fileA = file1.pdb fileB = file2.pdb } $ superimpose -h to print a help message. > $ ./superimpose.m -h opt = { help = 1 pdb = 0 fileA = fileB = } Usage -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091010/7e07cb26/attachment.html From rose at rz.uni-potsdam.de Sun Oct 11 04:00:38 2009 From: rose at rz.uni-potsdam.de (Juergen Rose) Date: Sun, 11 Oct 2009 11:00:38 +0200 Subject: getopt In-Reply-To: <69d8d540910101254g517cfdcs4c9bea4b0e04606f@mail.gmail.com> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.45693.291876.944624@segfault.lan> <1255228112.11629.8.camel@tiger.bioinf.cs.uni-potsdam.de> <69d8d540910101254g517cfdcs4c9bea4b0e04606f@mail.gmail.com> Message-ID: <1255251638.31612.113.camel@tiger.bioinf.cs.uni-potsdam.de> Am Samstag, den 10.10.2009, 21:54 +0200 schrieb Jaroslav Hajek: > On Sun, Oct 11, 2009 at 4:28 AM, Juergen Rose wrote: > > Am Samstag, den 10.10.2009, 12:12 -0400 schrieb John W. Eaton: > >> On 10-Oct-2009, Ben Abbott wrote: > >> > >> | > If I try to write a function my_getopt, the testing of the options is > >> | > probably not so hard. But how I can reset argv, that it after the call > >> | > the call of my_getopt contains only the non option arguments, I have > >> | > no > >> | > idea. > >> | > Juergen > >> | > >> | I have no good idea how to handle that problem. > >> > >> You would need to do something like > >> > >> [opt_struct, remaining_args] = getopt (opt_string, varargin); > >> > >> then proceed with processing the returned options structure and the > >> remaining arguments. > >> > >> jwe > > > > Hi John, > > thank you for the answer. I did not expect that something like getopt is > > not yet implemented in octave. All other languages I use (C, bash, perl, > > R) have such a possibility. For me as a octave newcomer it is not very > > easy to do it. > > > > Juergen > > > > Octave is most often used interactively, so this requirement does not > come up often. But I suppose it shouldn't be hard to implement by > wrapping the GNU getopt function. It would just take someone's time. > Maybe yours? Ahoi Jaroslav, is there any guide, how to write extensions to octave? I suppose, I have to write it in C and not octave. Juergen From rose at rz.uni-potsdam.de Sun Oct 11 04:07:38 2009 From: rose at rz.uni-potsdam.de (Juergen Rose) Date: Sun, 11 Oct 2009 11:07:38 +0200 Subject: getopt In-Reply-To: References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.45693.291876.944624@segfault.lan> <1255228112.11629.8.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.51529.84588.692533@segfault.lan> <1255245754.31612.17.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: <1255252058.31612.118.camel@tiger.bioinf.cs.uni-potsdam.de> Hi Judd, thank you for your hints, I am to tired now (it after midnight in europe) I will test it tomorrow. Juergen Am Samstag, den 10.10.2009, 18:34 -0400 schrieb Judd Storrs: > Suppose you have: > > #!/usr/bin/octave -qf > > ## Command line defaults > opt.help = false ; > opt.pdb = false ; > opt.fileA = "" ; > opt.fileB = "" ; > > ## Process command line options > args = argv() ; > i = 1 ; > while i <= length(args) > option = args{i} ; > switch option > case {"-h" "--help"} > opt.help = true ; > case {"-p" "--pdb"} > opt.pdb = true ; > otherwise > break ; > endswitch > i++ ; > endwhile > > if opt.help > opt > disp("Usage") ; > exit(1) ; > endif > > opt.fileA = args{i++} ; > opt.fileB = args{i++} ; > opt > > > > On Sun, Oct 11, 2009 at 3:22 AM, Juergen Rose > wrote: > $ superimpose.m file1.csv file2.csv > > $ ./superimpose.m file1.csv file2.csv > opt = > { > help = 0 > pdb = 0 > fileA = file1.csv > fileB = file2.csv > } > > > > $ superimpose.m -p file1.pdb file2.pdb > > $ ./superimpose.m -p file1.pdb file2.pdb > opt = > { > help = 0 > pdb = 1 > fileA = file1.pdb > fileB = file2.pdb > } > > > $ superimpose -h to print a help message. > > $ ./superimpose.m -h > opt = > { > help = 1 > pdb = 0 > fileA = > fileB = > } > > Usage > > From Udippel at uniten.edu.my Sat Oct 10 19:20:00 2009 From: Udippel at uniten.edu.my (Uwe Heinz Rudi Dippel) Date: Sun, 11 Oct 2009 08:20:00 +0800 Subject: bode not working: sys undefined In-Reply-To: <19152.45917.675539.867214@segfault.lan> References: <4AD0A5D7.2030705@uniten.edu.my>, <19152.45917.675539.867214@segfault.lan> Message-ID: <2091C5022A6D4545BACADD169E341A5279F173EA50@STAFFBOX1> From: John W. Eaton [jwe at octave.org] What version of Octave are you using? 3.2.2. The control system tools were removed to a separate package in Octave 3.2. Probably you need to install that. You can find the control package at octave.sf.net. Some binary distributions of Octave also contain pre-built packages (for example, if you are using Debian, you can install the octave-control package with apt-get). Debian (Ubuntu) has 3.0; and as I learned from this list earlier, it does not plot correctly. This is why I had to compile 3.2.2. Looks pretty much like a chicken-and-egg situation to me. Okay, I'll try to get the control package running. Uwe This e-mail and the attachments are intended solely for the person to whom it has been addressed. It contains privileged and/or confidential information and is privileged or otherwise protected from disclosure. If you are not the person for whom this e-mail was intended, or the e-mail has reached you by mistake, please delete it immediately and inform us of the error. Our e-mail address is administrator at uniten.edu.my. All opinions, conclusions and other information in this message that do not relate to the official business of Universiti Tenaga Nasional (UNITEN) shall be understood as neither given nor endorsed by UNITEN. UNITEN shall not be responsible for any activity that may be considered as illegal and/or improper use of e-mail and UNITEN further is claims and shall not accept liability for any content of this e-mail, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. WARNING Internet communications cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses. As such, we do not accept liability for any errors or omissions in the content of this message which may arise as a result of internet transmission. UNITEN does not authorize any of its employees to make any defamatory or seditious statements or commit any offence which is contrary to the laws of Malaysia. Any such communications and/or actions by such employees are outside the scope of employment of the said individuals and UNITEN shall not be liable for such communications and/or actions. From Udippel at uniten.edu.my Sat Oct 10 20:14:29 2009 From: Udippel at uniten.edu.my (Uwe Heinz Rudi Dippel) Date: Sun, 11 Oct 2009 09:14:29 +0800 Subject: bode not working: sys undefined In-Reply-To: <19152.45917.675539.867214@segfault.lan> References: <4AD0A5D7.2030705@uniten.edu.my>, <19152.45917.675539.867214@segfault.lan> Message-ID: <2091C5022A6D4545BACADD169E341A5279F173EA51@STAFFBOX1> From: John W. Eaton [jwe at octave.org] The control system tools were removed to a separate package in Octave 3.2. Probably you need to install that. You can find the control package at octave.sf.net. Thanks, John! After installing the control package, the example you gave is working. There are a number of warnings, though: octave:9> pkg install control-1.0.11.tar.gz warning: meaning may have changed due to change in precedence for && and || operators warning: meaning may have changed due to change in precedence for && and || operators warning: gen_doc_cache: unusable help text in 'packedform'. Ignoring function. And more at the example: octave:15> bode(sys) warning: create_set is obsolete and will be removed from a future version of Octave, please use unique instead I am just beginning with octave (and haven't used proprietary software for the last 10 years), and am still hopeful. We used Eidors for our research (with Matlab), and that colleague (using Matlab) left; and I was hoping to promote octave instead. Since the whole matter started for me by Eidors being broken at octave > 2.X, I now begin to wonder how much we can expect octave to be a fast moving target? Another thing: using the basic example you gave, the plot totally overlaps the title of the lower diagram with the x-label of the upper plot. I attach a screenshot. Should I file this as a bug? Thanks, Uwe This e-mail and the attachments are intended solely for the person to whom it has been addressed. It contains privileged and/or confidential information and is privileged or otherwise protected from disclosure. If you are not the person for whom this e-mail was intended, or the e-mail has reached you by mistake, please delete it immediately and inform us of the error. Our e-mail address is administrator at uniten.edu.my. All opinions, conclusions and other information in this message that do not relate to the official business of Universiti Tenaga Nasional (UNITEN) shall be understood as neither given nor endorsed by UNITEN. UNITEN shall not be responsible for any activity that may be considered as illegal and/or improper use of e-mail and UNITEN further is claims and shall not accept liability for any content of this e-mail, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. WARNING Internet communications cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses. As such, we do not accept liability for any errors or omissions in the content of this message which may arise as a result of internet transmission. UNITEN does not authorize any of its employees to make any defamatory or seditious statements or commit any offence which is contrary to the laws of Malaysia. Any such communications and/or actions by such employees are outside the scope of employment of the said individuals and UNITEN shall not be liable for such communications and/or actions. -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-basic_bode_plot_overlap.png Type: image/png Size: 7301 bytes Desc: Screenshot-basic_bode_plot_overlap.png Url : https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091011/c7aef97b/attachment-0001.png From Udippel at uniten.edu.my Sat Oct 10 20:34:10 2009 From: Udippel at uniten.edu.my (Uwe Heinz Rudi Dippel) Date: Sun, 11 Oct 2009 09:34:10 +0800 Subject: bode not working: sys undefined In-Reply-To: References: <4AD006CE.90600@uniten.edu.my>, Message-ID: <2091C5022A6D4545BACADD169E341A5279F173EA52@STAFFBOX1> From: dastew at sympatico.ca [dastew at sympatico.ca] Here is an example: n=6 d=[1 2 6] sys=tf(n,d); sysout(sys) bode(sys) This works now, in principle. Back to the earlier question, the example provided here: > https://prof.hti.bfh.ch/sha1/Octave/index/f/bode.html bode(sys,[],"y_3", {"u_1","u_4"}); Is this an explanation or valid syntax? At first sight, it does look like valid syntax. But when I run it: octave:17> bode(sys,[],"y_3", {"u_1","u_4"}); error: sysidx (sigtype = in): Did not find u_4 I have to do more reading, I guess. What puzzles me, is that it complains about u_4. Does it evaluate from right to left? Would "u_4" not be simply a string? Uwe This e-mail and the attachments are intended solely for the person to whom it has been addressed. It contains privileged and/or confidential information and is privileged or otherwise protected from disclosure. If you are not the person for whom this e-mail was intended, or the e-mail has reached you by mistake, please delete it immediately and inform us of the error. Our e-mail address is administrator at uniten.edu.my. All opinions, conclusions and other information in this message that do not relate to the official business of Universiti Tenaga Nasional (UNITEN) shall be understood as neither given nor endorsed by UNITEN. UNITEN shall not be responsible for any activity that may be considered as illegal and/or improper use of e-mail and UNITEN further is claims and shall not accept liability for any content of this e-mail, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. WARNING Internet communications cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses. As such, we do not accept liability for any errors or omissions in the content of this message which may arise as a result of internet transmission. UNITEN does not authorize any of its employees to make any defamatory or seditious statements or commit any offence which is contrary to the laws of Malaysia. Any such communications and/or actions by such employees are outside the scope of employment of the said individuals and UNITEN shall not be liable for such communications and/or actions. From dastew at sympatico.ca Sat Oct 10 21:19:25 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Sun, 11 Oct 2009 02:19:25 +0000 Subject: bode not working: sys undefined In-Reply-To: <2091C5022A6D4545BACADD169E341A5279F173EA52@STAFFBOX1> References: <4AD006CE.90600@uniten.edu.my>, Message-ID: Ya a little more reading :-) The control system tool box handles multiple input multiple output state space transfer functions. So if you have 2 inputs and 3 outputs you would have to tell it which input and which output that you want to analyse and get a bode plot from. At the time that you create the system you can give each input and each output a meaningful name and then use it. I do not see the overlap in the bode plot labels that you saw so maybe I have a newer gnuplot?? Doug > From: Udippel at uniten.edu.my > To: dastew at sympatico.ca; help-octave at octave.org > Date: Sun, 11 Oct 2009 09:34:10 +0800 > Subject: RE: bode not working: sys undefined > > From: dastew at sympatico.ca [dastew at sympatico.ca] > > Here is an example: > > n=6 > d=[1 2 6] > sys=tf(n,d); > sysout(sys) > bode(sys) > > This works now, in principle. > > Back to the earlier question, the example provided here: > > > https://prof.hti.bfh.ch/sha1/Octave/index/f/bode.html > > bode(sys,[],"y_3", {"u_1","u_4"}); > > Is this an explanation or valid syntax? At first sight, it does look like valid syntax. But when I run it: > octave:17> bode(sys,[],"y_3", {"u_1","u_4"}); > error: sysidx (sigtype = in): Did not find u_4 > I have to do more reading, I guess. What puzzles me, is that it complains about u_4. Does it evaluate from right to left? Would "u_4" not be simply a string? > > Uwe > > This e-mail and the attachments are intended solely for the person to whom it has been addressed. It contains privileged and/or confidential information and is privileged or otherwise protected from disclosure. If you are not the person for whom this e-mail was intended, or the e-mail has reached you by mistake, please delete it immediately and > inform us of the error. Our e-mail address is administrator at uniten.edu.my. > > All opinions, conclusions and other information in this message that do not relate to the official business of Universiti Tenaga Nasional (UNITEN) shall be understood as neither given nor endorsed by UNITEN. UNITEN shall not be responsible for any activity that may be considered as illegal and/or improper use of e-mail and UNITEN further is claims and shall not accept liability for any content of this e-mail, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. > > WARNING > Internet communications cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses. As such, we do not accept liability for any errors or omissions in the content of this message which may arise as a result of internet transmission. > > UNITEN does not authorize any of its employees to make any defamatory or seditious statements or commit any offence which is contrary to the laws of Malaysia. Any such communications and/or actions by such employees are outside the scope of employment of the said individuals and UNITEN shall not be liable for such communications and/or actions. > -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091011/9174c63e/attachment.html From carlo.defalco at gmail.com Sun Oct 11 03:16:50 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Sun, 11 Oct 2009 10:16:50 +0200 Subject: getopt In-Reply-To: <1255251638.31612.113.camel@tiger.bioinf.cs.uni-potsdam.de> References: <1255197335.4590.0.camel@tiger.bioinf.cs.uni-potsdam.de> <1255209385.30525.4.camel@tiger.bioinf.cs.uni-potsdam.de> <1255222654.22771.6.camel@tiger.bioinf.cs.uni-potsdam.de> <19152.45693.291876.944624@segfault.lan> <1255228112.11629.8.camel@tiger.bioinf.cs.uni-potsdam.de> <69d8d540910101254g517cfdcs4c9bea4b0e04606f@mail.gmail.com> <1255251638.31612.113.camel@tiger.bioinf.cs.uni-potsdam.de> Message-ID: <903F325D-34D1-44E6-81FE-86328B679A57@gmail.com> On 11 Oct 2009, at 11:00, Juergen Rose wrote: > Ahoi Jaroslav, > is there any guide, how to write extensions to octave? For info about how to write Octave extensions and distribute them as packages, have a look at the Octvae-forge website: http://octave.sourceforge.net > I suppose, I have > to write it in C and not octave. for info about linking C and octave there is a section in the Octave manual: http://www.gnu.org/software/octave/doc/interpreter/Oct_002dFiles.html#Oct_002dFiles this (old but still useful) tutorial: http://octave.sourceforge.net/coda/index.html and this (doxygen generated) description of the Octave C++ API: http://octave.sourceforge.net/doxygen/html/index.html > Juergen Enjoy! c. From SSharma84 at slb.com Sun Oct 11 03:26:49 2009 From: SSharma84 at slb.com (Sachin Kumar Sharma) Date: Sun, 11 Oct 2009 10:26:49 +0200 Subject: beginner in octave-few queries Message-ID: Hi, I am just starting using octave and currently using octave windows xp version. My problem is very basic, I am trying to run some simple demo program saved as scripts from octave prompt windows and they fail to run. My Ocatve Prompt looks like octave-3.2.2.exe:27:F:\Octave\3.2.2_gcc-4.3.0\bin > I have saved this program as a file' page42_sample' using notepad++ #! octave-interpreter-name -qf # a sample Octave program printf ("Hello, world!\n"); When I run the script I get following error either by typing 'page42_sample' OR octave 'page42_sample' > page42_sample error: `page42_sample' undefined near line 27 column 1 octave-3.2.2.exe:27:F:\Octave\3.2.2_gcc-4.3.0\bin > I am doing some terrible mistake here, appreciate any help in this regards. Thanks & Regards Sachin ************************************************************************ Sachin Kumar Sharma Lead Geomodeler- Mumbai High Full Field Review Project Senior Reservoir Geophysicist , Consulting Services (DCS) Schlumberger Asia Services Ltd. "The urge to quit is the last obstacle between you and your dreams." -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091011/3a9b0314/attachment.html From yuri.belenky at gmail.com Sun Oct 11 05:35:47 2009 From: yuri.belenky at gmail.com (Yuri Belenky) Date: Sun, 11 Oct 2009 12:35:47 +0200 Subject: Time delayed transfer function In-Reply-To: References: Message-ID: Hi Doug, Forward path transfer function (open loop) looks as follow: G(s)=210/(s+0.003899*s^2+0.0000023*s^3). In hardware realization it samples at 20kHz. The feed-back sensor is CCD with variable sample rate - from 300Hz to 2kHz. I assume that feedback path gain is 1 so transfer function of close loop will be: G(cl)=G(s)/(1+G(s)*exp^-Ts). Actually what I need is apply sinusoid signal by G(cl) and compare input and output at different values of "T" - the result will be tracking error of my system. The problem is if I trying different discretization for feed-forward and feed-back paths the "feedback" function return error. Thanks, Yuri. On Sat, Oct 10, 2009 at 11:08 PM, wrote: > Do you gave all the transfer functions of the loop? > > Z^-1 is a delay of one sample time, so ad this to the feed back part of > your system. > > If you are a beginner and want some help off-line then send me more info. > > If what I just said is not the answer then send more info of what you are > doing. > > Doug > > > ------------------------------ > Date: Sat, 10 Oct 2009 22:43:04 +0200 > Subject: Time delayed transfer function > From: yuri.belenky at gmail.com > To: help-octave at octave.org > > How to add delay to transfer function in Octave? I need simulate system > with different delays (or different sampling rates) in feedback path with > constant sampling rate in forward path. > -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091011/726273ec/attachment-0001.html From dastew at sympatico.ca Sun Oct 11 06:31:03 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Sun, 11 Oct 2009 11:31:03 +0000 Subject: beginner in octave-few queries In-Reply-To: References: Message-ID: did you save it as page42_sample or page42_sample.m all octave scripts and functions end with .m Doug From: SSharma84 at slb.com To: help at octave.org Date: Sun, 11 Oct 2009 10:26:49 +0200 Subject: beginner in octave-few queries Hi, I am just starting using octave and currently using octave windows xp version. My problem is very basic, I am trying to run some simple demo program saved as scripts from octave prompt windows and they fail to run. My Ocatve Prompt looks like octave-3.2.2.exe:27:F:\Octave\3.2.2_gcc-4.3.0\bin > I have saved this program as a file? page42_sample? using notepad++ #! octave-interpreter-name -qf # a sample Octave program printf ("Hello, world!\n"); When I run the script I get following error either by typing ?page42_sample? OR octave ?page42_sample? > page42_sample error: `page42_sample' undefined near line 27 column 1 octave-3.2.2.exe:27:F:\Octave\3.2.2_gcc-4.3.0\bin > I am doing some terrible mistake here, appreciate any help in this regards. Thanks & Regards Sachin ************************************************************************ Sachin Kumar Sharma Lead Geomodeler- Mumbai High Full Field Review Project Senior Reservoir Geophysicist , Consulting Services (DCS) Schlumberger Asia Services Ltd. "The urge to quit is the last obstacle between you and your dreams." -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091011/68cb4d03/attachment.html From dastew at sympatico.ca Sun Oct 11 06:44:41 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Sun, 11 Oct 2009 11:44:41 +0000 Subject: Time delayed transfer function In-Reply-To: References: Message-ID: As far as I know, in octave, you must have the same sample rate to work in 'Z" space. If you were to write up a simulator in C++ for your system, you will find that If your feedback is sampling faster than the main part, then you would just use every second or third sample (depending on the sample rates). If it was slower then you would use the same sample twice etc. If you are working at a graduate level and are developing some math to handle variable sample rate math , then let me know how it works. Doug Date: Sun, 11 Oct 2009 12:35:47 +0200 Subject: Re: Time delayed transfer function From: yuri.belenky at gmail.com To: dastew at sympatico.ca CC: help-octave at octave.org Hi Doug, Forward path transfer function (open loop) looks as follow: G(s)=210/(s+0.003899*s^2+0.0000023*s^3). In hardware realization it samples at 20kHz. The feed-back sensor is CCD with variable sample rate - from 300Hz to 2kHz. I assume that feedback path gain is 1 so transfer function of close loop will be: G(cl)=G(s)/(1+G(s)*exp^-Ts). Actually what I need is apply sinusoid signal by G(cl) and compare input and output at different values of "T" - the result will be tracking error of my system. The problem is if I trying different discretization for feed-forward and feed-back paths the "feedback" function return error. Thanks, Yuri. On Sat, Oct 10, 2009 at 11:08 PM, wrote: Do you gave all the transfer functions of the loop? Z^-1 is a delay of one sample time, so ad this to the feed back part of your system. If you are a beginner and want some help off-line then send me more info. If what I just said is not the answer then send more info of what you are doing. Doug Date: Sat, 10 Oct 2009 22:43:04 +0200 Subject: Time delayed transfer function From: yuri.belenky at gmail.com To: help-octave at octave.org How to add delay to transfer function in Octave? I need simulate system with different delays (or different sampling rates) in feedback path with constant sampling rate in forward path. -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091011/5e6bb52f/attachment.html From lindnerben at gmx.net Sun Oct 11 07:13:25 2009 From: lindnerben at gmx.net (Benjamin Lindner) Date: Sun, 11 Oct 2009 14:13:25 +0200 Subject: Plot window freezes In-Reply-To: <2940377.1255058776079.JavaMail.root@elwamui-rubis.atl.sa.earthlink.net> References: <2940377.1255058776079.JavaMail.root@elwamui-rubis.atl.sa.earthlink.net> Message-ID: <4AD1CBE5.7040407@gmx.net> Leonard Wayne wrote: > Hello. > > I am running Octave for the first time. > When I issue this command > > plot( 1:10 ) > > the correct plot is generated, but then > the plot window immediately freezes. The > cursor coordinates shown in the lower left > part of the plot window do not update, and > soon Windows reports the plot window is > not responding. Does anyone know what > could be wrong? > > I used the Windows installer on Octave Forge. > I am running Windows XP with Service Pack 3. > > Is gnuplot what Octave uses? I have gnuplot > installed separately under Cygwin where it > seems to work fine. > I cannot reproduce this error. As a wild guess, maybe you are picking up a different version of gnuplot than the one shipped with the installer. Can you post the result of calling "gnuplot_binary" ? benjamin From jwe at octave.org Sun Oct 11 09:28:36 2009 From: jwe at octave.org (John W. Eaton) Date: Sun, 11 Oct 2009 10:28:36 -0400 Subject: LSODE-opts.h In-Reply-To: <25458273.post@talk.nabble.com> References: <25458273.post@talk.nabble.com> Message-ID: <19153.60308.224946.419910@hugo.lan> On 15-Sep-2009, donwalker wrote: | // Generated automatically from LSODE-opts.in. | ... | #include | ... | | I am using a tutorial I found for using octave functions in C++. One of the | examples uses LSODE-opts.h. The line above generates an error. Shouldn't it | be | | #include "ODE.h" What is the error? I think should be OK if you have the correct -I options for your compiler. jwe From jwe at octave.org Sun Oct 11 09:38:41 2009 From: jwe at octave.org (John W. Eaton) Date: Sun, 11 Oct 2009 10:38:41 -0400 Subject: Octave 3.2.2 for Ubuntu9.04? In-Reply-To: <9543b3a40909192246h33f49d87v83ba3bd324ca912a@mail.gmail.com> References: <4AB426C9.4030601@uniten.edu.my> <9543b3a40909182208t777f251bn30050dc2a44d92a7@mail.gmail.com> <4AB4EBDD.8010206@uniten.edu.my> <9543b3a40909192044m6c0b7a8etaffc2b8a573ce4eb@mail.gmail.com> <4AB5AEE8.4050505@uniten.edu.my> <9543b3a40909192246h33f49d87v83ba3bd324ca912a@mail.gmail.com> Message-ID: <19153.60913.638838.783956@hugo.lan> On 20-Sep-2009, Jordi Guti?rrez Hermos wrote: | 2009/9/19 Uwe Dippel : | > Why does Octave not offer recent packages for widely used distributions? | | Because it is largely a mistake when a software project makes its own | packages for distributions instead of helping or working closely with | the distribution to directly incorporate a package for, well, | distribution. FWIW, I completely agree and consider building binary packages outside the scope of the Octave project. I mean, we really only have a small group of active volunteer contributors, and there is only so much we can do. I would encourage anyone who thinks that it is important to have quality binary packages to help with building them. | and must instead rely on specific packagers like Rafael Laboissiere, | Thomas Weber, and infrequently myself. After years doing great work building Octave packages for Debian, Rafael is no longer active. So it would be really great if some other users stepped in and helped. jwe From jwe at octave.org Sun Oct 11 09:41:58 2009 From: jwe at octave.org (John W. Eaton) Date: Sun, 11 Oct 2009 10:41:58 -0400 Subject: disabling opengl in octave 3.2.2 In-Reply-To: References: Message-ID: <19153.61110.462620.389770@hugo.lan> On 18-Sep-2009, Jonathan Sievers wrote: | Hey folks - I'm trying to compile octave 3.2.2 from source using icc to | run on a cluster. OpenGL is causing problems - there are | headers/libraries there which show up during configure but break during | compilation. Which is not a problem, I don't need graphics, but I can't | compile. I've look through configure several times and can't find a flag | to disable opengl - does such a thing exist, or is there some other simple | way to turn it off? Everything works fine under 3.0.5. This should probably be reported as a bug. Having a patch to fix it would also be helpful... :-) jwe From jwe at octave.org Sun Oct 11 09:46:45 2009 From: jwe at octave.org (John W. Eaton) Date: Sun, 11 Oct 2009 10:46:45 -0400 Subject: plotting NaN values as blank in pcolor plots In-Reply-To: <4AA0FCA9.4040102@ulrik.uio.no> References: <4AA0FCA9.4040102@ulrik.uio.no> Message-ID: <19153.61397.496682.326362@hugo.lan> On 4-Sep-2009, ?smund Skj?veland wrote: | When I plot an array using pcolor, the NaN fields are plotted as the | lowest color in the colormap. How do I make them plot blank, like in matlab? Maybe you should report this problem as a bug, with a complete example and a description of precisely what you expect to see? jwe From jwe at octave.org Sun Oct 11 09:48:53 2009 From: jwe at octave.org (John W. Eaton) Date: Sun, 11 Oct 2009 10:48:53 -0400 Subject: Trouble building 3.2.2 (pthread) In-Reply-To: <8CBFFD18EB0F5CD-25C0-6700@webmail-m036.sysops.aol.com> References: <8CBFFD18EB0F5CD-25C0-6700@webmail-m036.sysops.aol.com> Message-ID: <19153.61525.177190.948015@hugo.lan> On 9-Sep-2009, George Bohannon wrote: | Success!? Persistence pays off again. | | Gotta use lib64, not lib. Here are the environment variables that allowed the build to work: | | export F77=gfortran | export LIBS=-lpthread | export LDFLAGS=-L/usr/local/lib64 | export LD_LIBRARY_PATH=/usr/local/lib64 | | It all seems so simple now. Are you compiling with --enable-64? If so, are you sure that is really what you want? jwe From tmacchant at yahoo.co.jp Sun Oct 11 17:50:31 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Mon, 12 Oct 2009 07:50:31 +0900 (JST) Subject: Fwd: Re: beginner in octave-few queries Message-ID: <20091011225031.12507.qmail@web3807.mail.bbt.yahoo.co.jp> Sorry, I have forget to reply to help at octave.org --- Tatsuro MATSUOKA wrote: > --- Sachin Kumar Sharmawrote: > > > I have saved this program as a file' page42_sample' using notepad++ > > > > #! octave-interpreter-name -qf > > # a sample Octave program > > printf ("Hello, world!\n"); > > You should save it as ' page42_sample.m'. > I do not use notepad++ but I think that it does not auto complete '.m'. > > Regards > > Tatsuro > > -------------------------------------- > GyaO! - Anime, Dramas, Movies, and Music videos [FREE] > http://pr.mail.yahoo.co.jp/gyao/ > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From leosgb at yahoo.com.br Sun Oct 11 21:52:29 2009 From: leosgb at yahoo.com.br (leosgb at yahoo.com.br) Date: Mon, 12 Oct 2009 02:52:29 +0000 Subject: beginner in octave-few queries In-Reply-To: References: Message-ID: <1260254032-1255315819-cardhu_decombobulator_blackberry.rim.net-1852205804-@bda166.bisx.prod.on.blackberry> maybe you are not in the correct path? You can switch path with "cd" just like in a dos prompt. -----Original Message----- From: Date: Sun, 11 Oct 2009 11:31:03 To: ; Subject: RE: beginner in octave-few queries _______________________________________________ Help-octave mailing list Help-octave at octave.org https://www-old.cae.wisc.edu/mailman/listinfo/help-octave From SSharma84 at slb.com Sun Oct 11 23:45:46 2009 From: SSharma84 at slb.com (Sachin Kumar Sharma) Date: Mon, 12 Oct 2009 06:45:46 +0200 Subject: beginner in octave-few queries In-Reply-To: <1260254032-1255315819-cardhu_decombobulator_blackberry.rim.net-1852205804-@bda166.bisx.prod.on.blackberry> References: <1260254032-1255315819-cardhu_decombobulator_blackberry.rim.net-1852205804-@bda166.bisx.prod.on.blackberry> Message-ID: BB, I did try renaming the file as 'page42_sample.m' as well as checking the path as well. The error stays octave-3.2.2.exe:5:F:\Octave\3.2.2_gcc-4.3.0\bin > octave page42_sample.m error: `octave' undefined near line 5 column 1 Do we need to set some environmental variable for Octave installation in Windows. Thanks & Regards Sachin ************************************************************************ Sachin Kumar Sharma Lead Geomodeler- Mumbai High Full Field Review Project Senior Reservoir Geophysicist , Consulting Services (DCS) Schlumberger Asia Services Ltd. ????????????????????????????? "The urge to quit is the last obstacle between you and your dreams." -----Original Message----- From: leosgb at yahoo.com.br [mailto:leosgb at yahoo.com.br] Sent: Monday, October 12, 2009 8:22 AM To: help at octave.org Subject: Re: beginner in octave-few queries maybe you are not in the correct path? You can switch path with "cd" just like in a dos prompt. -----Original Message----- From: Date: Sun, 11 Oct 2009 11:31:03 To: ; Subject: RE: beginner in octave-few queries _______________________________________________ Help-octave mailing list Help-octave at octave.org https://www-old.cae.wisc.edu/mailman/listinfo/help-octave _______________________________________________ Help-octave mailing list Help-octave at octave.org https://www-old.cae.wisc.edu/mailman/listinfo/help-octave From leosgb at yahoo.com.br Mon Oct 12 00:46:55 2009 From: leosgb at yahoo.com.br (leosgb at yahoo.com.br) Date: Mon, 12 Oct 2009 05:46:55 +0000 Subject: beginner in octave-few queries In-Reply-To: References: <1260254032-1255315819-cardhu_decombobulator_blackberry.rim.net-1852205804-@bda166.bisx.prod.on.blackberry> Message-ID: <1436583277-1255326295-cardhu_decombobulator_blackberry.rim.net-329804545-@bda166.bisx.prod.on.blackberry> Can you post the first 5 lines of your script? It is finding something wrong in the very first command used on line 5. Please skip any lines that are comments since these are not counted. Regards. -----Original Message----- From: Sachin Kumar Sharma Date: Mon, 12 Oct 2009 06:45:46 To: help at octave.org Subject: RE: beginner in octave-few queries BB, I did try renaming the file as 'page42_sample.m' as well as checking the path as well. The error stays octave-3.2.2.exe:5:F:\Octave\3.2.2_gcc-4.3.0\bin > octave page42_sample.m error: `octave' undefined near line 5 column 1 Do we need to set some environmental variable for Octave installation in Windows. Thanks & Regards Sachin ************************************************************************ Sachin Kumar Sharma Lead Geomodeler- Mumbai High Full Field Review Project Senior Reservoir Geophysicist , Consulting Services (DCS) Schlumberger Asia Services Ltd. ????????????????????????????? "The urge to quit is the last obstacle between you and your dreams." -----Original Message----- From: leosgb at yahoo.com.br [mailto:leosgb at yahoo.com.br] Sent: Monday, October 12, 2009 8:22 AM To: help at octave.org Subject: Re: beginner in octave-few queries maybe you are not in the correct path? You can switch path with "cd" just like in a dos prompt. -----Original Message----- From: Date: Sun, 11 Oct 2009 11:31:03 To: ; Subject: RE: beginner in octave-few queries _______________________________________________ Help-octave mailing list Help-octave at octave.org https://www-old.cae.wisc.edu/mailman/listinfo/help-octave _______________________________________________ Help-octave mailing list Help-octave at octave.org https://www-old.cae.wisc.edu/mailman/listinfo/help-octave _______________________________________________ Help-octave mailing list Help-octave at octave.org https://www-old.cae.wisc.edu/mailman/listinfo/help-octave From tmacchant at yahoo.co.jp Mon Oct 12 01:00:19 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Mon, 12 Oct 2009 15:00:19 +0900 (JST) Subject: beginner in octave-few queries In-Reply-To: Message-ID: <20091012060024.65231.qmail@web3801.mail.bbt.yahoo.co.jp> Hello --- Sachin Kumar Sharma wrote: > BB, > > I did try renaming the file as 'page42_sample.m' as well as checking the path as well. > > The error stays > > octave-3.2.2.exe:5:F:\Octave\3.2.2_gcc-4.3.0\bin > > octave page42_sample.m > error: `octave' undefined near line 5 column 1 Hmmm. 'octave page42_sample.m' is not correct inside octave. It is used from outside of octave (e.g. cmd prompt). Just type 'page42_sample' in the octave. Please type from octave prompt system('dir') What is the (current) directory name? Can you find page42_sample.m in the output? Regards Tatsuro -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From SSharma84 at slb.com Mon Oct 12 01:33:23 2009 From: SSharma84 at slb.com (Sachin Kumar Sharma) Date: Mon, 12 Oct 2009 08:33:23 +0200 Subject: beginner in octave-few queries In-Reply-To: <20091012060024.65231.qmail@web3801.mail.bbt.yahoo.co.jp> References: <20091012060024.65231.qmail@web3801.mail.bbt.yahoo.co.jp> Message-ID: Tatsuro, Leo, I reinstalled Octave at default location in C drive. The script is attached with the mail. And the dump of system('dir') is as follows. octave-3.2.2.exe:1:C:\Octave\3.2.2_gcc-4.3.0\bin > system('dir') Volume in drive C is System Volume Serial Number is 1087-25CB Directory of C:\Octave\3.2.2_gcc-4.3.0\bin 10/12/2009 10:43 AM . 10/12/2009 10:43 AM .. 08/21/2009 12:35 AM 33,490 amd.dll 08/21/2009 12:35 AM 420,808 arpack.dll 08/17/2009 03:06 PM 4,003,328 atlas.dll 08/17/2009 03:06 PM 230,912 blas.dll 08/21/2009 12:35 AM 64,092 bzip2.dll 08/21/2009 12:35 AM 440,785 cairo-2.dll 08/21/2009 12:35 AM 36,592 camd.dll 08/17/2009 03:06 PM 154,624 cblas.dll I really appreciate your help, I just need to get it running so that I can get started with some basic scripting work. Thanks & Regards Sachin ************************************************************************ Sachin Kumar Sharma Lead Geomodeler- Mumbai High Full Field Review Project Senior Reservoir Geophysicist , Consulting Services (DCS) Schlumberger Asia Services Ltd. ????????????????????????????? "The urge to quit is the last obstacle between you and your dreams." -----Original Message----- From: Tatsuro MATSUOKA [mailto:tmacchant at yahoo.co.jp] Sent: Monday, October 12, 2009 11:30 AM To: Sachin Kumar Sharma; help at octave.org Subject: RE: beginner in octave-few queries Hello --- Sachin Kumar Sharma wrote: > BB, > > I did try renaming the file as 'page42_sample.m' as well as checking the path as well. > > The error stays > > octave-3.2.2.exe:5:F:\Octave\3.2.2_gcc-4.3.0\bin > > octave page42_sample.m > error: `octave' undefined near line 5 column 1 Hmmm. 'octave page42_sample.m' is not correct inside octave. It is used from outside of octave (e.g. cmd prompt). Just type 'page42_sample' in the octave. Please type from octave prompt system('dir') What is the (current) directory name? Can you find page42_sample.m in the output? Regards Tatsuro -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ -------------- next part -------------- A non-text attachment was scrubbed... Name: new1.m Type: application/octet-stream Size: 72 bytes Desc: new1.m Url : https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091012/0f2c4766/attachment.obj From tmacchant at yahoo.co.jp Mon Oct 12 01:59:14 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Mon, 12 Oct 2009 15:59:14 +0900 (JST) Subject: beginner in octave-few queries In-Reply-To: Message-ID: <20091012065914.79346.qmail@web3803.mail.bbt.yahoo.co.jp> Hello I have saved your new1.m in C:\usr\tatsu\test\testOctave '>' indicates octave prompt. ************ >cd C:\usr\tatsu\test\testOctave >system('dir new1.m') Volume in drive C has no label. Volume Serial Number is 28D6-BD9D Directory of C:\usr\tatsu\test\testOctave 2009/10/12 15:46 72 new1.m 1 File(s) 72 bytes 0 Dir(s) 33,996,525,568 bytes free ans = 0 >new1 Hello, world! ********* Worked without problem. You need to locate m files to the current directory or that is specified by addpath (see help addpath). Regards Tatsuro --- Sachin Kumar Sharma wrote: > Tatsuro, Leo, > > I reinstalled Octave at default location in C drive. > > The script is attached with the mail. > > And the dump of system('dir') is as follows. > > > > octave-3.2.2.exe:1:C:\Octave\3.2.2_gcc-4.3.0\bin > > system('dir') > Volume in drive C is System > Volume Serial Number is 1087-25CB > > Directory of C:\Octave\3.2.2_gcc-4.3.0\bin > > 10/12/2009 10:43 AM . > 10/12/2009 10:43 AM .. > 08/21/2009 12:35 AM 33,490 amd.dll > 08/21/2009 12:35 AM 420,808 arpack.dll > 08/17/2009 03:06 PM 4,003,328 atlas.dll > 08/17/2009 03:06 PM 230,912 blas.dll > 08/21/2009 12:35 AM 64,092 bzip2.dll > 08/21/2009 12:35 AM 440,785 cairo-2.dll > 08/21/2009 12:35 AM 36,592 camd.dll > 08/17/2009 03:06 PM 154,624 cblas.dll > > > > I really appreciate your help, I just need to get it running so that I can get started with some > basic scripting work. > > Thanks & Regards > > Sachin > > ************************************************************************ > Sachin Kumar Sharma > Lead Geomodeler- Mumbai High Full Field Review Project > Senior Reservoir Geophysicist , Consulting Services (DCS) > Schlumberger Asia Services Ltd. > > > ����������������������������� "The urge to quit is the last obstacle between you and your > dreams." > > > -----Original Message----- > From: Tatsuro MATSUOKA [mailto:tmacchant at yahoo.co.jp] > Sent: Monday, October 12, 2009 11:30 AM > To: Sachin Kumar Sharma; help at octave.org > Subject: RE: beginner in octave-few queries > > Hello > > --- Sachin Kumar Sharma wrote: > > > BB, > > > > I did try renaming the file as 'page42_sample.m' as well as checking the path as well. > > > > The error stays > > > > octave-3.2.2.exe:5:F:\Octave\3.2.2_gcc-4.3.0\bin > > > octave page42_sample.m > > error: `octave' undefined near line 5 column 1 > > Hmmm. > 'octave page42_sample.m' is not correct inside octave. It is used from outside of octave (e.g. > cmd > prompt). Just type 'page42_sample' in the octave. > > Please type from octave prompt > system('dir') > > What is the (current) directory name? Can you find page42_sample.m in the output? > > Regards > > Tatsuro > > > > > -------------------------------------- > GyaO! - Anime, Dramas, Movies, and Music videos [FREE] > http://pr.mail.yahoo.co.jp/gyao/ > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From SSharma84 at slb.com Mon Oct 12 04:30:06 2009 From: SSharma84 at slb.com (Sachin Kumar Sharma) Date: Mon, 12 Oct 2009 11:30:06 +0200 Subject: beginner in octave-few queries In-Reply-To: <20091012065914.79346.qmail@web3803.mail.bbt.yahoo.co.jp> References: <20091012065914.79346.qmail@web3803.mail.bbt.yahoo.co.jp> Message-ID: Hi Tatsuro, This is working, I was making one mistake, actually the most silly one can make. I was typing new1.m in prompt and then from your mail I realized, that save the file with extension *.m but invoke it with name only. I appreciate your help and support for the same. Thanks & Regards Sachin ************************************************************************ Sachin Kumar Sharma Lead Geomodeler- Mumbai High Full Field Review Project Senior Reservoir Geophysicist , Consulting Services (DCS) Schlumberger Asia Services Ltd. NSE Estate, W.E. Highway, Goregaon (E), Mumbai-400063 Tel:? 022-26857881 (Direct), 022-26854547 ext: 881 Fax: 022-26854222 Mobile: +91 9833892654 * Email: ssharma84 at bombay.oilfield.slb.com ????????????????????????????? "The urge to quit is the last obstacle between you and your dreams." -----Original Message----- From: Tatsuro MATSUOKA [mailto:tmacchant at yahoo.co.jp] Sent: Monday, October 12, 2009 12:29 PM To: Sachin Kumar Sharma; help at octave.org; leosgb at yahoo.com.br Subject: RE: beginner in octave-few queries Hello I have saved your new1.m in C:\usr\tatsu\test\testOctave '>' indicates octave prompt. ************ >cd C:\usr\tatsu\test\testOctave >system('dir new1.m') Volume in drive C has no label. Volume Serial Number is 28D6-BD9D Directory of C:\usr\tatsu\test\testOctave 2009/10/12 15:46 72 new1.m 1 File(s) 72 bytes 0 Dir(s) 33,996,525,568 bytes free ans = 0 >new1 Hello, world! ********* Worked without problem. You need to locate m files to the current directory or that is specified by addpath (see help addpath). Regards Tatsuro --- Sachin Kumar Sharma wrote: > Tatsuro, Leo, > > I reinstalled Octave at default location in C drive. > > The script is attached with the mail. > > And the dump of system('dir') is as follows. > > > > octave-3.2.2.exe:1:C:\Octave\3.2.2_gcc-4.3.0\bin > > system('dir') > Volume in drive C is System > Volume Serial Number is 1087-25CB > > Directory of C:\Octave\3.2.2_gcc-4.3.0\bin > > 10/12/2009 10:43 AM . > 10/12/2009 10:43 AM .. > 08/21/2009 12:35 AM 33,490 amd.dll > 08/21/2009 12:35 AM 420,808 arpack.dll > 08/17/2009 03:06 PM 4,003,328 atlas.dll > 08/17/2009 03:06 PM 230,912 blas.dll > 08/21/2009 12:35 AM 64,092 bzip2.dll > 08/21/2009 12:35 AM 440,785 cairo-2.dll > 08/21/2009 12:35 AM 36,592 camd.dll > 08/17/2009 03:06 PM 154,624 cblas.dll > > > > I really appreciate your help, I just need to get it running so that I can get started with some > basic scripting work. > > Thanks & Regards > > Sachin > > ************************************************************************ > Sachin Kumar Sharma > Lead Geomodeler- Mumbai High Full Field Review Project > Senior Reservoir Geophysicist , Consulting Services (DCS) > Schlumberger Asia Services Ltd. > > > ����������������������������� "The urge to quit is the last obstacle between you and your > dreams." > > > -----Original Message----- > From: Tatsuro MATSUOKA [mailto:tmacchant at yahoo.co.jp] > Sent: Monday, October 12, 2009 11:30 AM > To: Sachin Kumar Sharma; help at octave.org > Subject: RE: beginner in octave-few queries > > Hello > > --- Sachin Kumar Sharma wrote: > > > BB, > > > > I did try renaming the file as 'page42_sample.m' as well as checking the path as well. > > > > The error stays > > > > octave-3.2.2.exe:5:F:\Octave\3.2.2_gcc-4.3.0\bin > > > octave page42_sample.m > > error: `octave' undefined near line 5 column 1 > > Hmmm. > 'octave page42_sample.m' is not correct inside octave. It is used from outside of octave (e.g. > cmd > prompt). Just type 'page42_sample' in the octave. > > Please type from octave prompt > system('dir') > > What is the (current) directory name? Can you find page42_sample.m in the output? > > Regards > > Tatsuro > > > > > -------------------------------------- > GyaO! - Anime, Dramas, Movies, and Music videos [FREE] > http://pr.mail.yahoo.co.jp/gyao/ > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From miyliu at ucalgary.ca Sun Oct 11 23:41:32 2009 From: miyliu at ucalgary.ca (Michelle Liu) Date: Sun, 11 Oct 2009 22:41:32 -0600 (MDT) Subject: trouble downloading Message-ID: Hello, i have a window's XP labtap and i've tried downloading octave on to my lap top. The first time i downloaded the program, i couldn't get it to run. Thus, i uninstalled the program and tried downloading everything all over again. However, it wouldn't let me download the program for hte second time because i've "violated" some installing program because i can't download the program the second time. IT asked me to contact you guys. Thus, can you please help me out? Much thanks in advance, Michelle From babelproofreader at gmail.com Tue Oct 13 05:53:21 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Tue, 13 Oct 2009 03:53:21 -0700 (PDT) Subject: How do you pass two Octave functions to an .oct function? Message-ID: <25870717.post@talk.nabble.com> I would like to pass two Octave functions, specifically fft and ifft, to an .oct file as part of a compiled function I wish to write. I have read the relevant on-line manual appendix and know the syntax to pass one Octave function to an .oct file, but how do I pass two functions? -- View this message in context: http://www.nabble.com/How-do-you-pass-two-Octave-functions-to-an-.oct-function--tp25870717p25870717.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at gmail.com Tue Oct 13 08:57:58 2009 From: jordigh at gmail.com (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Tue, 13 Oct 2009 08:57:58 -0500 Subject: Debian packaging Message-ID: <9543b3a40910130657o2cc03b46r8cf77d2d7f36efc0@mail.gmail.com> 2009/10/11 John W. Eaton : > | and must instead rely on specific packagers like Rafael Laboissiere, > | Thomas Weber, and infrequently myself. > > After years doing great work building Octave packages for Debian, > Rafael is no longer active. ?So it would be really great if some other > users stepped in and helped. Oh dear. I hadn't noticed. Did he officially announce he was stepping down or did he quietly vanish? I'm not sure I can pick up the work, but I can try a little. From jordigh at gmail.com Tue Oct 13 09:23:39 2009 From: jordigh at gmail.com (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Tue, 13 Oct 2009 09:23:39 -0500 Subject: trouble downloading In-Reply-To: References: Message-ID: <9543b3a40910130723n1b1285b9vb4de21ba368283cb@mail.gmail.com> 2009/10/11 Michelle Liu : > Hello, i have a window's XP labtap and i've tried downloading octave on to > my lap top. The first time i downloaded the program, i couldn't get it to > run. What did you download? Did you download the source or the binary? You can find Windows binaries here: http://octave.sourceforge.net/ Click on the "Windows installer" link. If you could give us more details on what happened (what did you download, where did you put it, that the error messages were), we might be able to give more specific help. From A.M.Zainal-Abidin at lboro.ac.uk Tue Oct 13 09:50:08 2009 From: A.M.Zainal-Abidin at lboro.ac.uk (A.M.Zainal-Abidin at lboro.ac.uk) Date: Tue, 13 Oct 2009 15:50:08 +0100 Subject: Problem uploading file Message-ID: Hello, I have a problem uploading csv file and reading it. I have installed the latest version of Octave (3.2.2)and everytime I try to read the csv file, the statements came out; major(5): Low-level I/O layer minor(29):Unable to initialize object major(04):File interface minor(17):Unable to open file major(03):Internal HDF5 error minor(87):system error message and the file cannot be opened. I had no such problem with the version 3.0. Is there something to do with obsolete commands? Thanks. Regards, Murad From bobquestion at googlemail.com Tue Oct 13 11:19:33 2009 From: bobquestion at googlemail.com (Bob Q) Date: Tue, 13 Oct 2009 17:19:33 +0100 Subject: cannot plot via gnuplot (4.2.6) from octave 3.2.3 (on Mac OS 10.6) Message-ID: <46804480910130919p555cbbe4mf563b696f26692a9@mail.gmail.com> Hello, I downloaded and installed the octave-3.2.3 dmg on Mac OS X (10.6, intel) along with the gnuplot-4.2.6 dmg in the Extras. At first, it could not find gnuplot... > plot(x,y) [quote] error: popen2 (child): unable to start process -- No such file or directory error: called from: error: /Applications/Octave 3.2.3.app/Contents/Resources/share/octave/3.2.3/m/plot/__gnuplot_open_stream__.m at line 28, column 44 error: /Applications/Octave 3.2.3.app/Contents/Resources/share/octave/3.2.3/m/plot/gnuplot_drawnow.m at line 85, column 19 sh: gnuplot: command not found error: you must have gnuplot installed to display graphics; if you have gnuplot installed in a non-standard location, see the 'gnuplot_binary' function octave-3.2.3:4> gnuplot_binary("/Applications/Gnuplot") octave-3.2.3:5> plot(x,y) sh: /Applications/Gnuplot: No such file or directory error: you must have gnuplot installed to display graphics; if you have gnuplot installed in a non-standard location, see the 'gnuplot_binary' function [/quote] ...solving this with a... > gnuplot_binary("/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot") ...and again plotting gives... [quote] error: `unset' undefined near line 4 column 1 warning: broken pipe -- some output may be lost [/quote] where it can only be escaped with a ctrl-c. Is gnuplot 4.2.6 not working with octave 3.2.3? Is there a way around this? Your help or advise is greatly appreciated. Thanks, Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091013/87e6b186/attachment.html From efrios at yahoo.com Tue Oct 13 12:10:40 2009 From: efrios at yahoo.com (Hielos) Date: Tue, 13 Oct 2009 10:10:40 -0700 (PDT) Subject: problem installing Octave 3.2.2 on my desktop (Ubuntu 9.04) In-Reply-To: References: <1196695894.8292731253213688010.JavaMail.root@mail02.pantherlink.uwm.edu> <882411839.8363241253220167154.JavaMail.root@mail02.pantherlink.uwm.edu> Message-ID: <25877016.post@talk.nabble.com> I am having the same problem: (Jaunty 64 bits) gcc -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -Wall -W -Wshadow -Wformat -g -O2 main.c -o main.o g++ -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -g -O2 -rdynamic \ -L.. -fPIC -o octave \ main.o \ -L../liboctave -L../libcruft -L../src -Wl,-rpath -Wl,/usr/local/lib/octave-3.2.2 \ -loctinterp -loctave -lcruft \ -lumfpack -lamd -lcamd -lcolamd \ -lcholmod -lccolamd -lcxsparse -llapack -lcblas -lf77blas -latlas \ -lfftw3 -lfftw3f -larpack -lftgl -lfreetype -lz -L/usr/X11R6/lib -lGL -lGLU \ -lX11 -lreadline -lncurses -ldl -lcblas -lf77blas -latlas -lhdf5 -lz -lm ../libcruft/libcruft.so: undefined reference to `r_imag' ../libcruft/libcruft.so: undefined reference to `c_exp' ../libcruft/libcruft.so: undefined reference to `i_len' ../libcruft/libcruft.so: undefined reference to `d_int' ../libcruft/libcruft.so: undefined reference to `c_sqrt' ../libcruft/libcruft.so: undefined reference to `e_wsfi' ../libcruft/libcruft.so: undefined reference to `d_sign' ../libcruft/libcruft.so: undefined reference to `s_wsle' ../libcruft/libcruft.so: undefined reference to `r_mod' ../libcruft/libcruft.so: undefined reference to `c_div' ../libcruft/libcruft.so: undefined reference to `r_cnjg' ../libcruft/libcruft.so: undefined reference to `s_copy' ../libcruft/libcruft.so: undefined reference to `s_cmp' ../src/liboctinterp.so: undefined reference to `s_wsfe' ../libcruft/libcruft.so: undefined reference to `do_lio' ../libcruft/libcruft.so: undefined reference to `c_log' ../libcruft/libcruft.so: undefined reference to `r_int' ../libcruft/libcruft.so: undefined reference to `pow_dd' ../libcruft/libcruft.so: undefined reference to `i_indx' ../libcruft/libcruft.so: undefined reference to `s_wsfi' ../libcruft/libcruft.so: undefined reference to `z_abs' ../libcruft/libcruft.so: undefined reference to `s_stop' ../libcruft/libcruft.so: undefined reference to `r_sign' ../libcruft/libcruft.so: undefined reference to `pow_di' ../libcruft/libcruft.so: undefined reference to `d_lg10' ../libcruft/libcruft.so: undefined reference to `pow_ri' ../libcruft/libcruft.so: undefined reference to `e_wsle' ../libcruft/libcruft.so: undefined reference to `s_cat' ../src/liboctinterp.so: undefined reference to `do_fio' ../src/liboctinterp.so: undefined reference to `e_wsfe' ../libcruft/libcruft.so: undefined reference to `c_abs' ../libcruft/libcruft.so: undefined reference to `d_mod' collect2: ld devolvi? el estado de salida 1 make[2]: *** [octave] Error 1 make[2]: se sale del directorio `/home/edgar/octave-3.2.2/src' make[1]: *** [src] Error 2 make[1]: se sale del directorio `/home/edgar/octave-3.2.2' make: *** [all] Error 2 Judd Storrs wrote: > > Can you post more of the error? > > --judd > > > On Thu, Sep 17, 2009 at 4:42 PM, Peter Hinow wrote: > >> No, unfortunately not. The problem persists. >> >> >> ----- Original Message ----- >> From: "Peter Hinow" >> To: help-octave at octave.org >> Sent: Thursday, September 17, 2009 3:18:26 PM GMT -06:00 US/Canada >> Central >> Subject: Re: problem installing Octave 3.2.2 on my desktop (Ubuntu 9.04) >> >> This problem may have solved itself. It was discussed in a thread >> "Compiling 3.2.2 on Ubuntu 9.04" (August 2009) >> The recommendation is to run the following two commands >> >> sudo apt-get build-dep octave3.0 >> sudo apt-get install libftgl-dev >> >> >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://www.nabble.com/problem-installing-Octave-3.2.2-on-my-desktop-%28Ubuntu-9.04%29-tp25497238p25877016.html Sent from the Octave - General mailing list archive at Nabble.com. From tmacchant at yahoo.co.jp Tue Oct 13 18:37:48 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Wed, 14 Oct 2009 08:37:48 +0900 (JST) Subject: cannot plot via gnuplot (4.2.6) from octave 3.2.3 (on Mac OS 10.6) In-Reply-To: <46804480910130919p555cbbe4mf563b696f26692a9@mail.gmail.com> Message-ID: <20091013233751.60790.qmail@web3807.mail.bbt.yahoo.co.jp> Hello --- Bob Q wrote: > Hello, > > I downloaded and installed the octave-3.2.3 dmg on Mac OS X (10.6, intel) > along with the gnuplot-4.2.6 dmg in the Extras. > > At first, it could not find gnuplot... > > > plot(x,y) > [quote] > error: popen2 (child): unable to start process -- No such file or directory > error: called from: > error: /Applications/Octave > 3.2.3.app/Contents/Resources/share/octave/3.2.3/m/plot/__gnuplot_open_stream__.m > at line 28, column 44 > error: /Applications/Octave > 3.2.3.app/Contents/Resources/share/octave/3.2.3/m/plot/gnuplot_drawnow.m at > line 85, column 19 > sh: gnuplot: command not found > error: you must have gnuplot installed to display graphics; if you have > gnuplot installed in a non-standard location, see the 'gnuplot_binary' > function > octave-3.2.3:4> gnuplot_binary("/Applications/Gnuplot") > octave-3.2.3:5> plot(x,y) > sh: /Applications/Gnuplot: No such file or directory > error: you must have gnuplot installed to display graphics; if you have > gnuplot installed in a non-standard location, see the 'gnuplot_binary' > function > [/quote] > > ...solving this with a... > > > gnuplot_binary("/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot") > > ...and again plotting gives... > [quote] > error: `unset' undefined near line 4 column 1 > warning: broken pipe -- some output may be lost > [/quote] > > where it can only be escaped with a ctrl-c. > > Is gnuplot 4.2.6 not working with octave 3.2.3? Is there a way around this? > > Your help or advise is greatly appreciated. > > Thanks, Bob Hello I'm not a Mac user so that my statement is to be a mere note. Gnuplot 4.2.6 is minor changed version from previous one so that in principle there is no reason that it does not work from octave. Did you try to describe gnuplot_binary("/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot") in .octaverc ? You can find HOME directory of octave octave:1> tilde_expand ('~') If you did not try, please describe gnuplot_binary("/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot"); in .octaverc in the HOME directory of octave. If you have already try the above or the above trial will be in failure, perhaps the problem in the gnuplot 4.2.6 installed. The installing might be in failure. At that time, please wait Mac users will help you. BTW, if you want use mouse zooming in 2D plot, try to use gnuplot 4.3 (CVS). At gnuplot 4.2,mouse zooming in 2D plot does not work because octave send plot data via pipe. For gnuplot 4.3, mouse Unfortunately binaries of Mac version is not distributed but you can build by yourself by instruction: http://gnuplot.info/development/index.html Note that the development tools (gcc, automake, autoconf, m4, etc.) and dependencies (gd and its related libraries) are required for building. Good luck! Tatsuro -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From bpabbott at mac.com Tue Oct 13 19:06:20 2009 From: bpabbott at mac.com (Ben Abbott) Date: Tue, 13 Oct 2009 20:06:20 -0400 Subject: cannot plot via gnuplot (4.2.6) from octave 3.2.3 (on Mac OS 10.6) In-Reply-To: <46804480910130919p555cbbe4mf563b696f26692a9@mail.gmail.com> References: <46804480910130919p555cbbe4mf563b696f26692a9@mail.gmail.com> Message-ID: On Oct 13, 2009, at 12:19 PM, Bob Q wrote: > Hello, > > I downloaded and installed the octave-3.2.3 dmg on Mac OS X (10.6, > intel) along with the gnuplot-4.2.6 dmg in the Extras. > > At first, it could not find gnuplot... > > > plot(x,y) > [quote] > error: popen2 (child): unable to start process -- No such file or > directory > error: called from: > error: /Applications/Octave 3.2.3.app/Contents/Resources/share/ > octave/3.2.3/m/plot/__gnuplot_open_stream__.m at line 28, column 44 > error: /Applications/Octave 3.2.3.app/Contents/Resources/share/ > octave/3.2.3/m/plot/gnuplot_drawnow.m at line 85, column 19 > sh: gnuplot: command not found > error: you must have gnuplot installed to display graphics; if you > have gnuplot installed in a non-standard location, see the > 'gnuplot_binary' function > octave-3.2.3:4> gnuplot_binary("/Applications/Gnuplot") > octave-3.2.3:5> plot(x,y) > sh: /Applications/Gnuplot: No such file or directory > error: you must have gnuplot installed to display graphics; if you > have gnuplot installed in a non-standard location, see the > 'gnuplot_binary' function > [/quote] > > ...solving this with a... > > > gnuplot_binary("/Applications/Gnuplot.app/Contents/Resources/bin/ > gnuplot") > > ...and again plotting gives... > [quote] > error: `unset' undefined near line 4 column 1 > warning: broken pipe -- some output may be lost > [/quote] > > where it can only be escaped with a ctrl-c. > > Is gnuplot 4.2.6 not working with octave 3.2.3? Is there a way > around this? > > Your help or advise is greatly appreciated. > > Thanks, Bob Bob, I've had no trouble with gnuplot 4.2.3 or later versions. I'm currently running gnuplot's developer's sources. Please try running gnuplot directly and type "set term". You'll see a list of available terminals. For example, I get the list below .... gnuplot> set term Available terminal types: aqua Interface to graphics terminal server for Mac OS X canvas HTML Canvas object cgm Computer Graphics Metafile corel EPS format for CorelDRAW dpu414 Seiko DPU-414 thermal printer [small medium large] dumb ascii art for anything that prints text dxf dxf-file for AutoCad (default size 120x80) eepic EEPIC -- extended LaTeX picture environment emf Enhanced Metafile format emtex LaTeX picture environment with emTeX specials epslatex LaTeX picture environment using graphicx package epson_180dpi Epson LQ-style 180-dot per inch (24 pin) printers epson_60dpi Epson-style 60-dot per inch printers epson_lx800 Epson LX-800, Star NL-10, NX-1000, PROPRINTER ... fig FIG graphics language for XFIG graphics editor gif GIF images using libgd and TrueType fonts gnugraph GNU plot(1) format ["fontname" font_size] gpic GPIC -- Produce graphs in groff using the gpic preprocessor hp2623A HP2623A and maybe others hp2648 HP2648 and HP2647 hp500c HP DeskJet 500c, [75 100 150 300] [rle tiff] Press return for more: hpdj HP DeskJet 500, [75 100 150 300] hpgl HP7475 and relatives [number of pens] [eject] hpljii HP Laserjet series II, [75 100 150 300] hppj HP PaintJet and HP3630 [FNT5X9 FNT9X17 FNT13X25] imagen Imagen laser printer jpeg JPEG images using libgd and TrueType fonts latex LaTeX picture environment lua Lua generic terminal driver mf Metafont plotting standard mif Frame maker MIF 3.00 format mp MetaPost plotting standard nec_cp6 NEC printer CP6, Epson LQ-800 [monocrome color draft] okidata OKIDATA 320/321 Standard pbm Portable bitmap [small medium large] [monochrome gray color] pcl5 HP Designjet 750C, HP Laserjet III/IV, etc. (many options) pdf PDF (Portable Document File) file driver pdfcairo pdf terminal based on cairo png PNG images using libgd and TrueType fonts pngcairo png terminal based on cairo postscript PostScript graphics, including EPSF embedded files (*.eps) pslatex LaTeX picture environment with PostScript \specials pstex plain TeX with PostScript \specials Press return for more: pstricks LaTeX picture environment with PSTricks macros qms QMS/QUIC Laser printer (also Talaris 1200 and others) regis REGIS graphics language rgip RGIP metafile (Uniplex). Option: fontsize (1-8) starc Star Color Printer svg W3C Scalable Vector Graphics driver tandy_60dpi Tandy DMP-130 series 60-dot per inch graphics tek40xx Tektronix 4010 and others; most TEK emulators tek410x Tektronix 4106, 4107, 4109 and 420X terminals texdraw LaTeX texdraw environment tgif TGIF X11 [mode] [x,y] [dashed] ["font" [fontsize]] tikz TeX TikZ graphics macros via the lua script driver tkcanvas Tk/Tcl canvas widget [perltk] [interactive] tpic TPIC -- LaTeX picture environment with tpic \specials uniplex RGIP metafile (Uniplex). Option: fontsize (1-8) (Same as rgip) unknown Unknown terminal type - not a plotting device vttek VT-like tek40xx terminal emulator x11 X11 Window System xlib X11 Window System (gnulib_x11 dump) xterm Xterm Tektronix 4014 Mode Please verify your gnuplot supports "aqua" and "x11". If "aqua" is not present, then you can use the "x11" terminal by adding the following to your ~/.octaverc file setenv ("GNUTERM", "x11") If both aqua and x11 are listed, be sure to type "close all" before you use "gnuplot_binary" to set the path to your gnuplot. If you set gnuplot_binary in your ~/.octaverc, be sure to quit and restart octave before attempting a plot. Ben From highegg at gmail.com Wed Oct 14 00:32:49 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Wed, 14 Oct 2009 07:32:49 +0200 Subject: problem installing Octave 3.2.2 on my desktop (Ubuntu 9.04) In-Reply-To: <882411839.8363241253220167154.JavaMail.root@mail02.pantherlink.uwm.edu> References: <489213280.8362791253220118603.JavaMail.root@mail02.pantherlink.uwm.edu> <882411839.8363241253220167154.JavaMail.root@mail02.pantherlink.uwm.edu> Message-ID: <69d8d540910132232k48f79c68r6c8ebccbb694b9c8@mail.gmail.com> On Thu, Sep 17, 2009 at 10:42 PM, Peter Hinow wrote: > No, unfortunately not. The problem persists. > Please send your config.log. Either use a pastebin service or send it compressed. -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From highegg at gmail.com Wed Oct 14 00:35:28 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Wed, 14 Oct 2009 07:35:28 +0200 Subject: problem installing Octave 3.2.2 on my desktop (Ubuntu 9.04) In-Reply-To: <25877016.post@talk.nabble.com> References: <1196695894.8292731253213688010.JavaMail.root@mail02.pantherlink.uwm.edu> <882411839.8363241253220167154.JavaMail.root@mail02.pantherlink.uwm.edu> <25877016.post@talk.nabble.com> Message-ID: <69d8d540910132235n79ccf118qae317e8a1378fd8a@mail.gmail.com> On Tue, Oct 13, 2009 at 7:10 PM, Hielos wrote: > > I am having the same problem: (Jaunty 64 bits) > > gcc -c ?-I. -I.. -I../liboctave -I../src -I../libcruft/misc ?-DHAVE_CONFIG_H > -Wall -W -Wshadow -Wformat -g -O2 main.c -o main.o > g++ ?-I. -I.. -I../liboctave -I../src -I../libcruft/misc ?-DHAVE_CONFIG_H > -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -g -O2 > -rdynamic \ > ? ? ? ?-L.. ?-fPIC ?-o octave \ > ? ? ? ?main.o ?\ > ? ? ? ?-L../liboctave -L../libcruft -L../src -Wl,-rpath > -Wl,/usr/local/lib/octave-3.2.2 \ > ? ? ? ?-loctinterp -loctave ?-lcruft ? \ > ? ? ? ? -lumfpack -lamd -lcamd -lcolamd \ > ? ? ? ?-lcholmod -lccolamd -lcxsparse -llapack -lcblas -lf77blas -latlas \ > ? ? ? ?-lfftw3 -lfftw3f ?-larpack -lftgl -lfreetype -lz -L/usr/X11R6/lib -lGL > -lGLU \ > ? ? ? ?-lX11 ?-lreadline ?-lncurses -ldl -lcblas -lf77blas -latlas -lhdf5 -lz -lm > ../libcruft/libcruft.so: undefined reference to `r_imag' > ../libcruft/libcruft.so: undefined reference to `c_exp' > ../libcruft/libcruft.so: undefined reference to `i_len' > ../libcruft/libcruft.so: undefined reference to `d_int' > ../libcruft/libcruft.so: undefined reference to `c_sqrt' > ../libcruft/libcruft.so: undefined reference to `e_wsfi' > ../libcruft/libcruft.so: undefined reference to `d_sign' > ../libcruft/libcruft.so: undefined reference to `s_wsle' > ../libcruft/libcruft.so: undefined reference to `r_mod' > ../libcruft/libcruft.so: undefined reference to `c_div' > ../libcruft/libcruft.so: undefined reference to `r_cnjg' > ../libcruft/libcruft.so: undefined reference to `s_copy' > ../libcruft/libcruft.so: undefined reference to `s_cmp' > ../src/liboctinterp.so: undefined reference to `s_wsfe' > ../libcruft/libcruft.so: undefined reference to `do_lio' > ../libcruft/libcruft.so: undefined reference to `c_log' > ../libcruft/libcruft.so: undefined reference to `r_int' > ../libcruft/libcruft.so: undefined reference to `pow_dd' > ../libcruft/libcruft.so: undefined reference to `i_indx' > ../libcruft/libcruft.so: undefined reference to `s_wsfi' > ../libcruft/libcruft.so: undefined reference to `z_abs' > ../libcruft/libcruft.so: undefined reference to `s_stop' > ../libcruft/libcruft.so: undefined reference to `r_sign' > ../libcruft/libcruft.so: undefined reference to `pow_di' > ../libcruft/libcruft.so: undefined reference to `d_lg10' > ../libcruft/libcruft.so: undefined reference to `pow_ri' > ../libcruft/libcruft.so: undefined reference to `e_wsle' > ../libcruft/libcruft.so: undefined reference to `s_cat' > ../src/liboctinterp.so: undefined reference to `do_fio' > ../src/liboctinterp.so: undefined reference to `e_wsfe' > ../libcruft/libcruft.so: undefined reference to `c_abs' > ../libcruft/libcruft.so: undefined reference to `d_mod' > collect2: ld devolvi? el estado de salida 1 > make[2]: *** [octave] Error 1 > make[2]: se sale del directorio `/home/edgar/octave-3.2.2/src' > make[1]: *** [src] Error 2 > make[1]: se sale del directorio `/home/edgar/octave-3.2.2' > make: *** [all] Error 2 > > Likewise, please send your config.log, either via pastebin or compressed. regards -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From highegg at gmail.com Wed Oct 14 00:54:39 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Wed, 14 Oct 2009 07:54:39 +0200 Subject: How do you pass two Octave functions to an .oct function? In-Reply-To: <25870717.post@talk.nabble.com> References: <25870717.post@talk.nabble.com> Message-ID: <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> On Tue, Oct 13, 2009 at 12:53 PM, babelproofreader wrote: > > I would like to pass two Octave functions, specifically fft and ifft, to an > .oct file as part of a compiled function I wish to write. I have read the > relevant on-line manual appendix and know the syntax to pass one Octave > function to an .oct file, but how do I pass two functions? Please be more specific and show some code if possible. You can of course pass any number of function handles to a compiled functions, either as individual arguments or, for example, in a cell array. regards -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From Thomas.Treichl at gmx.net Wed Oct 14 02:22:22 2009 From: Thomas.Treichl at gmx.net (Thomas Treichl) Date: Wed, 14 Oct 2009 09:22:22 +0200 Subject: cannot plot via gnuplot (4.2.6) from octave 3.2.3 (on Mac OS 10.6) In-Reply-To: References: <46804480910130919p555cbbe4mf563b696f26692a9@mail.gmail.com> Message-ID: <4AD57C2E.3050409@gmx.net> Ben Abbott schrieb: > On Oct 13, 2009, at 12:19 PM, Bob Q wrote: > >> Hello, >> >> I downloaded and installed the octave-3.2.3 dmg on Mac OS X (10.6, >> intel) along with the gnuplot-4.2.6 dmg in the Extras. >> >> At first, it could not find gnuplot... >> >>> plot(x,y) >> [quote] >> error: popen2 (child): unable to start process -- No such file or >> directory >> error: called from: >> error: /Applications/Octave 3.2.3.app/Contents/Resources/share/ >> octave/3.2.3/m/plot/__gnuplot_open_stream__.m at line 28, column 44 >> error: /Applications/Octave 3.2.3.app/Contents/Resources/share/ >> octave/3.2.3/m/plot/gnuplot_drawnow.m at line 85, column 19 >> sh: gnuplot: command not found >> error: you must have gnuplot installed to display graphics; if you >> have gnuplot installed in a non-standard location, see the >> 'gnuplot_binary' function >> octave-3.2.3:4> gnuplot_binary("/Applications/Gnuplot") >> octave-3.2.3:5> plot(x,y) >> sh: /Applications/Gnuplot: No such file or directory >> error: you must have gnuplot installed to display graphics; if you >> have gnuplot installed in a non-standard location, see the >> 'gnuplot_binary' function >> [/quote] >> >> ...solving this with a... >> >>> gnuplot_binary("/Applications/Gnuplot.app/Contents/Resources/bin/ >> gnuplot") >> >> ...and again plotting gives... >> [quote] >> error: `unset' undefined near line 4 column 1 >> warning: broken pipe -- some output may be lost >> [/quote] >> >> where it can only be escaped with a ctrl-c. >> >> Is gnuplot 4.2.6 not working with octave 3.2.3? Is there a way >> around this? >> >> Your help or advise is greatly appreciated. >> >> Thanks, Bob > > Bob, > > I've had no trouble with gnuplot 4.2.3 or later versions. I'm > currently running gnuplot's developer's sources. > > Please try running gnuplot directly and type "set term". You'll see a > list of available terminals. For example, I get the list below .... > > gnuplot> set term > > Available terminal types: > aqua Interface to graphics terminal server for Mac OS X > canvas HTML Canvas object > cgm Computer Graphics Metafile > corel EPS format for CorelDRAW > dpu414 Seiko DPU-414 thermal printer [small medium large] > dumb ascii art for anything that prints text > dxf dxf-file for AutoCad (default size 120x80) > eepic EEPIC -- extended LaTeX picture environment > emf Enhanced Metafile format > emtex LaTeX picture environment with emTeX specials > epslatex LaTeX picture environment using graphicx package > epson_180dpi Epson LQ-style 180-dot per inch (24 pin) printers > epson_60dpi Epson-style 60-dot per inch printers > epson_lx800 Epson LX-800, Star NL-10, NX-1000, PROPRINTER ... > fig FIG graphics language for XFIG graphics editor > gif GIF images using libgd and TrueType fonts > gnugraph GNU plot(1) format ["fontname" font_size] > gpic GPIC -- Produce graphs in groff using the gpic > preprocessor > hp2623A HP2623A and maybe others > hp2648 HP2648 and HP2647 > hp500c HP DeskJet 500c, [75 100 150 300] [rle tiff] > Press return for more: > hpdj HP DeskJet 500, [75 100 150 300] > hpgl HP7475 and relatives [number of pens] [eject] > hpljii HP Laserjet series II, [75 100 150 300] > hppj HP PaintJet and HP3630 [FNT5X9 FNT9X17 FNT13X25] > imagen Imagen laser printer > jpeg JPEG images using libgd and TrueType fonts > latex LaTeX picture environment > lua Lua generic terminal driver > mf Metafont plotting standard > mif Frame maker MIF 3.00 format > mp MetaPost plotting standard > nec_cp6 NEC printer CP6, Epson LQ-800 [monocrome color > draft] > okidata OKIDATA 320/321 Standard > pbm Portable bitmap [small medium large] [monochrome > gray color] > pcl5 HP Designjet 750C, HP Laserjet III/IV, etc. (many > options) > pdf PDF (Portable Document File) file driver > pdfcairo pdf terminal based on cairo > png PNG images using libgd and TrueType fonts > pngcairo png terminal based on cairo > postscript PostScript graphics, including EPSF embedded files > (*.eps) > pslatex LaTeX picture environment with PostScript \specials > pstex plain TeX with PostScript \specials > Press return for more: > pstricks LaTeX picture environment with PSTricks macros > qms QMS/QUIC Laser printer (also Talaris 1200 and > others) > regis REGIS graphics language > rgip RGIP metafile (Uniplex). Option: fontsize (1-8) > starc Star Color Printer > svg W3C Scalable Vector Graphics driver > tandy_60dpi Tandy DMP-130 series 60-dot per inch graphics > tek40xx Tektronix 4010 and others; most TEK emulators > tek410x Tektronix 4106, 4107, 4109 and 420X terminals > texdraw LaTeX texdraw environment > tgif TGIF X11 [mode] [x,y] [dashed] ["font" [fontsize]] > tikz TeX TikZ graphics macros via the lua script driver > tkcanvas Tk/Tcl canvas widget [perltk] [interactive] > tpic TPIC -- LaTeX picture environment with tpic > \specials > uniplex RGIP metafile (Uniplex). Option: fontsize (1-8) > (Same as rgip) > unknown Unknown terminal type - not a plotting device > vttek VT-like tek40xx terminal emulator > x11 X11 Window System > xlib X11 Window System (gnulib_x11 dump) > xterm Xterm Tektronix 4014 Mode > > Please verify your gnuplot supports "aqua" and "x11". > > If "aqua" is not present, then you can use the "x11" terminal by > adding the following to your ~/.octaverc file > > setenv ("GNUTERM", "x11") > > If both aqua and x11 are listed, be sure to type "close all" before > you use "gnuplot_binary" to set the path to your gnuplot. If you set > gnuplot_binary in your ~/.octaverc, be sure to quit and restart octave > before attempting a plot. > > Ben Hi Bob, hi Ben, I expect it has nothing to do with the terminal here. I do more expect it has to do with the "gnuplot_binary" or an environment variable. Bob, if you have installed Octave.app and Gnuplot.app both in the same directory then you normally need to set nothing, ie. don't need to set gnuplot_binary because it already is set to 'gnuplot' - Octave.app then automatically finds Gnuplot.app. Please start up Octave and do nothing else but just calling gnuplot_binary Next please call the command in Octave.app system ('which gnuplot') Can you reply the output please. Thomas From meurer at acin.tuwien.ac.at Wed Oct 14 02:49:01 2009 From: meurer at acin.tuwien.ac.at (Thomas Meurer) Date: Wed, 14 Oct 2009 09:49:01 +0200 Subject: problem installing Octave 3.2.2 on my desktop (Ubuntu 9.04) Message-ID: <4AD5826D.7010800@acin.tuwien.ac.at> I followed the instructions on the site http://wiki.octave.org/wiki.pl?EnableLargeArrays to compile Octave from source on Ubuntu Jaunty. It worked perfectly fine for me including the large array option. Thomas From erikbrezet at gmail.com Wed Oct 14 04:29:44 2009 From: erikbrezet at gmail.com (Erik Brezet) Date: Wed, 14 Oct 2009 11:29:44 +0200 Subject: package installation Octave Message-ID: Hi, I can't seem to get any packages (tar.gz) installed on Octave in windows. Packages like: RODBC, xlsreadwrite, ga .. Octave gives: error COPYING file missing or other errors. I've got the mingw32 installer for windows. Help? bye Erik From huubvanniekerk at gmail.com Wed Oct 14 05:48:38 2009 From: huubvanniekerk at gmail.com (Huub van Niekerk) Date: Wed, 14 Oct 2009 12:48:38 +0200 Subject: Octave on Mac (Intel): GNUplot problem Message-ID: <44808e650910140348q4163a019oc4439847c6448c58@mail.gmail.com> Hi, I have the latest Octave and GNUplot for Mac installed. Both Octave and GNUplot start fine, but when I call either plot or plot3 (e.g. x=0:0.1:2*pi; plot(2*sin(x)); plot3(sin(x), cos(x), x)) from Octave, there's no plot-window showing up. Any idea what could be wrong? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091014/38913548/attachment.html From Thomas.Treichl at gmx.net Wed Oct 14 06:34:06 2009 From: Thomas.Treichl at gmx.net (Thomas Treichl) Date: Wed, 14 Oct 2009 13:34:06 +0200 Subject: Octave on Mac (Intel): GNUplot problem In-Reply-To: <44808e650910140348q4163a019oc4439847c6448c58@mail.gmail.com> References: <44808e650910140348q4163a019oc4439847c6448c58@mail.gmail.com> Message-ID: <4AD5B72E.8000703@gmx.net> Huub van Niekerk schrieb: > Hi, > > I have the latest Octave and GNUplot for Mac installed. Both Octave and > GNUplot start fine, but when I call either plot or plot3 (e.g. > x=0:0.1:2*pi; plot(2*sin(x)); plot3(sin(x), cos(x), x)) from Octave, > there's no plot-window showing up. Any idea what could be wrong? > > Thank you. Hi, I think you are talking about the latest Octave.app and Gnuplot.app available from Sourceforge? If this is the case then it sounds to me like the typical problem that sometimes this happens and I don't know why it happens. Try to start gnuplot this way GNUTERM=aqua /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot and try to plot something with the command plot sin(x)/x Or, maybe AquaTerm should be enabled in your Gnuplot.app. For this please read the topic Do I have to install AquaTerm.app before I install Gnuplot.app? in the Readme.html file of gnuplot-4.2.6-*.dmg. Best regards Thomas From bobquestion at googlemail.com Wed Oct 14 09:22:02 2009 From: bobquestion at googlemail.com (Bob Q) Date: Wed, 14 Oct 2009 15:22:02 +0100 Subject: cannot plot via gnuplot (4.2.6) from octave 3.2.3 (on Mac OS 10.6) In-Reply-To: <4AD57C2E.3050409@gmx.net> References: <46804480910130919p555cbbe4mf563b696f26692a9@mail.gmail.com> <4AD57C2E.3050409@gmx.net> Message-ID: <46804480910140722x55d966e1w4ab4e1184141a1fb@mail.gmail.com> Thanks Tatsuro, Ben, Thomas, with your advise, I have solved it, though noticed a curious pattern... As soon as I open octave, if I do a... > gnuplot_binary("/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot") ...then gnuplot will work. If I try plotting before doing such a thing the plot will fail in the way I stated originally, and if I do this gnuplot_binary(...) after plotting then I get the error and broken pipe warning. The only way for it to work is if I do the gnuplot_binary before doing even one plot command. Maybe some internal state changes in octave after doing the first plot and its failure that makes the gnuplot_binary become useless thereafter. Before doing a gnuplot_binary("/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot") ... > gnuplot_binary ans = gnuplot > system ('which gnuplot') ans = 1 ...and attempting to run the command "gnuplot" from a bash terminal also cannot find it. I don't actually have a ~/.octaverc. Can I just make one a put the above gnuplot_binary(...) command in straight? thanks for all your other hints and tips. - el Bobbo On Wed, Oct 14, 2009 at 8:22 AM, Thomas Treichl wrote: > Ben Abbott schrieb: > > On Oct 13, 2009, at 12:19 PM, Bob Q wrote: >> >> Hello, >>> >>> I downloaded and installed the octave-3.2.3 dmg on Mac OS X (10.6, >>> intel) along with the gnuplot-4.2.6 dmg in the Extras. >>> >>> At first, it could not find gnuplot... >>> >>> plot(x,y) >>>> >>> [quote] >>> error: popen2 (child): unable to start process -- No such file or >>> directory >>> error: called from: >>> error: /Applications/Octave 3.2.3.app/Contents/Resources/share/ >>> octave/3.2.3/m/plot/__gnuplot_open_stream__.m at line 28, column 44 >>> error: /Applications/Octave 3.2.3.app/Contents/Resources/share/ >>> octave/3.2.3/m/plot/gnuplot_drawnow.m at line 85, column 19 >>> sh: gnuplot: command not found >>> error: you must have gnuplot installed to display graphics; if you have >>> gnuplot installed in a non-standard location, see the 'gnuplot_binary' >>> function >>> octave-3.2.3:4> gnuplot_binary("/Applications/Gnuplot") >>> octave-3.2.3:5> plot(x,y) >>> sh: /Applications/Gnuplot: No such file or directory >>> error: you must have gnuplot installed to display graphics; if you have >>> gnuplot installed in a non-standard location, see the 'gnuplot_binary' >>> function >>> [/quote] >>> >>> ...solving this with a... >>> >>> gnuplot_binary("/Applications/Gnuplot.app/Contents/Resources/bin/ >>>> >>> gnuplot") >>> >>> ...and again plotting gives... >>> [quote] >>> error: `unset' undefined near line 4 column 1 >>> warning: broken pipe -- some output may be lost >>> [/quote] >>> >>> where it can only be escaped with a ctrl-c. >>> >>> Is gnuplot 4.2.6 not working with octave 3.2.3? Is there a way around >>> this? >>> >>> Your help or advise is greatly appreciated. >>> >>> Thanks, Bob >>> >> >> Bob, >> >> I've had no trouble with gnuplot 4.2.3 or later versions. I'm currently >> running gnuplot's developer's sources. >> >> Please try running gnuplot directly and type "set term". You'll see a >> list of available terminals. For example, I get the list below .... >> >> gnuplot> set term >> >> Available terminal types: >> aqua Interface to graphics terminal server for Mac OS X >> ///SNIP/// >> x11 X11 Window System >> ///SNIP/// >> >> Please verify your gnuplot supports "aqua" and "x11". >> >> If "aqua" is not present, then you can use the "x11" terminal by adding >> the following to your ~/.octaverc file >> >> setenv ("GNUTERM", "x11") >> >> If both aqua and x11 are listed, be sure to type "close all" before you >> use "gnuplot_binary" to set the path to your gnuplot. If you set >> gnuplot_binary in your ~/.octaverc, be sure to quit and restart octave >> before attempting a plot. >> >> Ben >> > > Hi Bob, hi Ben, > > I expect it has nothing to do with the terminal here. I do more expect it > has to do with the "gnuplot_binary" or an environment variable. Bob, if you > have installed Octave.app and Gnuplot.app both in the same directory then > you normally need to set nothing, ie. don't need to set gnuplot_binary > because it already is set to 'gnuplot' - Octave.app then automatically finds > Gnuplot.app. > > Please start up Octave and do nothing else but just calling > > gnuplot_binary > > Next please call the command in Octave.app > > system ('which gnuplot') > > Can you reply the output please. > > Thomas > -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091014/bf50c3c4/attachment.html From vic at norton.name Wed Oct 14 09:30:50 2009 From: vic at norton.name (Vic Norton) Date: Wed, 14 Oct 2009 10:30:50 -0400 Subject: Octave on Mac (Intel): GNUplot problem In-Reply-To: <4AD5B72E.8000703@gmx.net> References: <44808e650910140348q4163a019oc4439847c6448c58@mail.gmail.com> <4AD5B72E.8000703@gmx.net> Message-ID: Hi Thomas, I'm running Octave 3.2.3 and Gnuplot 4.2.6 on Mac OSX 10.6.1. These Octave and Gnuplot live in Octave.app and Gnuplot.app respectively. The plotting commands x=0:0.1:2*pi; plot(2*sin(x)); plot3(sin(x), cos(x), x); work perfectly (via Aquaterm) when I run Octave interactively. On the other hand I often use Octave and Gnuplot (separately) via the shebang lines #!/usr/local/bin/octave #!/usr/local/bin/gnuplot The octave and gnuplot files here are symbolic links to the corresponding files in the Octave and Gnuplot applications. On my system calling gnuplot from octave via the shebang line: #!/usr/local/bin/octave x=0:0.1:2*pi; plot(2*sin(x)); plot3(sin(x), cos(x), x); produces nothing. What do I need to add to make this octave/gnuplot combination work? Am I just missing some output file line? Regards, Vic On Oct 14, 2009, at 7:34 AM, Thomas Treichl wrote: > Huub van Niekerk schrieb: >> Hi, >> >> I have the latest Octave and GNUplot for Mac installed. Both Octave >> and >> GNUplot start fine, but when I call either plot or plot3 (e.g. >> x=0:0.1:2*pi; plot(2*sin(x)); plot3(sin(x), cos(x), x)) from Octave, >> there's no plot-window showing up. Any idea what could be wrong? >> >> Thank you. > > Hi, > > I think you are talking about the latest Octave.app and Gnuplot.app > available > from Sourceforge? If this is the case then it sounds to me like the > typical > problem that sometimes this happens and I don't know why it happens. > Try to > start gnuplot this way > > GNUTERM=aqua /Applications/Gnuplot.app/Contents/Resources/bin/ > gnuplot > > and try to plot something with the command > > plot sin(x)/x > > Or, maybe AquaTerm should be enabled in your Gnuplot.app. For this > please read > the topic > > Do I have to install AquaTerm.app before I install Gnuplot.app? > > in the Readme.html file of gnuplot-4.2.6-*.dmg. > > Best regards > > Thomas > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave From coccoinomane at gmail.com Wed Oct 14 11:32:20 2009 From: coccoinomane at gmail.com (Guido Walter Pettinari) Date: Wed, 14 Oct 2009 17:32:20 +0100 Subject: Problems in installing Octave General package Message-ID: <1C6AFB94-A6A4-4377-AEDD-0394A8C6A7FD@gmail.com> Hi, this is my first post to this mailing list. I am a PhD student in Cosmology and I often use Octave. I really appreciate it as a convenient alternative to Matlab. I am performing some intensive number crunching hence I would like to use both CPUs of my MacBook Pro, which runs Mac Os X 10.6, aka Snow Leopard. I therefore downloaded the Octave General package from Octave Forge to make use of the parcellfun function for parallel computing (http://octave.sourceforge.net/general/index.html ) . I tried to install the package with the usual command: pkg install general-1.1.3.tar.gz but I got a lot of errors, mainly complains about dynamical libraries not being of the required architecture (please see the output below). As a side note, I installed Octave from the Octave.app project (http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary ), hence I did not compile it on my machine. Thank you for any help! Cheers, Guido Walter Pettinari P.S. Can I attach text files or PDFs to my email while sending it to the mailing list? octave-3.2.3:1> pkg install /Users/coccoinomane/Downloads/ octave_packages/general-1.1.3.tar.gz ld: warning: in /Applications/Octave/Octave.app/Contents/Resources/bin/ octave-3.2.3, file is not of required architecture ld: warning: in /Applications/Octave/Octave.app/Contents/Resources/lib/ octave-3.2.3/liboctinterp.dylib, file is not of required architecture ld: warning: in /Applications/Octave/Octave.app/Contents/Resources/lib/ octave-3.2.3/liboctave.dylib, file is not of required architecture ld: warning: in /Applications/Octave/Octave.app/Contents/Resources/lib/ octave-3.2.3/libcruft.dylib, file is not of required architecture ld: warning: in /Applications/Octave/Octave.app/Contents/Resources/lib/ libfftw3.dylib, file is not of required architecture ld: warning: in /Applications/Octave/Octave.app/Contents/Resources/lib/ libfftw3f.dylib, file is not of required architecture ld: warning: in /Applications/Octave/Octave.app/Contents/Resources/lib/ libreadline.dylib, file is not of required architecture ld: warning: in /Applications/Octave/Octave.app/Contents/Resources/lib/ libhdf5.dylib, file is not of required architecture ld: warning: in /Applications/Octave/Octave.app/Contents/Resources/lib/ libz.dylib, file is not of required architecture ld: warning: in /Applications/Octave/Octave.app/Contents/Resources/lib/ gcc-lib/i386-apple-darwin8.11.1/4.0.3/libf95.a, file is not of required architecture ld: warning: in /Applications/Octave/Octave.app/Contents/Resources/lib/ gcc-lib/i386-apple-darwin8.11.1/4.0.3/libgcc.a, file is not of required architecture Undefined symbols: "Array, std::allocator > >::~Array()", referenced from: string_vector::~string_vector()in SHA1.o string_vector::~string_vector()in SHA1.o "Array::~Array()", referenced from: FSHA1(octave_value_list const&, int)in SHA1.o FSHA1(octave_value_list const&, int)in SHA1.o FSHA1(octave_value_list const&, int)in SHA1.o FSHA1(octave_value_list const&, int)in SHA1.o vtable for Arrayin SHA1.o "_error_state", referenced from: _GSHA1 in SHA1.o "usage(char const*, ...)", referenced from: FSHA1(octave_value_list const&, int)in SHA1.o "Array::~Array()", referenced from: MArray::~MArray()in SHA1.o MArray::~MArray()in SHA1.o MArray::~MArray()in SHA1.o "Array::make_unique()", referenced from: Array::elem(int) in SHA1.o "Array::make_unique()", referenced from: Array::elem(int)in SHA1.o "Array::resize_fill(int, octave_value const&)", referenced from: Array::resize(int) in SHA1.o "octave_value::octave_value(RowVector const&)", referenced from: FSHA1(octave_value_list const&, int)in SHA1.o "octave_dld_function::create(octave_value_list (*)(octave_value_list const&, int), octave_shlib const&, std::basic_string, std::allocator > const&, std::basic_string, std::allocator > const&)", referenced from: _GSHA1 in SHA1.o "check_version(std::basic_string, std::allocator > const&, std::basic_string, std::allocator > const&)", referenced from: _GSHA1 in SHA1.o "Array::~Array()", referenced from: vtable for Arrayin SHA1.o "Array::resize_fill_value()", referenced from: Array::resize(int) in SHA1.o "octave_value::vector_value(bool, bool) const", referenced from: FSHA1(octave_value_list const&, int)in SHA1.o FSHA1(octave_value_list const&, int)in SHA1.o "vtable for octave_base_value", referenced from: octave_base_value::octave_base_value()in SHA1.o octave_base_value::~octave_base_value()in SHA1.o "Array::~Array()", referenced from: octave_value_list::octave_value_list()in SHA1.o octave_value_list::~octave_value_list()in SHA1.o octave_value_list::~octave_value_list()in SHA1.o vtable for Arrayin SHA1.o "Array, std::allocator > >::~Array()", referenced from: vtable for Array, std::allocator > >in SHA1.o "error(char const*, ...)", referenced from: FSHA1(octave_value_list const&, int)in SHA1.o "Array, std::allocator > >::~Array()", referenced from: vtable for Array, std::allocator > >in SHA1.o "Array::~Array()", referenced from: vtable for Arrayin SHA1.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [SHA1.oct] Error 1 'make' returned the following error: mkoctfile SHA1.cc error: called from `pkg>configure_make' in file /Applications/Octave/ Octave.app/Contents/Resources/share/octave/3.2.3/m/pkg/pkg.m near line 1253, column 2 error: called from: error: /Applications/Octave/Octave.app/Contents/Resources/share/ octave/3.2.3/m/pkg/pkg.m at line 714, column 5 error: /Applications/Octave/Octave.app/Contents/Resources/share/ octave/3.2.3/m/pkg/pkg.m at line 287, column 7 From sedwards2 at cinci.rr.com Wed Oct 14 11:39:08 2009 From: sedwards2 at cinci.rr.com (Stuart Edwards) Date: Wed, 14 Oct 2009 12:39:08 -0400 Subject: Octave on Mac (Intel): GNUplot problem In-Reply-To: References: <44808e650910140348q4163a019oc4439847c6448c58@mail.gmail.com> <4AD5B72E.8000703@gmx.net> Message-ID: Interesting .... I have the same problem. I have written some octave scripts with the same octave shebang line and when I run it - nothing. If I run the shebang line (minus the #!) from the command line, octave opens. Then if I start the script it runs fine. But I've never been able to start it 'automatically' as originally intended. Mac OSX 10.5 an 10.6.1 Octave 3.2.2 Aquaterm 1.0.1 Gnuplot 4.0 Stu On Oct 14, 2009, at 10:30 AM, Vic Norton wrote: > Hi Thomas, > > I'm running Octave 3.2.3 and Gnuplot 4.2.6 on Mac OSX 10.6.1. These > Octave and Gnuplot live in Octave.app and Gnuplot.app respectively. > > The plotting commands > x=0:0.1:2*pi; > plot(2*sin(x)); > plot3(sin(x), cos(x), x); > work perfectly (via Aquaterm) when I run Octave interactively. > > On the other hand I often use Octave and Gnuplot (separately) via the > shebang lines > #!/usr/local/bin/octave > #!/usr/local/bin/gnuplot > The octave and gnuplot files here are symbolic links to the > corresponding files in the Octave and Gnuplot applications. On my > system calling gnuplot from octave via the shebang line: > #!/usr/local/bin/octave > x=0:0.1:2*pi; > plot(2*sin(x)); > plot3(sin(x), cos(x), x); > produces nothing. What do I need to add to make this octave/gnuplot > combination work? Am I just missing some output file line? > > Regards, > > Vic > > On Oct 14, 2009, at 7:34 AM, Thomas Treichl wrote: > >> Huub van Niekerk schrieb: >>> Hi, >>> >>> I have the latest Octave and GNUplot for Mac installed. Both Octave >>> and >>> GNUplot start fine, but when I call either plot or plot3 (e.g. >>> x=0:0.1:2*pi; plot(2*sin(x)); plot3(sin(x), cos(x), x)) from Octave, >>> there's no plot-window showing up. Any idea what could be wrong? >>> >>> Thank you. >> >> Hi, >> >> I think you are talking about the latest Octave.app and Gnuplot.app >> available >> from Sourceforge? If this is the case then it sounds to me like the >> typical >> problem that sometimes this happens and I don't know why it happens. >> Try to >> start gnuplot this way >> >> GNUTERM=aqua /Applications/Gnuplot.app/Contents/Resources/bin/ >> gnuplot >> >> and try to plot something with the command >> >> plot sin(x)/x >> >> Or, maybe AquaTerm should be enabled in your Gnuplot.app. For this >> please read >> the topic >> >> Do I have to install AquaTerm.app before I install Gnuplot.app? >> >> in the Readme.html file of gnuplot-4.2.6-*.dmg. >> >> Best regards >> >> Thomas >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave From l.butler at ed.ac.uk Wed Oct 14 11:59:44 2009 From: l.butler at ed.ac.uk (Leo Butler) Date: Wed, 14 Oct 2009 17:59:44 +0100 (BST) Subject: Octave on Mac (Intel): GNUplot problem In-Reply-To: References: <44808e650910140348q4163a019oc4439847c6448c58@mail.gmail.com> <4AD5B72E.8000703@gmx.net> Message-ID: On Wed, 14 Oct 2009, Stuart Edwards wrote: < Interesting .... I have the same problem. I have written some octave < scripts with the same octave shebang line and when I run it - < nothing. If I run the shebang line (minus the #!) from the command < line, octave opens. Then if I start the script it runs fine. But < I've never been able to start it 'automatically' as originally intended. < < Mac OSX 10.5 an 10.6.1 < Octave 3.2.2 < Aquaterm 1.0.1 < Gnuplot 4.0 < < Stu < < < On Oct 14, 2009, at 10:30 AM, Vic Norton wrote: < < > Hi Thomas, < > < > I'm running Octave 3.2.3 and Gnuplot 4.2.6 on Mac OSX 10.6.1. These < > Octave and Gnuplot live in Octave.app and Gnuplot.app respectively. < > < > The plotting commands < > x=0:0.1:2*pi; < > plot(2*sin(x)); < > plot3(sin(x), cos(x), x); < > work perfectly (via Aquaterm) when I run Octave interactively. < > < > On the other hand I often use Octave and Gnuplot (separately) via the < > shebang lines < > #!/usr/local/bin/octave < > #!/usr/local/bin/gnuplot < > The octave and gnuplot files here are symbolic links to the < > corresponding files in the Octave and Gnuplot applications. On my < > system calling gnuplot from octave via the shebang line: < > #!/usr/local/bin/octave < > x=0:0.1:2*pi; < > plot(2*sin(x)); < > plot3(sin(x), cos(x), x); < > produces nothing. What do I need to add to make this octave/gnuplot < > combination work? Am I just missing some output file line? When you say 'produces nothing' do you mean that octave starts up and then exits without apparently opening a plot window? What happens when you add print -deps "plot.eps"; to the bottom of your script? Leo -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From tcoffey at m2mimaging.com Wed Oct 14 12:19:44 2009 From: tcoffey at m2mimaging.com (Tom Coffey) Date: Wed, 14 Oct 2009 13:19:44 -0400 Subject: Octave newbie Message-ID: I have a windows machine and recently downloaded Octave. I can run Octave by selecting it from the pulldown menu:"Start->All Programs->Gnu Octave-> Octave". However, The only time I can run Octave from a DOS shell is when I change directories to "C:Program Files\Octave\bin". In my company's path tree it is common to find white space and other undesireable characters like &,#,etc. What do I need to do so that I can run Octave from a DOS shell such that Octave is "looking at" the directory from which I invoked octave? Thanks in advance From Rolf.Schirmacher at MuellerBBM.de Wed Oct 14 12:46:44 2009 From: Rolf.Schirmacher at MuellerBBM.de (Schirmacher, Rolf) Date: Wed, 14 Oct 2009 19:46:44 +0200 Subject: dec2hex with int types Message-ID: <2417729F3416D511A27E0090273A963B029110AC@smex01.mbbm.de> Hello, with octave 3.0.3 on windows, I get the following strange results: octave.exe> hex2dec(dec2hex((1234))) ans = 1234 octave.exe> hex2dec(dec2hex(single(1234))) ans = 1234 octave.exe> hex2dec(dec2hex(double(1234))) ans = 1234 octave.exe> hex2dec(dec2hex(int16(1234))) ans = 1490 octave.exe> hex2dec(dec2hex(uint16(1234))) ans = 1490 octave.exe> hex2dec(dec2hex(int32(1234))) ans = 1490 octave.exe> hex2dec(dec2hex(uint32(1234))) ans = 1490 As you might conclude from octave.exe> dec2hex((1234)) ans = 4D2 octave.exe> dec2hex(uint32(1234)) ans = 5D2 the issue is with dec2hex, not with hex2dec. Thanks in advance for any hint or help. Rolf From sedwards2 at cinci.rr.com Wed Oct 14 13:40:51 2009 From: sedwards2 at cinci.rr.com (Stuart Edwards) Date: Wed, 14 Oct 2009 14:40:51 -0400 Subject: Octave on Mac (Intel): GNUplot problem In-Reply-To: References: <44808e650910140348q4163a019oc4439847c6448c58@mail.gmail.com> <4AD5B72E.8000703@gmx.net> Message-ID: <53934001-E207-4D73-B7DC-7FCB34E8FA3B@cinci.rr.com> Thanks for your response. Here's the first few lines of the script seshaft.m ..... #!/usr/local/bin/octave # A script ...... #blah... #blah... #clear all the current variables clear all #get the name of a new file for this run filename = input("name of new run ","s") Trying to run the script from the directory where it resides .. SEsMacPro:seshaft stu$ ./seshaft.m ./seshaft.m: line 13: syntax error near unexpected token `(' ./seshaft.m: line 13: `filename = input("name of new run ","s")' Checking the path to octave in the shebang line .. SEsMacPro:seshaft stu$ /usr/local/bin/octave GNU Octave, version 3.2.2 etc etc Manually starting the script from within octave .. octave-3.2.2:1> seshaft name of new run testtest filename = testtest So the parts seem to run independently but not together. Adding: print -deps "plot.eps" doesn't seem to have any effect on the script when I run it 'manually'. Thanks for your help. Stu On Oct 14, 2009, at 12:59 PM, Leo Butler wrote: > > > On Wed, 14 Oct 2009, Stuart Edwards wrote: > > < Interesting .... I have the same problem. I have written some > octave > < scripts with the same octave shebang line and when I run it - > < nothing. If I run the shebang line (minus the #!) from the command > < line, octave opens. Then if I start the script it runs fine. But > < I've never been able to start it 'automatically' as originally > intended. > < > < Mac OSX 10.5 an 10.6.1 > < Octave 3.2.2 > < Aquaterm 1.0.1 > < Gnuplot 4.0 > < > < Stu > < > < > < On Oct 14, 2009, at 10:30 AM, Vic Norton wrote: > < > < > Hi Thomas, > < > > < > I'm running Octave 3.2.3 and Gnuplot 4.2.6 on Mac OSX 10.6.1. > These > < > Octave and Gnuplot live in Octave.app and Gnuplot.app > respectively. > < > > < > The plotting commands > < > x=0:0.1:2*pi; > < > plot(2*sin(x)); > < > plot3(sin(x), cos(x), x); > < > work perfectly (via Aquaterm) when I run Octave interactively. > < > > < > On the other hand I often use Octave and Gnuplot (separately) > via the > < > shebang lines > < > #!/usr/local/bin/octave > < > #!/usr/local/bin/gnuplot > < > The octave and gnuplot files here are symbolic links to the > < > corresponding files in the Octave and Gnuplot applications. On my > < > system calling gnuplot from octave via the shebang line: > < > #!/usr/local/bin/octave > < > x=0:0.1:2*pi; > < > plot(2*sin(x)); > < > plot3(sin(x), cos(x), x); > < > produces nothing. What do I need to add to make this octave/ > gnuplot > < > combination work? Am I just missing some output file line? > > When you say 'produces nothing' do you mean that octave starts up and > then exits without apparently opening a plot window? > > What happens when you add > > print -deps "plot.eps"; > > to the bottom of your script? > > Leo > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > From Thomas.Treichl at gmx.net Wed Oct 14 14:34:06 2009 From: Thomas.Treichl at gmx.net (Thomas Treichl) Date: Wed, 14 Oct 2009 21:34:06 +0200 Subject: Octave on Mac (Intel): GNUplot problem In-Reply-To: References: <44808e650910140348q4163a019oc4439847c6448c58@mail.gmail.com> <4AD5B72E.8000703@gmx.net> Message-ID: <4AD627AE.2070707@gmx.net> Vic Norton schrieb: > Hi Thomas, > > I'm running Octave 3.2.3 and Gnuplot 4.2.6 on Mac OSX 10.6.1. These > Octave and Gnuplot live in Octave.app and Gnuplot.app respectively. > > The plotting commands > x=0:0.1:2*pi; > plot(2*sin(x)); > plot3(sin(x), cos(x), x); > work perfectly (via Aquaterm) when I run Octave interactively. > > On the other hand I often use Octave and Gnuplot (separately) via the > shebang lines > #!/usr/local/bin/octave > #!/usr/local/bin/gnuplot > The octave and gnuplot files here are symbolic links to the > corresponding files in the Octave and Gnuplot applications. On my system > calling gnuplot from octave via the shebang line: > #!/usr/local/bin/octave > x=0:0.1:2*pi; > plot(2*sin(x)); > plot3(sin(x), cos(x), x); > produces nothing. What do I need to add to make this octave/gnuplot > combination work? Am I just missing some output file line? > > Regards, > > Vic Hhmmm, I somewhen had a similar problem (I think). Can you please add the command pause (10); at the end of your script and then please try again. Thomas From dieter.jurzitza at t-online.de Wed Oct 14 13:41:23 2009 From: dieter.jurzitza at t-online.de (Dr. Ing. Dieter Jurzitza) Date: Wed, 14 Oct 2009 20:41:23 +0200 Subject: Octave newbie In-Reply-To: References: Message-ID: <200910142041.24130.dieter.jurzitza@t-online.de> Hi Tom, I am quite sure you'll have to configure a path to where you installed your octave binary. So, go to the system settings of your computer and add in the "environment/path" setting an entry at the end of the path-variable PATH=xxxx;C:\Program Files\Octave\bin where xxxx represents your current path setting - please recheck about the ";", I cannot remember for sure what is the path-separator in M$ as I hardly use it. Happy octavin' Dieter Am Mittwoch 14 Oktober 2009 19:19:44 schrieb Tom Coffey: > I have a windows machine and recently downloaded Octave. I can run Octave > by selecting it from the pulldown menu:"Start->All Programs->Gnu Octave-> ***** -- ----------------------------------------------------------- | \ /\_/\ | | ~x~ |/-----\ / \ /- \_/ ^^__ _ / _ ____ / References: <9543b3a40910130657o2cc03b46r8cf77d2d7f36efc0@mail.gmail.com> Message-ID: <20091014201144.GA6459@atlan> On Tue, Oct 13, 2009 at 08:57:58AM -0500, Jordi Guti?rrez Hermoso wrote: > 2009/10/11 John W. Eaton : > > | and must instead rely on specific packagers like Rafael Laboissiere, > > | Thomas Weber, and infrequently myself. > > > > After years doing great work building Octave packages for Debian, > > Rafael is no longer active. ?So it would be really great if some other > > users stepped in and helped. > > Oh dear. I hadn't noticed. Did he officially announce he was stepping > down or did he quietly vanish? http://lists.alioth.debian.org/pipermail/pkg-octave-devel/2009-June/006403.html Thomas From carlo.defalco at gmail.com Wed Oct 14 15:17:45 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Wed, 14 Oct 2009 22:17:45 +0200 Subject: Problems in installing Octave General package In-Reply-To: <1C6AFB94-A6A4-4377-AEDD-0394A8C6A7FD@gmail.com> References: <1C6AFB94-A6A4-4377-AEDD-0394A8C6A7FD@gmail.com> Message-ID: <9300373C-581E-4FED-8B70-6FF70D12482D@gmail.com> On 14 Oct 2009, at 18:32, Guido Walter Pettinari wrote: > Hi, > > this is my first post to this mailing list. I am a PhD student in > Cosmology and I often use Octave. I really appreciate it as a > convenient alternative to Matlab. > > I am performing some intensive number crunching hence I would like to > use both CPUs of my MacBook Pro, which runs Mac Os X 10.6, aka Snow > Leopard. I therefore downloaded the Octave General package from Octave > Forge to make use of the parcellfun function for parallel computing (http://octave.sourceforge.net/general/index.html > ) . > > I tried to install the package with the usual command: > pkg install general-1.1.3.tar.gz > but I got a lot of errors, mainly complains about dynamical libraries > not being of the required architecture (please see the output below). > > As a side note, I installed Octave from the Octave.app project (http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary > ), hence I did not compile it on my machine. > > Thank you for any help! > > Cheers, > > Guido Walter Pettinari > > P.S. Can I attach text files or PDFs to my email while sending it to > the mailing list? Guido, Another user posted recently a link to a procedure that apparently makes mkoctfile work on Snow Leopard, see: http://www.nabble.com/Octave.app-3.2.3-for-Mac-OS-X-10.4.x-and-10.5.x-td25727982.html#a25798474 I only have Os X 10.5 on my machines so I cannot check myself whether it helps, if it does work for you please report back to the list c. From efrios at yahoo.com Wed Oct 14 12:02:33 2009 From: efrios at yahoo.com (Hielos) Date: Wed, 14 Oct 2009 10:02:33 -0700 (PDT) Subject: problem installing Octave 3.2.2 on my desktop (Ubuntu 9.04) In-Reply-To: <69d8d540910132235n79ccf118qae317e8a1378fd8a@mail.gmail.com> References: <1196695894.8292731253213688010.JavaMail.root@mail02.pantherlink.uwm.edu> <882411839.8363241253220167154.JavaMail.root@mail02.pantherlink.uwm.edu> <25877016.post@talk.nabble.com> <69d8d540910132235n79ccf118qae317e8a1378fd8a@mail.gmail.com> Message-ID: <25895104.post@talk.nabble.com> Here it is. Thanks http://www.nabble.com/file/p25895104/config.log config.log Jaroslav Hajek-2 wrote: > > On Tue, Oct 13, 2009 at 7:10 PM, Hielos wrote: >> >> I am having the same problem: (Jaunty 64 bits) >> >> gcc -c ?-I. -I.. -I../liboctave -I../src -I../libcruft/misc >> ?-DHAVE_CONFIG_H >> -Wall -W -Wshadow -Wformat -g -O2 main.c -o main.o >> g++ ?-I. -I.. -I../liboctave -I../src -I../libcruft/misc ?-DHAVE_CONFIG_H >> -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -g >> -O2 >> -rdynamic \ >> ? ? ? ?-L.. ?-fPIC ?-o octave \ >> ? ? ? ?main.o ?\ >> ? ? ? ?-L../liboctave -L../libcruft -L../src -Wl,-rpath >> -Wl,/usr/local/lib/octave-3.2.2 \ >> ? ? ? ?-loctinterp -loctave ?-lcruft ? \ >> ? ? ? ? -lumfpack -lamd -lcamd -lcolamd \ >> ? ? ? ?-lcholmod -lccolamd -lcxsparse -llapack -lcblas -lf77blas -latlas >> \ >> ? ? ? ?-lfftw3 -lfftw3f ?-larpack -lftgl -lfreetype -lz -L/usr/X11R6/lib >> -lGL >> -lGLU \ >> ? ? ? ?-lX11 ?-lreadline ?-lncurses -ldl -lcblas -lf77blas -latlas -lhdf5 >> -lz -lm >> ../libcruft/libcruft.so: undefined reference to `r_imag' >> ../libcruft/libcruft.so: undefined reference to `c_exp' >> ../libcruft/libcruft.so: undefined reference to `i_len' >> ../libcruft/libcruft.so: undefined reference to `d_int' >> ../libcruft/libcruft.so: undefined reference to `c_sqrt' >> ../libcruft/libcruft.so: undefined reference to `e_wsfi' >> ../libcruft/libcruft.so: undefined reference to `d_sign' >> ../libcruft/libcruft.so: undefined reference to `s_wsle' >> ../libcruft/libcruft.so: undefined reference to `r_mod' >> ../libcruft/libcruft.so: undefined reference to `c_div' >> ../libcruft/libcruft.so: undefined reference to `r_cnjg' >> ../libcruft/libcruft.so: undefined reference to `s_copy' >> ../libcruft/libcruft.so: undefined reference to `s_cmp' >> ../src/liboctinterp.so: undefined reference to `s_wsfe' >> ../libcruft/libcruft.so: undefined reference to `do_lio' >> ../libcruft/libcruft.so: undefined reference to `c_log' >> ../libcruft/libcruft.so: undefined reference to `r_int' >> ../libcruft/libcruft.so: undefined reference to `pow_dd' >> ../libcruft/libcruft.so: undefined reference to `i_indx' >> ../libcruft/libcruft.so: undefined reference to `s_wsfi' >> ../libcruft/libcruft.so: undefined reference to `z_abs' >> ../libcruft/libcruft.so: undefined reference to `s_stop' >> ../libcruft/libcruft.so: undefined reference to `r_sign' >> ../libcruft/libcruft.so: undefined reference to `pow_di' >> ../libcruft/libcruft.so: undefined reference to `d_lg10' >> ../libcruft/libcruft.so: undefined reference to `pow_ri' >> ../libcruft/libcruft.so: undefined reference to `e_wsle' >> ../libcruft/libcruft.so: undefined reference to `s_cat' >> ../src/liboctinterp.so: undefined reference to `do_fio' >> ../src/liboctinterp.so: undefined reference to `e_wsfe' >> ../libcruft/libcruft.so: undefined reference to `c_abs' >> ../libcruft/libcruft.so: undefined reference to `d_mod' >> collect2: ld devolvi? el estado de salida 1 >> make[2]: *** [octave] Error 1 >> make[2]: se sale del directorio `/home/edgar/octave-3.2.2/src' >> make[1]: *** [src] Error 2 >> make[1]: se sale del directorio `/home/edgar/octave-3.2.2' >> make: *** [all] Error 2 >> >> > > Likewise, please send your config.log, either via pastebin or compressed. > > regards > > -- > RNDr. Jaroslav Hajek > computing expert & GNU Octave developer > Aeronautical Research and Test Institute (VZLU) > Prague, Czech Republic > url: www.highegg.matfyz.cz > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://www.nabble.com/problem-installing-Octave-3.2.2-on-my-desktop-%28Ubuntu-9.04%29-tp25497238p25895104.html Sent from the Octave - General mailing list archive at Nabble.com. From rdgrdgrdg at verizon.net Wed Oct 14 12:08:08 2009 From: rdgrdgrdg at verizon.net (RickG) Date: Wed, 14 Oct 2009 10:08:08 -0700 (PDT) Subject: mkoctfile and mex broken on Mac 10.6 Snow Leopard (with patch of a sort) Message-ID: <25895204.post@talk.nabble.com> Using octave-3.2.3-i386.dmg mex and mkoctfile got lots of errors caused by architecture mismatches. This is because GCC is defaulting to x86_64 but Octave is built as i386. patch for the time being is to put CFLAGS=?-arch i386 ${CFLAGS}? FFLAGS=?-arch i386 ${FFLAGS}? CPPFLAGS=?-arch i386 ${CPPFLAGS}? CXXFLAGS=?-arch i386 ${CXXFLAGS}? LDFLAGS=?-arch i386 ${LDFLAGS}? just after set -e in mkoctfile-3.2.3 (or whatever version) in /Applications/Octave.app/Contents/Resources/bin/ (it probably really belongs in mkoctfile-orig or something like that so it winds up in the right place during the build process) (TapeDeck 1.2 on SuperMegaUltraGroovy had the basic idea for this fix, but he put it directlly in ..bin/mkoctfile, where it doesn't get executed if you do mex or mkoctfile from within Octave) -- View this message in context: http://www.nabble.com/mkoctfile-and-mex-broken-on-Mac-10.6-Snow-Leopard-%28with-patch-of-a-sort%29-tp25895204p25895204.html Sent from the Octave - General mailing list archive at Nabble.com. From vic at norton.name Wed Oct 14 16:09:05 2009 From: vic at norton.name (Vic Norton) Date: Wed, 14 Oct 2009 17:09:05 -0400 Subject: Octave on Mac (Intel): GNUplot problem In-Reply-To: <4AD627AE.2070707@gmx.net> References: <44808e650910140348q4163a019oc4439847c6448c58@mail.gmail.com> <4AD5B72E.8000703@gmx.net> <4AD627AE.2070707@gmx.net> Message-ID: <4A27C7CF-9B7D-4A8B-8CFB-F2B97C467625@norton.name> That does it, Thomas. Thanks! No need for pause(10); pause(0.01) works fine. Regards, Vic On Oct 14, 2009, at 3:34 PM, Thomas Treichl wrote: > Vic Norton schrieb: >> Hi Thomas, >> I'm running Octave 3.2.3 and Gnuplot 4.2.6 on Mac OSX 10.6.1. These >> Octave and Gnuplot live in Octave.app and Gnuplot.app respectively. >> The plotting commands >> x=0:0.1:2*pi; >> plot(2*sin(x)); >> plot3(sin(x), cos(x), x); >> work perfectly (via Aquaterm) when I run Octave interactively. >> On the other hand I often use Octave and Gnuplot (separately) via >> the shebang lines >> #!/usr/local/bin/octave >> #!/usr/local/bin/gnuplot >> The octave and gnuplot files here are symbolic links to the >> corresponding files in the Octave and Gnuplot applications. On my >> system calling gnuplot from octave via the shebang line: >> #!/usr/local/bin/octave >> x=0:0.1:2*pi; >> plot(2*sin(x)); >> plot3(sin(x), cos(x), x); >> produces nothing. What do I need to add to make this octave/gnuplot >> combination work? Am I just missing some output file line? >> Regards, >> Vic > > Hhmmm, I somewhen had a similar problem (I think). Can you please > add the command > > pause (10); > > at the end of your script and then please try again. > > Thomas From coccoinomane at gmail.com Wed Oct 14 18:57:57 2009 From: coccoinomane at gmail.com (Guido Walter Pettinari) Date: Wed, 14 Oct 2009 23:57:57 +0000 Subject: Problems in installing Octave General package In-Reply-To: <9300373C-581E-4FED-8B70-6FF70D12482D@gmail.com> References: <9300373C-581E-4FED-8B70-6FF70D12482D@gmail.com> Message-ID: Hi Carlo, thank you for your help. I managed to install the package by following the indications found in http://www.supermegaultragroovy.com/blog/2009/09/17/installing-octave-packages-in-snow-leopard/ . The solution is to add the following snippet CFLAGS="-m32 ${CFLAGS}" FFLAGS="-m32 ${FFLAGS}" CPPFLAGS="-m32 ${CPPFLAGS}" CXXFLAGS="-m32 ${CXXFLAGS}" LDFLAGS="-m32 ${LDFLAGS}" in the file Octave.app/Contents/Resources/bin/mkoctfile-3.2.3 just after the "set -e" line. The problem was that in Snow Leopard compilers try always to build in 64bit, while libraries shipped with Octave are 32 bit. The -m32 flag forces the compiler to build 32bit programs. Cheers, Guido On Oct 14, 2009, at 20:17 , Carlo de Falco wrote: > > On 14 Oct 2009, at 18:32, Guido Walter Pettinari wrote: > >> Hi, >> >> this is my first post to this mailing list. I am a PhD student in >> Cosmology and I often use Octave. I really appreciate it as a >> convenient alternative to Matlab. >> >> I am performing some intensive number crunching hence I would like to >> use both CPUs of my MacBook Pro, which runs Mac Os X 10.6, aka Snow >> Leopard. I therefore downloaded the Octave General package from >> Octave >> Forge to make use of the parcellfun function for parallel computing >> (http://octave.sourceforge.net/general/index.html >> ) . >> >> I tried to install the package with the usual command: >> pkg install general-1.1.3.tar.gz >> but I got a lot of errors, mainly complains about dynamical libraries >> not being of the required architecture (please see the output below). >> >> As a side note, I installed Octave from the Octave.app project (http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary >> ), hence I did not compile it on my machine. >> >> Thank you for any help! >> >> Cheers, >> >> Guido Walter Pettinari >> >> P.S. Can I attach text files or PDFs to my email while sending it to >> the mailing list? > > Guido, > Another user posted recently a link to a procedure that apparently > makes > mkoctfile work on Snow Leopard, see: > > http://www.nabble.com/Octave.app-3.2.3-for-Mac-OS-X-10.4.x-and-10.5.x-td25727982.html#a25798474 > > I only have Os X 10.5 on my machines so I cannot check myself whether > it helps, > if it does work for you please report back to the list > > c. > > From tmacchant at yahoo.co.jp Wed Oct 14 18:51:54 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Thu, 15 Oct 2009 08:51:54 +0900 (JST) Subject: Octave newbie In-Reply-To: Message-ID: <20091014235154.39343.qmail@web3815.mail.bbt.yahoo.co.jp> Hello Please clarify the octave version (e.g. 3.2.2) and kind of windows os (XP pro., Vista Home Premium ). Sometimes the above information is quite important. First I would like to say that please do not install octave in the directory name of th full path of which contains (a) (white) space(s), e.g. 'C:\Program Files'. The command of pkg install does not work correct. Strictly speaking, the command prompt on win2000 later is not DOS. It is win32 console (cmd.exe) but not DOS console (command.com). If you would like execute octave from the win32 console (cmd.exe), PATH environment variable should be set properly. If octave.exe exists in C:\Octave\3.2.2_gcc-4.3.0\bin, you should add 'C:\Octave\3.2.2_gcc-4.3.0\bin' to the PATH environment variable. The way for editing PATH environment variable is in the following Environment Variables in Windows XP http://vlaurie.com/computers2/Articles/environment.htm http://support.microsoft.com/kb/310519 It is written for XP but ,for 2000 and VISTA, similar steps can be used. I hope my information is helpful for you. Regards Tatsuro --- Tom Coffey wrote: > I have a windows machine and recently downloaded Octave. I can run Octave by > selecting it from the pulldown menu:"Start->All Programs->Gnu Octave-> > Octave". However, The only time I can run Octave from a DOS shell is when I > change directories to "C:Program Files\Octave\bin". In my company's path > tree it is common to find white space and other undesireable characters like > &,#,etc. > > What do I need to do so that I can run Octave from a DOS shell such that > Octave is "looking at" the directory from which I invoked octave? > > Thanks in advance > > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From tmacchant at yahoo.co.jp Wed Oct 14 20:29:48 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Thu, 15 Oct 2009 10:29:48 +0900 (JST) Subject: cannot plot via gnuplot (4.2.6) from octave 3.2.3 (on Mac OS 10.6) In-Reply-To: <46804480910140722x55d966e1w4ab4e1184141a1fb@mail.gmail.com> Message-ID: <20091015012948.36678.qmail@web3802.mail.bbt.yahoo.co.jp> Hello --- Bob Q wrote: > I don't actually have a ~/.octaverc. Can I just make one a put the above > gnuplot_binary(...) command in straight? If '/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot' on bash can start gnuplot, the above you wrote is right. Good luck! Tatsuro -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From huubvanniekerk at gmail.com Thu Oct 15 07:37:57 2009 From: huubvanniekerk at gmail.com (Huub van Niekerk) Date: Thu, 15 Oct 2009 14:37:57 +0200 Subject: constant in 3d plot? Message-ID: <44808e650910150537g4ab92456q611831f956b18ecc@mail.gmail.com> Hi, I'm trying to plot this: plot3(sin(x),3,cos(x)) and get the message that x, y and z must have the same shape. How can I solve this? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091015/21705dfa/attachment.html From highegg at gmail.com Thu Oct 15 07:47:38 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Thu, 15 Oct 2009 14:47:38 +0200 Subject: constant in 3d plot? In-Reply-To: <44808e650910150537g4ab92456q611831f956b18ecc@mail.gmail.com> References: <44808e650910150537g4ab92456q611831f956b18ecc@mail.gmail.com> Message-ID: <69d8d540910150547u76a494e5k628d9ae28fc43828@mail.gmail.com> On Thu, Oct 15, 2009 at 2:37 PM, Huub van Niekerk wrote: > Hi, > > I'm trying to plot this: plot3(sin(x),3,cos(x)) and get the message that x, > y and z must have the same shape. How can I solve this? > > Thanks. > use `repmat (3, size (x))' hth -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From babelproofreader at gmail.com Thu Oct 15 08:40:53 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Thu, 15 Oct 2009 06:40:53 -0700 (PDT) Subject: How do you pass two Octave functions to an .oct function? In-Reply-To: <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> References: <25870717.post@talk.nabble.com> <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> Message-ID: <25908820.post@talk.nabble.com> >Please be more specific and show some code if possible... My code so far is #include #include #include DEFUN_DLD (rollingfft, args, , "Help String") { octave_value_list retval; octave_value_list fft_result_vector; octave_value_list ifft_result_vector; octave_value_list real_result_vector; octave_function *fcn1 = args(0).function_value (); // supply Octave "fft" function octave_function *fcn2 = args(1).function_value (); // supply Octave "ifft" function octave_function *fcn3 = args(2).function_value (); // supply Octave "real" function ColumnVector input_vector = args(3).column_vector_value (); ColumnVector output_vector = args(3).column_vector_value (); OCTAVE_LOCAL_BUFFER( double , rolling_vector , 32 ); for (octave_idx_type ii (31); ii mkoctfile rollingfft.cc rollingfft.cc: In function ?octave_value_list Frollingfft(const octave_value_list&, int)?: rollingfft.cc:27: error: call of overloaded ?feval(octave_function*&, double*&)? is ambiguous /usr/include/octave-3.0.1/octave/parse.h:123: note: candidates are: octave_value_list feval(octave_function*, const octave_value_list&, int) /usr/include/octave-3.0.1/octave/parse.h:126: note: octave_value_list feval(const octave_value_list&, int) rollingfft.cc:36: error: cannot convert ?octave_value? to ?double? in assignment rollingfft.cc:40: error: no match for ?operator=? in ?retval = output_vector? /usr/include/octave-3.0.1/octave/oct-obj.h:75: note: candidates are: octave_value_list& octave_value_list::operator=(const octave_value_list&) What I am attempting to do is to smooth a time series by moving a window across the series, and using fft to lowpass filter in the frequency domain. -- View this message in context: http://www.nabble.com/How-do-you-pass-two-Octave-functions-to-an-.oct-function--tp25870717p25908820.html Sent from the Octave - General mailing list archive at Nabble.com. From A.M.Zainal-Abidin at lboro.ac.uk Thu Oct 15 08:41:43 2009 From: A.M.Zainal-Abidin at lboro.ac.uk (A.M.Zainal-Abidin at lboro.ac.uk) Date: Thu, 15 Oct 2009 14:41:43 +0100 Subject: If statement Message-ID: Hello, I am trying to create a stem plot for integers ranging from 75 to 81. I tried using the if statements so that if the integer is equal or larger than 80, the assigned figure is 1 and if the figure is below or equal to 75, then the assigned figure is zero. The rest in between will be assigned 0.75 (or some arbitrary figure). the script is as below. %Mould risk for wall 1 w1=linspace(0,1,length((weeklyaverage1)); for i=1:length((weeklyaverage1)); if (weeklyaverage1>=80) w1(i)=1; elseif (weeklyaverage1<=75) w1(i)=0; else w1(i)=0.75; endif end figure(); clf; stem(w1); However, the stem plot shows that all the figures assigned at 0.75, meaning all the figures that I have are between 76 and 79. Is my script at fault here? I have tried using switch statement but the stem plot still shows the same pattern. Thank you. Murad From shermanj at umd.edu Thu Oct 15 09:09:00 2009 From: shermanj at umd.edu (James Sherman Jr.) Date: Thu, 15 Oct 2009 10:09:00 -0400 Subject: If statement In-Reply-To: References: Message-ID: <6800c3890910150709g7e0643b8kc8e2190d5d0879f8@mail.gmail.com> I think that your if/elseif statements should be testing weeklyaverage1(i) not weeklyaverage1. Though you can actually do this without the for loop at all by doing something similar to what you (possibly mistakenly) are doing now. w1 = 0.75; w1(weeklyaverage1>=80) = 1; w1(weeklyaverage1<=75) = 0; I think would do what you are looking to do without the need for the for loop. On Thu, Oct 15, 2009 at 9:41 AM, wrote: > > Hello, > > I am trying to create a stem plot for integers ranging > from 75 to 81. I tried using the if statements so that if > the integer is equal or larger than 80, the assigned > figure is 1 and if the figure is below or equal to 75, > then the assigned figure is zero. The rest in between will > be assigned 0.75 (or some arbitrary figure). the script is > as below. > > %Mould risk for wall 1 > w1=linspace(0,1,length((weeklyaverage1)); > for i=1:length((weeklyaverage1)); > if (weeklyaverage1>=80) w1(i)=1; > elseif (weeklyaverage1<=75) w1(i)=0; > else w1(i)=0.75; > endif > end > figure(); > clf; > stem(w1); > > However, the stem plot shows that all the figures assigned > at 0.75, meaning all the figures that I have are between > 76 and 79. Is my script at fault here? I have tried using > switch statement but the stem plot still shows the same > pattern. > > Thank you. > > Murad > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091015/4b90009e/attachment-0001.html From soren at hauberg.org Thu Oct 15 09:14:21 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Thu, 15 Oct 2009 16:14:21 +0200 Subject: If statement In-Reply-To: <6800c3890910150709g7e0643b8kc8e2190d5d0879f8@mail.gmail.com> References: <6800c3890910150709g7e0643b8kc8e2190d5d0879f8@mail.gmail.com> Message-ID: <1255616061.4552.2.camel@sh-t400> tor, 15 10 2009 kl. 10:09 -0400, skrev James Sherman Jr.: > I think that your if/elseif statements should be testing > weeklyaverage1(i) not weeklyaverage1. Though you can actually do this > without the for loop at all by doing something similar to what you > (possibly mistakenly) are doing now. > > w1 = 0.75; > w1(weeklyaverage1>=80) = 1; > w1(weeklyaverage1<=75) = 0; You should initialise 'w1' to a vector with the same size as 'weeklyaverage1', i.e. w1 = repmat (0.75, size (weeklyaverage1)); w1 (weeklyaverage1 >= 80) = 1; w1 (weeklyaverage1 <= 75) = 0; S?ren From Oisin.OCuanachain at lsi.com Thu Oct 15 09:27:27 2009 From: Oisin.OCuanachain at lsi.com (OCuanachain, Oisin (Oisin)) Date: Thu, 15 Oct 2009 15:27:27 +0100 Subject: Debugging Message-ID: Hi, I am in the process of porting a large Matlab code base to Octave. I thought the debugging functions would help resolve any syntax incompatabilities but they seem to be less useful than I had hoped. Basically I'm looking for the same functionality as the: dbstop dbstep dbquit functions in Matlab. dbstop seems to work in Octave, however there is no dbstep. The doc for dbstop says *See also:* dbclear, dbstatus, dbnext. however doc dbnext returns no result. The following link: http://wiki.octave.org/wiki.pl?action=browse&diff=1&id=MatlabOctaveCompatibility suggests that dbnext does in fact exist and is the equivalent of dbstep in Matlab however there is no mention of dbnext in the function reference: http://octave.sourceforge.net/doc/D.html#D Anyway trying dbnext it does indeed seem to work as dbstep however when I try to view the state of my variables after stopping at a breakpoint (via whos -variables) the output shows only __nargin__: *** local user variables: Prot Name Size Bytes Class ==== ==== ==== ===== ===== rw- __nargin__ 1x1 8 double Total is 1 element using 8 bytes So, my questions are: 1. Is http://octave.sourceforge.net/doc/D.html#D the most up to date funtion reference ? If so, why no mention of dbnext ? Someone would hardly go to the trouble of writing this fuction but then not document it ? 2. Should I be able to see all the variables in the current funtion when I stop at a breakpoint ? If not, then what is the point of breakpoints ? For reference I am running release: GNU Octave, version 3.0.5, on Red Hat Linux. Thanks, Usjes. -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091015/dc642c1b/attachment.html From jeffsteward at gmail.com Thu Oct 15 11:22:41 2009 From: jeffsteward at gmail.com (Jeff Steward) Date: Thu, 15 Oct 2009 12:22:41 -0400 Subject: Plot labels cut-off in AquaTerm Message-ID: <7190cab60910150922k236721d0j561ba0887aa80de8@mail.gmail.com> I am having a problem with AquaTerm on Mac OS X 10.6 Snow Leopard. When I create any plot, the xlabel and title are cutoff. You can see the bottom 1/4 of the label but the xlabel is totally out of the border. No amount of resizing seems to work. I am using Octave 3.2.3 and AquaTerm 1.0.1_5 installed by macports. My gnuplot is version 4.2 patchlevel 5. -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091015/61779b7b/attachment.html From lindnerben at gmx.net Thu Oct 15 11:40:35 2009 From: lindnerben at gmx.net (Benjamin Lindner) Date: Thu, 15 Oct 2009 18:40:35 +0200 Subject: package installation Octave In-Reply-To: References: Message-ID: <4AD75083.60408@gmx.net> Erik Brezet wrote: > Hi, > I can't seem to get any packages (tar.gz) installed on Octave in > windows. Packages like: RODBC, xlsreadwrite, ga .. > Octave gives: error COPYING file missing or other errors. > I've got the mingw32 installer for windows. > > Help? Well, not all available forge packages can be successfully built for the mingw32 build. Please provide some more information. Which version of octave do you have installed? Which version of the package do you try to install? Can you post the commands you executed and octave's error response? With the 3.2.2 mingw32 installer I can for example install ga-0.9.7 without errors. benjamin From efrios at yahoo.com Thu Oct 15 15:01:36 2009 From: efrios at yahoo.com (Hielos) Date: Thu, 15 Oct 2009 13:01:36 -0700 (PDT) Subject: problem installing Octave 3.2.2 on my desktop (Ubuntu 9.04) In-Reply-To: <4AD5826D.7010800@acin.tuwien.ac.at> References: <1196695894.8292731253213688010.JavaMail.root@mail02.pantherlink.uwm.edu> <4AD5826D.7010800@acin.tuwien.ac.at> Message-ID: <25915093.post@talk.nabble.com> Ignorant here: When trying to follow the post http://wiki.octave.org/wiki.pl?EnableLargeArrays, I thought that I should do the following: (1) decompress octave-3.2.3.tar.bz2 (2) cd octave-3.2.3 (go to directory octave 3.2.3) Then without really knowing what I was doing, I looked for the 'make.inc' file in that directory: (3) ls make* Since there was no such a file, I ran the configure instruction using gfortran: (4) ./configure --with-f77=gfortran Then I ran the line (in substitution of 'make.inc') (5) make FORTRAN=gfortran OPTS="-fPIC -O3 -fdefault-integer-8" BLASLIB=libblas.a After a while, I got the same error about libcruft: ../libcruft/libcruft.so: undefined reference to `r_imag' [many more lines like that] ../libcruft/libcruft.so: undefined reference to `d_mod' Could you please instruct me on which is the right way to do it, please? What did I do wrong? Thanks. Thomas Meurer-2 wrote: > > I followed the instructions on the site > > http://wiki.octave.org/wiki.pl?EnableLargeArrays > > to compile Octave from source on Ubuntu Jaunty. It worked perfectly fine > for me including the large array option. > > Thomas > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://www.nabble.com/problem-installing-Octave-3.2.2-on-my-desktop-%28Ubuntu-9.04%29-tp25497238p25915093.html Sent from the Octave - General mailing list archive at Nabble.com. From storrsjm at email.uc.edu Thu Oct 15 15:34:11 2009 From: storrsjm at email.uc.edu (Judd Storrs) Date: Thu, 15 Oct 2009 16:34:11 -0400 Subject: problem installing Octave 3.2.2 on my desktop (Ubuntu 9.04) In-Reply-To: <25915093.post@talk.nabble.com> References: <1196695894.8292731253213688010.JavaMail.root@mail02.pantherlink.uwm.edu> <4AD5826D.7010800@acin.tuwien.ac.at> <25915093.post@talk.nabble.com> Message-ID: There's a lot going on here. Have you successfully built octave without large arrays first? --judd On Thu, Oct 15, 2009 at 4:01 PM, Hielos wrote: > > Ignorant here: > > When trying to follow the post > http://wiki.octave.org/wiki.pl?EnableLargeArrays, I thought that I should > do > the following: > (1) decompress octave-3.2.3.tar.bz2 > (2) cd octave-3.2.3 (go to directory octave 3.2.3) > > Then without really knowing what I was doing, I looked for the 'make.inc' > file in that directory: > (3) ls make* > > Since there was no such a file, I ran the configure instruction using > gfortran: > (4) ./configure --with-f77=gfortran > > Then I ran the line (in substitution of 'make.inc') > (5) make FORTRAN=gfortran OPTS="-fPIC -O3 -fdefault-integer-8" > BLASLIB=libblas.a > > After a while, I got the same error about libcruft: > ../libcruft/libcruft.so: undefined reference to `r_imag' > [many more lines like that] > ../libcruft/libcruft.so: undefined reference to `d_mod' > > Could you please instruct me on which is the right way to do it, please? > What did I do wrong? Thanks. > > > Thomas Meurer-2 wrote: > > > > I followed the instructions on the site > > > > http://wiki.octave.org/wiki.pl?EnableLargeArrays > > > > to compile Octave from source on Ubuntu Jaunty. It worked perfectly fine > > for me including the large array option. > > > > Thomas > > > > > > _______________________________________________ > > Help-octave mailing list > > Help-octave at octave.org > > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > > > > > -- > View this message in context: > http://www.nabble.com/problem-installing-Octave-3.2.2-on-my-desktop-%28Ubuntu-9.04%29-tp25497238p25915093.html > Sent from the Octave - General mailing list archive at Nabble.com. > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091015/6c76e270/attachment.html From storrsjm at email.uc.edu Thu Oct 15 15:40:38 2009 From: storrsjm at email.uc.edu (Judd Storrs) Date: Thu, 15 Oct 2009 16:40:38 -0400 Subject: problem installing Octave 3.2.2 on my desktop (Ubuntu 9.04) In-Reply-To: References: <1196695894.8292731253213688010.JavaMail.root@mail02.pantherlink.uwm.edu> <4AD5826D.7010800@acin.tuwien.ac.at> <25915093.post@talk.nabble.com> Message-ID: If you haven't compiled octave without large arrays, this may help: http://www.nabble.com/Re%3A-Octave-3.2.2-for-Ubuntu9.04----How-to-compile-from-sources-p25525152.html A few corrections followed: leave out: libhdf5-lam-dev libhdf5-mpich-dev add: libftgl-dev libfltk-dev http://www.nabble.com/Re%3A-Octave-3.2.2-for-Ubuntu9.04----How-to-compile-from-sources-p25538464.html --judd On Thu, Oct 15, 2009 at 4:34 PM, Judd Storrs wrote: > There's a lot going on here. Have you successfully built octave without > large arrays first? > > --judd > > > > > On Thu, Oct 15, 2009 at 4:01 PM, Hielos wrote: > >> >> Ignorant here: >> >> When trying to follow the post >> http://wiki.octave.org/wiki.pl?EnableLargeArrays, I thought that I should >> do >> the following: >> (1) decompress octave-3.2.3.tar.bz2 >> (2) cd octave-3.2.3 (go to directory octave 3.2.3) >> >> Then without really knowing what I was doing, I looked for the 'make.inc' >> file in that directory: >> (3) ls make* >> >> Since there was no such a file, I ran the configure instruction using >> gfortran: >> (4) ./configure --with-f77=gfortran >> >> Then I ran the line (in substitution of 'make.inc') >> (5) make FORTRAN=gfortran OPTS="-fPIC -O3 -fdefault-integer-8" >> BLASLIB=libblas.a >> >> After a while, I got the same error about libcruft: >> ../libcruft/libcruft.so: undefined reference to `r_imag' >> [many more lines like that] >> ../libcruft/libcruft.so: undefined reference to `d_mod' >> >> Could you please instruct me on which is the right way to do it, please? >> What did I do wrong? Thanks. >> >> >> Thomas Meurer-2 wrote: >> > >> > I followed the instructions on the site >> > >> > http://wiki.octave.org/wiki.pl?EnableLargeArrays >> > >> > to compile Octave from source on Ubuntu Jaunty. It worked perfectly fine >> > for me including the large array option. >> > >> > Thomas >> > >> > >> > _______________________________________________ >> > Help-octave mailing list >> > Help-octave at octave.org >> > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/problem-installing-Octave-3.2.2-on-my-desktop-%28Ubuntu-9.04%29-tp25497238p25915093.html >> Sent from the Octave - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091015/0736f82b/attachment.html From kkrizka at gmail.com Thu Oct 15 17:33:53 2009 From: kkrizka at gmail.com (Karol Krizka) Date: Thu, 15 Oct 2009 15:33:53 -0700 Subject: Silent plot(x,y) Message-ID: Hi there, I'm wondering if it is possible to plot a graph without displaying anything to the file. Basically, I'm trying to do an animated graph by plotting them step by step (suggested here: http://www.nabble.com/Displaying-an-animation---%22movie%22-td4199665.html ) and saving each graph as a file. In summary, I have the following script: x=[0:1]; for i=[0:1000] plot(x,x*i); filename=sprintf("%02d.png",i); print(filename); end The problem is that plot command displays the graph to the screen, and I think that it might be slowing (I show more than than 1000 frames..) down my script. Is there a way to suppress/silent the plot() command? I'm using octave 3.0.5 from the Ubuntu Karmic repositories. After some googling, I found the following suggestion: gset term postscript eps color gset output "name.eps" But: octave:1> gset term postscript eps color parse error: syntax error >>> gset term postscript eps color ^ octave:1> gset output "name.eps" parse error: syntax error >>> gset output "name.eps" ^ Any suggestions? Am I missing some package? -- Cheers, Karol Krizka From bpabbott at mac.com Thu Oct 15 18:42:49 2009 From: bpabbott at mac.com (Ben Abbott) Date: Thu, 15 Oct 2009 19:42:49 -0400 Subject: Plot labels cut-off in AquaTerm In-Reply-To: <7190cab60910150922k236721d0j561ba0887aa80de8@mail.gmail.com> References: <7190cab60910150922k236721d0j561ba0887aa80de8@mail.gmail.com> Message-ID: <0F0CF537-B689-4C8D-95D5-44ED6A5A4A9E@mac.com> On Oct 15, 2009, at 12:22 PM, Jeff Steward wrote: > I am having a problem with AquaTerm on Mac OS X 10.6 Snow Leopard. > When I create any plot, the xlabel and title are cutoff. You can > see the bottom 1/4 of the label but the xlabel is totally out of the > border. No amount of resizing seems to work. > > I am using Octave 3.2.3 and AquaTerm 1.0.1_5 installed by macports. > My gnuplot is version 4.2 patchlevel 5. By default, Octave uses gnuplot for plotting. Unfortunately, gnuplot's terminals do not place text labels consistently. In my experience, the aqua terminal is the looser than most. The result is that if text is placed appropriately for the x11 terminal, some text will be clipped or not even visible for the aqua terminal. Octave development is working toward introducing a new backend which will resolve this problem. In the meantime, you might try using the x11 terminal. To do that type ... setenv ("GNUTERM", "x11") close all ... and try plotting again. Ben From tmacchant at yahoo.co.jp Thu Oct 15 19:32:30 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Fri, 16 Oct 2009 09:32:30 +0900 (JST) Subject: Silent plot(x,y) (3.2 or later bug?) In-Reply-To: Message-ID: <20091016003230.77746.qmail@web3812.mail.bbt.yahoo.co.jp> Hello Please try x=[0:1]; for i=[0:100] plot(x,x*i); filename=sprintf("%02d.png",i); drawnow('png',filename); end The above works on octave 3.0.5 (mingw). However, it does not work on octave 3.2.2 (mingw), 3.3.50+ (mingw) and octave 3.2.3(cygwin) error: get: unknown property "__pixels_per_inch__" error: called from: error: C:\Programs\Octave\3.2.2_gcc-4.3.0\share\octave\3.2.2\m\plot\gnuplot_drawnow.m at line 190, column 14 error: C:\Programs\Octave\3.2.2_gcc-4.3.0\share\octave\3.2.2\m\plot\gnuplot_drawnow.m at line 74, column 7 The error message is for octave 3.2.2 (mingw) but that for octave 3.2.3 on cygwin is almost the same. Regards Tatsuro --- Karol Krizka wrote: > Hi there, > > I'm wondering if it is possible to plot a graph without displaying > anything to the file. Basically, I'm trying to do an animated graph by > plotting them step by step (suggested here: > http://www.nabble.com/Displaying-an-animation---%22movie%22-td4199665.html > ) and saving each graph as a file. > > In summary, I have the following script: > x=[0:1]; > for i=[0:1000] > plot(x,x*i); > filename=sprintf("%02d.png",i); > print(filename); > end > > The problem is that plot command displays the graph to the screen, and > I think that it might be slowing (I show more than than 1000 frames..) > down my script. Is there a way to suppress/silent the plot() command? > > I'm using octave 3.0.5 from the Ubuntu Karmic repositories. > > After some googling, I found the following suggestion: > gset term postscript eps color > gset output "name.eps" > > But: > octave:1> gset term postscript eps color > parse error: > > syntax error > > >>> gset term postscript eps color > ^ > > octave:1> gset output "name.eps" > parse error: > > syntax error > > >>> gset output "name.eps" > ^ > Any suggestions? Am I missing some package? > -- > Cheers, > Karol Krizka > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From kkrizka at gmail.com Thu Oct 15 19:59:40 2009 From: kkrizka at gmail.com (Karol Krizka) Date: Thu, 15 Oct 2009 17:59:40 -0700 Subject: Silent plot(x,y) (3.2 or later bug?) In-Reply-To: <20091016003230.77746.qmail@web3812.mail.bbt.yahoo.co.jp> References: <20091016003230.77746.qmail@web3812.mail.bbt.yahoo.co.jp> Message-ID: 2009/10/15 Tatsuro MATSUOKA : > Hello > > Please try > > x=[0:1]; > for i=[0:100] > ?plot(x,x*i); > ?filename=sprintf("%02d.png",i); > ?drawnow('png',filename); > end > > The above works on octave 3.0.5 (mingw). > Thanks, that works! > However, it does not work on octave 3.2.2 (mingw), 3.3.50+ (mingw) and octave 3.2.3(cygwin) > error: get: unknown property "__pixels_per_inch__" > error: called from: > error: ? C:\Programs\Octave\3.2.2_gcc-4.3.0\share\octave\3.2.2\m\plot\gnuplot_drawnow.m at line 190, > column 14 > error: ? C:\Programs\Octave\3.2.2_gcc-4.3.0\share\octave\3.2.2\m\plot\gnuplot_drawnow.m at line 74, > column 7 > > The error message is for octave 3.2.2 (mingw) but that for octave 3.2.3 on cygwin is almost the same. > I also have octave 3.2 installed on a different Ubuntu computer, and I get the same error. error: get: unknown property "__pixels_per_inch__" error: called from: error: /usr/share/octave/3.2.2/m/plot/gnuplot_drawnow.m at line 190, column 14 error: /usr/share/octave/3.2.2/m/plot/gnuplot_drawnow.m at line 74, column 7 error: test.m at line 5, column 2 -- Cheers, Karol Krizka http://www.krizka.net > Regards > > Tatsuro > > --- Karol Krizka wrote: > >> Hi there, >> >> I'm wondering if it is possible to plot a graph without displaying >> anything to the file. Basically, I'm trying to do an animated graph by >> plotting them step by step (suggested here: >> http://www.nabble.com/Displaying-an-animation---%22movie%22-td4199665.html >> ) and saving each graph as a file. >> >> In summary, I have the following script: >> x=[0:1]; >> for i=[0:1000] >> ?plot(x,x*i); >> ?filename=sprintf("%02d.png",i); >> ?print(filename); >> end >> >> The problem is that plot command displays the graph to the screen, and >> I think that it might be slowing (I show more than than 1000 frames..) >> down my script. Is there a way to suppress/silent the plot() command? >> >> I'm using octave 3.0.5 from the Ubuntu Karmic repositories. >> >> After some googling, I found the following suggestion: >> gset term postscript eps color >> gset output "name.eps" >> >> But: >> octave:1> gset term postscript eps color >> parse error: >> >> ? syntax error >> >> >>> gset term postscript eps color >> ? ? ? ? ? ? ?^ >> >> octave:1> gset output "name.eps" >> parse error: >> >> ? syntax error >> >> >>> gset output "name.eps" >> ? ? ? ? ? ? ? ?^ >> Any suggestions? Am I missing some package? >> -- >> Cheers, >> Karol Krizka >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> > > > -------------------------------------- > GyaO! - Anime, Dramas, Movies, and Music videos [FREE] > http://pr.mail.yahoo.co.jp/gyao/ > From meurer at acin.tuwien.ac.at Fri Oct 16 00:35:04 2009 From: meurer at acin.tuwien.ac.at (Thomas Meurer) Date: Fri, 16 Oct 2009 07:35:04 +0200 Subject: Help-octave Digest, Vol 43, Issue 35 In-Reply-To: References: Message-ID: <4AD80608.2010700@acin.tuwien.ac.at> I cannot remember if I had the same error. However, I did a manual installation of libqrupdate-dev_1.0.1-1 and libqrupdate1_1.0.1-1 using the debian packages since the libraries are so far only available in karmic but not in jaunty. Thomas > Message: 1 > Date: Thu, 15 Oct 2009 13:01:36 -0700 (PDT) > From: Hielos > Subject: Re: problem installing Octave 3.2.2 on my desktop (Ubuntu > 9.04) > To: help-octave at octave.org > Message-ID: <25915093.post at talk.nabble.com> > Content-Type: text/plain; charset=us-ascii > > > Ignorant here: > > When trying to follow the post > http://wiki.octave.org/wiki.pl?EnableLargeArrays, I thought that I should do > the following: > (1) decompress octave-3.2.3.tar.bz2 > (2) cd octave-3.2.3 (go to directory octave 3.2.3) > > Then without really knowing what I was doing, I looked for the 'make.inc' > file in that directory: > (3) ls make* > > Since there was no such a file, I ran the configure instruction using > gfortran: > (4) ./configure --with-f77=gfortran > > Then I ran the line (in substitution of 'make.inc') > (5) make FORTRAN=gfortran OPTS="-fPIC -O3 -fdefault-integer-8" > BLASLIB=libblas.a > > After a while, I got the same error about libcruft: > ../libcruft/libcruft.so: undefined reference to `r_imag' > [many more lines like that] > ../libcruft/libcruft.so: undefined reference to `d_mod' > > Could you please instruct me on which is the right way to do it, please? > What did I do wrong? Thanks. > > > Thomas Meurer-2 wrote: >> I followed the instructions on the site >> >> http://wiki.octave.org/wiki.pl?EnableLargeArrays >> >> to compile Octave from source on Ubuntu Jaunty. It worked perfectly fine >> for me including the large array option. >> >> Thomas >> >> >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> >> > From highegg at gmail.com Fri Oct 16 00:53:36 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Fri, 16 Oct 2009 07:53:36 +0200 Subject: How do you pass two Octave functions to an .oct function? In-Reply-To: <25908820.post@talk.nabble.com> References: <25870717.post@talk.nabble.com> <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> <25908820.post@talk.nabble.com> Message-ID: <69d8d540910152253m3c7c8f81p8109e9806dd97f21@mail.gmail.com> On Thu, Oct 15, 2009 at 3:40 PM, babelproofreader wrote: > >>Please be more specific and show some code if possible... > > My code so far is > > #include > #include > #include > > DEFUN_DLD (rollingfft, args, , "Help String") > { > octave_value_list retval; > octave_value_list fft_result_vector; > octave_value_list ifft_result_vector; > octave_value_list real_result_vector; > > ?octave_function *fcn1 = args(0).function_value (); // supply Octave "fft" > function > ?octave_function *fcn2 = args(1).function_value (); // supply Octave "ifft" > function > ?octave_function *fcn3 = args(2).function_value (); // supply Octave "real" > function > ?ColumnVector input_vector = args(3).column_vector_value (); > ?ColumnVector output_vector = args(3).column_vector_value (); > ?OCTAVE_LOCAL_BUFFER( double , rolling_vector , 32 ); > > ? for (octave_idx_type ii (31); ii ? ? { > ? ? ? for (octave_idx_type jj (0); jj<(32); jj++) > ? ? ? ? { > ? ? ? ? rolling_vector(jj) = input_vector(ii - (ii - jj)); > ? ? ? ? } > ? ? ? ? ? // detrend rolling vector code here > > ? ? ? ? ? fft_result_vector = feval( fcn1 , rolling_vector ); > > ? ? ? ? ? // fft_result_vector frequency filter code here > > ? ? ? ? ? ifft_result_vector = feval( fcn2 , fft_result_vector ); > ? ? ? ? ? real_result_vector = feval( fcn3 , ifft_result_vector ); > > ? ? ? ? ? // real_result_vector retrend code here > > ? ? ? ? ? output_vector(ii) = real_result_vector(31); > ? ? } > > > ?retval = output_vector; > > return retval; > } > > but it fails on compile with > > octave:1> mkoctfile rollingfft.cc > rollingfft.cc: In function ?octave_value_list Frollingfft(const > octave_value_list&, int)?: > rollingfft.cc:27: error: call of overloaded ?feval(octave_function*&, > double*&)? is ambiguous > /usr/include/octave-3.0.1/octave/parse.h:123: note: candidates are: > octave_value_list feval(octave_function*, const octave_value_list&, int) > > /usr/include/octave-3.0.1/octave/parse.h:126: note: > octave_value_list feval(const octave_value_list&, int) > rollingfft.cc:36: error: cannot convert ?octave_value? to ?double? in > assignment > rollingfft.cc:40: error: no match for ?operator=? in ?retval = > output_vector? > /usr/include/octave-3.0.1/octave/oct-obj.h:75: note: candidates are: > octave_value_list& octave_value_list::operator=(const octave_value_list&) > I'd think these messages are pretty understandable. You simply can't pass a raw double * pointer (the local buffer) to feval, because it can't handle it. You need to create a valid octave_value from it. Declare rolling_vector as ColumnVector and it will likely work. > What I am attempting to do is to smooth a time series by moving a window > across the series, and using fft to lowpass filter in the frequency domain. Have you tried to do this in m-code first? Maybe it could be made fast enough. Especially if you upgrade Octave (3.0.1 is ancient). hth -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From carlo.defalco at gmail.com Fri Oct 16 05:30:08 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Fri, 16 Oct 2009 12:30:08 +0200 Subject: Silent plot(x,y) (3.2 or later bug?) In-Reply-To: References: <20091016003230.77746.qmail@web3812.mail.bbt.yahoo.co.jp> Message-ID: <55301540-1C87-4551-B356-1B896A9C1B33@gmail.com> On 16 Oct 2009, at 02:59, Karol Krizka wrote: > 2009/10/15 Tatsuro MATSUOKA : >> Hello >> >> Please try >> >> x=[0:1]; >> for i=[0:100] >> plot(x,x*i); >> filename=sprintf("%02d.png",i); >> drawnow('png',filename); >> end >> >> The above works on octave 3.0.5 (mingw). >> > Thanks, that works! > >> However, it does not work on octave 3.2.2 (mingw), 3.3.50+ (mingw) >> and octave 3.2.3(cygwin) >> error: get: unknown property "__pixels_per_inch__" >> error: called from: >> error: C:\Programs\Octave\3.2.2_gcc-4.3.0\share\octave\3.2.2\m >> \plot\gnuplot_drawnow.m at line 190, >> column 14 >> error: C:\Programs\Octave\3.2.2_gcc-4.3.0\share\octave\3.2.2\m >> \plot\gnuplot_drawnow.m at line 74, >> column 7 >> >> The error message is for octave 3.2.2 (mingw) but that for octave >> 3.2.3 on cygwin is almost the same. >> > I also have octave 3.2 installed on a different Ubuntu computer, and I > get the same error. > error: get: unknown property "__pixels_per_inch__" > error: called from: > error: /usr/share/octave/3.2.2/m/plot/gnuplot_drawnow.m at line > 190, column 14 > error: /usr/share/octave/3.2.2/m/plot/gnuplot_drawnow.m at line > 74, column 7 > error: test.m at line 5, column 2 the following should work on 3.2.x (I have tested it on 3.2.3 on OS X) close all set (0, "defaultfigurevisible", "off") for i=[0:100] plot(x,x*i, "visible", "off"); filename=sprintf("%02d.png",i); print('-dpng',filename); end set (0, "defaultfigurevisible", "on") hth c. > -- > Cheers, > Karol Krizka > http://www.krizka.net From tmacchant at yahoo.co.jp Fri Oct 16 05:14:45 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Fri, 16 Oct 2009 19:14:45 +0900 (JST) Subject: Silent plot(x,y) (3.2 or later bug?) In-Reply-To: Message-ID: <20091016101445.76526.qmail@web3815.mail.bbt.yahoo.co.jp> Hello I have looked at codes of gnuplot_drawnow.m and print.m. Initialization of __pixels_per_inch__ is executed in print.m I think that this is a bug. Tentatively, this bug(?) can be avoided by dummy print once for octave 3.2 or later. plot (1:10);print ('dummy.png','-dpng');clf; x=[0:1]; for i=[0:100] plot(x,x*i); filename=sprintf("%02d.png",i); drawnow('png',filename); end close;unlink('dummy.png'); Side effect: An empty plow window is open during print :-(, but it is no relation for speed please forgive the bug will be fixed. Tatsuro Regards Tatsuro --- Karol Krizka wrote: > 2009/10/15 Tatsuro MATSUOKA : > > Hello > > > > Please try > > > > x=[0:1]; > > for i=[0:100] > > plot(x,x*i); > > filename=sprintf("%02d.png",i); > > drawnow('png',filename); > > end > > > > The above works on octave 3.0.5 (mingw). > > > Thanks, that works! > > > However, it does not work on octave 3.2.2 (mingw), 3.3.50+ (mingw) and octave 3.2.3(cygwin) > > error: get: unknown property "__pixels_per_inch__" > > error: called from: > > error:  C:\Programs\Octave\3.2.2_gcc-4.3.0\share\octave\3.2.2\m\plot\gnuplot_drawnow.m at > line 190, > > column 14 > > error:  C:\Programs\Octave\3.2.2_gcc-4.3.0\share\octave\3.2.2\m\plot\gnuplot_drawnow.m at > line 74, > > column 7 > > > > The error message is for octave 3.2.2 (mingw) but that for octave 3.2.3 on cygwin is almost > the same. > > > I also have octave 3.2 installed on a different Ubuntu computer, and I > get the same error. > error: get: unknown property "__pixels_per_inch__" > error: called from: > error: /usr/share/octave/3.2.2/m/plot/gnuplot_drawnow.m at line 190, column 14 > error: /usr/share/octave/3.2.2/m/plot/gnuplot_drawnow.m at line 74, column 7 > error: test.m at line 5, column 2 > > -- > Cheers, > Karol Krizka > http://www.krizka.net > > > > Regards > > > > Tatsuro > > > > --- Karol Krizka wrote: > > > >> Hi there, > >> > >> I'm wondering if it is possible to plot a graph without displaying > >> anything to the file. Basically, I'm trying to do an animated graph by > >> plotting them step by step (suggested here: > >> http://www.nabble.com/Displaying-an-animation---%22movie%22-td4199665.html > >> ) and saving each graph as a file. > >> > >> In summary, I have the following script: > >> x=[0:1]; > >> for i=[0:1000] > >> plot(x,x*i); > >> filename=sprintf("%02d.png",i); > >> print(filename); > >> end > >> > >> The problem is that plot command displays the graph to the screen, and > >> I think that it might be slowing (I show more than than 1000 frames..) > >> down my script. Is there a way to suppress/silent the plot() command? > >> > >> I'm using octave 3.0.5 from the Ubuntu Karmic repositories. > >> > >> After some googling, I found the following suggestion: > >> gset term postscript eps color > >> gset output "name.eps" > >> > >> But: > >> octave:1> gset term postscript eps color > >> parse error: > >> > >>  syntax error > >> > >> >>> gset term postscript eps color > >>       ^ > >> > >> octave:1> gset output "name.eps" > >> parse error: > >> > >>  syntax error > >> > >> >>> gset output "name.eps" > >>        ^ > >> Any suggestions? Am I missing some package? > >> -- > >> Cheers, > >> Karol Krizka > >> _______________________________________________ > >> Help-octave mailing list > >> Help-octave at octave.org > >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > >> > > > > > > -------------------------------------- > > GyaO! - Anime, Dramas, Movies, and Music videos [FREE] > > http://pr.mail.yahoo.co.jp/gyao/ > > > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From bpabbott at mac.com Fri Oct 16 06:10:15 2009 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 16 Oct 2009 07:10:15 -0400 Subject: Silent plot(x,y) (3.2 or later bug?) In-Reply-To: <20091016101445.76526.qmail@web3815.mail.bbt.yahoo.co.jp> References: <20091016101445.76526.qmail@web3815.mail.bbt.yahoo.co.jp> Message-ID: On Oct 16, 2009, at 6:14 AM, Tatsuro MATSUOKA wrote: > Hello > > I have looked at codes of gnuplot_drawnow.m and print.m. > Initialization of __pixels_per_inch__ is executed in print.m > > I think that this is a bug. > > Tentatively, this bug(?) can be avoided by dummy print once for > octave 3.2 or later. > > plot (1:10);print ('dummy.png','-dpng');clf; > x=[0:1]; > for i=[0:100] > plot(x,x*i); > filename=sprintf("%02d.png",i); > drawnow('png',filename); > end > close;unlink('dummy.png'); > > > Side effect: An empty plow window is open during print :-(, but it > is no relation for speed > please forgive the bug will be fixed. > > Tatsuro > > Regards > > Tatsuro Yes, it is a bug. To be consistent with Matlab the default output size is specified in inches. When the output is a bitmap, __pixels_per_inch__ is used to do the units conversion. A fix is to edit gnuplot_drawnow.m and replace ... > ## Convert to inches using the property set by print(). > gnuplot_size = gnuplot_size * get (h, "__pixels_per_inch__"); with ... > ## Convert to inches using the property set by print(). > try > gnuplot_size = gnuplot_size * get (h, "__pixels_per_inch__"); > catch > gnuplot_size = gnuplot_size * get (0, "screenpixelsperinch"); > end_try_catch This would produce an output in the same size as seen on the screen. Comments? Ben From bpabbott at mac.com Fri Oct 16 06:38:58 2009 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 16 Oct 2009 07:38:58 -0400 Subject: Silent plot(x,y) (3.2 or later bug?) In-Reply-To: References: <20091016101445.76526.qmail@web3815.mail.bbt.yahoo.co.jp> Message-ID: On Oct 16, 2009, at 7:10 AM, Ben Abbott wrote: > On Oct 16, 2009, at 6:14 AM, Tatsuro MATSUOKA wrote: > >> Hello >> >> I have looked at codes of gnuplot_drawnow.m and print.m. >> Initialization of __pixels_per_inch__ is executed in print.m >> >> I think that this is a bug. >> >> Tentatively, this bug(?) can be avoided by dummy print once for >> octave 3.2 or later. >> >> plot (1:10);print ('dummy.png','-dpng');clf; >> x=[0:1]; >> for i=[0:100] >> plot(x,x*i); >> filename=sprintf("%02d.png",i); >> drawnow('png',filename); >> end >> close;unlink('dummy.png'); >> >> >> Side effect: An empty plow window is open during print :-(, but it >> is no relation for speed >> please forgive the bug will be fixed. >> >> Tatsuro >> >> Regards >> >> Tatsuro > > Yes, it is a bug. > > To be consistent with Matlab the default output size is specified in > inches. When the output is a bitmap, __pixels_per_inch__ is used to do > the units conversion. > > A fix is to edit gnuplot_drawnow.m and replace ... > >> ## Convert to inches using the property set by print(). >> gnuplot_size = gnuplot_size * get (h, "__pixels_per_inch__"); > > with ... > >> ## Convert to inches using the property set by print(). >> try >> gnuplot_size = gnuplot_size * get (h, "__pixels_per_inch__"); >> catch >> gnuplot_size = gnuplot_size * get (0, "screenpixelsperinch"); >> end_try_catch > > This would produce an output in the same size as seen on the screen. Correction, this will not produce an output in the expected size. I'm happy to help push a changeset, but don't have time to look at his in the necessary detail to produce a proper one myself. Ben From lukas.reichlin at swissonline.ch Fri Oct 16 07:39:00 2009 From: lukas.reichlin at swissonline.ch (Lukas Reichlin) Date: Fri, 16 Oct 2009 14:39:00 +0200 Subject: Syncope: new object-oriented control package Message-ID: <50BD06D3-1171-42F4-AC1A-9E10E7739E88@swissonline.ch> Dear Octave Community I'm an engineering student and I participate in Octave's Control Package development in my free time. The basics of that package were written by an American professor in the first half of the nineties and are not compatible with Matlab's Control Systems Toolbox. They have several inherent problems, mainly because they are not object-oriented (e. g. you can't write sys3 = sys2 * sys1 for a series connection). In order to overcome these drawbacks, I started development of a new control package. It's completely object-oriented and as Matlab- compatible as possible. What makes it unique is its "model abstraction layer", i. e. commands like append, connect, feedback, series, parallel, horzcat, vertcat, subsref,+, -, * and so on are written model-independently. They all rely on just three (!) basic commands for model manipulation which need to be implemented in ss, tf or zpk. At the moment, my package contains the basics for the handling of state-space and transfer function objects. Before I continue with zero/ pole/gain models and start porting higher-level user functions like "bode" or "step", I'd like to get some feedback in order to hammer out the basics. Therefore, I wish to publish my work as an "extra package" on the octave-forge server (under GPL 3, what else? :-). Luca Favatella (slackydeb), maintainer of the "old" control package, agreed to be the "new" package's maintainer. Could someone please create an empty package with the name "control-oo", "control-rewrite" or similar on the server? AFAIK, Syncope (short for "SYstems aNd COntrol PackagE" and a pun on "Octave") is one of the first octave-forge packages to use object- oriented programming, and comments/feedback/advice would be highly appreciated. I hope that Syncope can supersede the "old" OCST in the long term. http://n.ethz.ch/student/lukasre/download/syncope/ Cheers, Lukas Reichlin BTW: My octave-forge user name is "paramaniac" From aditya at biomath.ugent.be Fri Oct 16 07:30:15 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Fri, 16 Oct 2009 14:30:15 +0200 Subject: emacs info reader for octave In-Reply-To: <4AD86460.2080200@biomath.ugent.be> References: <4AD86460.2080200@biomath.ugent.be> Message-ID: <4AD86757.1070301@biomath.ugent.be> Dear all, > I am trying to use the Emacs Info Reader for Octave. First, I > installed gnuserv, that seemed to work fine. Then, I added following > lines to my .emacs file: > > (autoload 'octave-help "octave-hlp" nil t) > (require 'gnuserv) > (gnuserv-start) > > Now, I am getting the following error message when emacs starts > > An error has occurred while loading `/home/abhagwat/.emacs': > File error: Cannot open load file, gnuserv Apparantly, gnuserv wasn't installed properly. After installing it through synaptic package manager (ubuntu 9.04), this error disappeared. However, a new error message is showing up now: Symbol's function definition is void: temp-directory Does anyone have help for this? Regards and many thanks, Aditya From aditya at biomath.ugent.be Fri Oct 16 07:17:36 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Fri, 16 Oct 2009 14:17:36 +0200 Subject: emacs info reader for octave Message-ID: <4AD86460.2080200@biomath.ugent.be> Dear all, I am trying to use the Emacs Info Reader for Octave. First, I installed gnuserv, that seemed to work fine. Then, I added following lines to my .emacs file: (autoload 'octave-help "octave-hlp" nil t) (require 'gnuserv) (gnuserv-start) as was suggested in the octave online manual http://www.gnu.org/software/octave/doc/interpreter/Using-the-Emacs-Info-Reader-for-Octave.html#Using-the-Emacs-Info-Reader-for-Octave Now, I am getting the following error message when emacs starts An error has occurred while loading `/home/abhagwat/.emacs': File error: Cannot open load file, gnuserv Does anyone know the reason for this? Many thanks and regards, Aditya From babelproofreader at gmail.com Fri Oct 16 12:00:55 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Fri, 16 Oct 2009 10:00:55 -0700 (PDT) Subject: How do you pass two Octave functions to an .oct function? In-Reply-To: <69d8d540910152253m3c7c8f81p8109e9806dd97f21@mail.gmail.com> References: <25870717.post@talk.nabble.com> <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> <25908820.post@talk.nabble.com> <69d8d540910152253m3c7c8f81p8109e9806dd97f21@mail.gmail.com> Message-ID: <25928773.post@talk.nabble.com> >I'd think these messages are pretty understandable. >You simply can't pass a raw double * pointer (the local buffer) to >feval, because it can't handle it. You need to create a valid >octave_value from it. Declare rolling_vector as ColumnVector and it >will likely work. I have stripped my code down to the bare minimum, declared the input as ColumnVector, and it still fails on compile. My revised code is #include #include #include DEFUN_DLD (rollingfft, args, , "Help String") { octave_value_list retval; octave_value_list fft_result_vector; octave_value_list ifft_result_vector; octave_value_list real_result_vector; octave_function *fcn1 = args(0).function_value (); // supply Octave "fft" function octave_function *fcn2 = args(1).function_value (); // supply Octave "ifft" function octave_function *fcn3 = args(2).function_value (); // supply Octave "real" function ColumnVector input_vector = args(3).column_vector_value (); ColumnVector output_vector = args(3).column_vector_value (); fft_result_vector = feval( fcn1 , input_vector ); ifft_result_vector = feval( fcn2 , fft_result_vector ); real_result_vector = feval( fcn3 , ifft_result_vector ); retval = real_result_vector; return retval; } and the error message is octave:1> mkoctfile rollingfft.cc rollingfft.cc: In function ?octave_value_list Frollingfft(const octave_value_list&, int)?: rollingfft.cc:18: error: no matching function for call to ?feval(octave_function*&, ColumnVector&)? /usr/include/octave-3.0.1/octave/parse.h:118: note: candidates are: octave_value_list feval(const std::string&, const octave_value_list&, int) /usr/include/octave-3.0.1/octave/parse.h:123: note: octave_value_list feval(octave_function*, const octave_value_list&, int) /usr/include/octave-3.0.1/octave/parse.h:126: note: octave_value_list feval(const octave_value_list&, int) -- View this message in context: http://www.nabble.com/How-do-you-pass-two-Octave-functions-to-an-.oct-function--tp25870717p25928773.html Sent from the Octave - General mailing list archive at Nabble.com. From efrios at yahoo.com Fri Oct 16 12:06:33 2009 From: efrios at yahoo.com (Hielos) Date: Fri, 16 Oct 2009 10:06:33 -0700 (PDT) Subject: problem installing Octave 3.2.2 on my desktop (Ubuntu 9.04) In-Reply-To: References: <1196695894.8292731253213688010.JavaMail.root@mail02.pantherlink.uwm.edu> <4AD5826D.7010800@acin.tuwien.ac.at> <25915093.post@talk.nabble.com> Message-ID: <25928863.post@talk.nabble.com> No, actually I haven't. Is this the right place to be asking how to install it? Judd Storrs wrote: > > There's a lot going on here. Have you successfully built octave without > large arrays first? > > --judd > > > > On Thu, Oct 15, 2009 at 4:01 PM, Hielos wrote: > >> >> Ignorant here: >> >> When trying to follow the post >> http://wiki.octave.org/wiki.pl?EnableLargeArrays, I thought that I should >> do >> the following: >> (1) decompress octave-3.2.3.tar.bz2 >> (2) cd octave-3.2.3 (go to directory octave 3.2.3) >> >> Then without really knowing what I was doing, I looked for the 'make.inc' >> file in that directory: >> (3) ls make* >> >> Since there was no such a file, I ran the configure instruction using >> gfortran: >> (4) ./configure --with-f77=gfortran >> >> Then I ran the line (in substitution of 'make.inc') >> (5) make FORTRAN=gfortran OPTS="-fPIC -O3 -fdefault-integer-8" >> BLASLIB=libblas.a >> >> After a while, I got the same error about libcruft: >> ../libcruft/libcruft.so: undefined reference to `r_imag' >> [many more lines like that] >> ../libcruft/libcruft.so: undefined reference to `d_mod' >> >> Could you please instruct me on which is the right way to do it, please? >> What did I do wrong? Thanks. >> >> >> Thomas Meurer-2 wrote: >> > >> > I followed the instructions on the site >> > >> > http://wiki.octave.org/wiki.pl?EnableLargeArrays >> > >> > to compile Octave from source on Ubuntu Jaunty. It worked perfectly >> fine >> > for me including the large array option. >> > >> > Thomas >> > >> > >> > _______________________________________________ >> > Help-octave mailing list >> > Help-octave at octave.org >> > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/problem-installing-Octave-3.2.2-on-my-desktop-%28Ubuntu-9.04%29-tp25497238p25915093.html >> Sent from the Octave - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://www.nabble.com/problem-installing-Octave-3.2.2-on-my-desktop-%28Ubuntu-9.04%29-tp25497238p25928863.html Sent from the Octave - General mailing list archive at Nabble.com. From thomas.weber.mail at gmail.com Fri Oct 16 15:47:55 2009 From: thomas.weber.mail at gmail.com (Thomas Weber) Date: Fri, 16 Oct 2009 22:47:55 +0200 Subject: Silent plot(x,y) In-Reply-To: References: Message-ID: <20091016204755.GD11899@atlan> Hi Karol, On Thu, Oct 15, 2009 at 03:33:53PM -0700, Karol Krizka wrote: > Hi there, > > I'm wondering if it is possible to plot a graph without displaying > anything to the file. Basically, I'm trying to do an animated graph by > plotting them step by step (suggested here: > http://www.nabble.com/Displaying-an-animation---%22movie%22-td4199665.html > ... > The problem is that plot command displays the graph to the screen, and > I think that it might be slowing (I show more than than 1000 frames..) > down my script. Is there a way to suppress/silent the plot() command? > > I'm using octave 3.0.5 from the Ubuntu Karmic repositories. > > After some googling, I found the following suggestion: > gset term postscript eps color > gset output "name.eps" The gset() commands are obsolete. > Any suggestions? Am I missing some package? http://wiki.octave.org/wiki.pl?CategoryFAQ "How do I create a plot without a window popping up (ie, a plot to a file)?" Thomas From tmacchant at yahoo.co.jp Sat Oct 17 01:38:55 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Sat, 17 Oct 2009 15:38:55 +0900 (JST) Subject: Silent plot(x,y) (3.2 or later bug?) In-Reply-To: <20091016101445.76526.qmail@web3815.mail.bbt.yahoo.co.jp> Message-ID: <20091017063900.99125.qmail@web3802.mail.bbt.yahoo.co.jp> Hi Karol Considering that the calling form 'drawnow (TERM, FILE, MONO, DEBUG_FILE)' is debugging as is written in help and manual of drawnow() function, the way shown by Carlo de Falco #*********** close all set (0, "defaultfigurevisible", "off") x=[0:1]; for i=[0:10] plot(x,x*i, "visible", "off"); filename=sprintf("a%02d.png",i); print('-dpng',filename); end set (0, "defaultfigurevisible", "on") and Thomas Weeber #************ http://wiki.octave.org/wiki.pl?CategoryFAQ "How do I create a plot without a window popping up (ie, a plot to a file)?" is recommended. BTW, drawnow(term, filname ) does not work correct for terminals whose units are pixels is a bug. This should be discussed another thread that I have post. http://www.nabble.com/bug--of-gnuplot_drawnow.m-(unknown-property-%22__pixels_per_inch__%22)-td25923903.html Without your question, this bug might be overlooked for a while. Thanks!! Regards Tatsuro -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From nunzio.losacco at gmail.com Sat Oct 17 11:19:06 2009 From: nunzio.losacco at gmail.com (Nunzio Losacco) Date: Sat, 17 Oct 2009 18:19:06 +0200 Subject: how to do trapz on a data file Message-ID: Hi everyone, I've just installed octave 3.2.3 and I'm a complete newbie. What I need most is a quick command to get the area under a curve. The curve is made of columns 1 and 3 of a file like this which I use to plot with gnuplot: 1.000000000000e+02 0.000000000000e+00 6.917126169316e-04 9.798418000000e+01 0.000000000000e+00 6.923512999807e-04 9.596836000000e+01 0.000000000000e+00 6.947493914720e-04 9.400841000000e+01 0.000000000000e+00 7.045027864544e-04 and so forth... I use to import the file in a spreadsheet and then do a trapezoidal integration "by hand" sum((y[i-1]+y[i])*(x[i]-x[i-1])/2) for i=2:n being i the row and n the number of rows. But this is very time wasting when doing loads of parametric analyses. How can I get this quickly with octave? There would be any difference if the file had a header? Thanks for your help, N. -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091017/3276ef85/attachment.html From highegg at gmail.com Sat Oct 17 14:11:02 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Sat, 17 Oct 2009 21:11:02 +0200 Subject: how to do trapz on a data file In-Reply-To: References: Message-ID: <69d8d540910171211m7ad8884ai924456227409ff35@mail.gmail.com> On Sat, Oct 17, 2009 at 6:19 PM, Nunzio Losacco wrote: > Hi everyone, > > I've just installed octave 3.2.3 and I'm a complete newbie. What I need most > is a quick command to get the area under a curve. The curve is made of > columns 1 and 3 of a file like this which I use to plot with gnuplot: > > 1.000000000000e+02 0.000000000000e+00 6.917126169316e-04 > 9.798418000000e+01 0.000000000000e+00 6.923512999807e-04 > 9.596836000000e+01 0.000000000000e+00 6.947493914720e-04 > 9.400841000000e+01 0.000000000000e+00 7.045027864544e-04 > > and so forth... > > I use to import the file in a spreadsheet and then do a trapezoidal > integration "by hand" > > sum((y[i-1]+y[i])*(x[i]-x[i-1])/2) for i=2:n > > being i the row and n the number of rows. > > But this is very time wasting when doing loads of parametric analyses. How > can I get this quickly with octave? > There would be any difference if the file had a header? > > Thanks for your help, > > N. > data = load ("datafile"); trapz (data (:,1), data (:,3)) -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From jordigh at gmail.com Sat Oct 17 15:23:52 2009 From: jordigh at gmail.com (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Sat, 17 Oct 2009 15:23:52 -0500 Subject: how to do trapz on a data file In-Reply-To: References: Message-ID: <9543b3a40910171323u1e954915pe001173c877f2daa@mail.gmail.com> 2009/10/17 Nunzio Losacco : > There would be any difference if the file had a header? Unless this has changed differently, Octave does two passes on a file in order to determine the size and well-formness of the data if there is no header. So it can be slightly faster to load data from a file if you put a header in it. For an example of what should go in the header, use the save command to write any matrix to file. From matthias at brennwald.org Sat Oct 17 15:33:25 2009 From: matthias at brennwald.org (Matthias Brennwald) Date: Sat, 17 Oct 2009 22:33:25 +0200 Subject: Axis labels in EPS figure are outside bounding box Message-ID: <77CC82DB-C858-425B-9950-4752A9C24796@brennwald.org> Dear all The below code example produces an eps file containing a simple figure. The resulting eps file is attached. The problem is that the axis labels are cut off, i.e. they are partially outside the bounding box of the figure. What am I doing wrong? What can I do to circumvent this problem? (Octave 3.2.0 on Mac OS X 10.5, gnuplot 4.2 patchlevel 5) --------------- plot (sin ([0:100]/10)); axis ([0 100 -1.1 1.1]); fs = 18; set (gca,'fontsize',fs); xlabel ('x label','fontsize',fs); ylabel ('y label','fontsize',fs); print ('testy.eps','-depsc','-S500,400'); --------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: testy.eps Type: application/postscript Size: 23304 bytes Desc: not available Url : https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091017/1c6ac597/attachment-0001.eps -------------- next part -------------- ---- Matthias Brennwald, K?ferholzstrasse 173, CH-8046 Z?rich, +41 44 364 17 03 From bpabbott at mac.com Sat Oct 17 16:08:42 2009 From: bpabbott at mac.com (Ben Abbott) Date: Sat, 17 Oct 2009 17:08:42 -0400 Subject: Axis labels in EPS figure are outside bounding box In-Reply-To: <77CC82DB-C858-425B-9950-4752A9C24796@brennwald.org> References: <77CC82DB-C858-425B-9950-4752A9C24796@brennwald.org> Message-ID: On Oct 17, 2009, at 4:33 PM, Matthias Brennwald wrote: > Dear all > > The below code example produces an eps file containing a simple > figure. The resulting eps file is attached. The problem is that the > axis labels are cut off, i.e. they are partially outside the > bounding box of the figure. What am I doing wrong? What can I do to > circumvent this problem? > > (Octave 3.2.0 on Mac OS X 10.5, gnuplot 4.2 patchlevel 5) > > --------------- > plot (sin ([0:100]/10)); axis ([0 100 -1.1 1.1]); > fs = 18; > set (gca,'fontsize',fs); > xlabel ('x label','fontsize',fs); > ylabel ('y label','fontsize',fs); > print ('testy.eps','-depsc','-S500,400'); > --------------- > > I'm able to run Octave 3.2.2 or the most recent developers sources on Mac OSX 10.6. I see no clipping. Running your script produces the attached eps-file. Upgrading your Octave to a more recent version should fix the problem for you. You can down load 3.2.3 at the link below. http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary Ben -------------- next part -------------- A non-text attachment was scrubbed... Name: testy.eps Type: image/eps Size: 23302 bytes Desc: not available Url : https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091017/14b11079/attachment.bin -------------- next part -------------- From bryan.wilcox.00 at gmail.com Sat Oct 17 16:43:31 2009 From: bryan.wilcox.00 at gmail.com (Bryan Wilcox) Date: Sat, 17 Oct 2009 16:43:31 -0500 Subject: Axis labels in EPS figure are outside bounding box In-Reply-To: <77CC82DB-C858-425B-9950-4752A9C24796@brennwald.org> References: <77CC82DB-C858-425B-9950-4752A9C24796@brennwald.org> Message-ID: <2a41db150910171443m3d75716akfa87b30c738783ca@mail.gmail.com> I can confirm this issue on a Mac Air running Mac OS X 10.5 Leopard Octave 3.2.0 gnuplot 4.2 patch level 5 In general, axis labels are cut-off in figures generated running the plot command from Octave. If the data is exported via ------------------------------------ save -ascii plot.dat plotvar; ------------------------------------ where 'plotvar' is a nx2 matrix with the first column the x-data and the second column the y-data, then plotted using gnuplot directly (either via command line or batch file) the plots look just fine. Regards, Bryan 2009/10/17 Matthias Brennwald : > Dear all > > The below code example produces an eps file containing a simple figure. The > resulting eps file is attached. The problem is that the axis labels are cut > off, i.e. they are partially outside the bounding box of the figure. What am > I doing wrong? What can I do to circumvent this problem? > > (Octave 3.2.0 on Mac OS X 10.5, gnuplot 4.2 patchlevel 5) > > --------------- > plot (sin ([0:100]/10)); axis ([0 100 -1.1 1.1]); > fs = 18; > set (gca,'fontsize',fs); > xlabel ('x label','fontsize',fs); > ylabel ('y label','fontsize',fs); > print ('testy.eps','-depsc','-S500,400'); > --------------- > > > > > ---- > Matthias Brennwald, K?ferholzstrasse 173, CH-8046 Z?rich, +41 44 364 17 03 > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > From soren at hauberg.org Sat Oct 17 17:04:05 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Sun, 18 Oct 2009 00:04:05 +0200 Subject: Syncope: new object-oriented control package In-Reply-To: <50BD06D3-1171-42F4-AC1A-9E10E7739E88@swissonline.ch> References: <50BD06D3-1171-42F4-AC1A-9E10E7739E88@swissonline.ch> Message-ID: <1255817045.4642.26.camel@sh-t400> Hi, Sorry 'bout the late reply... fre, 16 10 2009 kl. 14:39 +0200, skrev Lukas Reichlin: > In order to overcome these drawbacks, I started development of a new > control package. It's completely object-oriented and as Matlab- > compatible as possible. What makes it unique is its "model abstraction > layer", i. e. commands like append, connect, feedback, series, > parallel, horzcat, vertcat, subsref,+, -, * and so on are written > model-independently. They all rely on just three (!) basic commands > for model manipulation which need to be implemented in ss, tf or zpk. This sounds great! I don't work in control, so I can't comment on your work, though. I hope somebody else can help you test this. > At the moment, my package contains the basics for the handling of > state-space and transfer function objects. Before I continue with zero/ > pole/gain models and start porting higher-level user functions like > "bode" or "step", I'd like to get some feedback in order to hammer out > the basics. Therefore, I wish to publish my work as an "extra package" > on the octave-forge server (under GPL 3, what else? :-). Luca > Favatella (slackydeb), maintainer of the "old" control package, agreed > to be the "new" package's maintainer. I don't have any objections to you creating a new package, but is there a reason why your work doesn't go directly into the current 'control' package? > Could someone please create an > empty package with the name "control-oo", "control-rewrite" or similar > on the server? I've given you access to the Octave-Forge SVN, so you can do this yourself :-) S?ren From mollet at pacbell.net Sat Oct 17 18:41:27 2009 From: mollet at pacbell.net (Henry F. Mollet) Date: Sat, 17 Oct 2009 16:41:27 -0700 Subject: Axis labels in EPS figure are outside bounding box In-Reply-To: Message-ID: on 10/17/09 2:08 PM, Ben Abbott at bpabbott at mac.com wrote: > > On Oct 17, 2009, at 4:33 PM, Matthias Brennwald wrote: > >> Dear all >> >> The below code example produces an eps file containing a simple >> figure. The resulting eps file is attached. The problem is that the >> axis labels are cut off, i.e. they are partially outside the >> bounding box of the figure. What am I doing wrong? What can I do to >> circumvent this problem? >> >> (Octave 3.2.0 on Mac OS X 10.5, gnuplot 4.2 patchlevel 5) >> >> --------------- >> plot (sin ([0:100]/10)); axis ([0 100 -1.1 1.1]); >> fs = 18; >> set (gca,'fontsize',fs); >> xlabel ('x label','fontsize',fs); >> ylabel ('y label','fontsize',fs); >> print ('testy.eps','-depsc','-S500,400'); >> --------------- >> >> > > I'm able to run Octave 3.2.2 or the most recent developers sources on > Mac OSX 10.6. I see no clipping. > > Running your script produces the attached eps-file. > > Upgrading your Octave to a more recent version should fix the problem > for you. You can down load 3.2.3 at the link below. > > http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary > > Ben > Octave 3.2.2 on Mac OS X 10.4.11, gnuplot 4.2.5, using Aquaterm. octave-3.2.2:1> plot (sin ([0:100]/10)); axis ([0 100 -1.1 1.1]); octave-3.2.2:2> fs = 18; octave-3.2.2:3> set (gca,'fontsize',fs); octave-3.2.2:4> xlabel ('x label','fontsize',fs); octave-3.2.2:5> ylabel ('y label','fontsize',fs); Y-label OK but no X-label. Saved as PDF, see attached. Henry -------------- next part -------------- A non-text attachment was scrubbed... Name: testHFM.pdf Type: application/octet-stream Size: 13542 bytes Desc: not available Url : https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091017/3213ad17/attachment.obj From efrios at yahoo.com Sat Oct 17 16:22:51 2009 From: efrios at yahoo.com (Hielos) Date: Sat, 17 Oct 2009 14:22:51 -0700 (PDT) Subject: problem installing Octave 3.2.2 on my desktop (Ubuntu 9.04) In-Reply-To: References: <1196695894.8292731253213688010.JavaMail.root@mail02.pantherlink.uwm.edu> <4AD5826D.7010800@acin.tuwien.ac.at> <25915093.post@talk.nabble.com> Message-ID: <25941933.post@talk.nabble.com> Thanks for the last answer, I just didn't want to make anybody angry. > leave out: libhdf5-lam-dev libhdf5-mpich-dev Is this going to affect the performance of octave somehow? How do I leave them out? (I guess it has something to do with the "./configure" command, but I would not know how to do it. I have tried leaving out or including libraries before without success) > add: libftgl-dev libfltk-dev How do I add these? (do they also have to do with "./configure"?) About the following, I used the *amd64.deb version. I am guessing that there is no problem. > > http://www.nabble.com/Re%3A-Octave-3.2.2-for-Ubuntu9.04----How-to-compile-from-sources-p25525152.html >> $ dpkg -i libqrupdate1_1.0.1-1_i386.deb >> libqrupdate-dev_1.0.1-1_i386.deb *Error* After running 'make', I get the same "libcruft" error as before. And by the way, I had already installed the 'libqrupdate.so' library (built it and copied to '/usr/lib/'), and I think that './configure' is using it. I had already installed libqrupdate1 and libqrupdate-dev before, but it kept telling me that Octave would be slow with Cholesky. Thanks, again. Judd Storrs wrote: > > If you haven't compiled octave without large arrays, this may help: > > http://www.nabble.com/Re%3A-Octave-3.2.2-for-Ubuntu9.04----How-to-compile-from-sources-p25525152.html > > A few corrections followed: > > leave out: libhdf5-lam-dev libhdf5-mpich-dev > add: libftgl-dev libfltk-dev > > http://www.nabble.com/Re%3A-Octave-3.2.2-for-Ubuntu9.04----How-to-compile-from-sources-p25538464.html > > > --judd > > > On Thu, Oct 15, 2009 at 4:34 PM, Judd Storrs > wrote: > >> There's a lot going on here. Have you successfully built octave without >> large arrays first? >> >> --judd >> >> >> >> >> On Thu, Oct 15, 2009 at 4:01 PM, Hielos wrote: >> >>> >>> Ignorant here: >>> >>> When trying to follow the post >>> http://wiki.octave.org/wiki.pl?EnableLargeArrays, I thought that I >>> should >>> do >>> the following: >>> (1) decompress octave-3.2.3.tar.bz2 >>> (2) cd octave-3.2.3 (go to directory octave 3.2.3) >>> >>> Then without really knowing what I was doing, I looked for the >>> 'make.inc' >>> file in that directory: >>> (3) ls make* >>> >>> Since there was no such a file, I ran the configure instruction using >>> gfortran: >>> (4) ./configure --with-f77=gfortran >>> >>> Then I ran the line (in substitution of 'make.inc') >>> (5) make FORTRAN=gfortran OPTS="-fPIC -O3 -fdefault-integer-8" >>> BLASLIB=libblas.a >>> >>> After a while, I got the same error about libcruft: >>> ../libcruft/libcruft.so: undefined reference to `r_imag' >>> [many more lines like that] >>> ../libcruft/libcruft.so: undefined reference to `d_mod' >>> >>> Could you please instruct me on which is the right way to do it, please? >>> What did I do wrong? Thanks. >>> >>> >>> Thomas Meurer-2 wrote: >>> > >>> > I followed the instructions on the site >>> > >>> > http://wiki.octave.org/wiki.pl?EnableLargeArrays >>> > >>> > to compile Octave from source on Ubuntu Jaunty. It worked perfectly >>> fine >>> > for me including the large array option. >>> > >>> > Thomas >>> > >>> > >>> > _______________________________________________ >>> > Help-octave mailing list >>> > Help-octave at octave.org >>> > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/problem-installing-Octave-3.2.2-on-my-desktop-%28Ubuntu-9.04%29-tp25497238p25915093.html >>> Sent from the Octave - General mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> Help-octave mailing list >>> Help-octave at octave.org >>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >>> >> >> > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://www.nabble.com/problem-installing-Octave-3.2.2-on-my-desktop-%28Ubuntu-9.04%29-tp25497238p25941933.html Sent from the Octave - General mailing list archive at Nabble.com. From icedcapdude at msn.com Sat Oct 17 19:15:54 2009 From: icedcapdude at msn.com (eriktheguy) Date: Sat, 17 Oct 2009 17:15:54 -0700 (PDT) Subject: Octave gives file path every line Message-ID: <25942956.post@talk.nabble.com> Hello everyone, first post. When I used to use octave it would say 'Octave>' every command line when prompting for input. I recently installed on Windows 7. There are no problems but now octave gives the entire file path every line, followed by the '>' character on the next line. So instead of: Octave> I get: Octave.exe:#:C/Octave/3.2.2_gcc-4.3.0/bin > This isn't stopping me from working, but it is really annoying. I would appreciate any help. -- View this message in context: http://www.nabble.com/Octave-gives-file-path-every-line-tp25942956p25942956.html Sent from the Octave - General mailing list archive at Nabble.com. From tmacchant at yahoo.co.jp Sun Oct 18 02:11:15 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Sun, 18 Oct 2009 16:11:15 +0900 (JST) Subject: Octave gives file path every line In-Reply-To: <25942956.post@talk.nabble.com> Message-ID: <20091018071117.30310.qmail@web3802.mail.bbt.yahoo.co.jp> Hello This is Frequently Asked Question but it is not included in the octave FAQ wiki. Please comment out PS1 setting in ...\Octave\3.2.2_gcc-4.3.0\share\octave\3.2.2\m\startup\octaverc as #PS1("\\s:\\#:\\w\n> "); or override it in ...\Octave\3.2.2_gcc-4.3.0\share\octave\site\m\startup\octaverc or in ~\.octaverc for example PS1('octave:\#>') The symbol '~' indicates the home directory for octave. Its fullpath is available by tilde_expand command octave:1>tilde_expand ('~') ans = C:\Documents and Settings\Tatsu You make a file named '.octaverc' in the home directory (in the example above (C:\Documents and Settings\Tatsu) ) Details and differences of startup files, please consult the octave manual http://www.gnu.org/software/octave/doc/interpreter/Startup-Files.html#Startup-Files For Customizing the Prompt, see http://www.gnu.org/software/octave/doc/interpreter/Customizing-the-Prompt.html#Customizing-the-Prompt Regards Tatsuro --- eriktheguy wrote: > > Hello everyone, first post. > When I used to use octave it would say 'Octave>' every command line when > prompting for input. I recently installed on Windows 7. There are no > problems but now octave gives the entire file path every line, followed by > the '>' character on the next line. > So instead of: > > Octave> > > I get: > > Octave.exe:#:C/Octave/3.2.2_gcc-4.3.0/bin > > > > This isn't stopping me from working, but it is really annoying. I would > appreciate any help. > -- > View this message in context: > http://www.nabble.com/Octave-gives-file-path-every-line-tp25942956p25942956.html > Sent from the Octave - General mailing list archive at Nabble.com. > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From lukas.reichlin at swissonline.ch Sun Oct 18 03:11:17 2009 From: lukas.reichlin at swissonline.ch (Lukas Reichlin) Date: Sun, 18 Oct 2009 10:11:17 +0200 Subject: Syncope: new object-oriented control package In-Reply-To: <1255817045.4642.26.camel@sh-t400> References: <50BD06D3-1171-42F4-AC1A-9E10E7739E88@swissonline.ch> <1255817045.4642.26.camel@sh-t400> Message-ID: <82D89142-C3F1-4763-8790-892E2A01C3D9@swissonline.ch> On 18.10.2009, at 00:04, S?ren Hauberg wrote: > Hi, > > Sorry 'bout the late reply... > > fre, 16 10 2009 kl. 14:39 +0200, skrev Lukas Reichlin: >> In order to overcome these drawbacks, I started development of a new >> control package. It's completely object-oriented and as Matlab- >> compatible as possible. What makes it unique is its "model >> abstraction >> layer", i. e. commands like append, connect, feedback, series, >> parallel, horzcat, vertcat, subsref,+, -, * and so on are written >> model-independently. They all rely on just three (!) basic commands >> for model manipulation which need to be implemented in ss, tf or zpk. > > This sounds great! I don't work in control, so I can't comment on your > work, though. I hope somebody else can help you test this. > >> At the moment, my package contains the basics for the handling of >> state-space and transfer function objects. Before I continue with >> zero/ >> pole/gain models and start porting higher-level user functions like >> "bode" or "step", I'd like to get some feedback in order to hammer >> out >> the basics. Therefore, I wish to publish my work as an "extra >> package" >> on the octave-forge server (under GPL 3, what else? :-). Luca >> Favatella (slackydeb), maintainer of the "old" control package, >> agreed >> to be the "new" package's maintainer. > > I don't have any objections to you creating a new package, but is > there > a reason why your work doesn't go directly into the current 'control' > package? The reason is that they're not compatible, e.g. the "low-level" command ss for creating a state-space model exists in both packages, but the "old" ss creates a struct for storing the model data, while the "new" ss creates an instance (usage: sys = ss (A, B, C, D). Now there are "high-level" commands like bode that are expecting model data (usage: bode (sys)). Obviously, these functions need to be ported to the new format first, which means a lot of work. Therefore, gradually merging the packages won't work. IMHO the old control package should remain the "official" one until the new one is 100% ready. >> Could someone please create an >> empty package with the name "control-oo", "control-rewrite" or >> similar >> on the server? > > I've given you access to the Octave-Forge SVN, so you can do this > yourself :-) > > S?ren Thanks, I hope I don't mess things up! Regards, Lukas From soren at hauberg.org Sun Oct 18 03:14:18 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Sun, 18 Oct 2009 10:14:18 +0200 Subject: Syncope: new object-oriented control package In-Reply-To: <82D89142-C3F1-4763-8790-892E2A01C3D9@swissonline.ch> References: <50BD06D3-1171-42F4-AC1A-9E10E7739E88@swissonline.ch> <1255817045.4642.26.camel@sh-t400> <82D89142-C3F1-4763-8790-892E2A01C3D9@swissonline.ch> Message-ID: <1255853658.5086.17.camel@sh-t400> s?n, 18 10 2009 kl. 10:11 +0200, skrev Lukas Reichlin: > The reason is that they're not compatible, e.g. the "low-level" > command ss for creating a state-space model exists in both packages, > but the "old" ss creates a struct for storing the model data, while > the "new" ss creates an instance (usage: sys = ss (A, B, C, D). Okay that makes sense. > IMHO the old control package should remain the "official" one until > the new one is 100% ready. OK. > I've given you access to the Octave-Forge SVN, so you can do this > > yourself :-) > > Thanks, I hope I don't mess things up! Just let us know if you have questions. S?ren From matthias at brennwald.org Sun Oct 18 04:00:56 2009 From: matthias at brennwald.org (Matthias Brennwald) Date: Sun, 18 Oct 2009 11:00:56 +0200 Subject: Axis labels in EPS figure are outside bounding box In-Reply-To: References: <77CC82DB-C858-425B-9950-4752A9C24796@brennwald.org> Message-ID: 2009/10/17 Ben Abbott > > On Oct 17, 2009, at 4:33 PM, Matthias Brennwald wrote: > > Dear all >> >> The below code example produces an eps file containing a simple figure. >> The resulting eps file is attached. The problem is that the axis labels are >> cut off, i.e. they are partially outside the bounding box of the figure. >> What am I doing wrong? What can I do to circumvent this problem? >> >> (Octave 3.2.0 on Mac OS X 10.5, gnuplot 4.2 patchlevel 5) >> >> --------------- >> plot (sin ([0:100]/10)); axis ([0 100 -1.1 1.1]); >> fs = 18; >> set (gca,'fontsize',fs); >> xlabel ('x label','fontsize',fs); >> ylabel ('y label','fontsize',fs); >> print ('testy.eps','-depsc','-S500,400'); >> --------------- >> >> >> > > I'm able to run Octave 3.2.2 or the most recent developers sources on Mac > OSX 10.6. I see no clipping. > > Running your script produces the attached eps-file. > > Upgrading your Octave to a more recent version should fix the problem for > you. You can down load 3.2.3 at the link below. > > > http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary > > Ben > > Dear Ben et al I downloaded Octave 3.2.3 from the above link and installed it. Sure enough, the labels are now fully inside the bounding box. However, the figure is much larger now. To get about the same size as with 3.2.0 I have to change the last line in my above code example to: print ('testy.eps','-depsc','-S320,250'); With this, the labels are outside the bounding box again... what's going on here? Black magic? Is there another (and more reproducible) way to produce a plot with a given size (height/width) and matching font size? Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091018/098cc7f8/attachment.html From lukas.reichlin at swissonline.ch Sun Oct 18 04:30:25 2009 From: lukas.reichlin at swissonline.ch (Lukas Reichlin) Date: Sun, 18 Oct 2009 11:30:25 +0200 Subject: Syncope: new object-oriented control package In-Reply-To: <1255853658.5086.17.camel@sh-t400> References: <50BD06D3-1171-42F4-AC1A-9E10E7739E88@swissonline.ch> <1255817045.4642.26.camel@sh-t400> <82D89142-C3F1-4763-8790-892E2A01C3D9@swissonline.ch> <1255853658.5086.17.camel@sh-t400> Message-ID: <79A26BC9-FFC3-4ABF-9347-2804C7F0F0ED@swissonline.ch> On 18.10.2009, at 10:14, S?ren Hauberg wrote: > s?n, 18 10 2009 kl. 10:11 +0200, skrev Lukas Reichlin: >> The reason is that they're not compatible, e.g. the "low-level" >> command ss for creating a state-space model exists in both packages, >> but the "old" ss creates a struct for storing the model data, while >> the "new" ss creates an instance (usage: sys = ss (A, B, C, D). > > Okay that makes sense. > >> IMHO the old control package should remain the "official" one until >> the new one is 100% ready. > > OK. > >> I've given you access to the Octave-Forge SVN, so you can do this >>> yourself :-) >> >> Thanks, I hope I don't mess things up! > > Just let us know if you have questions. Is there a way to create the folders "@lti", "@ss", "@tf" and "@tfpoly" in octave-forge/extra/control-oo/inst/ Somehow, my SVN doesn't accept folder names starting with "@", it creates "inst at lti" instead. The "@" in front of the folder name is needed for oo-programming in Octave. Lukas From matthias at brennwald.org Sun Oct 18 06:05:36 2009 From: matthias at brennwald.org (Matthias Brennwald) Date: Sun, 18 Oct 2009 13:05:36 +0200 Subject: Axis labels in EPS figure are outside bounding box In-Reply-To: References: <77CC82DB-C858-425B-9950-4752A9C24796@brennwald.org> Message-ID: 2009/10/17 Ben Abbott > > On Oct 17, 2009, at 4:33 PM, Matthias Brennwald wrote: > > Dear all >> >> The below code example produces an eps file containing a simple figure. >> The resulting eps file is attached. The problem is that the axis labels are >> cut off, i.e. they are partially outside the bounding box of the figure. >> What am I doing wrong? What can I do to circumvent this problem? >> >> (Octave 3.2.0 on Mac OS X 10.5, gnuplot 4.2 patchlevel 5) >> >> --------------- >> plot (sin ([0:100]/10)); axis ([0 100 -1.1 1.1]); >> fs = 18; >> set (gca,'fontsize',fs); >> xlabel ('x label','fontsize',fs); >> ylabel ('y label','fontsize',fs); >> print ('testy.eps','-depsc','-S500,400'); >> --------------- >> >> >> > > I'm able to run Octave 3.2.2 or the most recent developers sources on Mac > OSX 10.6. I see no clipping. > > Running your script produces the attached eps-file. > > Upgrading your Octave to a more recent version should fix the problem for > you. You can down load 3.2.3 at the link below. > > > http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary > > Ben Dear Ben et al I should read manuals more often. Here's what's wrong with the above example: 1. In the documentaion of print(...), the -SXSIZE,YSIZE option is not listed for EPS. While this option does work somehow, it may not be properly implemented or supported for EPS. So its propably better not to use it. 2. The size of the EPS figure (the bounding box) is determined from the figure's 'paperposition' property (this is also in the print(...) documentation). So, the 'paperposition' property needs to be set as desired (or, alternatively, 'outerposition' might be useful, too). 3. The position of the figure axes within the bounding box can be set with the 'position' property of the axes. So, with this information, I modified my previous example as follows: --------- plot (sin ([0:100]/10)); axis ([0 100 -1.1 1.1]); fs = 18; set (gca,'fontsize',fs); xlabel ('x label','fontsize',fs); ylabel ('y label','fontsize',fs); set (gca,'position',[0.2 0.2 0.7,0.7]); % set bottom-left position, width and height of figure relative to bounding box (=window box) set (gcf,'paperposition',[0 0 3 2]); % paperposition is used to determine size of figure in the file print ('testy2.eps','-depsc'); --------- This does what I need. Maybe this is useful to others, so I thought I'd share it. However, I could not find an explanation of the 'paperposition' property in the manual. I had to guess (which was not very difficult), and it would be nice if it would be included in the manual. Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091018/e2d06d02/attachment-0001.html From nunzio.losacco at gmail.com Sun Oct 18 06:32:14 2009 From: nunzio.losacco at gmail.com (Nunzio Losacco) Date: Sun, 18 Oct 2009 13:32:14 +0200 Subject: how to do trapz on a data file In-Reply-To: <9543b3a40910171323u1e954915pe001173c877f2daa@mail.gmail.com> References: <9543b3a40910171323u1e954915pe001173c877f2daa@mail.gmail.com> Message-ID: Thank you all for your help, now I have to find a way to make a simple command to do it all passing filename.txt as argument. Even better if I can program it to scan some folders and do it on filename.txt on those folders. Is it possible to make a command which can be run from the shell or even better from gnuplot shell? (sorry if that's a bit OT) NL -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091018/052d3ba4/attachment.html From individ at acc.umu.se Sun Oct 18 09:13:19 2009 From: individ at acc.umu.se (David Grundberg) Date: Sun, 18 Oct 2009 16:13:19 +0200 Subject: How do you pass two Octave functions to an .oct function? In-Reply-To: <25928773.post@talk.nabble.com> References: <25870717.post@talk.nabble.com> <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> <25908820.post@talk.nabble.com> <69d8d540910152253m3c7c8f81p8109e9806dd97f21@mail.gmail.com> <25928773.post@talk.nabble.com> Message-ID: <4ADB227F.4030707@acc.umu.se> babelproofreader skrev: >> I'd think these messages are pretty understandable. >> You simply can't pass a raw double * pointer (the local buffer) to >> feval, because it can't handle it. You need to create a valid >> octave_value from it. Declare rolling_vector as ColumnVector and it >> will likely work. >> > > I have stripped my code down to the bare minimum, declared the input as > ColumnVector, and it still fails on compile. My revised code is > > #include > #include > #include > > DEFUN_DLD (rollingfft, args, , "Help String") > { > octave_value_list retval; > octave_value_list fft_result_vector; > octave_value_list ifft_result_vector; > octave_value_list real_result_vector; > > octave_function *fcn1 = args(0).function_value (); > // supply Octave "fft" function > octave_function *fcn2 = args(1).function_value (); > // supply Octave "ifft" function > octave_function *fcn3 = args(2).function_value (); > // supply Octave "real" function > ColumnVector input_vector = args(3).column_vector_value (); > ColumnVector output_vector = args(3).column_vector_value (); > > fft_result_vector = feval( fcn1 , input_vector ); > ifft_result_vector = feval( fcn2 , fft_result_vector ); > real_result_vector = feval( fcn3 , ifft_result_vector ); > retval = real_result_vector; > > return retval; > } > > and the error message is > > octave:1> mkoctfile rollingfft.cc > rollingfft.cc: In function ?octave_value_list Frollingfft(const > octave_value_list&, int)?: > rollingfft.cc:18: error: no matching function for call to > ?feval(octave_function*&, ColumnVector&)? > /usr/include/octave-3.0.1/octave/parse.h:118: note: candidates are: > octave_value_list feval(const std::string&, const octave_value_list&, int) > /usr/include/octave-3.0.1/octave/parse.h:123: note: > octave_value_list feval(octave_function*, const octave_value_list&, int) > /usr/include/octave-3.0.1/octave/parse.h:126: note: > octave_value_list feval(const octave_value_list&, int) > > I don't understand under which circumstances you'd want to replace the fourier transform functions. Passing the functions like arguments makes me suspect you haven't looked at the API. Also, naming a variable of type octave_value_list "vector" is confusing, so I removed that. Have you tried implementing this in Octave code (.m)? #include #include #include DEFUN_DLD (rollingfft, args, , "Help String") { octave_value_list retval; octave_value_list fft_result; ComplexColumnVector freq_rep; octave_value_list ifft_result; octave_value_list real_result; fft_result = feval ("fft", args (0), 1); freq_rep = fft_result (0).complex_column_vector_value (); ifft_result = feval ("ifft", octave_value (freq_rep), 1); real_result = feval ("real", ifft_result, 1); retval = real_result; return retval; } From kkrizka at gmail.com Sun Oct 18 13:49:45 2009 From: kkrizka at gmail.com (Karol Krizka) Date: Sun, 18 Oct 2009 11:49:45 -0700 Subject: Silent plot(x,y) (3.2 or later bug?) In-Reply-To: <20091017063900.99125.qmail@web3802.mail.bbt.yahoo.co.jp> References: <20091016101445.76526.qmail@web3815.mail.bbt.yahoo.co.jp> <20091017063900.99125.qmail@web3802.mail.bbt.yahoo.co.jp> Message-ID: On 10/16/09, Tatsuro MATSUOKA wrote: > Hi Karol > > Considering that the calling form 'drawnow (TERM, FILE, MONO, DEBUG_FILE)' > is debugging as is written > in help and manual of drawnow() function, the way shown by > > Carlo de Falco > #*********** > close all > set (0, "defaultfigurevisible", "off") > x=[0:1]; > for i=[0:10] > plot(x,x*i, "visible", "off"); > filename=sprintf("a%02d.png",i); > print('-dpng',filename); > end > set (0, "defaultfigurevisible", "on") > > and > > Thomas Weeber > #************ > http://wiki.octave.org/wiki.pl?CategoryFAQ > "How do I create a plot without a window popping up (ie, a plot to a file)?" > > is recommended. > Ah thank you, I didn't know that site existed (I'm new to octave), I only looked at the gnu.org octave FAQ. It seems like a very useful resource. > BTW, drawnow(term, filname ) does not work correct for terminals whose units > are pixels is a bug. This > should be discussed another thread that I have post. > > http://www.nabble.com/bug--of-gnuplot_drawnow.m-(unknown-property-%22__pixels_per_inch__%22)-td25923903.html > > Without your question, this bug might be overlooked for a while. > > Thanks!! > > Regards > > Tatsuro > -- Cheers, Karol Krizka http://www.krizka.net From carlo.defalco at gmail.com Mon Oct 19 03:36:02 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Mon, 19 Oct 2009 10:36:02 +0200 Subject: how to do trapz on a data file In-Reply-To: References: <9543b3a40910171323u1e954915pe001173c877f2daa@mail.gmail.com> Message-ID: On 18 Oct 2009, at 13:32, Nunzio Losacco wrote: > Thank you all for your help, > > > now I have to find a way to make a simple command to do it all > passing filename.txt as argument. > Even better if I can program it to scan some folders and do it on > filename.txt on those folders. > Is it possible to make a command which can be run from the shell or > even better from gnuplot shell? (sorry if that's a bit OT) > > NL To make an octave script executable as a shell command just add the shebang line: #!/path/to/octave/binary on the first line. I think you can run any shell command from the gnuplot prompt by escaping the command name with a "!" sign. c. From aditya at biomath.ugent.be Mon Oct 19 08:54:37 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Mon, 19 Oct 2009 15:54:37 +0200 Subject: problems with debugging functions In-Reply-To: <4ADC6E93.6020805@biomath.ugent.be> References: <4ADC6E93.6020805@biomath.ugent.be> Message-ID: <4ADC6F9D.4070707@biomath.ugent.be> Dear all, maybe I should add that I am working with octave 3.2.3 (the most recent version) in an 'infer-octave' emacs buffer, on a Ubuntu platform. Thanks, Adi > Dear all, > > I am having some problems with the debugging functions. > (1) dbstatus: shows some, but not all brakepoints > (2) dbclear: does not succeed in clearing a breakpoint > > Has any of you faced similar problems? Is this a known bug? Is there > any workaround? > > Many thanks for your help! > > Regards, > > Aditya > From aditya at biomath.ugent.be Mon Oct 19 08:50:11 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Mon, 19 Oct 2009 15:50:11 +0200 Subject: problems with debugging functions Message-ID: <4ADC6E93.6020805@biomath.ugent.be> Dear all, I am having some problems with the debugging functions. (1) dbstatus: shows some, but not all brakepoints (2) dbclear: does not succeed in clearing a breakpoint Has any of you faced similar problems? Is this a known bug? Is there any workaround? Many thanks for your help! Regards, Aditya From coccoinomane at gmail.com Mon Oct 19 11:42:06 2009 From: coccoinomane at gmail.com (Guido Walter Pettinari) Date: Mon, 19 Oct 2009 16:42:06 +0000 Subject: What does power operator ^ returns? Message-ID: Hi all! I need to compute the cubic root of many negative numbers. My problem is real-valued, hence I am not interested in the imaginary solutions. However, if I use the power operator '^', Octave returns just the first imaginary solution. The same applies when doing any odd root. Example: octave> a=-8 a = -8 octave> a^(1/3) ans = 1.000000000000000e+00 + 1.732050807568877e+00i How can I make octave to return the real solution, which in my example is just -2? I do not want just the absolute value (i.e. abs(a^(1/3)), since it does not preserve the sign. I could do with a check on the sign, but it would be inefficient. I am using Octave 3.2.3 on Mac Os X 10.6. Thank you very much, Guido From ar63 at evansville.edu Mon Oct 19 11:37:45 2009 From: ar63 at evansville.edu (Richardson, Anthony) Date: Mon, 19 Oct 2009 11:37:45 -0500 Subject: What does power operator ^ returns? In-Reply-To: References: Message-ID: <2318D9796D5B9D41B85612B5C87F2240028F3534@UEEXCHANGE.evansville.edu> There may be a more efficient way, but sign(A) .* abs(A) .^ (1/3) will give you what you want when A is a matrix. (This is the same cube root most calculators return.) Tony Richardson -----Original Message----- From: Guido Walter Pettinari [mailto:coccoinomane at gmail.com] Sent: Monday, October 19, 2009 11:42 AM To: help-octave at octave.org Subject: What does power operator ^ returns? Hi all! I need to compute the cubic root of many negative numbers. My problem is real-valued, hence I am not interested in the imaginary solutions. However, if I use the power operator '^', Octave returns just the first imaginary solution. The same applies when doing any odd root. Example: octave> a=-8 a = -8 octave> a^(1/3) ans = 1.000000000000000e+00 + 1.732050807568877e+00i How can I make octave to return the real solution, which in my example is just -2? I do not want just the absolute value (i.e. abs(a^(1/3)), since it does not preserve the sign. I could do with a check on the sign, but it would be inefficient. I am using Octave 3.2.3 on Mac Os X 10.6. Thank you very much, Guido _______________________________________________ Help-octave mailing list Help-octave at octave.org https://www-old.cae.wisc.edu/mailman/listinfo/help-octave From coccoinomane at gmail.com Mon Oct 19 13:26:25 2009 From: coccoinomane at gmail.com (Guido Walter Pettinari) Date: Mon, 19 Oct 2009 18:26:25 +0000 Subject: What does power operator ^ returns? In-Reply-To: <2318D9796D5B9D41B85612B5C87F2240028F3534@UEEXCHANGE.evansville.edu> References: <2318D9796D5B9D41B85612B5C87F2240028F3534@UEEXCHANGE.evansville.edu> Message-ID: Thank you Tony, I had implemented exactly the same solution and it works nicely. However, I was hoping there were less computational expensive solutions. Cheers, Guido On Oct 19, 2009, at 16:37 , Richardson, Anthony wrote: > There may be a more efficient way, but > > sign(A) .* abs(A) .^ (1/3) > > will give you what you want when A is a matrix. > (This is the same cube root most calculators return.) > > Tony Richardson > > -----Original Message----- > From: Guido Walter Pettinari [mailto:coccoinomane at gmail.com] > Sent: Monday, October 19, 2009 11:42 AM > To: help-octave at octave.org > Subject: What does power operator ^ returns? > > Hi all! > > I need to compute the cubic root of many negative numbers. My problem > is real-valued, hence I am not interested in the imaginary solutions. > However, if I use the power operator '^', Octave returns just the > first imaginary solution. The same applies when doing any odd root. > > Example: > octave> a=-8 > a = -8 > octave> a^(1/3) > ans = 1.000000000000000e+00 + 1.732050807568877e+00i > > How can I make octave to return the real solution, which in my example > is just -2? I do not want just the absolute value (i.e. abs(a^(1/3)), > since it does not preserve the sign. I could do with a check on the > sign, but it would be inefficient. > > I am using Octave 3.2.3 on Mac Os X 10.6. > > Thank you very much, > > Guido > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave From aditya at biomath.ugent.be Mon Oct 19 12:50:03 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Mon, 19 Oct 2009 19:50:03 +0200 Subject: enabling immediate output behavior Message-ID: <4ADCA6CB.5040806@biomath.ugent.be> Dear all, Consider following toy example: a=0; for i=1:5000 a=a+1 end a; When I run this loop in octave, no output is sent to the terminal till the very last function evaluation has been performed. This is ok for a small script, but for large and time-consuming scripts it is really necessary that you can follow what's going on. I tried enabling immediate output by following means, but all failed: * page_output_immediately(1) * more off * fflush(stdout) Does anyone of you know a way to enable the immediate output behavior? I am working with octave 3.2.3, within emacs. Many thanks, Aditya From macy at sfo.com Mon Oct 19 12:51:39 2009 From: macy at sfo.com (macy at sfo.com) Date: Mon, 19 Oct 2009 10:51:39 -0700 (PDT) Subject: What does power operator ^ returns? In-Reply-To: References: Message-ID: <1503.66.81.50.175.1255974699.squirrel@cp01.sfo.com> this worked fine for me: >> sign(a)*abs(a)^(1/3) preserves the sign and only returns the real root. > Hi all! > > I need to compute the cubic root of many negative numbers. My problem > is real-valued, hence I am not interested in the imaginary solutions. > However, if I use the power operator '^', Octave returns just the > first imaginary solution. The same applies when doing any odd root. > > Example: > octave> a=-8 > a = -8 > octave> a^(1/3) > ans = 1.000000000000000e+00 + 1.732050807568877e+00i > > How can I make octave to return the real solution, which in my example > is just -2? I do not want just the absolute value (i.e. abs(a^(1/3)), > since it does not preserve the sign. I could do with a check on the > sign, but it would be inefficient. > > I am using Octave 3.2.3 on Mac Os X 10.6. > > Thank you very much, > > Guido > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > From aditya at biomath.ugent.be Mon Oct 19 13:20:00 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Mon, 19 Oct 2009 20:20:00 +0200 Subject: enabling immediate output behavior In-Reply-To: <4ADCA6CB.5040806@biomath.ugent.be> References: <4ADCA6CB.5040806@biomath.ugent.be> Message-ID: <4ADCADD0.9000408@biomath.ugent.be> Dear all, I found one solution to circumvent the problem: not running octave from within emacs, but from an independent (ubuntu) shell. There the 'more off' command does work. Regards, Aditya > Consider following toy example: > > a=0; > for i=1:5000 > a=a+1 > end > a; > > > When I run this loop in octave, no output is sent to the terminal till > the very last function evaluation has been performed. This is ok for a > small script, but for large and time-consuming scripts it is really > necessary that you can follow what's going on. > > I tried enabling immediate output by following means, but all failed: > * page_output_immediately(1) > * more off > * fflush(stdout) > > Does anyone of you know a way to enable the immediate output behavior? > I am working with octave 3.2.3, within emacs. > > Many thanks, > > Aditya > > From dastew at sympatico.ca Mon Oct 19 14:17:52 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Mon, 19 Oct 2009 19:17:52 +0000 Subject: What does power operator ^ returns? In-Reply-To: References: Message-ID: > From: coccoinomane at gmail.com > Subject: What does power operator ^ returns? > Date: Mon, 19 Oct 2009 16:42:06 +0000 > To: help-octave at octave.org > > Hi all! > > I need to compute the cubic root of many negative numbers. My problem > is real-valued, hence I am not interested in the imaginary solutions. > However, if I use the power operator '^', Octave returns just the > first imaginary solution. The same applies when doing any odd root. > > Example: > octave> a=-8 > a = -8 > octave> a^(1/3) > ans = 1.000000000000000e+00 + 1.732050807568877e+00i > > How can I make octave to return the real solution, which in my example > is just -2? I do not want just the absolute value (i.e. abs(a^(1/3)), > since it does not preserve the sign. I could do with a check on the > sign, but it would be inefficient. > > I am using Octave 3.2.3 on Mac Os X 10.6. > > Thank you very much, > > Guido > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave if you want to see all the roots try roots([1 0 0 8]) that will give you all the cube roots of -8 and roots([1 0 0 0 0 8]) will give you all 5, fifth roots of -8 :-) Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091019/24f2da27/attachment.html From highegg at gmail.com Mon Oct 19 14:58:08 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Mon, 19 Oct 2009 21:58:08 +0200 Subject: What does power operator ^ returns? In-Reply-To: References: Message-ID: <69d8d540910191258hab1826cuaaf9465a0dbb738b@mail.gmail.com> On Mon, Oct 19, 2009 at 6:42 PM, Guido Walter Pettinari wrote: > Hi all! > > I need to compute the cubic root of many negative numbers. My problem > is real-valued, hence I am not interested in the imaginary solutions. > However, if I use the power operator '^', Octave returns just the > first imaginary solution. The same applies when doing any odd root. > > Example: > octave> a=-8 > a = -8 > octave> a^(1/3) > ans = 1.000000000000000e+00 + 1.732050807568877e+00i > > How can I make octave to return the real solution, which in my example > is just -2? I do not want just the absolute value (i.e. abs(a^(1/3)), > since it does not preserve the sign. ?I could do with a check on the > sign, but it would be inefficient. > > I am using Octave 3.2.3 on Mac Os X 10.6. > > Thank you very much, > > Guido What you get is the standard complex power. The problem here is consistency. In fact, 1/3 is not exactly representable, so -8^(1/3) is not actually a cube root. We could optimize the x^(1/y) syntax so that the expected thing happens if y is an odd integer, but that would make x^(1/y) discontinuous w.r.t. y, so I don't think it's a good idea. The nthroot function should calculate a real root; however, currently it's an m-file implementation and is not more efficient than what you can do yourself. An optimized compiled implementation would no doubt be welcome. regards -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From Potorti at isti.cnr.it Mon Oct 19 15:51:04 2009 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Mon, 19 Oct 2009 22:51:04 +0200 Subject: enabling immediate output behavior In-Reply-To: <4ADCA6CB.5040806@biomath.ugent.be> References: <4ADCA6CB.5040806@biomath.ugent.be> Message-ID: > a=0; > for i=1:5000 > a=a+1 > end > a; > > >When I run this loop in octave, no output is sent to the terminal till >the very last function evaluation has been performed. Try this one: a=0; for i=1:5000 a=a+1; disp (a); endfor It will output 5000 lines showing the values assigned to a. -- 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 coccoinomane at gmail.com Mon Oct 19 18:58:38 2009 From: coccoinomane at gmail.com (Guido Walter Pettinari) Date: Mon, 19 Oct 2009 23:58:38 +0000 Subject: What does power operator ^ returns? In-Reply-To: References: Message-ID: <3C88AB9D-9169-4D08-BAC3-97644C60A547@gmail.com> Thank you for all the answers! I will stick to the sign-abs trick for the time being, even though the 'root' solution Doug pointed out is really cool :) @Jaroslav Thank you for explaining this strange behaviour. I tried to use the nthroot function instead of the hat operator but, as you pointed out, the calculations were much slower. Cheers, Guido On Oct 19, 2009, at 19:17 , wrote: > > > > From: coccoinomane at gmail.com > > Subject: What does power operator ^ returns? > > Date: Mon, 19 Oct 2009 16:42:06 +0000 > > To: help-octave at octave.org > > > > Hi all! > > > > I need to compute the cubic root of many negative numbers. My > problem > > is real-valued, hence I am not interested in the imaginary > solutions. > > However, if I use the power operator '^', Octave returns just the > > first imaginary solution. The same applies when doing any odd root. > > > > Example: > > octave> a=-8 > > a = -8 > > octave> a^(1/3) > > ans = 1.000000000000000e+00 + 1.732050807568877e+00i > > > > How can I make octave to return the real solution, which in my > example > > is just -2? I do not want just the absolute value (i.e. abs(a^ > (1/3)), > > since it does not preserve the sign. I could do with a check on the > > sign, but it would be inefficient. > > > > I am using Octave 3.2.3 on Mac Os X 10.6. > > > > Thank you very much, > > > > Guido > > _______________________________________________ > > Help-octave mailing list > > Help-octave at octave.org > > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > > > if you want to see all the roots try > > roots([1 0 0 8]) > > that will give you all the cube roots of -8 > > and roots([1 0 0 0 0 8]) > will give you all 5, fifth roots of -8 > :-) > > Doug > > > > From pavel.schor at email.cz Mon Oct 19 12:58:10 2009 From: pavel.schor at email.cz (Pavel Schor) Date: Mon, 19 Oct 2009 19:58:10 +0200 Subject: print -dpng doesn`t work [solved problem] Message-ID: <1255975090.4723.9.camel@pavel-laptop> I hope this could save time to someone in future: in octave3.2 with gnuplot 4.2.5 on ubuntu 9.04 I was not able to save plot as .png image.... Problem was in missing library libgd. I downloaded it from www.libgd.org, and then I have recompiled gnuplot. After that everything is OK. From highegg at gmail.com Tue Oct 20 01:03:53 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Tue, 20 Oct 2009 08:03:53 +0200 Subject: What does power operator ^ returns? In-Reply-To: <3C88AB9D-9169-4D08-BAC3-97644C60A547@gmail.com> References: <3C88AB9D-9169-4D08-BAC3-97644C60A547@gmail.com> Message-ID: <69d8d540910192303l627784e0y4bcdd035699ed898@mail.gmail.com> On Tue, Oct 20, 2009 at 1:58 AM, Guido Walter Pettinari wrote: > Thank you for all the answers! I will stick to the sign-abs trick for > the time being, even though the 'root' solution Doug pointed out is > really cool :) > > @Jaroslav > Thank you for explaining this strange behaviour. I tried to use the > nthroot function instead of the hat operator but, as you pointed out, > the calculations were much slower. > > Cheers, > > Guido > It wouldn't be hard to implement a compiled version. Someone needs to do the work, though. I'm adding this to my list. -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From xaerochina at gmail.com Tue Oct 20 03:33:07 2009 From: xaerochina at gmail.com (Chengqi Zhang) Date: Tue, 20 Oct 2009 16:33:07 +0800 Subject: Cannot install miscellaneous-1.0.9 Message-ID: <90c2ef8f0910200133p5144fce9g19ae54b82302e774@mail.gmail.com> Dear all, On one of my computer(Ubuntu8.04,x64,Octave 3.0), this package(downloaded today) can be installed without any error. While on another(Ubuntu 8.04,i386,Octave 3.0), it failed. In the attachment is 'config.log'. Would someone kindly take a look at it? Thank you! Best Regards! --------------------------- Sincerely Yours Chengqi Chang China Center for Economic Research Mail: XaeroChina at Gmail.com Personal Website: http://macro2.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091020/64310cd8/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 5032 bytes Desc: not available Url : https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091020/64310cd8/attachment.obj From highegg at gmail.com Tue Oct 20 03:39:17 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Tue, 20 Oct 2009 10:39:17 +0200 Subject: Cannot install miscellaneous-1.0.9 In-Reply-To: <90c2ef8f0910200133p5144fce9g19ae54b82302e774@mail.gmail.com> References: <90c2ef8f0910200133p5144fce9g19ae54b82302e774@mail.gmail.com> Message-ID: <69d8d540910200139s22b5d3ek99c8781f2405166e@mail.gmail.com> On Tue, Oct 20, 2009 at 10:33 AM, Chengqi Zhang wrote: > Dear all, > > ? On one of my computer(Ubuntu8.04,x64,Octave 3.0), this package(downloaded > today) can be installed without any error. While on another(Ubuntu > 8.04,i386,Octave 3.0), it failed. In the attachment is 'config.log'. Would > someone kindly take a look at it? > > Thank you! > It seems the compiler causes a segfault, preventing the compilation. Most likely your system is corrupted. At any rate, it seems Octave has nothing to do with it. I'd suggest reinstalling the compiler, and if the problem persists, report the bug to Ubuntu, or the system admin, or whoever you think may help you further... -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From aditya at biomath.ugent.be Tue Oct 20 05:56:21 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Tue, 20 Oct 2009 12:56:21 +0200 Subject: enabling immediate output behavior In-Reply-To: References: <4ADCA6CB.5040806@biomath.ugent.be> Message-ID: <4ADD9755.6070104@biomath.ugent.be> Dear Francesco, Thanks for your help. Even while using disp(a) as you suggested, in the Emacs editor's inferior octave process, all output is kept till the last function evaluation has been performed, and only then sent to the screen. But luckily, the problem is not present when executing octave from my (ubuntu) bash terminal. Regards, Adi >> a=0; >> for i=1:5000 >> a=a+1 >> end >> a; >> >> >> When I run this loop in octave, no output is sent to the terminal till >> the very last function evaluation has been performed. >> > > Try this one: > > a=0; for i=1:5000 > a=a+1; disp (a); > endfor > > It will output 5000 lines showing the values assigned to a. > > From Potorti at isti.cnr.it Tue Oct 20 06:15:57 2009 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Tue, 20 Oct 2009 13:15:57 +0200 Subject: enabling immediate output behavior In-Reply-To: <4ADD9755.6070104@biomath.ugent.be> References: <4ADCA6CB.5040806@biomath.ugent.be> <4ADD9755.6070104@biomath.ugent.be> Message-ID: >Thanks for your help. Even while using disp(a) as you suggested, in the >Emacs editor's inferior octave process, all output is kept till the last >function evaluation has been performed, and only then sent to the >screen. Hm. I run octave as an Emacs inferior process, though in a different op.sys. (Debian). If I run this: octave> for i=1:50000 i=i+1; if (mod(i,10000)==0) disp(i); endif; endfor I get this: 10000 20000 30000 40000 50000 octave> where the lines are printed at intervals of about one second's time. Would you try my example above and let us know what happens? -- 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 andreas.kuntzagk at mdc-berlin.de Tue Oct 20 06:09:48 2009 From: andreas.kuntzagk at mdc-berlin.de (Andreas Kuntzagk) Date: Tue, 20 Oct 2009 13:09:48 +0200 Subject: Binaries for SLES10 Message-ID: <4ADD9A7C.8080500@mdc-berlin.de> Hi, I need binaries for SLES10. Does there exist a downloadable rpm somewhere? Or has somebody managed to compile it on this platform? regards, Andreas From jordigh at gmail.com Tue Oct 20 06:35:47 2009 From: jordigh at gmail.com (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Tue, 20 Oct 2009 06:35:47 -0500 Subject: Binaries for SLES10 In-Reply-To: <4ADD9A7C.8080500@mdc-berlin.de> References: <4ADD9A7C.8080500@mdc-berlin.de> Message-ID: <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> 2009/10/20 Andreas Kuntzagk : > I need binaries for SLES10. Does there exist a downloadable rpm > somewhere? Or has somebody managed to compile it on this platform? We had Quentin Spencer making rpms, but for Fedora, not SuSE. He hasn't been seen around here for some time, around a year. If the latest Fedora packages work on SuSE, try that. If not, compiling Octave isn't that difficult. From andreas.kuntzagk at mdc-berlin.de Tue Oct 20 06:50:43 2009 From: andreas.kuntzagk at mdc-berlin.de (Andreas Kuntzagk) Date: Tue, 20 Oct 2009 13:50:43 +0200 Subject: Binaries for SLES10 In-Reply-To: <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> References: <4ADD9A7C.8080500@mdc-berlin.de> <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> Message-ID: <4ADDA413.7030904@mdc-berlin.de> Hi, > We had Quentin Spencer making rpms, but for Fedora, not SuSE. He > hasn't been seen around here for some time, around a year. Fedora and Suse are quite different in many aspects so I guess that wont work. But I will try it > If the > latest Fedora packages work on SuSE, try that. If not, compiling > Octave isn't that difficult. Unfortunately for me it is :-( Is there a list of prerequisites somewhere? here's my configure output: ====== Octave is now configured for x86_64-unknown-linux-gnu Source directory: . Installation prefix: /usr/local C compiler: gcc -Wall -W -Wshadow -Wformat -g -O2 C++ compiler: g++ -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -g -O2 Fortran compiler: gfortran -O Fortran libraries: -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2 -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../.. -lz -lgfortranbegin -lgfortran -lm BLAS libraries: -llapack -lblas FFTW libraries: -lfftw3 -lfftw3f GLPK libraries: UMFPACK libraries: AMD libraries: CAMD libraries: COLAMD libraries: CCOLAMD libraries: CHOLMOD libraries: CXSPARSE libraries: ARPACK libraries: QRUPDATE libraries: HDF5 libraries: CURL libraries: REGEX libraries: -L/usr/lib64 -lpcre QHULL libraries: OPENGL libraries: -lftgl -lfreetype -lz -L/usr/X11R6/lib -lGL -lGLU FLTK backend libs: -L/usr/X11R6/lib64 -Wl,-rpath,/usr/X11R6/lib64 -lfltk_gl -lGLU -lGL -lfltk -lm -lXext -lX11 -lsupc++ X11 include flags: /usr/X11R6/include X11 libraries: -L/usr/X11R6/lib64 -lX11 CARBON libraries: LIBS: -lreadline -lncurses -ldl -lz -lm Default pager: less gnuplot: gnuplot Magick config: 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: UMFPACK not found. This will result in some lack of functionality for sparse matrices. configure: WARNING: qrupdate not found. The QR & Cholesky updating functions will be slow. configure: WARNING: AMD not found. This will result in some lack of functionality for sparse matrices. configure: WARNING: COLAMD not found. This will result in some lack of functionality for sparse matrices. configure: WARNING: CCOLAMD not found. This will result in some lack of functionality for sparse matrices. configure: WARNING: CHOLMOD not found. This will result in some lack of functionality for sparse matrices. configure: WARNING: CXSparse not found. This will result in some lack of functionality for sparse matrices. configure: WARNING: arpack not found. This will result in a lack of the eigs function. configure: WARNING: GLPK library not found. The glpk function for solving linear programs will be disabled. configure: WARNING: GraphicsMagick++ config script not found. Assuming GraphicsMagic++ library and header files are missing, so imread will not be fully functional configure: WARNING: Qhull library not found --- This will result in loss of functionality of some geometry functions. configure: NOTE: libraries may be skipped if a library is not found OR if the library on your system is missing required features. ======= And this is the error on make: /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/liblapack.a(classq.i): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/liblapack.a: could not read symbols: Bad value collect2: ld returned 1 exit status From andreas.kuntzagk at mdc-berlin.de Tue Oct 20 06:53:04 2009 From: andreas.kuntzagk at mdc-berlin.de (Andreas Kuntzagk) Date: Tue, 20 Oct 2009 13:53:04 +0200 Subject: Binaries for SLES10 In-Reply-To: <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> References: <4ADD9A7C.8080500@mdc-berlin.de> <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> Message-ID: <4ADDA4A0.6000607@mdc-berlin.de> Hi, Jordi Guti?rrez Hermoso wrote: > 2009/10/20 Andreas Kuntzagk : >> I need binaries for SLES10. Does there exist a downloadable rpm >> somewhere? Or has somebody managed to compile it on this platform? > > We had Quentin Spencer making rpms, but for Fedora, not SuSE. He > hasn't been seen around here for some time, around a year. If the > latest Fedora packages work on SuSE, try that. Where can I find these packages to test? From soren at hauberg.org Tue Oct 20 07:19:01 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Tue, 20 Oct 2009 14:19:01 +0200 Subject: Binaries for SLES10 In-Reply-To: <4ADDA413.7030904@mdc-berlin.de> References: <4ADD9A7C.8080500@mdc-berlin.de> <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> <4ADDA413.7030904@mdc-berlin.de> Message-ID: <1256041141.4689.16.camel@sh-t400> tir, 20 10 2009 kl. 13:50 +0200, skrev Andreas Kuntzagk: > Unfortunately for me it is :-( > Is there a list of prerequisites somewhere? At my previous just I had to use SUSE as well, and getting Octave up and running was not a particular joyful experience. SUSE is just not very good at packaging basic scientific libraries, so you'll have to compile a lot of stuff yourself from scratch. You can get some (semi-old) Octave RPM's for SUSE by searching at http://software.opensuse.org/search but (at least the last time I used them) they did not come with full functionality (no QHull and no suite-sparse as far as I remember). I'm sorry that the answer isn't more satisfactory, but in my experience SUSE just isn't very good for scientific work :-( S?ren From andreas.kuntzagk at mdc-berlin.de Tue Oct 20 07:33:44 2009 From: andreas.kuntzagk at mdc-berlin.de (Andreas Kuntzagk) Date: Tue, 20 Oct 2009 14:33:44 +0200 Subject: Binaries for SLES10 In-Reply-To: <1256041141.4689.16.camel@sh-t400> References: <4ADD9A7C.8080500@mdc-berlin.de> <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> <4ADDA413.7030904@mdc-berlin.de> <1256041141.4689.16.camel@sh-t400> Message-ID: <4ADDAE28.9090407@mdc-berlin.de> Hi, > At my previous just I had to use SUSE as well, and getting Octave up and > running was not a particular joyful experience. SUSE is just not very > good at packaging basic scientific libraries, so you'll have to compile > a lot of stuff yourself from scratch. Yeah, but for this I need to find out what libraries are missing and where to get them. > You can get some (semi-old) Octave RPM's for SUSE by searching at > > http://software.opensuse.org/search Ok, didn't know this page before. There seems to be some 3.0.3 binaries there. I'll try and come back with results. > but (at least the last time I used them) they did not come with full > functionality (no QHull and no suite-sparse as far as I remember). Actually I don't know what functionality is required here. Have to investigate. > I'm sorry that the answer isn't more satisfactory, but in my experience > SUSE just isn't very good for scientific work :-( Unfortunately changing distro is not an option right now. This is a big compute cluster (in production) and I can't start from scratch again. For the next time what distro do you propose for scientific computing? regards, Andreas From babelproofreader at gmail.com Tue Oct 20 07:58:08 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Tue, 20 Oct 2009 05:58:08 -0700 (PDT) Subject: How do you pass two Octave functions to an .oct function? In-Reply-To: <4ADB227F.4030707@acc.umu.se> References: <25870717.post@talk.nabble.com> <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> <25908820.post@talk.nabble.com> <69d8d540910152253m3c7c8f81p8109e9806dd97f21@mail.gmail.com> <25928773.post@talk.nabble.com> <4ADB227F.4030707@acc.umu.se> Message-ID: <25974615.post@talk.nabble.com> >Have you tried implementing this in Octave code (.m)? Yes, I have; the code is below. function smoothed_output=fastrollingfftlowpass(data,fre,wid) %function y=fftlowpass(rolling_vector,fre,wid) if(exist('wid')~=1) wid=0.2; endif if(exist('fre')~=1) fre=0.05; endif n=rows(data); smoothed_output=data; L=16; L_2=L/2; rolling_vector=zeros(L,1); detrend_rolling_vector=zeros(L,1); for (ii=L:n) rolling_vector(1:L,1)=data(ii-(L-1):ii,1); % detrend the rolling_vector % intercept=rolling_vector(1,1); slope=(rolling_vector(L,1)-intercept)/(L-1); detrend_rolling_vector=detrend_vector(rolling_vector); % calls an .oct file "detrend_vector" % end of detrend code % % the actual filter code % Y2=fft(detrend_rolling_vector); Y2=filter_fft_vector(Y2); % frequency domain filtering in .oct file y2=real(ifft(Y2)); % end of filter code % smoothed_output(ii,1)=y2(L)+intercept+(L-1)*slope; endfor I have utilised compiled .oct files where possible to speed up the function. -- View this message in context: http://www.nabble.com/How-do-you-pass-two-Octave-functions-to-an-.oct-function--tp25870717p25974615.html Sent from the Octave - General mailing list archive at Nabble.com. From soren at hauberg.org Tue Oct 20 08:00:37 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Tue, 20 Oct 2009 15:00:37 +0200 Subject: Binaries for SLES10 In-Reply-To: <4ADDAE28.9090407@mdc-berlin.de> References: <4ADD9A7C.8080500@mdc-berlin.de> <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> <4ADDA413.7030904@mdc-berlin.de> <1256041141.4689.16.camel@sh-t400> <4ADDAE28.9090407@mdc-berlin.de> Message-ID: <1256043637.4689.22.camel@sh-t400> tir, 20 10 2009 kl. 14:33 +0200, skrev Andreas Kuntzagk: > > At my previous just I had to use SUSE as well, and getting Octave up and > > running was not a particular joyful experience. SUSE is just not very > > good at packaging basic scientific libraries, so you'll have to compile > > a lot of stuff yourself from scratch. > > Yeah, but for this I need to find out what libraries are missing and > where to get them. I think the easiest approach is just to run ./configure and see what is reported as missing. > Unfortunately changing distro is not an option right now. This is a big > compute cluster (in production) and I can't start from scratch again. > For the next time what distro do you propose for scientific computing? Yeah, I didn't expect that you could just change distro. I think Debian is quite good at packaging everything you need, and I get the impression that Fedora is also quite good, but I've never used it. S?ren From highegg at gmail.com Tue Oct 20 08:29:17 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Tue, 20 Oct 2009 15:29:17 +0200 Subject: How do you pass two Octave functions to an .oct function? In-Reply-To: <25974615.post@talk.nabble.com> References: <25870717.post@talk.nabble.com> <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> <25908820.post@talk.nabble.com> <69d8d540910152253m3c7c8f81p8109e9806dd97f21@mail.gmail.com> <25928773.post@talk.nabble.com> <4ADB227F.4030707@acc.umu.se> <25974615.post@talk.nabble.com> Message-ID: <69d8d540910200629h1274383cuaa3e7f11d557f45d@mail.gmail.com> On Tue, Oct 20, 2009 at 2:58 PM, babelproofreader wrote: > >>Have you tried implementing this in Octave code (.m)? > > Yes, I have; the code is below. > > function smoothed_output=fastrollingfftlowpass(data,fre,wid) > %function y=fftlowpass(rolling_vector,fre,wid) > if(exist('wid')~=1) wid=0.2; endif > if(exist('fre')~=1) fre=0.05; endif > n=rows(data); > smoothed_output=data; > L=16; > L_2=L/2; > rolling_vector=zeros(L,1); > detrend_rolling_vector=zeros(L,1); > > for (ii=L:n) > > rolling_vector(1:L,1)=data(ii-(L-1):ii,1); > > % detrend the rolling_vector % > intercept=rolling_vector(1,1); > slope=(rolling_vector(L,1)-intercept)/(L-1); > detrend_rolling_vector=detrend_vector(rolling_vector); % calls an .oct file > "detrend_vector" > % end of detrend code % > > % the actual filter code % > Y2=fft(detrend_rolling_vector); > Y2=filter_fft_vector(Y2); % frequency domain filtering in .oct file > y2=real(ifft(Y2)); > % end of filter code % > > smoothed_output(ii,1)=y2(L)+intercept+(L-1)*slope; > > endfor > > I have utilised compiled .oct files where possible to speed up the function. > > > > Instead of doing it in a for loop, I'd suggest you construct a matrix with one rolling vector per column: rmat = horzcat (cellslices (data, 1:n-L+1, L:n){:}); then, calculate your detrended vectors (this requires your function can work column-wise): dmat = detrend_matrix (rmat); inter = rmat(1,:); slope = (rmat(L,:) - inter) / L-1; and do the filtering, utilizing the fast column-wise operation mode of fft: y2 = fft (dmat); y2=filter_fft_matrix (y2); # again you need to support column-wise operation y2 = real (ifft (y2)); smoothed_output = (y2(L,:) + inter + (L-1)*slope)(:); this will likely give you a much better performance. If data is very long, you can avoid wasting memory by performing the above operation on chunks of data, chunk = 32000; for i = L:chunk:N range = i-L+1:min(N,i+chunk-1); ## use the above operation with data(range) and smoothed_output(range) ## ... endfor hth -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From highegg at gmail.com Tue Oct 20 08:43:05 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Tue, 20 Oct 2009 15:43:05 +0200 Subject: Binaries for SLES10 In-Reply-To: <4ADDAE28.9090407@mdc-berlin.de> References: <4ADD9A7C.8080500@mdc-berlin.de> <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> <4ADDA413.7030904@mdc-berlin.de> <1256041141.4689.16.camel@sh-t400> <4ADDAE28.9090407@mdc-berlin.de> Message-ID: <69d8d540910200643w2db4856bs877fabf0f23a156a@mail.gmail.com> On Tue, Oct 20, 2009 at 2:33 PM, Andreas Kuntzagk wrote: > Hi, > >> At my previous just I had to use SUSE as well, and getting Octave up and >> running was not a particular joyful experience. SUSE is just not very >> good at packaging basic scientific libraries, so you'll have to compile >> a lot of stuff yourself from scratch. > > Yeah, but for this I need to find out what libraries are missing and > where to get them. > >> You can get some (semi-old) Octave RPM's for SUSE by searching at >> >> ? http://software.opensuse.org/search > > Ok, didn't know this page before. There seems to be some 3.0.3 binaries > there. I'll try and come back with results. > >> but (at least the last time I used them) they did not come with full >> functionality (no QHull and no suite-sparse as far as I remember). > > Actually I don't know what functionality is required here. Have to > investigate. > >> I'm sorry that the answer isn't more satisfactory, but in my experience >> SUSE just isn't very good for scientific work :-( > > Unfortunately changing distro is not an option right now. This is a big > compute cluster (in production) and I can't start from scratch again. > For the next time what distro do you propose for scientific computing? > > regards, Andreas We have a cluster running SUSE too, and I think I had to compile all libs from scratch as well, except BLAS and LAPACK. OTOH, the work needs only to be done once, and I'm routinely rebuilding Octave (to be used by all other users) from sources every 2-4 weeks... For a modest reward I'd be willing to do the same on your cluster :D But seriously, compiling Octave is surely much more work, but the result is worth it. You can use heavy compiler optimizations (we use Intel C++ with -O3), you can link in vendor-tuned BLAS if you have it (we use AMD's multi-threaded ACML) and most importantly, you get the most recent sources with the latest features. Also, when a bug is fixed, you just download and apply the patch (using mercurial that's trivial) and rebuild, no need to wait for next release... hth -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From thomas.weber.mail at gmail.com Tue Oct 20 12:46:40 2009 From: thomas.weber.mail at gmail.com (Thomas Weber) Date: Tue, 20 Oct 2009 19:46:40 +0200 Subject: print -dpng doesn`t work [solved problem] In-Reply-To: <1255975090.4723.9.camel@pavel-laptop> References: <1255975090.4723.9.camel@pavel-laptop> Message-ID: <20091020174640.GA6144@atlan> On Mon, Oct 19, 2009 at 07:58:10PM +0200, Pavel Schor wrote: > I hope this could save time to someone in future: > > in octave3.2 with gnuplot 4.2.5 on ubuntu 9.04 I was not able to save > plot as .png image.... Problem was in missing library libgd. I doubt that. gnuplot in Ubuntu depends on libgd, so unless you forced something, you should have that library. What does your packages manager say about libgd2-noxpm and libgd2-xpm? Thomas From pavel.schor at email.cz Tue Oct 20 15:01:28 2009 From: pavel.schor at email.cz (Pavel Schor) Date: Tue, 20 Oct 2009 22:01:28 +0200 Subject: data structure indexing Message-ID: <1256068888.7556.23.camel@pavel-laptop> hi, in my script I would like to have airfoils data stored in structure like this: Airfoil.anr.REYNOLDS.re= matrix with lifting line where "anr" means airfoil number from "database" and "re" means reynolds number this is necessary because of lifting line variation which depends on reynolds number. My question: is possible to be "anr" and "re" integers? I would like to call appropriate lifting line by this: Airfoil.1.REYNOLDS.5000000 From highegg at gmail.com Tue Oct 20 15:19:17 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Tue, 20 Oct 2009 22:19:17 +0200 Subject: data structure indexing In-Reply-To: <1256068888.7556.23.camel@pavel-laptop> References: <1256068888.7556.23.camel@pavel-laptop> Message-ID: <69d8d540910201319x2fc0a5fbj99235897de174c81@mail.gmail.com> On Tue, Oct 20, 2009 at 10:01 PM, Pavel Schor wrote: > hi, in my script I would like to have airfoils data stored in structure > like this: > > Airfoil.anr.REYNOLDS.re= matrix with lifting line > > where "anr" means airfoil number from "database" > and ? "re" means reynolds ?number > > this is necessary because of lifting line variation which depends on > reynolds number. > > My question: is possible to be "anr" and "re" integers? I would like to > call appropriate lifting line by this: > > Airfoil.1.REYNOLDS.5000000 > The built-in struct doesn't support numeric fields, and the language doesn't even allow them be written like this. You need to convert the numbers to valid identifiers, using sprintf or num2str. The "dict" class from OctaveForge general package can take arbitrary keys, so the requirements are weaker. Finally, you can define a custom class supporting precisely the style you want. hth -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From charlesreid1 at gmail.com Tue Oct 20 22:11:41 2009 From: charlesreid1 at gmail.com (charles reid) Date: Tue, 20 Oct 2009 21:11:41 -0600 Subject: Package installation - can't find header files Message-ID: Hi - I'm trying to install the symbolic package. When I run the 'pkg install symbolic-1.0.9.tar.gz' command from Octave, I see this: octave-3.2.0:1> pkg install symbolic-1.0.9.tar.gz symbols.cc:37:25: error: ginac/ginac.h: No such file or directory ov-vpa.h:39: error: ?GiNaC? has not been declared ov-vpa.h:39: error: expected ?,? or ?...? before ?&? token ov-vpa.h:39: error: ISO C++ forbids declaration of ?numeric? with no type [etc...] There are a bunch of errors that are all caused by that ginac.h file not being included. My Ginac was installed OK, and I see ginac/ginac.h where it's supposed to be: [~/pkg/ginac-1.5.3/include/ginac] $ ls ginac.h -rw-r--r--@ 1 charles staff 1.9K Oct 20 20:41 ginac.h I set my PKG_CONFIG_PATH to include the Ginac package config file, in ~/pkg/ginac-1.5.3/lib/pkgconfig. I can't figure out why octave isn't finding the header file. Is there an octave-specific environmental variable that I can set to point Octave to this header file? Thanks, Charles -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091020/ca83cea5/attachment.html From sonne at debian.org Wed Oct 21 01:47:17 2009 From: sonne at debian.org (Soeren Sonnenburg) Date: Wed, 21 Oct 2009 08:47:17 +0200 Subject: crashes when exiting octave and loading swig-wrapped code Message-ID: <1256107637.2953.67.camel@no> Dear all, I am seeing crashes when exiting octave when I use swig-wrapped code but only when loading multiple modules (with potentially overlapping variables/functions). Well it seems to be some invalid delete/free occurring only when closing octave (gdb & valgrind outputs follow): (this happens when just *loading* multiple modules of the shogun toolbox (http://www.shogun-toolbox.org)): octave:1> init_shogun octave:2> Program received signal SIGSEGV, Segmentation fault. malloc_consolidate (av=0x7ffff08c1a00) at malloc.c:4891 4891 malloc.c: No such file or directory. in malloc.c (gdb) thread apply all bt Thread 1 (Thread 0x7ffff7eab750 (LWP 22163)): #0 malloc_consolidate (av=0x7ffff08c1a00) at malloc.c:4891 #1 0x00007ffff05e7e68 in _int_free (av=0x7ffff08c1a00, mem=0xc36ac0) at malloc.c:4782 #2 0x00007ffff05e81d6 in *__GI___libc_free (mem=0xc9f710) at malloc.c:3625 #3 0x00007ffff14828b4 in ?? () from /usr/lib/libhdf5.so.6 #4 0x00007ffff1482924 in ?? () from /usr/lib/libhdf5.so.6 #5 0x00007ffff1485ba1 in H5FL_garbage_coll () from /usr/lib/libhdf5.so.6 #6 0x00007ffff1485fa8 in H5FL_term_interface () from /usr/lib/libhdf5.so.6 #7 0x00007ffff1392f85 in H5_term_library () from /usr/lib/libhdf5.so.6 #8 0x00007ffff05ab43d in *__GI_exit (status=0) at exit.c:75 #9 0x00007ffff73a3d5d in octave_main (argc=1, argv=0x7fffffffe428, embedded=0) at octave.cc:890 #10 0x00007ffff05935c6 in __libc_start_main (main=0x400900
, argc=1, ubp_av=0x7fffffffe428, init=0x400920 <__libc_csu_init>, fini=, rtld_fini=, stack_end=0x7fffffffe418) at libc-start.c:222 #11 0x0000000000400839 in _start () (gdb) initoctave:1> init_shogun octave:2> ==22872== Invalid read of size 4 ==22872== at 0xBC3EA96: std::basic_string, std::allocator >::~basic_string() (in /usr/lib/libstdc++.so.6.0.13) ==22872== by 0xC37743C: exit (exit.c:75) ==22872== by 0x532CD5C: octave_main (octave.cc:890) ==22872== by 0xC35F5C5: (below main) (libc-start.c:222) ==22872== Address 0xfd364f0 is 16 bytes inside a block of size 36 free'd ==22872== at 0x4C21ACE: operator delete(void*) (vg_replace_malloc.c:346) ==22872== by 0xBC3EAA8: std::basic_string, std::allocator >::~basic_string() (in /usr/lib/libstdc++.so.6.0.13) ==22872== by 0xC37743C: exit (exit.c:75) ==22872== by 0x532CD5C: octave_main (octave.cc:890) ==22872== by 0xC35F5C5: (below main) (libc-start.c:222) ==22872== ==22872== Invalid free() / delete / delete[] ==22872== at 0x4C21ACE: operator delete(void*) (vg_replace_malloc.c:346) ==22872== by 0xBC3EAA8: std::basic_string, std::allocator >::~basic_string() (in /usr/lib/libstdc++.so.6.0.13) ==22872== by 0xC37743C: exit (exit.c:75) ==22872== by 0x532CD5C: octave_main (octave.cc:890) ==22872== by 0xC35F5C5: (below main) (libc-start.c:222) ==22872== Address 0xfd364e0 is 0 bytes inside a block of size 36 free'd ==22872== at 0x4C21ACE: operator delete(void*) (vg_replace_malloc.c:346) ==22872== by 0xBC3EAA8: std::basic_string, std::allocator >::~basic_string() (in /usr/lib/libstdc++.so.6.0.13) ==22872== by 0xC37743C: exit (exit.c:75) ==22872== by 0x532CD5C: octave_main (octave.cc:890) ==22872== by 0xC35F5C5: (below main) (libc-start.c:222) ==22872== ==22872== ==22872== HEAP SUMMARY: ==22872== in use at exit: 37,844,498 bytes in 10,837 blocks ==22872== total heap usage: 428,743 allocs, 417,946 frees, 67,396,361 bytes allocated ==22872== ==22872== LEAK SUMMARY: ==22872== definitely lost: 116,835 bytes in 167 blocks ==22872== indirectly lost: 31,677 bytes in 196 blocks ==22872== possibly lost: 1,871,115 bytes in 2,937 blocks ==22872== still reachable: 35,824,871 bytes in 7,537 blocks ==22872== suppressed: 0 bytes in 0 blocks ==22872== Rerun with --leak-check=full to see details of leaked memory ==22872== ==22872== For counts of detected and suppressed errors, rerun with: -v I've exchanged emails with the swig-octave maintainer (CC'ed) who suggests: ========snip========== There have been a number of crashes (without good resolution) related to the dynamic loading and clearing of .oct files in octave. These are essentially bugs in octave itself, where if you load a module, create some variables with it, clear the module, and then try to use the variables, it will segfault etc. Those are likely related to your problem (eg swig-octave registers a global variable that is not cleared before the oct file itselt is cleared). Maybe a workaround is to have a static destructor remove all swig-related global variables? ========snip========== Does anyone here have an idea what the culprit is? Soeren -- For the one fact about the future of which we can be certain is that it will be utterly fantastic. -- Arthur C. Clarke, 1962 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part Url : https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091021/9a26e3dc/attachment.bin From babelproofreader at gmail.com Wed Oct 21 06:25:20 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Wed, 21 Oct 2009 04:25:20 -0700 (PDT) Subject: How do you pass two Octave functions to an .oct function? In-Reply-To: <69d8d540910200629h1274383cuaa3e7f11d557f45d@mail.gmail.com> References: <25870717.post@talk.nabble.com> <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> <25908820.post@talk.nabble.com> <69d8d540910152253m3c7c8f81p8109e9806dd97f21@mail.gmail.com> <25928773.post@talk.nabble.com> <4ADB227F.4030707@acc.umu.se> <25974615.post@talk.nabble.com> <69d8d540910200629h1274383cuaa3e7f11d557f45d@mail.gmail.com> Message-ID: <25990720.post@talk.nabble.com> >Instead of doing it in a for loop, I'd suggest you construct a matrix >with one rolling vector per column: How would this compare, in terms of performance, to my function as it currently stands if I were able to successfully compile the whole function into a single .oct function using loops? I ask this question as I envisage that teaching myself how to/and rewriting/changing the .oct files that are currently called to operate over matrix columns will be a considerable effort. -- View this message in context: http://www.nabble.com/How-do-you-pass-two-Octave-functions-to-an-.oct-function--tp25870717p25990720.html Sent from the Octave - General mailing list archive at Nabble.com. From raymondsgroupmail at gmail.com Wed Oct 21 12:48:10 2009 From: raymondsgroupmail at gmail.com (Raymond at SDSU) Date: Wed, 21 Oct 2009 10:48:10 -0700 (PDT) Subject: Building Octave Statically (and without graphics) In-Reply-To: <49A55107.4020604@ll.mit.edu> References: <49A55107.4020604@ll.mit.edu> Message-ID: <25997094.post@talk.nabble.com> My application is also a cluster, without graphics support on the nodes. I'm trying to build Octave from source on a cluster that I don't have root access to and even the X11 include files aren't there. Is there an easy way to configure for a minimal build? Tim Currie wrote: > > Hi! > I'm trying to build a static Octave binary on Fedora 9. In building > all the deps as static libs, I ran into trouble with the requirement for > libGL. It seems (according to comments in the Mesa configure script) > that Mesa cannot be built statically, as the DRI requires that the > drivers be dynamic, which seems to conflict with the explicit assertion > in the documentation that Octave can, in fact, be built as a static > binary on Linux. > This might be beside the point if I can figure out how to build Octave > *without any graphical capability*, as the Octave configure script > suggests is possible, because this build is going to be run on a large > cluster. But alas, this doesn't work any better than building Mesa, > which is to say that following the instructions in the README, as well > as the comments in the configure script and the Makefile, doesn't > produce the predicted results. > Any suggestions you can offer or resources you can point me at would > be very much appreciated. > > Thanks, > > -Tim Currie > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://www.nabble.com/Building-Octave-Statically-%28and-without-graphics%29-tp22206716p25997094.html Sent from the Octave - General mailing list archive at Nabble.com. From efrios at yahoo.com Wed Oct 21 22:17:46 2009 From: efrios at yahoo.com (Hielos) Date: Wed, 21 Oct 2009 20:17:46 -0700 (PDT) Subject: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources In-Reply-To: References: Message-ID: <26003427.post@talk.nabble.com> > leave out: libhdf5-lam-dev libhdf5-mpich-dev Is this going to affect the performance of octave somehow? How do I leave them out? (I guess it has something to do with the "./configure" command, but I would not know how to do it. I have tried leaving out or including libraries before without success) > add: libftgl-dev libfltk-dev How do I add these? (do they also have to do with "./configure"?) > $ dpkg -i libqrupdate1_1.0.1-1_i386.deb libqrupdate-dev_1.0.1-1_i386.deb I used the *amd64.deb version. I am guessing that there is no problem. I got *Error* After running 'make', I get the same "libcruft" error as before. By the way, I had already installed the 'libqrupdate.so' library (downloaded it from Karmic repositories, built it and copied to '/usr/lib/'), and I think that './configure' is using it (is this a problem?). I did this because I had already installed libqrupdate1 and libqrupdate-dev before, but it kept telling me that Octave would be slow with Cholesky. Help please. I haven't been able to install Octave in Ubuntu. I already tried in Windows, but I reaaaaaally don't want to use Windows. Help, please Judd Storrs wrote: > > The following describes how I successfully built octave-3.2.2 on a fresh > install of Ubuntu 9.04. After I finished install from the CD, I used > Synaptic to update all Ubuntu packages. I did not change any software > sources from the defaults. Here's how I proceeded: > > 1) Install library dependencies > ------------------------------- > > First try: > > $ sudo apt-get install libcurl4-dev libgraphicsmagick++1-dev libfltk-dev > libarpack2-dev > > If it succeeds proceed to step 2. Otherwise if it complains that there is > more than one package that satisfies libcurl4-dev use > > $ sudo apt-get install libcurl4-gnutls-dev > > and then repeat the first command again. > > libcurl4-dev is required for step 2, but it is a virtual package satisfied > by two other packages--either libcurl4-gnutls-dev or libcurl4-openssl-dev. > I > used libcurl4-gnutls-dev but I assume you could use the openssl one. If > the > first command succeeds then you already have one of these. > > > 2) Install packages needed to build octave > ------------------------------------------ > > $ sudo apt-get build-dep octave3.0 > > > 3) Download libqrupdate packages from Karmic. (OPTIONAL) > -------------------------------------------------------- > > Get and install packages for your platform from: > > http://packages.ubuntu.com/karmic/libqrupdate-dev > http://packages.ubuntu.com/karmic/libqrupdate1 > > Install them using gdebi or > > $ dpkg -i libqrupdate1_1.0.1-1_i386.deb libqrupdate-dev_1.0.1-1_i386.deb > > > 4) Download, extract, and build octave-3.2.2 > ---------------------------------------------- > > $ wget ftp://ftp.octave.org/pub/octave/octave-3.2.2.tar.bz2 > $ tar xf octave-3.2.2.tar.bz2 > $ cd octave-3.2.2 > $ ./configure --prefix=/usr/local > $ make > $ make check > $ sudo make install > > > Hope this helps. > > --judd > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://www.nabble.com/Re%3A-Octave-3.2.2-for-Ubuntu9.04----How-to-compile-from-sources-tp25525152p26003427.html Sent from the Octave - General mailing list archive at Nabble.com. From storrsjm at email.uc.edu Thu Oct 22 00:00:36 2009 From: storrsjm at email.uc.edu (Judd Storrs) Date: Thu, 22 Oct 2009 01:00:36 -0400 Subject: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources In-Reply-To: <26003427.post@talk.nabble.com> References: <26003427.post@talk.nabble.com> Message-ID: Does: $ sudo apt-get install build-dep octave3.0 give any errors on your system? --judd From sergstesh at yahoo.com Thu Oct 22 00:27:48 2009 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Wed, 21 Oct 2009 22:27:48 -0700 (PDT) Subject: Building Octave Statically (and without graphics) In-Reply-To: <25997094.post@talk.nabble.com> Message-ID: <651405.49993.qm@web112119.mail.gq1.yahoo.com> --- On Wed, 10/21/09, Raymond at SDSU wrote: > From: Raymond at SDSU > Subject: Re: Building Octave Statically (and without graphics) > To: help-octave at octave.org > Date: Wednesday, October 21, 2009, 10:48 AM > > My application is also a cluster, without graphics support > on the nodes.? I'm > trying to build Octave from source on a cluster that I > don't have root > access to and even the X11 include files aren't > there.? Is there an easy way > to configure for a minimal build?? > > > > Tim Currie wrote: > > > > Hi! > >???I'm trying to build a static Octave > binary on Fedora 9. In building > > all the deps as static libs, I ran into trouble with > the requirement for > > libGL. It seems (according to comments in the Mesa > configure script) > > that Mesa cannot be built statically, as the DRI > requires that the > > drivers be dynamic, which seems to conflict with the > explicit assertion > > in the documentation that Octave can, in fact, be > built as a static > > binary on Linux. > >???This might be beside the point if I > can figure out how to build Octave > > *without any graphical capability*, as the Octave > configure script > > suggests is possible, because this build is going to > be run on a large > > cluster. But alas, this doesn't work any better than > building Mesa, > > which is to say that following the instructions in the > README, as well > > as the comments in the configure script and the > Makefile, doesn't > > produce the predicted results. > >???Any suggestions you can offer or > resources you can point me at would > > be very much appreciated. > > > > Thanks, > > > > -Tim Currie > > _______________________________________________ > > Help-octave mailing list > > Help-octave at octave.org > > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > > > > > -- > View this message in context: http://www.nabble.com/Building-Octave-Statically-%28and-without-graphics%29-tp22206716p25997094.html > Sent from the Octave - General mailing list archive at > Nabble.com. > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > Raymond, if you're building for Linux, I have a tool which using "one button" (rather, one complex command line) builds _everything_ needed for 'octave' and 'octave' itself. And you do not have to be root - every target is built in a separate non-root directory, and is installed into another separate directory. Sources are downloaded automatically from the net. So for I've built up to octave-3.0.5 - haven't yet had a need for a higher version. But it shouldn't be a big deal to upgrade - the only things which bother me is ARPACK which is not standard 'configure', 'make', 'make install', but this can be taken care of, just requires an extra effort from me. And so far I've built with 'gnuplot' - the only thing requiring graphics, but getting rid of it is a matter of commenting out one line. If you're interested, let me know, I'll send you the tool and instructions and will help you with the build. The tool also is not that much Linux-specific. Regards, Sergei. From highegg at gmail.com Thu Oct 22 00:52:01 2009 From: highegg at gmail.com (Jaroslav Hajek) Date: Thu, 22 Oct 2009 07:52:01 +0200 Subject: How do you pass two Octave functions to an .oct function? In-Reply-To: <25990720.post@talk.nabble.com> References: <25870717.post@talk.nabble.com> <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> <25908820.post@talk.nabble.com> <69d8d540910152253m3c7c8f81p8109e9806dd97f21@mail.gmail.com> <25928773.post@talk.nabble.com> <4ADB227F.4030707@acc.umu.se> <25974615.post@talk.nabble.com> <69d8d540910200629h1274383cuaa3e7f11d557f45d@mail.gmail.com> <25990720.post@talk.nabble.com> Message-ID: <69d8d540910212252u136091bdp51a22edbea8815b@mail.gmail.com> On Wed, Oct 21, 2009 at 1:25 PM, babelproofreader wrote: > >>Instead of doing it in a for loop, I'd suggest you construct a matrix >>with one rolling vector per column: > > How would this compare, in terms of performance, to my function as it > currently stands if I were able to successfully compile the whole function > into a single .oct function using loops? I ask this question as I envisage > that teaching myself how to/and rewriting/changing the .oct files that are > currently called to operate over matrix columns will be a considerable > effort. > > You won't really know until (if) you try. I would expect my approach to perform better than the code you've shown, but that's just my guess. Also, if you're stuck with the old 3.0.1 version, things may be very different from 3.3.50+ / 3.2.x. hth -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz From jwe at octave.org Thu Oct 22 10:40:54 2009 From: jwe at octave.org (John W. Eaton) Date: Thu, 22 Oct 2009 11:40:54 -0400 Subject: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources In-Reply-To: References: <26003427.post@talk.nabble.com> Message-ID: <19168.32006.139347.587209@segfault.lan> On 22-Oct-2009, Judd Storrs wrote: | $ sudo apt-get install build-dep octave3.0 | | give any errors on your system? I expect it would, because it would try to install the packages build-dep and octave3.0. I think you mean $ sudo apt-get build-dep octave3.0 jwe From yuri.belenky at gmail.com Fri Oct 23 00:46:23 2009 From: yuri.belenky at gmail.com (Yuri Belenky) Date: Fri, 23 Oct 2009 07:46:23 +0200 Subject: Installing packages "java" and "jhandles" Message-ID: Trying to install packages "java" and "jhandles" on top of Octave 3.2.2 running under Windows XP with no success. The Java SDK installed in directory "C:\Program Files\Java\jdk1.6.0_16" so I've set respective "JAVA_HOME" environment. Also set "JAVA_INCS" variable as "-IC:/Program \Files/Java/jdk1.6.0_16/include -IC:/Program \Files/Java/jdk1.6.0_16/include/win32" as recommended in some forums. The Octave is in "C:\Octave\...". When running "pkg install" command compiler reports that Java development kit cannot be found. Help is appreciated. Yuri -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091023/d6d29fc2/attachment.html From aditya at biomath.ugent.be Fri Oct 23 02:25:37 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Fri, 23 Oct 2009 09:25:37 +0200 Subject: enabling immediate output behavior In-Reply-To: References: <4ADCA6CB.5040806@biomath.ugent.be> <4ADD9755.6070104@biomath.ugent.be> Message-ID: <4AE15A71.1060706@biomath.ugent.be> Dear Francesco, Thanks for your involvement. >> Thanks for your help. Even while using disp(a) as you suggested, in the >> Emacs editor's inferior octave process, all output is kept till the last >> function evaluation has been performed, and only then sent to the >> screen. >> > > Hm. I run octave as an Emacs inferior process, though in a different > op.sys. (Debian). If I run this: > > octave> for i=1:50000 i=i+1; if (mod(i,10000)==0) disp(i); endif; endfor > > I get this: > > 10000 > 20000 > 30000 > 40000 > 50000 > octave> > > where the lines are printed at intervals of about one second's time. > Would you try my example above and let us know what happens? > In my case, for a couple of seconds, nothing happens. Then, the lines are printed all at once in the inferior octave window. I am working on emacs 23.1, which I compiled on Ubuntu 9.04. Regards, Aditya From michael.creel at uab.es Fri Oct 23 03:00:12 2009 From: michael.creel at uab.es (Michael Creel) Date: Fri, 23 Oct 2009 10:00:12 +0200 Subject: parcellfun example code snippet? Message-ID: I have been trying out parcellfun on 3.0.1 and 3.3.50+ and I'm not having luck. For example, if I try [a b] = parcellfun(2, @sin, {1}, {2}) I expect that a and b should hold sin(a) and sin(b). However, they are empty. So a working snippet would be welcome to see how this is supposed to go. Thanks, Michael From Potorti at isti.cnr.it Fri Oct 23 06:24:36 2009 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Fri, 23 Oct 2009 13:24:36 +0200 Subject: enabling immediate output behavior In-Reply-To: <4AE15A71.1060706@biomath.ugent.be> References: <4ADCA6CB.5040806@biomath.ugent.be> <4ADD9755.6070104@biomath.ugent.be> <4AE15A71.1060706@biomath.ugent.be> Message-ID: >In my case, for a couple of seconds, nothing happens. Then, the lines >are printed all at once in the inferior octave window. I am working on >emacs 23.1, which I compiled on Ubuntu 9.04. Allright, try this: octave> more off octave> for i=1:20000 i=i+1; if (mod(i,4000)==0) disp(i); endif; endfor And look at what happens -- 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 charlesreid1 at gmail.com Fri Oct 23 00:14:44 2009 From: charlesreid1 at gmail.com (charles reid) Date: Thu, 22 Oct 2009 23:14:44 -0600 Subject: plot titles are off of the plot Message-ID: Hi - I'm using Octave 3.2.0 on a Mac. When I create plots, the titles are not entirely in the plot window (see attached "Picture 1.png"). I've tried re-adjusting the physical position of the titles, but it doesn't fix the problem (the text is still cut off, or I have to make it overlap with the plot itself). I see this behavior using GnuPlot with either X11 or Aquaterm as my back-end. The behavior is really annoying, since, to see the actual plot titles, I have to save the plot to an external file, which looks fine (see attached "Picture 2.png"). Does anybody have any idea what is causing this? Is anyone else experiencing this problem? Charles -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091022/7d3c4259/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture 1.png Type: image/png Size: 47817 bytes Desc: not available Url : https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091022/7d3c4259/attachment-0002.png -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture 2.png Type: image/png Size: 12097 bytes Desc: not available Url : https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091022/7d3c4259/attachment-0003.png From efrios at yahoo.com Thu Oct 22 16:01:33 2009 From: efrios at yahoo.com (Hielos) Date: Thu, 22 Oct 2009 14:01:33 -0700 (PDT) Subject: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources In-Reply-To: References: <26003427.post@talk.nabble.com> Message-ID: <26017167.post@talk.nabble.com> > sudo apt-get build-dep octave3.0 Runs ok. >Can you send me the output of: > >$ dpkg --get-selections Of course (sent them to your e-mail) >Also it may help if you could run > >$ cd path_to_octave_sources >$ make 2>&1 | tee build_error_log Sent them to your e-mail as well >I expect these files will be large so you can send it to me directly Judd Storrs wrote: > > Does: > > $ sudo apt-get install build-dep octave3.0 > > give any errors on your system? > > > --judd > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://www.nabble.com/Re%3A-Octave-3.2.2-for-Ubuntu9.04----How-to-compile-from-sources-tp25525152p26017167.html Sent from the Octave - General mailing list archive at Nabble.com. From matthias at brennwald.org Fri Oct 23 07:52:01 2009 From: matthias at brennwald.org (Matthias Brennwald) Date: Fri, 23 Oct 2009 14:52:01 +0200 Subject: plot titles are off of the plot In-Reply-To: References: Message-ID: <5F7C6FB5-E0AB-47ED-850E-96AFC47B9F4C@brennwald.org> On Oct 23, 2009, at 2:29 PM, help-octave-request at octave.org wrote: > Hi - > > I'm using Octave 3.2.0 on a Mac. When I create plots, the titles > are not > entirely in the plot window (see attached "Picture 1.png"). I've > tried > re-adjusting the physical position of the titles, but it doesn't fix > the > problem (the text is still cut off, or I have to make it overlap > with the > plot itself). I see this behavior using GnuPlot with either X11 or > Aquaterm > as my back-end. The behavior is really annoying, since, to see the > actual > plot titles, I have to save the plot to an external file, which > looks fine > (see attached "Picture 2.png"). Does anybody have any idea what is > causing > this? Is anyone else experiencing this problem? Hi Charles How did you create the PNG file? I believe your problem might be related to this: http://www.nabble.com/Axis-labels-in-EPS-figure-are-outside-bounding-box-td25941582.html#a25942083 Matthias From sedwards2 at cinci.rr.com Fri Oct 23 08:43:14 2009 From: sedwards2 at cinci.rr.com (Stuart Edwards) Date: Fri, 23 Oct 2009 09:43:14 -0400 Subject: plot titles are off of the plot In-Reply-To: References: Message-ID: <2194199B-7D8A-4D33-AE74-F2C2C704EDC8@cinci.rr.com> yes, I get this problem with 3.2 on 10.5 all the time. Since I always export an svg to Inkscape for presentation it hasn't been a problem - but it is a minor nuisance. Stu On Oct 23, 2009, at 1:14 AM, charles reid wrote: > Hi - > > I'm using Octave 3.2.0 on a Mac. When I create plots, the titles > are not entirely in the plot window (see attached "Picture 1.png"). > I've tried re-adjusting the physical position of the titles, but it > doesn't fix the problem (the text is still cut off, or I have to > make it overlap with the plot itself). I see this behavior using > GnuPlot with either X11 or Aquaterm as my back-end. The behavior is > really annoying, since, to see the actual plot titles, I have to > save the plot to an external file, which looks fine (see attached > "Picture 2.png"). Does anybody have any idea what is causing this? > Is anyone else experiencing this problem? > > > Charles > 2.png>_______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave From aditya at biomath.ugent.be Fri Oct 23 08:54:44 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Fri, 23 Oct 2009 15:54:44 +0200 Subject: error when using mkstemp Message-ID: <4AE1B5A4.4050006@biomath.ugent.be> Dear all, I am using octave version 3.2.3, (compiled on Ubuntu 9.04), in an inferior octave process from within Emacs 23.1 (also compiled on Ubuntu 9.04). For some reason, I can't get the function 'mkstemp' working properly. When I enter following command: [fid, name, msg] = mkstemp('outputxxxxxx', 1) This is the error message I get: octave> [fid,name,msg] = mkstemp('outputxxxxxx', 1) fid = -1 name = msg = Invalid argument From aditya at biomath.ugent.be Fri Oct 23 08:56:16 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Fri, 23 Oct 2009 15:56:16 +0200 Subject: fprintf doesn't write "hello" to temporary file In-Reply-To: <4AE1B2C0.60208@biomath.ugent.be> References: <4AE1B2C0.60208@biomath.ugent.be> Message-ID: <4AE1B600.9060709@biomath.ugent.be> Dear all, > fileName = sprintf('%s.sh', tmpnam()); > fid = fopen(fileName, "w"); > fprintf(fid, "hello\n"); > fclose(fid); > cat(fileName) > > For some reason the file remains empty and no "hello" is present in > it. Any idea what is happening here? I should add that I am working on octave 3.2.3, compiled on Ubuntu 9.04. I am calling octave from within emacs 23.1. Regards and many thanks for your help, Aditya From aditya at biomath.ugent.be Fri Oct 23 08:42:24 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Fri, 23 Oct 2009 15:42:24 +0200 Subject: fprintf doesn't write "hello" to temporary file In-Reply-To: References: Message-ID: <4AE1B2C0.60208@biomath.ugent.be> Dear all, fileName = sprintf('%s.sh', tmpnam()); fid = fopen(fileName, "w"); fprintf(fid, "hello\n"); fclose(fid); cat(fileName) For some reason the file remains empty and no "hello" is present in it. Any idea what is happening here? Regards and many thanks for your help, Aditya > Send Help-octave mailing list submissions to > help-octave at octave.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > or, via email, send a message with subject or body 'help' to > help-octave-request at octave.org > > You can reach the person managing the list at > help-octave-owner at octave.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Help-octave digest..." > > > Today's Topics: > > 1. Installing packages "java" and "jhandles" (Yuri Belenky) > 2. Re: enabling immediate output behavior (Aditya Bhagwat) > 3. parcellfun example code snippet? (Michael Creel) > 4. Re: enabling immediate output behavior (Francesco Potort?) > 5. plot titles are off of the plot (charles reid) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 23 Oct 2009 07:46:23 +0200 > From: Yuri Belenky > Subject: Installing packages "java" and "jhandles" > To: help-octave at octave.org > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Trying to install packages "java" and "jhandles" on top of Octave 3.2.2 > running under Windows XP with no success. The Java SDK installed in > directory "C:\Program Files\Java\jdk1.6.0_16" so I've set respective > "JAVA_HOME" environment. Also set "JAVA_INCS" variable as "-IC:/Program > \Files/Java/jdk1.6.0_16/include -IC:/Program > \Files/Java/jdk1.6.0_16/include/win32" as recommended in some forums. The > Octave is in "C:\Octave\...". When running "pkg install" command compiler > reports that Java development kit cannot be found. > Help is appreciated. > Yuri > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091023/d6d29fc2/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Fri, 23 Oct 2009 09:25:37 +0200 > From: Aditya Bhagwat > Subject: Re: enabling immediate output behavior > To: Francesco Potort? > Cc: help-octave at octave.org > Message-ID: <4AE15A71.1060706 at biomath.ugent.be> > Content-Type: text/plain; charset=UTF-8; format=flowed > > Dear Francesco, > > Thanks for your involvement. > >>> Thanks for your help. Even while using disp(a) as you suggested, in the >>> Emacs editor's inferior octave process, all output is kept till the last >>> function evaluation has been performed, and only then sent to the >>> screen. >>> >>> >> Hm. I run octave as an Emacs inferior process, though in a different >> op.sys. (Debian). If I run this: >> >> octave> for i=1:50000 i=i+1; if (mod(i,10000)==0) disp(i); endif; endfor >> >> I get this: >> >> 10000 >> 20000 >> 30000 >> 40000 >> 50000 >> octave> >> >> where the lines are printed at intervals of about one second's time. >> Would you try my example above and let us know what happens? >> >> > > In my case, for a couple of seconds, nothing happens. Then, the lines > are printed all at once in the inferior octave window. I am working on > emacs 23.1, which I compiled on Ubuntu 9.04. > > Regards, > > Aditya > > > > ------------------------------ > > Message: 3 > Date: Fri, 23 Oct 2009 10:00:12 +0200 > From: Michael Creel > Subject: parcellfun example code snippet? > To: help > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > I have been trying out parcellfun on 3.0.1 and 3.3.50+ and I'm not > having luck. For example, if I try > [a b] = parcellfun(2, @sin, {1}, {2}) I expect that a and b should > hold sin(a) and sin(b). However, they are empty. So a working snippet > would be welcome to see how this is supposed to go. > Thanks, Michael > > > ------------------------------ > > Message: 4 > Date: Fri, 23 Oct 2009 13:24:36 +0200 > From: Francesco Potort? > Subject: Re: enabling immediate output behavior > To: Aditya Bhagwat > Cc: help-octave at octave.org > Message-ID: > Content-Type: text/plain; charset=utf-8 > > >> In my case, for a couple of seconds, nothing happens. Then, the lines >> are printed all at once in the inferior octave window. I am working on >> emacs 23.1, which I compiled on Ubuntu 9.04. >> > > Allright, try this: > > octave> more off > octave> for i=1:20000 i=i+1; if (mod(i,4000)==0) disp(i); endif; endfor > > And look at what happens > > From aditya at biomath.ugent.be Fri Oct 23 09:31:01 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Fri, 23 Oct 2009 16:31:01 +0200 Subject: fprintf doesn't write "hello" to temporary file In-Reply-To: <4AE1B600.9060709@biomath.ugent.be> References: <4AE1B2C0.60208@biomath.ugent.be> <4AE1B600.9060709@biomath.ugent.be> Message-ID: <4AE1BE25.8060006@biomath.ugent.be> Dear all, >> fileName = sprintf('%s.sh', tmpnam()); >> fid = fopen(fileName, "w"); >> fprintf(fid, "hello\n"); >> fclose(fid); >> cat(fileName) >> >> For some reason the file remains empty and no "hello" is present in >> it. Any idea what is happening here? > > I should add that I am working on octave 3.2.3, compiled on Ubuntu > 9.04. I am calling octave from within emacs 23.1. I found the problem. The code is actually working, I only shouldn't be using the 'cat' function. The cat function is meant to concatenate vectors in octave, I mistakenly took it for the linux cat function to display the contents of a file. Regards, Aditya From aditya at biomath.ugent.be Fri Oct 23 09:34:18 2009 From: aditya at biomath.ugent.be (Aditya Bhagwat) Date: Fri, 23 Oct 2009 16:34:18 +0200 Subject: name of file created by tmpfile() Message-ID: <4AE1BEEA.5080601@biomath.ugent.be> Dear all, Consider following code: [fid,msg] = tmpfile() fprintf(fid, "hello"); Is there any way of finding out the name of the file to which "hello" has been written? I do know the file identifier (stored in fid), but don't know the file name. Regards and many thanks for your help, Aditya From tmacchant at yahoo.co.jp Fri Oct 23 10:08:46 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Sat, 24 Oct 2009 00:08:46 +0900 (JST) Subject: Installing packages "java" and "jhandles" In-Reply-To: Message-ID: <20091023150846.67304.qmail@web3808.mail.bbt.yahoo.co.jp> Hello Please see http://www.nabble.com/Partial-success-installing-jhandles-in-Octave-Mingw-td25653753.html#a25653753 BTW Inquiry of of octave-forge package is recommend to be done at octave-dev at lists.sourceforge.net but not to help-octave at octave.org which is the mailing list octave-forge package. Please use octave-dev at lists.sourceforge.net if you ask about octave-forge packages from next time. You can subscribe at https://lists.sourceforge.net/lists/listinfo/octave-dev Note that octave forge project is related to the octave project, however it is independent project. Regards Tatsuro --- Yuri Belenky wrote: > Trying to install packages "java" and "jhandles" on top of Octave 3.2.2 > running under Windows XP with no success. The Java SDK installed in > directory "C:\Program Files\Java\jdk1.6.0_16" so I've set respective > "JAVA_HOME" environment. Also set "JAVA_INCS" variable as "-IC:/Program > \Files/Java/jdk1.6.0_16/include -IC:/Program > \Files/Java/jdk1.6.0_16/include/win32" as recommended in some forums. The > Octave is in "C:\Octave\...". When running "pkg install" command compiler > reports that Java development kit cannot be found. > Help is appreciated. > Yuri -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From goebel.thomas at gmx.net Fri Oct 23 11:12:00 2009 From: goebel.thomas at gmx.net (Thomas =?iso-8859-1?Q?G=F6bel?=) Date: Fri, 23 Oct 2009 18:12:00 +0200 Subject: Set size of printed plots Message-ID: <20091023161200.GA3943@archbox> Hi listmates, i am printing my octave plots via print -depslatex -color -F:9 example.tex to have the posibility to add equations to the x/y-labels of the plot. The problem is i dont know how to set the size of the printed example.tex plot? In LaTeX i use \input{example} to place the graph. Using gnuplot there is the switch set size but i didnt found something similiar in octave. How do you guys print plots to use it with LaTeX? Many thanks, Tom -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available Url : https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091023/2b192692/attachment.bin From charlesreid1 at gmail.com Fri Oct 23 12:40:27 2009 From: charlesreid1 at gmail.com (charles reid) Date: Fri, 23 Oct 2009 11:40:27 -0600 Subject: plot titles are off of the plot In-Reply-To: <5F7C6FB5-E0AB-47ED-850E-96AFC47B9F4C@brennwald.org> References: <5F7C6FB5-E0AB-47ED-850E-96AFC47B9F4C@brennwald.org> Message-ID: Yes, I'm generating these plots using the 'plot' command. Is there another graphics back-end that won't have this problem? On Fri, Oct 23, 2009 at 06:52, Matthias Brennwald wrote: > > On Oct 23, 2009, at 2:29 PM, help-octave-request at octave.org wrote: > > Hi - >> >> I'm using Octave 3.2.0 on a Mac. When I create plots, the titles are not >> entirely in the plot window (see attached "Picture 1.png"). I've tried >> re-adjusting the physical position of the titles, but it doesn't fix the >> problem (the text is still cut off, or I have to make it overlap with the >> plot itself). I see this behavior using GnuPlot with either X11 or >> Aquaterm >> as my back-end. The behavior is really annoying, since, to see the actual >> plot titles, I have to save the plot to an external file, which looks fine >> (see attached "Picture 2.png"). Does anybody have any idea what is >> causing >> this? Is anyone else experiencing this problem? >> > > Hi Charles > > How did you create the PNG file? I believe your problem might be related to > this: > > > http://www.nabble.com/Axis-labels-in-EPS-figure-are-outside-bounding-box-td25941582.html#a25942083 > > Matthias > -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091023/f0a60215/attachment.html From efrios at yahoo.com Fri Oct 23 11:52:11 2009 From: efrios at yahoo.com (Hielos) Date: Fri, 23 Oct 2009 09:52:11 -0700 (PDT) Subject: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources In-Reply-To: References: <26003427.post@talk.nabble.com> Message-ID: <26029843.post@talk.nabble.com> Before hand, thanks. > I think this means ./configure was not able to figure out how to use f77 > as a compiler I uninstalled fort77 >Check the summary after ./configure to make sure gfortran was selected I think it does: Installation prefix: /usr/local C compiler: gcc -Wall -W -Wshadow -Wformat -g -O2 C++ compiler: g++ -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -g -O2 Fortran compiler: gfortran -O Fortran libraries: -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../.. -lhdf5 -lz -lgfortranbegin -lgfortran -lm BLAS libraries: -llapack -lcblas -lf77blas -latlas FFTW libraries: -lfftw3 -lfftw3f GLPK libraries: -lglpk UMFPACK libraries: -lumfpack AMD libraries: -lamd CAMD libraries: -lcamd COLAMD libraries: -lcolamd CCOLAMD libraries: -lccolamd CHOLMOD libraries: -lcholmod CXSPARSE libraries: -lcxsparse ARPACK libraries: -larpack QRUPDATE libraries: -lqrupdate HDF5 libraries: -lhdf5 CURL libraries: -lcurl REGEX libraries: -L/usr/lib -lpcre QHULL libraries: -lqhull OPENGL libraries: -lftgl -lfreetype -lz -L/usr/X11R6/lib -lGL -lGLU FLTK backend libs: -Wl,-Bsymbolic-functions -lfltk_gl -lfltk X11 include flags: X11 libraries: -lX11 CARBON libraries: LIBS: -lreadline -lncurses -ldl -lhdf5 -lz -lm Default pager: less gnuplot: gnuplot Magick config: GraphicsMagick++-config 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 I sent the new build_error_log to your e-mail Judd Storrs wrote: > > Does: > > $ sudo apt-get install build-dep octave3.0 > > give any errors on your system? > > > --judd > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://www.nabble.com/Re%3A-Octave-3.2.2-for-Ubuntu9.04----How-to-compile-from-sources-tp25525152p26029843.html Sent from the Octave - General mailing list archive at Nabble.com. From przemek.klosowski at nist.gov Fri Oct 23 09:41:58 2009 From: przemek.klosowski at nist.gov (Przemek Klosowski) Date: Fri, 23 Oct 2009 10:41:58 -0400 Subject: fprintf doesn't write "hello" to temporary file In-Reply-To: <4AE1B600.9060709@biomath.ugent.be> References: <4AE1B2C0.60208@biomath.ugent.be> <4AE1B600.9060709@biomath.ugent.be> Message-ID: <4AE1C0B6.6070106@nist.gov> On 10/23/2009 09:56 AM, Aditya Bhagwat wrote: > Dear all, >> fileName = sprintf('%s.sh', tmpnam()); >> fid = fopen(fileName, "w"); >> fprintf(fid, "hello\n"); >> fclose(fid); Good so far... >> cat(fileName) .. but here you have a wrong cat. Check out Octave's help: 'help cat' reveals that this is its array concatenation function, not the filesystem 'cat' command. Try one of those: system(sprintf('cat %s',fileName)) system(['cat ' fileName]) From przemek.klosowski at nist.gov Fri Oct 23 10:20:10 2009 From: przemek.klosowski at nist.gov (Przemek Klosowski) Date: Fri, 23 Oct 2009 11:20:10 -0400 Subject: name of file created by tmpfile() In-Reply-To: <4AE1BEEA.5080601@biomath.ugent.be> References: <4AE1BEEA.5080601@biomath.ugent.be> Message-ID: <4AE1C9AA.8090604@nist.gov> On 10/23/2009 10:34 AM, Aditya Bhagwat wrote: > [fid,msg] = tmpfile() > fprintf(fid, "hello"); > > Is there any way of finding out the name of the file to which "hello" > has been written? I do know the file identifier (stored in fid), but > don't know the file name. If you want the name, use tmpname() and fopen(), for instance like this: fopen(fname=tmpnam(),'w') By the way, on Linux you can tease out the name of a file by the file descriptor number: system(['ls -l /proc/$$/fd/' num2str(fid)]) From bpabbott at mac.com Fri Oct 23 18:38:53 2009 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 23 Oct 2009 19:38:53 -0400 Subject: Set size of printed plots In-Reply-To: <20091023161200.GA3943@archbox> References: <20091023161200.GA3943@archbox> Message-ID: On Oct 23, 2009, at 12:12 PM, Thomas G?bel wrote: > Hi listmates, > > i am printing my octave plots via > print -depslatex -color -F:9 example.tex > > to have the posibility to add equations to the x/y-labels of the plot. > The problem is i dont know how to set the size of the printed > example.tex plot? > > In LaTeX i use \input{example} to place the graph. > > Using gnuplot there is the switch > set size > > but i didnt found something similiar in octave. > > How do you guys print plots to use it with LaTeX? > > Many thanks, > Tom I don't know which version of Octave you are using, but I'll assume you are using the latest release. If you change the papersize property for the figure, that should do what you want. For example, I expect the following will produce a result whose size is 2.5x3.5 inches. set (gcf, "papersize", [2.5, 3.5]) I'd appreciate it if you give that a try and let me know what the result is. It is likely that there is a bug here. If so either myself or someone else should fix it. Ben From bpabbott at mac.com Fri Oct 23 18:46:48 2009 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 23 Oct 2009 19:46:48 -0400 Subject: plot titles are off of the plot In-Reply-To: References: <5F7C6FB5-E0AB-47ED-850E-96AFC47B9F4C@brennwald.org> Message-ID: On Oct 23, 2009, at 1:40 PM, charles reid wrote: > On Fri, Oct 23, 2009 at 06:52, Matthias Brennwald > wrote: > >> On Oct 23, 2009, at 2:29 PM, help-octave-request at octave.org wrote: >> >>> Hi - >>> >>> I'm using Octave 3.2.0 on a Mac. When I create plots, the titles >>> are not >>> entirely in the plot window (see attached "Picture 1.png"). I've >>> tried >>> re-adjusting the physical position of the titles, but it doesn't >>> fix the >>> problem (the text is still cut off, or I have to make it overlap >>> with the >>> plot itself). I see this behavior using GnuPlot with either X11 >>> or Aquaterm >>> as my back-end. The behavior is really annoying, since, to see >>> the actual >>> plot titles, I have to save the plot to an external file, which >>> looks fine >>> (see attached "Picture 2.png"). Does anybody have any idea what >>> is causing >>> this? Is anyone else experiencing this problem? >> >> Hi Charles >> >> How did you create the PNG file? I believe your problem might be >> related to this: >> >> http://www.nabble.com/Axis-labels-in-EPS-figure-are-outside-bounding-box-td25941582.html#a25942083 >> >> Matthias >> > Yes, I'm generating these plots using the 'plot' command. Is there > another graphics back-end that won't have this problem? If you make an adjustment to the "position" property, you'll be able to compensate for this *feature* of the gnuplot backend. The developers are currentl working on a new backend, but printing is not yet supported. To compensate, try ... set (gca, "position", [0.26 0.22 0.645 0.705]) ... and then try your print command again. Ben From jwe at octave.org Fri Oct 23 20:48:20 2009 From: jwe at octave.org (John W. Eaton) Date: Fri, 23 Oct 2009 21:48:20 -0400 Subject: Set size of printed plots In-Reply-To: <20091023161200.GA3943@archbox> References: <20091023161200.GA3943@archbox> Message-ID: <19170.23780.69172.57175@segfault.lan> On 23-Oct-2009, Thomas G?bel wrote: | i am printing my octave plots via | print -depslatex -color -F:9 example.tex | | to have the posibility to add equations to the x/y-labels of the plot. | The problem is i dont know how to set the size of the printed | example.tex plot? | | In LaTeX i use \input{example} to place the graph. | | Using gnuplot there is the switch | set size | | but i didnt found something similiar in octave. | | How do you guys print plots to use it with LaTeX? I thought gnuplot's epslatex terminal would make appropriately sized plots, but if not, can't you use something like \resizebox{5in}{!}{\input{example}} to make the plot whatever size you want? jwe From jwe at octave.org Fri Oct 23 20:50:57 2009 From: jwe at octave.org (John W. Eaton) Date: Fri, 23 Oct 2009 21:50:57 -0400 Subject: error when using mkstemp In-Reply-To: <4AE1B5A4.4050006@biomath.ugent.be> References: <4AE1B5A4.4050006@biomath.ugent.be> Message-ID: <19170.23937.917997.630143@segfault.lan> On 23-Oct-2009, Aditya Bhagwat wrote: | I am using octave version 3.2.3, (compiled on Ubuntu 9.04), in an | inferior octave process from within Emacs 23.1 (also compiled on Ubuntu | 9.04). | | For some reason, I can't get the function 'mkstemp' working properly. | When I enter following command: | | [fid, name, msg] = mkstemp('outputxxxxxx', 1) | | This is the error message I get: | | octave> [fid,name,msg] = mkstemp('outputxxxxxx', 1) | fid = -1 | name = | msg = Invalid argument The documentation for mkstemp says that the last six characters for mkstemp must be 'XXXXXX'. jwe From jwe at octave.org Fri Oct 23 21:05:14 2009 From: jwe at octave.org (John W. Eaton) Date: Fri, 23 Oct 2009 22:05:14 -0400 Subject: crashes when exiting octave and loading swig-wrapped code In-Reply-To: <1256107637.2953.67.camel@no> References: <1256107637.2953.67.camel@no> Message-ID: <19170.24794.771836.23727@segfault.lan> On 21-Oct-2009, Soeren Sonnenburg wrote: | I am seeing crashes when exiting octave when I use swig-wrapped code but | only when loading multiple modules (with potentially overlapping | variables/functions). | | Well it seems to be some invalid delete/free occurring only when closing | octave (gdb & valgrind outputs follow): | | (this happens when just *loading* multiple modules of the shogun toolbox | (http://www.shogun-toolbox.org)): | | octave:1> init_shogun | octave:2> | | Program received signal SIGSEGV, Segmentation fault. | malloc_consolidate (av=0x7ffff08c1a00) at malloc.c:4891 | 4891 malloc.c: No such file or directory. | in malloc.c | (gdb) thread apply all bt | | Thread 1 (Thread 0x7ffff7eab750 (LWP 22163)): | #0 malloc_consolidate (av=0x7ffff08c1a00) at malloc.c:4891 | #1 0x00007ffff05e7e68 in _int_free (av=0x7ffff08c1a00, mem=0xc36ac0) | at malloc.c:4782 | #2 0x00007ffff05e81d6 in *__GI___libc_free (mem=0xc9f710) at | malloc.c:3625 | #3 0x00007ffff14828b4 in ?? () from /usr/lib/libhdf5.so.6 | #4 0x00007ffff1482924 in ?? () from /usr/lib/libhdf5.so.6 | #5 0x00007ffff1485ba1 in H5FL_garbage_coll () | from /usr/lib/libhdf5.so.6 | #6 0x00007ffff1485fa8 in H5FL_term_interface () | from /usr/lib/libhdf5.so.6 | #7 0x00007ffff1392f85 in H5_term_library () from /usr/lib/libhdf5.so.6 | #8 0x00007ffff05ab43d in *__GI_exit (status=0) at exit.c:75 | #9 0x00007ffff73a3d5d in octave_main (argc=1, argv=0x7fffffffe428, | embedded=0) | at octave.cc:890 | #10 0x00007ffff05935c6 in __libc_start_main (main=0x400900
, | argc=1, | ubp_av=0x7fffffffe428, init=0x400920 <__libc_csu_init>, | fini=, rtld_fini=, | stack_end=0x7fffffffe418) at libc-start.c:222 | #11 0x0000000000400839 in _start () | (gdb) | | | initoctave:1> init_shogun | octave:2> | ==22872== Invalid read of size 4 | ==22872== at 0xBC3EA96: std::basic_string, std::allocator >::~basic_string() (in /usr/lib/libstdc++.so.6.0.13) | ==22872== by 0xC37743C: exit (exit.c:75) | ==22872== by 0x532CD5C: octave_main (octave.cc:890) | ==22872== by 0xC35F5C5: (below main) (libc-start.c:222) | ==22872== Address 0xfd364f0 is 16 bytes inside a block of size 36 free'd | ==22872== at 0x4C21ACE: operator delete(void*) (vg_replace_malloc.c:346) | ==22872== by 0xBC3EAA8: std::basic_string, std::allocator >::~basic_string() (in /usr/lib/libstdc++.so.6.0.13) | ==22872== by 0xC37743C: exit (exit.c:75) | ==22872== by 0x532CD5C: octave_main (octave.cc:890) | ==22872== by 0xC35F5C5: (below main) (libc-start.c:222) | ==22872== | ==22872== Invalid free() / delete / delete[] | ==22872== at 0x4C21ACE: operator delete(void*) (vg_replace_malloc.c:346) | ==22872== by 0xBC3EAA8: std::basic_string, std::allocator >::~basic_string() (in /usr/lib/libstdc++.so.6.0.13) | ==22872== by 0xC37743C: exit (exit.c:75) | ==22872== by 0x532CD5C: octave_main (octave.cc:890) | ==22872== by 0xC35F5C5: (below main) (libc-start.c:222) | ==22872== Address 0xfd364e0 is 0 bytes inside a block of size 36 free'd | ==22872== at 0x4C21ACE: operator delete(void*) (vg_replace_malloc.c:346) | ==22872== by 0xBC3EAA8: std::basic_string, std::allocator >::~basic_string() (in /usr/lib/libstdc++.so.6.0.13) | ==22872== by 0xC37743C: exit (exit.c:75) | ==22872== by 0x532CD5C: octave_main (octave.cc:890) | ==22872== by 0xC35F5C5: (below main) (libc-start.c:222) | ==22872== | ==22872== | ==22872== HEAP SUMMARY: | ==22872== in use at exit: 37,844,498 bytes in 10,837 blocks | ==22872== total heap usage: 428,743 allocs, 417,946 frees, 67,396,361 bytes allocated | ==22872== | ==22872== LEAK SUMMARY: | ==22872== definitely lost: 116,835 bytes in 167 blocks | ==22872== indirectly lost: 31,677 bytes in 196 blocks | ==22872== possibly lost: 1,871,115 bytes in 2,937 blocks | ==22872== still reachable: 35,824,871 bytes in 7,537 blocks | ==22872== suppressed: 0 bytes in 0 blocks | ==22872== Rerun with --leak-check=full to see details of leaked memory | ==22872== | ==22872== For counts of detected and suppressed errors, rerun with: -v | | | I've exchanged emails with the swig-octave maintainer (CC'ed) who | suggests: | | ========snip========== | There have been a number of crashes (without good resolution) related | to the dynamic loading and clearing of .oct files in octave. These are | essentially bugs in octave itself, where if you load a module, create | some variables with it, clear the module, and then try to use the | variables, it will segfault etc. Those are likely related to your | problem (eg swig-octave registers a global variable that is not | cleared before the oct file itselt is cleared). Maybe a workaround is | to have a static destructor remove all swig-related global variables? | ========snip========== | | Does anyone here have an idea what the culprit is? Yes, it's a known problem that you can't load a .oct file that creates a variable (or is it just a user-defined class?) then clear the .oct file and expect to continue to use the variables that were created. I think you can avoid the problem by locking the .oct file that creates the object. We've had some discussions about making Octave delay unloading the file until all objects created by it are deleted. That might be better, but so far no one has done the work. jwe From jwe at octave.org Fri Oct 23 21:09:42 2009 From: jwe at octave.org (John W. Eaton) Date: Fri, 23 Oct 2009 22:09:42 -0400 Subject: Building Octave Statically (and without graphics) In-Reply-To: <25997094.post@talk.nabble.com> References: <49A55107.4020604@ll.mit.edu> <25997094.post@talk.nabble.com> Message-ID: <19170.25062.57745.204925@segfault.lan> On 21-Oct-2009, Raymond at SDSU wrote: | My application is also a cluster, without graphics support on the nodes. I'm | trying to build Octave from source on a cluster that I don't have root | access to and even the X11 include files aren't there. Is there an easy way | to configure for a minimal build? What have you tried? If you configure with all the --without-PKG options, then Octave should avoid using those packages. If that doesn't work, then report the problem as a bug. But since I normally want to build full-featured versions of Octave, I'm not sure that I would consider this a high priority problem, so patches to fix any problems like this would be appreciated. jwe From jwe at octave.org Fri Oct 23 21:11:02 2009 From: jwe at octave.org (John W. Eaton) Date: Fri, 23 Oct 2009 22:11:02 -0400 Subject: problems with debugging functions In-Reply-To: <4ADC6E93.6020805@biomath.ugent.be> References: <4ADC6E93.6020805@biomath.ugent.be> Message-ID: <19170.25142.953197.381516@segfault.lan> On 19-Oct-2009, Aditya Bhagwat wrote: | I am having some problems with the debugging functions. | (1) dbstatus: shows some, but not all brakepoints | (2) dbclear: does not succeed in clearing a breakpoint | | Has any of you faced similar problems? Is this a known bug? Is there any | workaround? If you think you've found a bug, please send a complete bug report to the bug at octave.org list with enough information to reproduce the problem. jwe From jwe at octave.org Fri Oct 23 21:20:21 2009 From: jwe at octave.org (John W. Eaton) Date: Fri, 23 Oct 2009 22:20:21 -0400 Subject: Problem uploading file In-Reply-To: References: Message-ID: <19170.25701.322017.814311@segfault.lan> On 13-Oct-2009, A.M.Zainal-Abidin at lboro.ac.uk wrote: | I have a problem uploading csv file and reading it. I have | installed the latest version of Octave (3.2.2)and | everytime I try to read the csv file, the statements came | out; | | major(5): Low-level I/O layer | minor(29):Unable to initialize object | major(04):File interface | minor(17):Unable to open file | major(03):Internal HDF5 error | minor(87):system error message | | and the file cannot be opened. I had no such problem with | the version 3.0. Is there something to do with obsolete | commands? If you think you've found a bug in Octave, please send a complete bug report to the bug at octave.org list including enough information for someone to reproduce the problem. If you're not sure what to include in your report, please read http://www.octave.org/bugs.html first. jwe From jwe at octave.org Fri Oct 23 21:25:48 2009 From: jwe at octave.org (John W. Eaton) Date: Fri, 23 Oct 2009 22:25:48 -0400 Subject: Debugging In-Reply-To: References: Message-ID: <19170.26028.668105.587567@segfault.lan> On 15-Oct-2009, OCuanachain, Oisin (Oisin) wrote: | I am in the process of porting a large Matlab code base to Octave. I thought the debugging functions would help resolve any syntax incompatabilities but they seem to be less useful than I had hoped. Basically I'm looking for the same functionality as the: | dbstop | dbstep | dbquit functions in Matlab. | | dbstop seems to work in Octave, however there is no dbstep. | The doc for dbstop says | *See also:* dbclear, dbstatus, dbnext. | however doc dbnext returns no result. | The following link: http://wiki.octave.org/wiki.pl?action=browse&diff=1&id=MatlabOctaveCompatibility | suggests that dbnext does in fact exist and is the equivalent of dbstep in Matlab however there is no mention of dbnext in the function reference: | http://octave.sourceforge.net/doc/D.html#D | Anyway trying dbnext it does indeed seem to work as dbstep however when I try to view the state of my variables after stopping at a breakpoint (via whos -variables) the output shows only __nargin__: | | *** local user variables: | | Prot Name Size Bytes Class | ==== ==== ==== ===== ===== | rw- __nargin__ 1x1 8 double | | Total is 1 element using 8 bytes | | So, my questions are: | 1. Is http://octave.sourceforge.net/doc/D.html#D the most up to date funtion reference ? If so, why no mention of dbnext ? Someone would hardly go to the trouble of writing this fuction but then not document it ? | 2. Should I be able to see all the variables in the current funtion when I stop at a breakpoint ? If not, then what is the point of breakpoints ? | | For reference I am running release: GNU Octave, version 3.0.5, on Red Hat Linux. The latest stable release, 3.2.3 includes all of the following functions: dbclear dbdown dbnext dbstack dbstep dbtype dbwhere dbcont dbquit dbstatus dbstop dbup I recommend that you upgrade. jwe From jwe at octave.org Fri Oct 23 21:31:02 2009 From: jwe at octave.org (John W. Eaton) Date: Fri, 23 Oct 2009 22:31:02 -0400 Subject: Silent plot(x,y) In-Reply-To: References: Message-ID: <19170.26342.226001.684759@segfault.lan> On 15-Oct-2009, Karol Krizka wrote: | I'm wondering if it is possible to plot a graph without displaying | anything to the file. Basically, I'm trying to do an animated graph by | plotting them step by step (suggested here: | http://www.nabble.com/Displaying-an-animation---%22movie%22-td4199665.html | ) and saving each graph as a file. | | In summary, I have the following script: | x=[0:1]; | for i=[0:1000] | plot(x,x*i); | filename=sprintf("%02d.png",i); | print(filename); | end | | The problem is that plot command displays the graph to the screen, and | I think that it might be slowing (I show more than than 1000 frames..) | down my script. Is there a way to suppress/silent the plot() command? Try using figure (1, 'visible', 'off') before your other plotting commands. jwe From jwe at octave.org Fri Oct 23 21:32:28 2009 From: jwe at octave.org (John W. Eaton) Date: Fri, 23 Oct 2009 22:32:28 -0400 Subject: emacs info reader for octave In-Reply-To: <4AD86460.2080200@biomath.ugent.be> References: <4AD86460.2080200@biomath.ugent.be> Message-ID: <19170.26428.504061.162649@segfault.lan> On 16-Oct-2009, Aditya Bhagwat wrote: | I am trying to use the Emacs Info Reader for Octave. First, I installed | gnuserv, that seemed to work fine. Then, I added following lines to my | .emacs file: | | (autoload 'octave-help "octave-hlp" nil t) | (require 'gnuserv) | (gnuserv-start) | | as was suggested in the octave online manual | http://www.gnu.org/software/octave/doc/interpreter/Using-the-Emacs-Info-Reader-for-Octave.html#Using-the-Emacs-Info-Reader-for-Octave | | Now, I am getting the following error message when emacs starts | | An error has occurred while loading `/home/abhagwat/.emacs': | File error: Cannot open load file, gnuserv | | | Does anyone know the reason for this? Where did you install gnuserv? Is it in a directory that is listed in your Emacs load-path? jwe From bpabbott at mac.com Sat Oct 24 17:09:19 2009 From: bpabbott at mac.com (Ben Abbott) Date: Sat, 24 Oct 2009 18:09:19 -0400 Subject: plot titles are off of the plot In-Reply-To: References: <5F7C6FB5-E0AB-47ED-850E-96AFC47B9F4C@brennwald.org> Message-ID: <44F81901-200D-4D34-BAA1-C5EEC9E30773@mac.com> On Oct 24, 2009, at 4:19 PM, charles reid wrote: > On Fri, Oct 23, 2009 at 17:46, Ben Abbott wrote: > >> On Oct 23, 2009, at 1:40 PM, charles reid wrote: >> >>> On Fri, Oct 23, 2009 at 06:52, Matthias Brennwald >> > wrote: >>> >>>> On Oct 23, 2009, at 2:29 PM, help-octave-request at octave.org wrote: >>>> >>>>> Hi - >>>>> >>>>> I'm using Octave 3.2.0 on a Mac. When I create plots, the >>>>> titles are not >>>>> entirely in the plot window (see attached "Picture 1.png"). >>>>> I've tried >>>>> re-adjusting the physical position of the titles, but it doesn't >>>>> fix the >>>>> problem (the text is still cut off, or I have to make it overlap >>>>> with the >>>>> plot itself). I see this behavior using GnuPlot with either X11 >>>>> or Aquaterm >>>>> as my back-end. The behavior is really annoying, since, to see >>>>> the actual >>>>> plot titles, I have to save the plot to an external file, which >>>>> looks fine >>>>> (see attached "Picture 2.png"). Does anybody have any idea what >>>>> is causing >>>>> this? Is anyone else experiencing this problem? >>>>> >>>> Hi Charles >>>> >>>> How did you create the PNG file? I believe your problem might be >>>> related to this: >>>> >>>> http://www.nabble.com/Axis-labels-in-EPS-figure-are-outside-bounding-box-td25941582.html#a25942083 >>>> >>>> Matthias >>> >>> Yes, I'm generating these plots using the 'plot' command. Is >>> there another graphics back-end that won't have this problem? >>> >>> If you make an adjustment to the "position" property, you'll be >>> able to compensate for this *feature* of the gnuplot backend. The >>> developers are currentl working on a new backend, but printing is >>> not yet supported. >> >> To compensate, try ... >> >> set (gca, "position", [0.26 0.22 0.645 0.705]) >> >> ... and then try your print command again. >> >> Ben >> > > Hi Ben - > > Thanks for the 'set' suggestion, but it doesn't work - it's moving > the plot itself, not the title. I tried putting the command right > before and right after the title command, and putting it at the end > of all the commands related to the plot, but they all give the same > result - the plot, not the title, is shifted. > > Charles Please try one more time ... close all figure (1) plot (1:10) xlabel ("xlabel") ylabel ("ylabel") title ("title") print -dpng test1.png p = get (gca, "position"); p(4) = p(4) - p(2); set (gca, "position", p) print -dpng test2.png ... and then email each png to me so that I can compare with what I see. Also, please let us know how you obtained your octave from Fink, MacPorts, or Sourceforge. Thanks Ben From justin at maccarthy.org Sun Oct 25 09:56:50 2009 From: justin at maccarthy.org (Justin MacCarthy) Date: Sun, 25 Oct 2009 21:56:50 +0700 Subject: help with bwmorph on OS X Message-ID: <9e9015d40910250756r7714d4d7q9f15ffe7b4553f51@mail.gmail.com> I just downloaded octave , so be gentle. OS X binary. I have a *.m script that uses the bwmorph function When I try to use that function ... octave-3.2.3:17> help bwmorph error: help: `bwmorph' not found octave-3.2.3:17> bwmorph error: `bwmorph' undefined near line 17 column 1 octave-3.2.3:17> bwmorph() error: `bwmorph' undefined near line 17 column 1 octave-3.2.3:17> help bwmorph error: help: `bwmorph' not found octave-3.2.3:19> x = bwmorph('my.jpg') error: `bwmorph' undefined near line 19 column 5 octave-3.2.3:19> x = bwmorph('my.jpg','thin',3) error: `bwmorph' undefined near line 19 column 5 Any ideas ???? From bpabbott at mac.com Sun Oct 25 10:14:29 2009 From: bpabbott at mac.com (Ben Abbott) Date: Sun, 25 Oct 2009 11:14:29 -0400 Subject: plot titles are off of the plot In-Reply-To: References: <5F7C6FB5-E0AB-47ED-850E-96AFC47B9F4C@brennwald.org> <44F81901-200D-4D34-BAA1-C5EEC9E30773@mac.com> Message-ID: On Oct 25, 2009, at 10:32 AM, Stuart Edwards wrote: > On Oct 24, 2009, at 7:35 PM, charles reid wrote: > >> Hi Ben - >> >> The plots I get are the same (both at http://charles.endoftheinternet.org/test1.png >> and http://charles.endoftheinternet.org/test2.png) >> >> This solution solves my problem! Thanks for your help. (Also, in >> case it is still of interest, I am using a binary from SourceForge). >> >> >> Charles >> >> On Sat, Oct 24, 2009 at 16:12, Ben Abbott wrote: >> >> On Oct 24, 2009, at 6:09 PM, Ben Abbott wrote: >> >> On Oct 24, 2009, at 4:19 PM, charles reid wrote: >> >> On Fri, Oct 23, 2009 at 17:46, Ben Abbott wrote: >> >> On Oct 23, 2009, at 1:40 PM, charles reid wrote: >> >> On Fri, Oct 23, 2009 at 06:52, Matthias Brennwald > wrote: >> >> On Oct 23, 2009, at 2:29 PM, help-octave-request at octave.org wrote: >> >> Hi - >> >> I'm using Octave 3.2.0 on a Mac. When I create plots, the >> titles are not >> entirely in the plot window (see attached "Picture 1.png"). >> I've tried >> re-adjusting the physical position of the titles, but it doesn't >> fix the >> problem (the text is still cut off, or I have to make it overlap >> with the >> plot itself). I see this behavior using GnuPlot with either X11 >> or Aquaterm >> as my back-end. The behavior is really annoying, since, to see >> the actual >> plot titles, I have to save the plot to an external file, which >> looks fine >> (see attached "Picture 2.png"). Does anybody have any idea what >> is causing >> this? Is anyone else experiencing this problem? >> >> Hi Charles >> >> How did you create the PNG file? I believe your problem might be >> related to this: >> >> http://www.nabble.com/Axis-labels-in-EPS-figure-are-outside-bounding-box-td25941582.html#a25942083 >> >> Matthias >> >> Yes, I'm generating these plots using the 'plot' command. Is >> there another graphics back-end that won't have this problem? >> >> If you make an adjustment to the "position" property, you'll be >> able to compensate for this *feature* of the gnuplot backend. The >> developers are currentl working on a new backend, but printing is >> not yet supported. >> >> To compensate, try ... >> >> set (gca, "position", [0.26 0.22 0.645 0.705]) >> >> ... and then try your print command again. >> >> Ben >> >> Hi Ben - >> >> Thanks for the 'set' suggestion, but it doesn't work - it's moving >> the plot itself, not the title. I tried putting the command right >> before and right after the title command, and putting it at the end >> of all the commands related to the plot, but they all give the same >> result - the plot, not the title, is shifted. >> >> Charles >> >> Please try one more time ... >> >> close all >> figure (1) >> plot (1:10) >> xlabel ("xlabel") >> ylabel ("ylabel") >> title ("title") >> print -dpng test1.png >> p = get (gca, "position"); >> p(4) = p(4) - p(2); >> set (gca, "position", p) >> print -dpng test2.png >> >> ... and then email each png to me so that I can compare with what I >> see. >> >> Also, please let us know how you obtained your octave from Fink, >> MacPorts, or Sourceforge. >> >> Thanks >> Ben >> >> I'm now attaching what I see as a follow up since attaching files >> often delays them being posted to the list. >> >> Ben > apologies for jumping in.... > > In my case both the title and the xlabel are not displayed in > Aquaterm. > There is nothing wrong with the files that are created -- in both > your tests I generate the same files that you get and both open with > proper title and labels, although Test1 is better presentation - > less white space at the top. However running your procedure does > bring the title into view on Aquaterm during Test2 - do you have a > suggestion for bringing the xlabel into view? > > thx > > Stu > > 10.6.1 / 3.2.2/ Sourceforge The same approach can be used. The axis position property adjusts the lower left corner of the axis within the figure window, as well as the width and height of the axis. The position property is a 4 element vector. The 1st and 2nd elements are coordinates for the lower left corner. The 3rd and 4th elements are the width and height of the axis box. Thus, you can fix this problem by ... close all figure (1) plot (1:10) xlabel ("xlabel") ylabel ("ylabel") title ("title") p = get (gca, "position"); p(3) = p(3)-2*p(1); p(4) = p(4)-2*p(2); p(1) = 2*p(1); p(2) = 2*p(2); set (gca, "position", p) The above produces a rather small axis, so you may want to make some adjustments. Once you obtain a result that suits you, you may save the setting so that future plots use it as well. set (0, "defaultaxesposition", p) If you want that to stick the next time you run octave, add that command to your ~/.octaverc file set (0, "defaultaxesposition", [0.26 0.22 0.515 0.595]) Ben p.s. please respond at the bottom of the email so that the entire thread is easier for others to follow. Thanks. From soren at hauberg.org Sun Oct 25 10:32:03 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Sun, 25 Oct 2009 16:32:03 +0100 Subject: help with bwmorph on OS X In-Reply-To: <9e9015d40910250756r7714d4d7q9f15ffe7b4553f51@mail.gmail.com> References: <9e9015d40910250756r7714d4d7q9f15ffe7b4553f51@mail.gmail.com> Message-ID: <1256484723.4005.1.camel@sh-t400> Hi, s?n, 25 10 2009 kl. 21:56 +0700, skrev Justin MacCarthy: > octave-3.2.3:17> help bwmorph > error: help: `bwmorph' not found All the error messages tell you the same: you do not have the 'bwmorph' function. This function is part of the 'image' package. Do you have that package installed? You can tell which packages you have installed by typing pkg list at the Octave prompt. S?ren From babelproofreader at gmail.com Sun Oct 25 11:12:23 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Sun, 25 Oct 2009 09:12:23 -0700 (PDT) Subject: How do you pass two Octave functions to an .oct function? In-Reply-To: <69d8d540910212252u136091bdp51a22edbea8815b@mail.gmail.com> References: <25870717.post@talk.nabble.com> <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> <25908820.post@talk.nabble.com> <69d8d540910152253m3c7c8f81p8109e9806dd97f21@mail.gmail.com> <25928773.post@talk.nabble.com> <4ADB227F.4030707@acc.umu.se> <25974615.post@talk.nabble.com> <69d8d540910200629h1274383cuaa3e7f11d557f45d@mail.gmail.com> <25990720.post@talk.nabble.com> <69d8d540910212252u136091bdp51a22edbea8815b@mail.gmail.com> Message-ID: <26048469.post@talk.nabble.com> I'm still having problems. My .oct function code now is #include #include #include #include DEFUN_DLD (pass4, args, , "Help String") { octave_value retval; ColumnVector detrend_input = args(0).column_vector_value (); ColumnVector detrend_output(detrend_input); double intercept = detrend_input(0); double slope = ( detrend_input( detrend_input.length () - 1 ) - intercept ) / ( detrend_input.length () - 1 ); octave_value_list fft_result; ComplexColumnVector freq_rep; octave_value_list ifft_result; octave_value_list real_result; ColumnVector real_result_rep; ColumnVector retrended_real_result(detrend_input); for (octave_idx_type ii (0); ii References: <25870717.post@talk.nabble.com> <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> <25908820.post@talk.nabble.com> <69d8d540910152253m3c7c8f81p8109e9806dd97f21@mail.gmail.com> <25928773.post@talk.nabble.com> <4ADB227F.4030707@acc.umu.se> <25974615.post@talk.nabble.com> <69d8d540910200629h1274383cuaa3e7f11d557f45d@mail.gmail.com> <25990720.post@talk.nabble.com> <69d8d540910212252u136091bdp51a22edbea8815b@mail.gmail.com> <26048469.post@talk.nabble.com> Message-ID: <4AE49487.5010502@acc.umu.se> babelproofreader skrev: > I'm still having problems. My .oct function code now is > > #include > #include > #include > #include > > DEFUN_DLD (pass4, args, , "Help String") > { > octave_value retval; > ColumnVector detrend_input = args(0).column_vector_value (); > ColumnVector detrend_output(detrend_input); > double intercept = detrend_input(0); > double slope = ( detrend_input( detrend_input.length () - 1 ) - intercept > ) / ( detrend_input.length () - 1 ); > octave_value_list fft_result; > ComplexColumnVector freq_rep; > octave_value_list ifft_result; > octave_value_list real_result; > ColumnVector real_result_rep; > ColumnVector retrended_real_result(detrend_input); > > for (octave_idx_type ii (0); ii { > detrend_output(ii) = detrend_input(ii) - intercept - (ii) * slope; > } > > fft_result = feval ("fft", octave_value (detrend_output), 1); > freq_rep = fft_result (0).complex_column_vector_value (); > > // The filter code > > ComplexColumnVector filtered_freq_rep(freq_rep); > double freq = 0.05; > double wdth = 0.2; > double f = 0.0; > double wt = 0.0; > double dist = 0.0; > > for (octave_idx_type ii (1); ii < (detrend_input.length () / 2 ); ii++) > { > > f = (ii) / detrend_input.length (); > > if (f <= freq) > { > wt = 1; > } > else > { > dist = ( f - freq ) / wdth; > wt = exp ( -dist * dist ); > } > > filtered_freq_rep(ii) = freq_rep(ii) * wt; > filtered_freq_rep(detrend_input.length () - ii ) = > freq_rep(detrend_input.length () - ii ) * wt; > > } > > dist = ( 0.5 - freq ) / wdth; // Do Nyquist > filtered_freq_rep(detrend_input.length () / 2 ) = > freq_rep(detrend_input.length () / 2 ) * exp ( -dist * dist); > > // end of filer code > > ifft_result = feval ("ifft", octave_value (filtered_freq_rep), 1); > real_result = feval ("real", ifft_result, 1); > > real_result_rep = real_result (0).column_vector_value (); > > for (octave_idx_type ii (0); ii { > retrended_real_result(ii) = real_result_rep(ii) + intercept + (ii) * > slope; > } > > retval = retrended_real_result; > > return retval; > } > > which compiles without giving any error messages. However, when I run it > with data the output is exactly the same as the input - no filtering appears > to be taking place. The code in m that I'm trying to implement is > > function y=fftlowpass(x,fre,wid) > %function y=fftlowpass(x,fre,wid) > if(exist('wid')~=1) wid=0.2; end > if(exist('fre')~=1) fre=0.05; end > L=length(x); > [y,slope,intercept]=detrend(x,0,0,1); > L2=2^nextpow2(L); half_L2=L2/2; > y2=zeros(1,L2); y2(1:L)=y; > Y2=fft(y2); > for(i=2:half_L2) > f=(i-1)/L2; > if(f<=fre) > wt=1; > else > dist=(f-fre)/wid; > wt=exp(-dist*dist); > end > Y2(i)=Y2(i)*wt; > Y2(L2-i+2)=Y2(L2-i+2)*wt; > end > dist=(0.5-fre)/wid; > Y2(half_L2+1)=Y2(half_L2+1)*exp(-dist*dist); > y2=real(ifft(Y2)); > y=detrend(y2(1:L),slope,intercept,0); > > function [y,slope,intercept]=detrend(x,slope,intercept,flag) > L=length(x); > y=zeros(1,L); > if(flag==1) > intercept=x(1); > slope=(x(L)-intercept)/(L-1); > for(i=1:L) > y(i)=x(i)-intercept-(i-1)*slope; > end > else > for(i=1:L) > y(i)=x(i)+intercept+(i-1)*slope; > end > end > > I have not bothered to implement that part of the code which raises to the > next power of 2 as I know that my data will not need this. I have checked > and as far as I can see my .oct code is a faithful translation of the m > code, so I am perplexed as to why the output results are not the same for > each. > I had a quick look and I can't find anything obvious. Also, it modifies the value - the output is not the same as the input. There's a lot of intermediate results. Any of these could be wrong. Have you tried printing out the result in each stage and comparing it to the correct value from the m-code? David From jwe at octave.org Sun Oct 25 17:29:41 2009 From: jwe at octave.org (John W. Eaton) Date: Sun, 25 Oct 2009 18:29:41 -0400 Subject: sonames for liboctave & co? In-Reply-To: <1256506698.5405.17.camel@no> References: <1256506698.5405.17.camel@no> Message-ID: <19172.53589.33648.4472@segfault.lan> On 25-Oct-2009, Soeren Sonnenburg wrote: | would it be possible to use sonames for octave (and update them | properly) at each release in octave? | | It would be much easier for me when maintaining shogun (that may wrap | octave) to ensure that it still works while liboctave already undergoes | abi/api changes. | | Searching the web I've found a debian bugreport about it ( | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510579 ) and already a | request on the octave ml... | | I think it would be rather easy to do (even if you in almost all cases | have to increase the soname: I've collected instructions when to | increase the soname here | http://www.shogun-toolbox.org/doc/soname.html )... I'm in the process of switching Octave's build system to use automake and libtool. After that change is made, I'd consider a patch to set the soname for the libraries. jwe From jwe at octave.org Sun Oct 25 17:32:21 2009 From: jwe at octave.org (John W. Eaton) Date: Sun, 25 Oct 2009 18:32:21 -0400 Subject: crashes with octave3.2 when $HOME/.octave_hist is not writable In-Reply-To: <1256506521.5405.16.camel@no> References: <1256506521.5405.16.camel@no> Message-ID: <19172.53749.616570.835132@segfault.lan> On 25-Oct-2009, Soeren Sonnenburg wrote: | To reproduce do e.g: | | $ export HOME=/ | $ echo version | octave | 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 "x86_64-pc-linux-gnu". | | 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'. | | ans = 3.2.3 | error: Permission denied | terminate called after throwing an instance of | 'octave_execution_exception' | panic: Aborted -- stopping myself... | attempting to save variables to `octave-core'... | warning: unable to open `octave-core' for writing... | Aborted | | Das ging aber noch mit octave 3.0.x | | $ echo version | octave3.0 | GNU Octave, version 3.0.5 | Copyright (C) 2008 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 "x86_64-pc-linux-gnu". | | 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'. | | ans = 3.0.5 | error: Permission denied You are getting this message when Octave tries to write the history file and it fails because of permission problems. I already fixed the problem the development sources. Now I see this: $ HOME=/ /usr/local/octave/devel/bin/octave GNU Octave, version 3.3.50+ 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 "x86_64-unknown-linux-gnu". 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'. octave:1> quit error: Permission denied error: ignoring octave_execution_exception while preparing to exit Please report bugs to the bug at octave.org list, not the help list. Thanks, jwe From jwe at octave.org Sun Oct 25 23:03:52 2009 From: jwe at octave.org (John W. Eaton) Date: Mon, 26 Oct 2009 00:03:52 -0400 Subject: crashes with octave3.2 when $HOME/.octave_hist is not writable In-Reply-To: <1256526670.5405.37.camel@no> References: <1256506521.5405.16.camel@no> <19172.53749.616570.835132@segfault.lan> <1256526670.5405.37.camel@no> Message-ID: <19173.8104.988977.492894@segfault.lan> On 26-Oct-2009, Soeren Sonnenburg wrote: | On Sun, 2009-10-25 at 18:32 -0400, John W. Eaton wrote: | > On 25-Oct-2009, Soeren Sonnenburg wrote: | > | > | To reproduce do e.g: | > | | > | $ export HOME=/ | > | $ echo version | octave | [...] | > You are getting this message when Octave tries to write the history | > file and it fails because of permission problems. I already fixed the | > problem the development sources. Now I see this: | | Thanks for fixing the problem. | | > $ HOME=/ /usr/local/octave/devel/bin/octave | > GNU Octave, version 3.3.50+ | > 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 "x86_64-unknown-linux-gnu". | > | > 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'. | > | > octave:1> quit | > | > error: Permission denied | > error: ignoring octave_execution_exception while preparing to exit | | Will octave3.2 return 0 back to the shell (as did 3.0?) | | $ ( ( echo version | octave3.0 >/dev/null) ; echo $? ) | error: Permission denied | 0 Yes. jwe From justin at maccarthy.org Sun Oct 25 23:19:24 2009 From: justin at maccarthy.org (Justin MacCarthy) Date: Mon, 26 Oct 2009 11:19:24 +0700 Subject: help with bwmorph on OS X In-Reply-To: <1256484723.4005.1.camel@sh-t400> References: <9e9015d40910250756r7714d4d7q9f15ffe7b4553f51@mail.gmail.com> <1256484723.4005.1.camel@sh-t400> Message-ID: <9e9015d40910252119r7144a9d7p532da941664d921@mail.gmail.com> I've installed the image package (On Mac OSX ) and got a few warnings... octave-3.2.3:5> pkg install image-1.0.10.tar.gz In file included from /Applications/Octave.app/Contents/Resources/include/jpeglib.h:24, from jpgwrite.cc:18: /Applications/Octave.app/Contents/Resources/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined In file included from /Applications/Octave.app/Contents/Resources/include/octave-3.2.3/octave/oct.h:31, from jpgwrite.cc:11: /Applications/Octave.app/Contents/Resources/include/octave-3.2.3/octave/config.h:699:1: warning: this is the location of the previous definition In file included from /Applications/Octave.app/Contents/Resources/include/jpeglib.h:24, from jpgread.cc:49: /Applications/Octave.app/Contents/Resources/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined In file included from /Applications/Octave.app/Contents/Resources/include/octave-3.2.3/octave/oct.h:31, from jpgread.cc:41: /Applications/Octave.app/Contents/Resources/include/octave-3.2.3/octave/config.h:699:1: warning: this is the location of the previous definition also when I go to use bwmorph I'm getting another error octave-3.2.3:6> error: `swap' undefined near line 550 column 10 error: called from: error: /Users/macarthy/octave/image-1.0.10/bwmorph.m at line 550, column 9 error: /Users/macarthy/octave/myscript.m at line 17, column 12 octave-3.2.3:6> do I need to add another package for that swap function ? Is there a why to find out what package adds what function? Thanks Justin 2009/10/25 S?ren Hauberg : > Hi, > > s?n, 25 10 2009 kl. 21:56 +0700, skrev Justin MacCarthy: >> octave-3.2.3:17> help bwmorph >> error: help: `bwmorph' not found > > All the error messages tell you the same: you do not have the 'bwmorph' > function. This function is part of the 'image' package. Do you have that > package installed? You can tell which packages you have installed by > typing > > ?pkg list > > at the Octave prompt. > > S?ren > > From soren at hauberg.org Mon Oct 26 05:32:36 2009 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Mon, 26 Oct 2009 11:32:36 +0100 Subject: help with bwmorph on OS X In-Reply-To: <9e9015d40910252119r7144a9d7p532da941664d921@mail.gmail.com> References: <9e9015d40910250756r7714d4d7q9f15ffe7b4553f51@mail.gmail.com> <1256484723.4005.1.camel@sh-t400> <9e9015d40910252119r7144a9d7p532da941664d921@mail.gmail.com> Message-ID: <1256553156.3959.6.camel@sh-t400> man, 26 10 2009 kl. 11:19 +0700, skrev Justin MacCarthy: > octave-3.2.3:5> pkg install image-1.0.10.tar.gz > In file included from > /Applications/Octave.app/Contents/Resources/include/jpeglib.h:24, > from jpgwrite.cc:18: > /Applications/Octave.app/Contents/Resources/include/jconfig.h:12:1: > warning: "HAVE_STDLIB_H" redefined > In file included from > /Applications/Octave.app/Contents/Resources/include/octave-3.2.3/octave/oct.h:31, > from jpgwrite.cc:11: > /Applications/Octave.app/Contents/Resources/include/octave-3.2.3/octave/config.h:699:1: > warning: this is the location of the previous definition > In file included from > /Applications/Octave.app/Contents/Resources/include/jpeglib.h:24, > from jpgread.cc:49: > /Applications/Octave.app/Contents/Resources/include/jconfig.h:12:1: > warning: "HAVE_STDLIB_H" redefined > In file included from > /Applications/Octave.app/Contents/Resources/include/octave-3.2.3/octave/oct.h:31, > from jpgread.cc:41: > /Applications/Octave.app/Contents/Resources/include/octave-3.2.3/octave/config.h:699:1: > warning: this is the location of the previous definition I guess these warnings are okay to ignore, although it would be nice to get rid of them. > also when I go to use bwmorph I'm getting another error > > octave-3.2.3:6> > > error: `swap' undefined near line 550 column 10 > error: called from: > error: /Users/macarthy/octave/image-1.0.10/bwmorph.m at line 550, column 9 > error: /Users/macarthy/octave/myscript.m at line 17, column 12 > octave-3.2.3:6> > > do I need to add another package for that swap function ? No, this seems to be a bug in the 'bwmorph' function. I've uploaded a fix to SVN, so this will be corrected in the next version of the 'image' package. Until this is released, you can create a function with the following contents somewhere in your path function [a, b] = swap (b, a) endfunction > Is there a why to find out what package adds what function? You can go to http://octave.sourceforge.net/doc/index.html and browse the function names alphabetically. After each function name you'll see a package name. For instance, after 'edge' on http://octave.sourceforge.net/doc/E.html#E you'll see '[image]' which informs you that the 'edge' function is in the 'image' package. S?ren From babelproofreader at gmail.com Mon Oct 26 07:25:44 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Mon, 26 Oct 2009 05:25:44 -0700 (PDT) Subject: How do you pass two Octave functions to an .oct function? In-Reply-To: <4AE49487.5010502@acc.umu.se> References: <25870717.post@talk.nabble.com> <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> <25908820.post@talk.nabble.com> <69d8d540910152253m3c7c8f81p8109e9806dd97f21@mail.gmail.com> <25928773.post@talk.nabble.com> <4ADB227F.4030707@acc.umu.se> <25974615.post@talk.nabble.com> <69d8d540910200629h1274383cuaa3e7f11d557f45d@mail.gmail.com> <25990720.post@talk.nabble.com> <69d8d540910212252u136091bdp51a22edbea8815b@mail.gmail.com> <26048469.post@talk.nabble.com> <4AE49487.5010502@acc.umu.se> Message-ID: <26058829.post@talk.nabble.com> >...it modifies the value - the output is not the same as the input. How so? When I plot the input against the output the two plots are identical. >Have you tried printing out the result in each stage and comparing it to the correct value from the m-code? I compiled the code in stages and so I am sure that it is the filter code that is the problem. The code without the filtering, i.e. #include #include #include DEFUN_DLD (pass3, args, , "Help String") { octave_value retval; ColumnVector detrend_input = args(0).column_vector_value (); ColumnVector detrend_output(detrend_input); double intercept = detrend_input(0); double slope = ( detrend_input( detrend_input.length () - 1 ) - intercept ) / ( detrend_input.length () - 1 ); octave_value_list fft_result; ComplexColumnVector freq_rep; octave_value_list ifft_result; octave_value_list real_result; ColumnVector real_result_rep; ColumnVector retrended_real_result(detrend_input); for (octave_idx_type ii (0); ii Good afternoon Is in octave some function for generation of random numbers similar to pearsrnd from matlab? Thanks German From thomas.weber.mail at gmail.com Mon Oct 26 17:14:23 2009 From: thomas.weber.mail at gmail.com (Thomas Weber) Date: Mon, 26 Oct 2009 23:14:23 +0100 Subject: crashes with octave3.2 when $HOME/.octave_hist is not writable In-Reply-To: <19173.8104.988977.492894@segfault.lan> References: <1256506521.5405.16.camel@no> <19172.53749.616570.835132@segfault.lan> <1256526670.5405.37.camel@no> <19173.8104.988977.492894@segfault.lan> Message-ID: <20091026221423.GA16806@atlan> On Mon, Oct 26, 2009 at 12:03:52AM -0400, John W. Eaton wrote: > On 26-Oct-2009, Soeren Sonnenburg wrote: > > | On Sun, 2009-10-25 at 18:32 -0400, John W. Eaton wrote: > | > On 25-Oct-2009, Soeren Sonnenburg wrote: > | > > | > | To reproduce do e.g: > | > | > | > | $ export HOME=/ > | > | $ echo version | octave > | [...] > | > You are getting this message when Octave tries to write the history > | > file and it fails because of permission problems. I already fixed the > | > problem the development sources. Now I see this: > | > | Thanks for fixing the problem. > | > | > $ HOME=/ /usr/local/octave/devel/bin/octave > | > GNU Octave, version 3.3.50+ > | > 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 "x86_64-unknown-linux-gnu". > | > > | > 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'. > | > > | > octave:1> quit > | > > | > error: Permission denied > | > error: ignoring octave_execution_exception while preparing to exit > | > | Will octave3.2 return 0 back to the shell (as did 3.0?) > | > | $ ( ( echo version | octave3.0 >/dev/null) ; echo $? ) > | error: Permission denied > | 0 > > Yes. Thanks for taking care. Do you by any chance remember the changeset or which file to look at? I glanced over the last 100 Mercurial changeset, but saw nothing obvious. Thomas From jwe at octave.org Mon Oct 26 17:34:25 2009 From: jwe at octave.org (John W. Eaton) Date: Mon, 26 Oct 2009 18:34:25 -0400 Subject: crashes with octave3.2 when $HOME/.octave_hist is not writable In-Reply-To: <20091026221423.GA16806@atlan> References: <1256506521.5405.16.camel@no> <19172.53749.616570.835132@segfault.lan> <1256526670.5405.37.camel@no> <19173.8104.988977.492894@segfault.lan> <20091026221423.GA16806@atlan> Message-ID: <19174.9201.949002.931533@segfault.lan> On 26-Oct-2009, Thomas Weber wrote: | Thanks for taking care. Do you by any chance remember the changeset or | which file to look at? I glanced over the last 100 Mercurial changeset, | but saw nothing obvious. I think it was this change: http://hg.savannah.gnu.org/hgweb/octave/rev/deb668d53e60 Unless I'm missing something, I think this should be safe for 3.2.x. jwe From storrsjm at email.uc.edu Mon Oct 26 19:30:47 2009 From: storrsjm at email.uc.edu (Judd Storrs) Date: Mon, 26 Oct 2009 20:30:47 -0400 Subject: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources In-Reply-To: <19168.32006.139347.587209@segfault.lan> References: <26003427.post@talk.nabble.com> <19168.32006.139347.587209@segfault.lan> Message-ID: In case anyone else if having this problem, off the list we found that the fort77 package was causing trouble when building on Ubuntu 9.04. When fort77 is installed then ./configure prefers f77 over gfortran. In the config.log that was posted previously (http://www.nabble.com/file/p25895104/config.log) we noticed this: WARNING: cannot determine how to obtain linking information from f77 I'm not familiar with the fort77 package. Anyway, removing fort77 followed re-running ./confugure (and make clean) appears to have solved the problem. It may be good enough to F77=gfortran ./configure instead of removing fort77 but I don't think that was tried. --judd On Thu, Oct 22, 2009 at 11:40 AM, John W. Eaton wrote: > On 22-Oct-2009, Judd Storrs wrote: > > | $ sudo apt-get install build-dep octave3.0 > | > | give any errors on your system? > > I expect it would, because it would try to install the packages > build-dep and octave3.0. ?I think you mean > > ?$ sudo apt-get build-dep octave3.0 > > jwe > From alberto.frigerio1 at studenti.unimi.it Tue Oct 27 02:52:52 2009 From: alberto.frigerio1 at studenti.unimi.it (Alberto Frigerio) Date: Tue, 27 Oct 2009 00:52:52 -0700 (PDT) Subject: Nonlinear and quadratic optimization Message-ID: <26073535.post@talk.nabble.com> Hi everybody, I've some questions about non linear and quadratic optimization. Looking at the functions qp.m and glpk.m I've found the functions __qp.m__ and __qlpk.m__ . It is possibile to me to look at this functions too? By the way, it possible to know on what algorithms functions sqp.m and qp.m are based? Thank you, Alberto -- View this message in context: http://www.nabble.com/Nonlinear-and-quadratic-optimization-tp26073535p26073535.html Sent from the Octave - General mailing list archive at Nabble.com. From pleser at sup-logistik.de Tue Oct 27 07:51:33 2009 From: pleser at sup-logistik.de (Philipp Leser) Date: Tue, 27 Oct 2009 13:51:33 +0100 Subject: Running Matlog in Octave Message-ID: <0EA9662A402E6A4B88078E93D7F20D7B784473@x346-001w2k3.sup2000.sup-logistik.de> Hey; I try to play around with some Vehicle Routing Problems and the according m. files in the Matlog toolbox (http://www.ise.ncsu.edu/kay/matlog/). I do not have a license for MATLAB at home (only at the university), so I wanted to run the toolbox from Octave. I tried it at the university and the files do run in MATLAB. The functions vrpsweep and vrpsavings create an error when called using the simple example presented in the help/comment section in the header of the file. The error occurs in the first real line of code : " error: error: called from vrpsavings at line 41 column 1 keyboard : stopped in C:\Octave\3.2.2_gcc-4.3.0\bin\matlog\vrpsavings.m debug> " Line 44 column 1 is : error(nargchk(1,6,nargin)) Checking nargin in debug mode results in nargin = 2 (as expected). So 1 References: <0EA9662A402E6A4B88078E93D7F20D7B784473@x346-001w2k3.sup2000.sup-logistik.de> Message-ID: <4AE70F58.3000700@gmx.de> Am 27.10.2009 13:51, schrieb Philipp Leser: > > Hey; > > I try to play around with some Vehicle Routing Problems and the > according m. files in the Matlog toolbox > (http://www.ise.ncsu.edu/kay/matlog/). I do not have a license for > MATLAB at home (only at the university), so I wanted to run the > toolbox from Octave. I tried it at the university and the files do run > in MATLAB. > > The functions vrpsweep and vrpsavings create an error when called > using the simple example presented in the help/comment section in the > header of the file. The error occurs in the first real line of code : > > " > > error: > > error: called from > > vrpsavings at line 41 column 1 > > keyboard : stopped in C:\Octave\3.2.2_gcc-4.3.0\bin\matlog\vrpsavings.m > > debug> > > " > > Line 44 column 1 is : > > error(nargchk(1,6,nargin)) > > Checking nargin in debug mode results in nargin = 2 (as expected). So > 1 know where to start. > > ThX in advance. > > P.S.: sorry for my bad English. I am no native speaker. > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > Hello, I had the same problem recently, see: http://www.nabble.com/error%28%29-incompatibility-td25686298.html#a25688267 It has been fixed in the developer sources. Kai -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091027/d7522415/attachment.html From dbateman at dbateman.org Tue Oct 27 13:59:36 2009 From: dbateman at dbateman.org (David Bateman) Date: Tue, 27 Oct 2009 19:59:36 +0100 Subject: Generation of random number In-Reply-To: <8fc565840910261450r295661acr4c55ee4368dfd300@mail.gmail.com> References: <8fc565840910261450r295661acr4c55ee4368dfd300@mail.gmail.com> Message-ID: <4AE74318.2010201@dbateman.org> German Ocampo wrote: > Good afternoon > > Is in octave some function for generation of random numbers similar to > pearsrnd from matlab? > > > Thanks > > German No, but if you know the type of the distribution that will be returned by pearsrnd all of the possible distribution types exist in Octave.. Given that I suppose it should be relatively simple to write the pearsrnd function and would just be a distribution selection and dispatch to another function.. Regards David From dbateman at dbateman.org Tue Oct 27 14:48:17 2009 From: dbateman at dbateman.org (David Bateman) Date: Tue, 27 Oct 2009 20:48:17 +0100 Subject: Running Matlog in Octave In-Reply-To: <4AE70F58.3000700@gmx.de> References: <0EA9662A402E6A4B88078E93D7F20D7B784473@x346-001w2k3.sup2000.sup-logistik.de> <4AE70F58.3000700@gmx.de> Message-ID: <4AE74E81.1090105@dbateman.org> K. Habel wrote: > Am 27.10.2009 13:51, schrieb Philipp Leser: >> >> Hey; >> >> I try to play around with some Vehicle Routing Problems and the >> according m. files in the Matlog toolbox >> (http://www.ise.ncsu.edu/kay/matlog/). I do not have a license for >> MATLAB at home (only at the university), so I wanted to run the >> toolbox from Octave. I tried it at the university and the files do >> run in MATLAB. >> >> The functions vrpsweep and vrpsavings create an error when called >> using the simple example presented in the help/comment section in the >> header of the file. The error occurs in the first real line of code : >> >> " >> >> error: >> >> error: called from >> >> vrpsavings at line 41 column 1 >> >> keyboard : stopped in C:\Octave\3.2.2_gcc-4.3.0\bin\matlog\vrpsavings.m >> >> debug> >> >> " >> >> Line 44 column 1 is : >> >> error(nargchk(1,6,nargin)) >> >> Checking nargin in debug mode results in nargin = 2 (as expected). So >> 1> know where to start. >> >> ThX in advance. >> >> P.S.: sorry for my bad English. I am no native speaker. >> >> >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> > Hello, > > I had the same problem recently, see: > > http://www.nabble.com/error%28%29-incompatibility-td25686298.html#a25688267 > > > It has been fixed in the developer sources. > > Kai A workaround would be to replace error(nargchk(1,6,nargin)) with str = nargchk (1, 6, nargin); if (~isempty (str)) error (str); end that should work in Matlab and Octave correctly. D. -- David Bateman dbateman at dbateman.org 35 rue Gambetta +33 1 46 04 02 18 (Home) 92100 Boulogne-Billancourt FRANCE +33 6 72 01 06 33 (Mob) From frenk.calza at gmail.com Wed Oct 28 05:07:45 2009 From: frenk.calza at gmail.com (franco basaglia) Date: Wed, 28 Oct 2009 11:07:45 +0100 Subject: octave and delay ode's Message-ID: Hi all, I'm trying to solve a system of Seven ODE's (from Stella) by Octave using lsode. Two of this are delay differential equations. For example on state variable S(t): %S(t) % S(t)=S(t-dt)+(dSi-dSo)?dt % dSi = 0.2?DELAY((F+0.5?U)?(1-GP),5)?(1-S)?(1-T)?AE %this is Stella definition % DELAY on S(t) %%% F=x(2); U=x(4); GP=1-exp(d*x(5)); S=x(6); T=x(7) if (t < 5*delta_t) t_back = t; t = 0; delay_si = ((x(2)+0.5*x(4))*(exp(d*x(5)))); t = t_back; t; else t_back = t; t = t-5*delta_t; delay_si = ((x(2)+0.5*x(4))*(exp(d*x(5)))); t = t_back; endif dSi = 0.2*delay_si*(1-x(6))*(1-x(7))*AE; dSo = (0.1 + 1 - exp(d*x(5))) * (0.1 + x(7)) * x(6) * 0.2; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% xdot(6) = dSi - dSo ; Using lsode(adaptive step size method), for Cycle doesn't work because there is an "incompatibility" on delta_t. Maybe if I print a matrix with x(t) value for every dt I can run for Cycle on these values. But I don't know how to print this matrix with lsode. Any idea ? Alternative way to solve ode's delay? Thanks best regards f.b. -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091028/e6bb4901/attachment.html From carlo.defalco at gmail.com Wed Oct 28 05:39:33 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Wed, 28 Oct 2009 11:39:33 +0100 Subject: octave and delay ode's In-Reply-To: References: Message-ID: <39CEC9CB-7B58-4173-8E6D-9C7BF6CBE6B4@gmail.com> On 28 Oct 2009, at 11:07, franco basaglia wrote: > Hi all, > > I'm trying to solve a system of Seven ODE's (from Stella) by Octave > using lsode. > Two of this are delay differential equations. For example on state > variable S(t): > > %S(t) > % S(t)=S(t?dt)+(dSi?dSo)?dt > > % dSi = 0.2?DELAY((F+0.5?U)?(1?GP),5)?(1?S)?(1?T)?AE > %this is Stella definition > % DELAY on S(t) > %%% F=x(2); U=x(4); GP=1-exp(d*x(5)); S=x(6); T=x(7) > > if (t < 5*delta_t) > t_back = t; > t = 0; > delay_si = ((x(2)+0.5*x(4))*(exp(d*x(5)))); > t = t_back; > t; > else > t_back = t; > t = t-5*delta_t; > delay_si = ((x(2)+0.5*x(4))*(exp(d*x(5)))); > t = t_back; > endif > > dSi = 0.2*delay_si*(1-x(6))*(1-x(7))*AE; > > dSo = (0.1 + 1 - exp(d*x(5))) * (0.1 + x(7)) * x(6) * 0.2; > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > xdot(6) = dSi - dSo ; > > > Using lsode(adaptive step size method), for Cycle doesn't work > because there is an ?incompatibility? on delta_t. > Maybe if I print a matrix with x(t) value for every dt I can run for > Cycle on these values. > But I don't know how to print this matrix with lsode. > > Any idea ? > Alternative way to solve ode's delay? > > Thanks > > best regards > f.b. I don't really understand your code but for solving DDEs you might want to take a look at the ode**d [1] in the octave-forge package "odepkg" [2]. c. [1] http://octave.sourceforge.net/doc/f/ode23d.html http://octave.sourceforge.net/doc/f/ode45d.html http://octave.sourceforge.net/doc/f/ode54d.html http://octave.sourceforge.net/doc/f/ode78d.html [2] http://octave.sourceforge.net/odepkg/index.html From frenk.calza at gmail.com Wed Oct 28 06:02:22 2009 From: frenk.calza at gmail.com (franco basaglia) Date: Wed, 28 Oct 2009 12:02:22 +0100 Subject: octave and delay ode's In-Reply-To: <39CEC9CB-7B58-4173-8E6D-9C7BF6CBE6B4@gmail.com> References: <39CEC9CB-7B58-4173-8E6D-9C7BF6CBE6B4@gmail.com> Message-ID: ""I don't really understand your code"" Pratically I have to convert to Octave this Stella equation: dSi = 0.2?DELAY((F+0.5?U)?(1-GP),5)?(1-S)?(1-T)?AE where (F+0.5?U)?(1-GP) lag behind by 5 time units. For the first 5 time units of the simulation, the delay will return the initial values. So I use for cycle. ""for solving DDEs you might want to take a look at the ode**d [1] in the octave-forge package "odepkg" [2]"" I know this package but I don't know how to apply to my system. I'm a newbie. Have you some examples? thanks best regards f.b. 2009/10/28 Carlo de Falco > > On 28 Oct 2009, at 11:07, franco basaglia wrote: > > Hi all, >> >> I'm trying to solve a system of Seven ODE's (from Stella) by Octave using >> lsode. >> Two of this are delay differential equations. For example on state >> variable S(t): >> >> %S(t) >> % S(t)=S(t-dt)+(dSi-dSo)?dt >> >> % dSi = 0.2?DELAY((F+0.5?U)?(1-GP),5)?(1-S)?(1-T)?AE %this is Stella >> definition >> % DELAY on S(t) >> %%% F=x(2); U=x(4); GP=1-exp(d*x(5)); S=x(6); T=x(7) >> >> if (t < 5*delta_t) >> t_back = t; >> t = 0; >> delay_si = ((x(2)+0.5*x(4))*(exp(d*x(5)))); >> t = t_back; >> t; >> else >> t_back = t; >> t = t-5*delta_t; >> delay_si = ((x(2)+0.5*x(4))*(exp(d*x(5)))); >> t = t_back; >> endif >> >> dSi = 0.2*delay_si*(1-x(6))*(1-x(7))*AE; >> >> dSo = (0.1 + 1 - exp(d*x(5))) * (0.1 + x(7)) * x(6) * 0.2; >> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >> xdot(6) = dSi - dSo ; >> >> >> Using lsode(adaptive step size method), for Cycle doesn't work because >> there is an "incompatibility" on delta_t. >> Maybe if I print a matrix with x(t) value for every dt I can run for Cycle >> on these values. >> But I don't know how to print this matrix with lsode. >> >> Any idea ? >> Alternative way to solve ode's delay? >> >> Thanks >> >> best regards >> f.b. >> > > I don't really understand your code but for solving DDEs you might want to > take a look at the ode**d [1] in the octave-forge package "odepkg" [2]. > c. > > [1] http://octave.sourceforge.net/doc/f/ode23d.html > http://octave.sourceforge.net/doc/f/ode45d.html > http://octave.sourceforge.net/doc/f/ode54d.html > http://octave.sourceforge.net/doc/f/ode78d.html > > [2] http://octave.sourceforge.net/odepkg/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091028/be5d03d0/attachment.html From carlo.defalco at gmail.com Wed Oct 28 08:47:58 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Wed, 28 Oct 2009 14:47:58 +0100 Subject: octave and delay ode's In-Reply-To: References: <39CEC9CB-7B58-4173-8E6D-9C7BF6CBE6B4@gmail.com> Message-ID: <59CCC399-AC46-45F9-AD93-A0643AFC0EA8@gmail.com> On 28 Oct 2009, at 12:02, franco basaglia wrote: > ""I don't really understand your code"" > > Pratically I have to convert to Octave this Stella equation: > dSi = 0.2?DELAY((F+0.5?U)?(1?GP),5)?(1?S)?(1?T)?AE > > where (F+0.5?U)?(1?GP) lag behind by 5 time units. For the first > 5 time units of the simulation, the delay will return the initial > values. > So I use for cycle. sorry, I don't know what "stella" is so I do not understand this syntax, maybe you could describe your system in plain mathematical syntax? > > ""for solving DDEs you might want to take a look at the ode**d [1] > in the octave-forge package "odepkg" [2]"" > > I know this package but I don't know how to apply to my system. I'm > a newbie. Have you some examples? yes, odepkg comes with a very nice set of examples and a pdf manual, type odepkg_examples_dde () to see some DDE examples. If you have installed odepkg, the manual should be located in the folder ~/octave/odepkg-0.6.9/doc > thanks > > best regards > f.b. HTH, c. From coccoinomane at gmail.com Wed Oct 28 09:33:01 2009 From: coccoinomane at gmail.com (Guido Walter Pettinari) Date: Wed, 28 Oct 2009 14:33:01 +0000 Subject: qtoctave on Mac Os X 10.6 Snow Leopard - menus not working Message-ID: <3CBDFF69-245B-499B-AC11-5B4C6B7CE359@gmail.com> Hi all! I succesfully installed and compiled qtoctave (http://qtoctave.wordpress.com/ ) in my MacBook Pro running Mac Os X 10.6 aka Snow Leopard with QT 4.5.3. I strongly suggest this gui, it has functionality which in my opinion are, to some extent, even better than Matlab gui. Everythink is working fine, but I have two problems: 1) Menus won?t load; both default ones in /usr/local/share/qtoctave/ menus and custom ones in ~/.qtoctave/menus won?t show up in the menu bar. The only entry is the useless ?qtoctave?. The only exception is when the focus is on the editor window, where I can see the defualt editing menus (View, File, Edit, Run, Tools, Config). I can use qtoctave without menus, but I really would like to enable them; 2) I do not know how to use easy_plot. This is not a bug, it is just my ignorance :) On a side note, did anybody manage to install the QT terminal for gnuplot on Snow Leopard? I get plenty of errors when compiling gnuplot witht the ?eneable-qt option? Thank you very much for any help! Guido From individ at acc.umu.se Wed Oct 28 09:44:21 2009 From: individ at acc.umu.se (David Grundberg) Date: Wed, 28 Oct 2009 15:44:21 +0100 Subject: qtoctave on Mac Os X 10.6 Snow Leopard - menus not working In-Reply-To: <3CBDFF69-245B-499B-AC11-5B4C6B7CE359@gmail.com> References: <3CBDFF69-245B-499B-AC11-5B4C6B7CE359@gmail.com> Message-ID: <4AE858C5.3070108@acc.umu.se> Guido Walter Pettinari wrote: > Hi all! > > I succesfully installed and compiled qtoctave (http://qtoctave.wordpress.com/ > ) in my MacBook Pro running Mac Os X 10.6 aka Snow Leopard with QT > 4.5.3. I strongly suggest this gui, it has functionality which in my > opinion are, to some extent, even better than Matlab gui. > > Everythink is working fine, but I have two problems: > > 1) Menus won?t load; both default ones in /usr/local/share/qtoctave/ > menus and custom ones in ~/.qtoctave/menus won?t show up in the menu > bar. The only entry is the useless ?qtoctave?. The only exception is > when the focus is on the editor window, where I can see the defualt > editing menus (View, File, Edit, Run, Tools, Config). I can use > qtoctave without menus, but I really would like to enable them; > > 2) I do not know how to use easy_plot. This is not a bug, it is just > my ignorance :) > > On a side note, did anybody manage to install the QT terminal for > gnuplot on Snow Leopard? I get plenty of errors when compiling gnuplot > witht the ?eneable-qt option? > > Thank you very much for any help! > > Guido > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > If you have inquiries about qtoctave, you will have to contact those who develop qtoctave. The Octave help mailing list is about using GNU Octave. David From andreas.kuntzagk at mdc-berlin.de Wed Oct 28 10:41:29 2009 From: andreas.kuntzagk at mdc-berlin.de (Andreas Kuntzagk) Date: Wed, 28 Oct 2009 16:41:29 +0100 Subject: Binaries for SLES10 In-Reply-To: <69d8d540910200643w2db4856bs877fabf0f23a156a@mail.gmail.com> References: <4ADD9A7C.8080500@mdc-berlin.de> <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> <4ADDA413.7030904@mdc-berlin.de> <1256041141.4689.16.camel@sh-t400> <4ADDAE28.9090407@mdc-berlin.de> <69d8d540910200643w2db4856bs877fabf0f23a156a@mail.gmail.com> Message-ID: <4AE86629.50506@mdc-berlin.de> I just now started again to work on this problem and ATM it fails while linking against the static liblapack.a with this -fPIC error. I also have a liblapack.so and it should link against this. I configured with "--enable-shared". How do I force it to use the shared liblapack.so (both static and shared are in same directory) regards, Andreas Jaroslav Hajek wrote: > On Tue, Oct 20, 2009 at 2:33 PM, Andreas Kuntzagk > wrote: >> Hi, >> >>> At my previous just I had to use SUSE as well, and getting Octave up and >>> running was not a particular joyful experience. SUSE is just not very >>> good at packaging basic scientific libraries, so you'll have to compile >>> a lot of stuff yourself from scratch. >> Yeah, but for this I need to find out what libraries are missing and >> where to get them. >> >>> You can get some (semi-old) Octave RPM's for SUSE by searching at >>> >>> http://software.opensuse.org/search >> Ok, didn't know this page before. There seems to be some 3.0.3 binaries >> there. I'll try and come back with results. >> >>> but (at least the last time I used them) they did not come with full >>> functionality (no QHull and no suite-sparse as far as I remember). >> Actually I don't know what functionality is required here. Have to >> investigate. >> >>> I'm sorry that the answer isn't more satisfactory, but in my experience >>> SUSE just isn't very good for scientific work :-( >> Unfortunately changing distro is not an option right now. This is a big >> compute cluster (in production) and I can't start from scratch again. >> For the next time what distro do you propose for scientific computing? >> >> regards, Andreas > > We have a cluster running SUSE too, and I think I had to compile all > libs from scratch as well, except BLAS and LAPACK. OTOH, the work > needs only to be done once, and I'm routinely rebuilding Octave (to be > used by all other users) from sources every 2-4 weeks... > > For a modest reward I'd be willing to do the same on your cluster :D > > But seriously, compiling Octave is surely much more work, but the > result is worth it. You can use heavy compiler optimizations (we use > Intel C++ with -O3), you can link in vendor-tuned BLAS if you have it > (we use AMD's multi-threaded ACML) and most importantly, you get the > most recent sources with the latest features. Also, when a bug is > fixed, you just download and apply the patch (using mercurial that's > trivial) and rebuild, no need to wait for next release... > > hth > From mjscosta at lnec.pt Wed Oct 28 13:37:42 2009 From: mjscosta at lnec.pt (=?ISO-8859-1?Q?M=E1rio_Costa?=) Date: Wed, 28 Oct 2009 18:37:42 +0000 Subject: Binaries for SLES10 In-Reply-To: <4AE86629.50506@mdc-berlin.de> References: <4ADD9A7C.8080500@mdc-berlin.de> <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> <4ADDA413.7030904@mdc-berlin.de> <1256041141.4689.16.camel@sh-t400> <4ADDAE28.9090407@mdc-berlin.de> <69d8d540910200643w2db4856bs877fabf0f23a156a@mail.gmail.com> <4AE86629.50506@mdc-berlin.de> Message-ID: <4292f1ce0910281137p3398985dp5327daf557253b22@mail.gmail.com> >From my experience you will have a lot of problems compiling a static version of octave, plus you will not be able yo add any of the external available modules for octave, since it is required dynamic linking, in order for those to be loaded by octave ... I've managed to build from source a dynamic version for SLES 10, although I was unable to use an up-to-date version of gnuplot, and compiling that from source seems a nightmare ... I cat tell you I've used SRPMS in one of the cluster nodes (build node) to compile and create the rpms, some of the specs required minor chages as they where only available for fedora or so ... Then used the rmps created at that node to install in all the other nodes of the cluster ... Regards, M?rio On Wed, Oct 28, 2009 at 3:41 PM, Andreas Kuntzagk wrote: > I just now started again to work on this problem and ATM it fails while > linking against the static liblapack.a with this -fPIC error. I also > have a liblapack.so and it should link against this. I configured with > "--enable-shared". How do I force it to use the shared liblapack.so > (both static and shared are in same directory) > > regards, Andreas > > Jaroslav Hajek wrote: >> On Tue, Oct 20, 2009 at 2:33 PM, Andreas Kuntzagk >> wrote: >>> Hi, >>> >>>> At my previous just I had to use SUSE as well, and getting Octave up and >>>> running was not a particular joyful experience. SUSE is just not very >>>> good at packaging basic scientific libraries, so you'll have to compile >>>> a lot of stuff yourself from scratch. >>> Yeah, but for this I need to find out what libraries are missing and >>> where to get them. >>> >>>> You can get some (semi-old) Octave RPM's for SUSE by searching at >>>> >>>> ? http://software.opensuse.org/search >>> Ok, didn't know this page before. There seems to be some 3.0.3 binaries >>> there. I'll try and come back with results. >>> >>>> but (at least the last time I used them) they did not come with full >>>> functionality (no QHull and no suite-sparse as far as I remember). >>> Actually I don't know what functionality is required here. Have to >>> investigate. >>> >>>> I'm sorry that the answer isn't more satisfactory, but in my experience >>>> SUSE just isn't very good for scientific work :-( >>> Unfortunately changing distro is not an option right now. This is a big >>> compute cluster (in production) and I can't start from scratch again. >>> For the next time what distro do you propose for scientific computing? >>> >>> regards, Andreas >> >> We have a cluster running SUSE too, and I think I had to compile all >> libs from scratch as well, except BLAS and LAPACK. OTOH, the work >> needs only to be done once, and I'm routinely rebuilding Octave (to be >> used by all other users) from sources every 2-4 weeks... >> >> For a modest reward I'd be willing to do the same on your cluster :D >> >> But seriously, compiling Octave is surely much more work, but the >> result is worth it. You can use heavy compiler optimizations (we use >> Intel C++ with -O3), you can link in vendor-tuned BLAS if you have it >> (we use AMD's multi-threaded ACML) and most importantly, you get the >> most recent sources with the latest features. Also, when a bug is >> fixed, you just download and apply the patch (using mercurial that's >> trivial) and rebuild, no need to wait for next release... >> >> hth >> > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > From nmartin at instrumental.com Wed Oct 28 14:44:19 2009 From: nmartin at instrumental.com (Neal Martin) Date: Wed, 28 Oct 2009 15:44:19 -0400 Subject: Octave Out-of-Core Solution? Message-ID: <001501ca5807$0ad3aba0$207b02e0$@com> Can someone explain how Octave handles the situation in which a user runs a large job that exceeds the memory capacity of the system (for example, 1M X 1M FFT)? In particular, if the system is configured with a large swap space, is it used? Is the implementation of the FFT done as an out-of-core solution? If so, does it fail under certain system configuration conditions and what are these conditions? Thanks, Neal ________________________________________ Neal Martin | Senior Technologist Instrumental, Inc | High Performance Innovation Address: ? ? 105 Lancers Loft, Peachtree City, GA 30269 Direct: ? ? ?770.487.0093 Mobile: ? ? ?678.794.2591 E-Mail: ? ? ?nmartin at Instrumental.com Web: ? ? ? ? http://www.instrumental.com STRICTLY PERSONAL AND CONFIDENTIAL. This email may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please?contact the sender and delete all copies. From dbateman at dbateman.org Wed Oct 28 16:11:14 2009 From: dbateman at dbateman.org (David Bateman) Date: Wed, 28 Oct 2009 22:11:14 +0100 Subject: Octave Out-of-Core Solution? In-Reply-To: <001501ca5807$0ad3aba0$207b02e0$@com> References: <001501ca5807$0ad3aba0$207b02e0$@com> Message-ID: <4AE8B372.2010501@dbateman.org> Neal Martin wrote: > Can someone explain how Octave handles the situation in which a user > runs a large job that > exceeds the memory capacity of the system (for example, 1M X 1M FFT)? > In particular, if > the system is configured with a large swap space, is it used? Is the > implementation of > the FFT done as an out-of-core solution? If so, does it fail under > certain system > configuration conditions and what are these conditions? > Octave relies on third-party libraries to do the heavy lifting and if these support out-of-core solution then Octave will. I had my own lapack dgetrf and dgetrs out-of-core functions a few years back when my problem would fit in the memory of my machine and I could probably dig them up and send them to you, if you can't find other lapack out-of-core implementation, and these might be used for an LU solver with Octave I suppose. However for FFTs Octave uses FFTW and I don't believe that FFTW has any out-of-core support D. -- David Bateman dbateman at dbateman.org 35 rue Gambetta +33 1 46 04 02 18 (Home) 92100 Boulogne-Billancourt FRANCE +33 6 72 01 06 33 (Mob) From lorenzorodrigo2000 at hotmail.com Wed Oct 28 22:02:48 2009 From: lorenzorodrigo2000 at hotmail.com (RicardoCaruso) Date: Wed, 28 Oct 2009 20:02:48 -0700 (PDT) Subject: Print inside loop Message-ID: <26105461.post@talk.nabble.com> If I put printf() in a for loop, the message doesn't appear until the loop is finished. Is there any way to output a string before that? -- View this message in context: http://www.nabble.com/Print-inside-loop-tp26105461p26105461.html Sent from the Octave - General mailing list archive at Nabble.com. From storrsjm at email.uc.edu Thu Oct 29 00:38:40 2009 From: storrsjm at email.uc.edu (Judd Storrs) Date: Thu, 29 Oct 2009 01:38:40 -0400 Subject: Print inside loop In-Reply-To: <26105461.post@talk.nabble.com> References: <26105461.post@talk.nabble.com> Message-ID: It would be helpful if you could provide an example of the problem. I'll try and guess that you need to include more off sometime prior to your loop to disable the pager. --judd On Wed, Oct 28, 2009 at 11:02 PM, RicardoCaruso wrote: > > If I put printf() in a for loop, the message doesn't appear until the loop is > finished. Is there any way to output a string before that? > -- > View this message in context: http://www.nabble.com/Print-inside-loop-tp26105461p26105461.html > Sent from the Octave - General mailing list archive at Nabble.com. > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > From lorenzorodrigo2000 at hotmail.com Thu Oct 29 01:11:28 2009 From: lorenzorodrigo2000 at hotmail.com (RicardoCaruso) Date: Wed, 28 Oct 2009 23:11:28 -0700 (PDT) Subject: Print inside loop In-Reply-To: References: <26105461.post@talk.nabble.com> Message-ID: <26107350.post@talk.nabble.com> Thanks for answering. I have something like this: for j=1:N printf("Iteration %d", j); %All of this strings appear when the function finish. % ... some operations that take quite a long time... end I don't want all the strings to be printed at the end. Judd Storrs wrote: > > It would be helpful if you could provide an example of the problem. > I'll try and guess that you need to include > > more off > > sometime prior to your loop to disable the pager. > > > --judd > > > On Wed, Oct 28, 2009 at 11:02 PM, RicardoCaruso > wrote: >> >> If I put printf() in a for loop, the message doesn't appear until the >> loop is >> finished. Is there any way to output a string before that? >> -- >> View this message in context: >> http://www.nabble.com/Print-inside-loop-tp26105461p26105461.html >> Sent from the Octave - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://www.nabble.com/Print-inside-loop-tp26105461p26107350.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Thu Oct 29 01:53:55 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Thu, 29 Oct 2009 07:53:55 +0100 Subject: Print inside loop In-Reply-To: <26107350.post@talk.nabble.com> References: <26105461.post@talk.nabble.com> <26107350.post@talk.nabble.com> Message-ID: On 29 Oct 2009, at 07:11, RicardoCaruso wrote: > > Thanks for answering. > I have something like this: > > for j=1:N > > printf("Iteration %d", j); %All of this strings appear when the > function finish. > > % ... some operations that take quite a long time... > > end > > I don't want all the strings to be printed at the end. have you disabled the pager before running your code? try typing the command more off at the beginning of your Octave session c. From andreas.kuntzagk at mdc-berlin.de Thu Oct 29 02:34:15 2009 From: andreas.kuntzagk at mdc-berlin.de (Andreas Kuntzagk) Date: Thu, 29 Oct 2009 08:34:15 +0100 Subject: Binaries for SLES10 In-Reply-To: <4292f1ce0910281137p3398985dp5327daf557253b22@mail.gmail.com> References: <4ADD9A7C.8080500@mdc-berlin.de> <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> <4ADDA413.7030904@mdc-berlin.de> <1256041141.4689.16.camel@sh-t400> <4ADDAE28.9090407@mdc-berlin.de> <69d8d540910200643w2db4856bs877fabf0f23a156a@mail.gmail.com> <4AE86629.50506@mdc-berlin.de> <4292f1ce0910281137p3398985dp5327daf557253b22@mail.gmail.com> Message-ID: <4AE94577.4090402@mdc-berlin.de> Hi, > From my experience you will have a lot of problems compiling a static > version of octave, plus you will not be able yo add any of the > external available modules for octave, since it is required dynamic > linking, in order for those to be loaded by octave ... But I don't want static!!! I ran "configure --enable-shared" (also did a "make clean". Also the shared version of that liblapack is available so I don't know why it compiles against the static liblapack.a My experiences with compiling C and C++ are a little dusted (apart from the usual "configure; make; make install") so maybe it's something stupid. > I've managed to build from source a dynamic version for SLES 10, > although I was unable to use an up-to-date version of gnuplot, and > compiling that from source seems a nightmare ... > > I cat tell you I've used SRPMS in one of the cluster nodes (build > node) to compile and create the rpms, some of the specs required minor > chages as they where only available for fedora or so ... > > Then used the rmps created at that node to install in all the other > nodes of the cluster ... I don't really need rpm's since I have a /usr/local on a NFS for such shared software. But would you mind to send me your rpm's ? Maybe they are working for me? Or do they have some special dependencies built in? regards, Andreas > > Regards, > M?rio > > On Wed, Oct 28, 2009 at 3:41 PM, Andreas Kuntzagk > wrote: >> I just now started again to work on this problem and ATM it fails while >> linking against the static liblapack.a with this -fPIC error. I also >> have a liblapack.so and it should link against this. I configured with >> "--enable-shared". How do I force it to use the shared liblapack.so >> (both static and shared are in same directory) >> >> regards, Andreas >> >> Jaroslav Hajek wrote: >>> On Tue, Oct 20, 2009 at 2:33 PM, Andreas Kuntzagk >>> wrote: >>>> Hi, >>>> >>>>> At my previous just I had to use SUSE as well, and getting Octave up and >>>>> running was not a particular joyful experience. SUSE is just not very >>>>> good at packaging basic scientific libraries, so you'll have to compile >>>>> a lot of stuff yourself from scratch. >>>> Yeah, but for this I need to find out what libraries are missing and >>>> where to get them. >>>> >>>>> You can get some (semi-old) Octave RPM's for SUSE by searching at >>>>> >>>>> http://software.opensuse.org/search >>>> Ok, didn't know this page before. There seems to be some 3.0.3 binaries >>>> there. I'll try and come back with results. >>>> >>>>> but (at least the last time I used them) they did not come with full >>>>> functionality (no QHull and no suite-sparse as far as I remember). >>>> Actually I don't know what functionality is required here. Have to >>>> investigate. >>>> >>>>> I'm sorry that the answer isn't more satisfactory, but in my experience >>>>> SUSE just isn't very good for scientific work :-( >>>> Unfortunately changing distro is not an option right now. This is a big >>>> compute cluster (in production) and I can't start from scratch again. >>>> For the next time what distro do you propose for scientific computing? >>>> >>>> regards, Andreas >>> We have a cluster running SUSE too, and I think I had to compile all >>> libs from scratch as well, except BLAS and LAPACK. OTOH, the work >>> needs only to be done once, and I'm routinely rebuilding Octave (to be >>> used by all other users) from sources every 2-4 weeks... >>> >>> For a modest reward I'd be willing to do the same on your cluster :D >>> >>> But seriously, compiling Octave is surely much more work, but the >>> result is worth it. You can use heavy compiler optimizations (we use >>> Intel C++ with -O3), you can link in vendor-tuned BLAS if you have it >>> (we use AMD's multi-threaded ACML) and most importantly, you get the >>> most recent sources with the latest features. Also, when a bug is >>> fixed, you just download and apply the patch (using mercurial that's >>> trivial) and rebuild, no need to wait for next release... >>> >>> hth >>> >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> From aditya at biomath.ugent.be Thu Oct 29 03:26:17 2009 From: aditya at biomath.ugent.be (aditya at biomath.ugent.be) Date: Thu, 29 Oct 2009 09:26:17 +0100 (CET) Subject: patch to install octave forge packages on mac os 10.6 (snow leopard) In-Reply-To: References: Message-ID: <49442.78.22.132.175.1256804777.squirrel@biomath.ugent.be> Dear all, I wasn't able to install octave forge packages on my mac (os 10.6) for a long time, but thanks to the following blog I got it working! It helped me so much that I wanted to share this with you all! http://www.supermegaultragroovy.com/blog/2009/09/17/installing-octave-packages-in-snow-leopard/ Greetz, Adi From tmacchant at yahoo.co.jp Thu Oct 29 06:03:47 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Thu, 29 Oct 2009 20:03:47 +0900 (JST) Subject: Print inside loop In-Reply-To: <26105461.post@talk.nabble.com> Message-ID: <20091029110347.27119.qmail@web3803.mail.bbt.yahoo.co.jp> Please try page_screen_output (false) for i=1:10; disp(i);pause(1);end However this disable pager. If you would like to keep pager active, Please try for i=1:10; fprintf(stderr, "%d\n",i);pause(1);end without page_screen_output (false) Good luck! Tatsuro --- RicardoCaruso wrote: > > If I put printf() in a for loop, the message doesn't appear until the loop is > finished. Is there any way to output a string before that? > -- > View this message in context: http://www.nabble.com/Print-inside-loop-tp26105461p26105461.html > Sent from the Octave - General mailing list archive at Nabble.com. > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From lorenzorodrigo2000 at hotmail.com Thu Oct 29 02:01:44 2009 From: lorenzorodrigo2000 at hotmail.com (RicardoCaruso) Date: Thu, 29 Oct 2009 00:01:44 -0700 (PDT) Subject: Print inside loop In-Reply-To: References: <26105461.post@talk.nabble.com> <26107350.post@talk.nabble.com> Message-ID: <26107687.post@talk.nabble.com> Yes, that worked great! I didn't know that command. Thanks! Carlo de Falco-2 wrote: > > > On 29 Oct 2009, at 07:11, RicardoCaruso wrote: > >> >> Thanks for answering. >> I have something like this: >> >> for j=1:N >> >> printf("Iteration %d", j); %All of this strings appear when the >> function finish. >> >> % ... some operations that take quite a long time... >> >> end >> >> I don't want all the strings to be printed at the end. > > have you disabled the pager before running your code? > try typing the command > > more off > > at the beginning of your Octave session > c. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://www.nabble.com/Print-inside-loop-tp26105461p26107687.html Sent from the Octave - General mailing list archive at Nabble.com. From babelproofreader at gmail.com Thu Oct 29 08:28:10 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Thu, 29 Oct 2009 06:28:10 -0700 (PDT) Subject: How do you pass two Octave functions to an .oct function? In-Reply-To: <26058829.post@talk.nabble.com> References: <25870717.post@talk.nabble.com> <69d8d540910132254k1f830b94l9455ec39c7a4bc63@mail.gmail.com> <25908820.post@talk.nabble.com> <69d8d540910152253m3c7c8f81p8109e9806dd97f21@mail.gmail.com> <25928773.post@talk.nabble.com> <4ADB227F.4030707@acc.umu.se> <25974615.post@talk.nabble.com> <69d8d540910200629h1274383cuaa3e7f11d557f45d@mail.gmail.com> <25990720.post@talk.nabble.com> <69d8d540910212252u136091bdp51a22edbea8815b@mail.gmail.com> <26048469.post@talk.nabble.com> <4AE49487.5010502@acc.umu.se> <26058829.post@talk.nabble.com> Message-ID: <26113056.post@talk.nabble.com> >I compiled the code in stages and so I am sure that it is the filter code that is the problem The problem seems to be that the loop over the complex column vector output of fft fails. The simple code below #include #include #include #include DEFUN_DLD (justchange, args, , "Help String") { octave_value retval; ComplexColumnVector justchange_input = args(0).complex_column_vector_value (); for (octave_idx_type ii (0); ii < args(0).length (); ii++) { justchange_input(ii) = justchange_input(ii) * 1 ; } retval = justchange_input; return retval; } fails to compile, with error message justchange.cc:13: error: no match for ?operator=? in ?justchange_input.ComplexColumnVector::.MArray >::.Array::operator() [with T = std::complex](ii) = operator*(const octave_value&, const octave_value&)(((const octave_value&)(& octave_value(1))))? /usr/include/c++/4.3/complex:1224: note: candidates are: std::complex& std::complex::operator=(double) /usr/include/c++/4.3/complex:1159: note: std::complex& std::complex::operator=(const std::complex&) and this essentially what I am trying to do. -- View this message in context: http://www.nabble.com/How-do-you-pass-two-Octave-functions-to-an-.oct-function--tp25870717p26113056.html Sent from the Octave - General mailing list archive at Nabble.com. From babelproofreader at gmail.com Thu Oct 29 08:28:32 2009 From: babelproofreader at gmail.com (babelproofreader) Date: Thu, 29 Oct 2009 06:28:32 -0700 (PDT) Subject: How do you pass two Octave functions to an .oct function? Message-ID: <26113056.post@talk.nabble.com> >I compiled the code in stages and so I am sure that it is the filter code that is the problem The problem seems to be that the loop over the complex column vector output of fft fails. The simple code below #include #include #include #include DEFUN_DLD (justchange, args, , "Help String") { octave_value retval; ComplexColumnVector justchange_input = args(0).complex_column_vector_value (); for (octave_idx_type ii (0); ii < args(0).length (); ii++) { justchange_input(ii) = justchange_input(ii) * 1 ; } retval = justchange_input; return retval; } fails to compile, with error message justchange.cc:13: error: no match for ?operator=? in ?justchange_input.ComplexColumnVector::.MArray >::.Array::operator() [with T = std::complex](ii) = operator*(const octave_value&, const octave_value&)(((const octave_value&)(& octave_value(1))))? /usr/include/c++/4.3/complex:1224: note: candidates are: std::complex& std::complex::operator=(double) /usr/include/c++/4.3/complex:1159: note: std::complex& std::complex::operator=(const std::complex&) and this is essentially what I am trying to do. -- View this message in context: http://www.nabble.com/How-do-you-pass-two-Octave-functions-to-an-.oct-function--tp25870717p26113056.html Sent from the Octave - General mailing list archive at Nabble.com. From frenk.calza at gmail.com Thu Oct 29 10:38:22 2009 From: frenk.calza at gmail.com (franco basaglia) Date: Thu, 29 Oct 2009 16:38:22 +0100 Subject: octave and delay ode's In-Reply-To: <59CCC399-AC46-45F9-AD93-A0643AFC0EA8@gmail.com> References: <39CEC9CB-7B58-4173-8E6D-9C7BF6CBE6B4@gmail.com> <59CCC399-AC46-45F9-AD93-A0643AFC0EA8@gmail.com> Message-ID: sorry, I don't know what "stella" is so I do not understand this syntax, Stella is a simulation development environment. Delay sintax is in [1] maybe you could describe your system in plain mathematical syntax? I attach a pdf with my ode's system. Only equations number 6 and number 7 have a delay as you can see. yes, odepkg comes with a very nice set of examples and a pdf manual, type odepkg_examples_dde () to see some DDE examples. Thanks.I'm trying to use it. I dont' yet understand how to apply in a system with DDE's and ODE's HTH, c. thanks for your collaboration f.t. [1] http://www.iseesystems.com/community/support/documentation/builtins/discrete_functions.htm#delay 2009/10/28 Carlo de Falco > > On 28 Oct 2009, at 12:02, franco basaglia wrote: > > ""I don't really understand your code"" >> >> Pratically I have to convert to Octave this Stella equation: >> dSi = 0.2?DELAY((F+0.5?U)?(1-GP),5)?(1-S)?(1-T)?AE >> >> where (F+0.5?U)?(1-GP) lag behind by 5 time units. For the first 5 time >> units of the simulation, the delay will return the initial values. >> So I use for cycle. >> > > sorry, I don't know what "stella" is so I do not understand this syntax, > maybe you could describe your system in plain mathematical syntax? > > > >> ""for solving DDEs you might want to take a look at the ode**d [1] in the >> octave-forge package "odepkg" [2]"" >> >> I know this package but I don't know how to apply to my system. I'm a >> newbie. Have you some examples? >> > > yes, odepkg comes with a very nice set of examples and a pdf manual, type > > odepkg_examples_dde () > > to see some DDE examples. > If you have installed odepkg, the manual should be located in the folder > > ~/octave/odepkg-0.6.9/doc > > > thanks >> >> best regards >> f.b. >> > > HTH, > c. -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091029/079a8755/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: equazioniPatu.pdf Type: application/pdf Size: 24713 bytes Desc: not available Url : https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091029/079a8755/attachment-0001.pdf From xaerochina at gmail.com Thu Oct 29 10:44:30 2009 From: xaerochina at gmail.com (Chengqi Chang) Date: Thu, 29 Oct 2009 23:44:30 +0800 Subject: Print inside loop In-Reply-To: References: Message-ID: > If I put printf() in a for loop, the message doesn't appear until the > loop is > finished. Is there any way to output a string before that? > --View this message in context: > http://www.nabble.com/Print-inside-loop-tp26105461p26105461.html > Sent from the Octave - General mailing list archive at Nabble.com. > for i=1:10; fprintf(stderr, "%d\n",i);fflush(1);end -- Best Regards! --------------------------- Sincerely Yours Chengqi Chang China Center for Economic Research Mail: XaeroChina at Gmail.com Personal Website: http://macro2.cn From coccoinomane at gmail.com Thu Oct 29 12:52:47 2009 From: coccoinomane at gmail.com (Guido Walter Pettinari) Date: Thu, 29 Oct 2009 17:52:47 +0000 Subject: slow 'eval' function - maybe pointers would do? Message-ID: Hi everybody! I need to assign values to a series of variables with numbered names, such as ks_1 = ... ; ks_2 = ... ; ... ks_N = ... ; where N is big and is determined at runtime. I do not want to use a vector named 'ks' such that ks(i) = ks_i and so on. Therefore, I used the 'eval' function in this way: for i=1:N eval ( [ 'k', int2str(i), ' = ... ;' ] ); endfor However, using 'eval' the execution time of my loop increases ~6 fold. To test this behaviour, please try to run the following script: tic(); for i=1:100000 sin(2); endfor toc() tic(); for i=1:100000 eval ( 'sin(2);' ); endfor toc() On my machine, the output is: Elapsed time is 0.8 seconds. Elapsed time is 5 seconds. Could you please suggest a more performance-friendly workaround? Actually, my numbered variables are fields of a structure (es. struct.k_1, struct.k_2 ... ); I thought that one could solve the problem by using pointers to access them, but I could not find support for pointers in Octave. Thank you, Guido From storrsjm at email.uc.edu Thu Oct 29 14:24:32 2009 From: storrsjm at email.uc.edu (Judd Storrs) Date: Thu, 29 Oct 2009 15:24:32 -0400 Subject: slow 'eval' function - maybe pointers would do? In-Reply-To: References: Message-ID: On Thu, Oct 29, 2009 at 1:52 PM, Guido Walter Pettinari wrote: > where N is big and is determined at runtime. I do not want to use a > vector named 'ks' such that ks(i) = ks_i and so on. Are you aware of cell arrays? Are you opposed to them also? > I thought that one could solve the > problem by using pointers to access them, but I could not find support > for pointers in Octave. I don't think pointers exist in octave/matlab. The closest thing that exists here are cell arrays. Octave/Matlab don't have pointers as far as I know, but in most cases cell arrays get close enough to be usable as a substitute. You can store mixed data types into cell arrays and then use an index like a pointer. > However, using 'eval' the execution time of my loop increases ~6 fold. This is a well known challenge that plagues most (if not all) interpreted languages and I don't think there is a solution. The problem is that there is no way reasonable way to know what the contents of the string will be before eval'd is called. As a consequence, using eval requires the interpreter to decode the string before it can process it. eval is pretty much the biggest enemy of performance in octave and Matlab (and python and IDL ...). --judd From carlo.defalco at gmail.com Thu Oct 29 14:37:06 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Thu, 29 Oct 2009 20:37:06 +0100 Subject: slow 'eval' function - maybe pointers would do? In-Reply-To: References: Message-ID: <12D4BAEF-7966-4EE4-9283-1E80708B688E@gmail.com> On 29 Oct 2009, at 18:52, Guido Walter Pettinari wrote: > Hi everybody! > > I need to assign values to a series of variables with numbered names, > such as > > ks_1 = ... ; > ks_2 = ... ; > ... > ks_N = ... ; > > where N is big and is determined at runtime. I do not want to use a > vector named 'ks' such that ks(i) = ks_i and so on. Therefore, I used > the 'eval' function in this way: > > for i=1:N > eval ( [ 'k', int2str(i), ' = ... ;' ] ); > endfor > > However, using 'eval' the execution time of my loop increases ~6 fold. > To test this behaviour, please try to run the following script: > > tic(); > for i=1:100000 sin(2); endfor > toc() > > tic(); > for i=1:100000 eval ( 'sin(2);' ); endfor > toc() > > On my machine, the output is: > > Elapsed time is 0.8 seconds. > Elapsed time is 5 seconds. > > Could you please suggest a more performance-friendly workaround? > Actually, my numbered variables are fields of a structure (es. > struct.k_1, struct.k_2 ... ); I thought that one could solve the > problem by using pointers to access them, but I could not find support > for pointers in Octave. > > Thank you, > > Guido You can do what you ask by: for ii = 1:N names{ii} = sprintf("ks_%d", ii); values{ii} = somehow_compute_value (ii); endfor S = cell2struct (values, names, 2) but what is the reason why you don't want to just use for ii = 1:N ks{ii} = somehow_compute_value (ii); endfor ? c. From mjscosta at lnec.pt Thu Oct 29 17:27:26 2009 From: mjscosta at lnec.pt (=?ISO-8859-1?Q?M=E1rio_Costa?=) Date: Thu, 29 Oct 2009 22:27:26 +0000 Subject: Binaries for SLES10 In-Reply-To: <4AE94577.4090402@mdc-berlin.de> References: <4ADD9A7C.8080500@mdc-berlin.de> <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> <4ADDA413.7030904@mdc-berlin.de> <1256041141.4689.16.camel@sh-t400> <4ADDAE28.9090407@mdc-berlin.de> <69d8d540910200643w2db4856bs877fabf0f23a156a@mail.gmail.com> <4AE86629.50506@mdc-berlin.de> <4292f1ce0910281137p3398985dp5327daf557253b22@mail.gmail.com> <4AE94577.4090402@mdc-berlin.de> Message-ID: <4292f1ce0910291527p3b5880cfs9b29eff5ad8aad68@mail.gmail.com> Our system has AMD x86 64, its a 64 bit, I'm not sure about the dependencies, I'm going to check that. If you install in /usr/local and export via nfs, there are (dynamic) library dependencies of octave that you will still have to install in all nodes in order to work, or that or install them in some nfs exported /usr/lib , or /somepath/lib and update the LD_LIBRARY_PATH, are you taking that into account ? 2009/10/29 Andreas Kuntzagk : > Hi, > >> From my experience you will have a lot of problems compiling a static >> version of octave, plus you will not be able yo add any of the >> external available modules for octave, since it is required dynamic >> linking, in order for those to be loaded by octave ... > > But I don't want static!!! I ran "configure --enable-shared" (also did a > ?"make clean". Also the shared version of that liblapack is available so I > don't know why it compiles against the static liblapack.a > My experiences with compiling C and C++ are a little dusted (apart from the > usual "configure; make; make install") so maybe it's something stupid. > >> I've managed to build from source a dynamic version for SLES 10, >> although I was unable to use an up-to-date version of gnuplot, and >> compiling that from source seems a nightmare ... >> >> I cat tell you I've used SRPMS in one of the cluster nodes (build >> node) to compile and create the rpms, some of the specs required minor >> chages as they where only available for fedora or so ... >> >> Then used the rmps created at that node to install in all the other >> nodes of the cluster ... > > I don't really need rpm's since I have a /usr/local on a NFS for such shared > software. > > But would you mind to send me your rpm's ? Maybe they are working for me? Or > do they have some special dependencies built in? > > regards, Andreas > >> >> Regards, >> M?rio >> >> On Wed, Oct 28, 2009 at 3:41 PM, Andreas Kuntzagk >> wrote: >>> >>> I just now started again to work on this problem and ATM it fails while >>> linking against the static liblapack.a with this -fPIC error. I also >>> have a liblapack.so and it should link against this. I configured with >>> "--enable-shared". How do I force it to use the shared liblapack.so >>> (both static and shared are in same directory) >>> >>> regards, Andreas >>> >>> Jaroslav Hajek wrote: >>>> >>>> On Tue, Oct 20, 2009 at 2:33 PM, Andreas Kuntzagk >>>> wrote: >>>>> >>>>> Hi, >>>>> >>>>>> At my previous just I had to use SUSE as well, and getting Octave up >>>>>> and >>>>>> running was not a particular joyful experience. SUSE is just not very >>>>>> good at packaging basic scientific libraries, so you'll have to >>>>>> compile >>>>>> a lot of stuff yourself from scratch. >>>>> >>>>> Yeah, but for this I need to find out what libraries are missing and >>>>> where to get them. >>>>> >>>>>> You can get some (semi-old) Octave RPM's for SUSE by searching at >>>>>> >>>>>> ?http://software.opensuse.org/search >>>>> >>>>> Ok, didn't know this page before. There seems to be some 3.0.3 binaries >>>>> there. I'll try and come back with results. >>>>> >>>>>> but (at least the last time I used them) they did not come with full >>>>>> functionality (no QHull and no suite-sparse as far as I remember). >>>>> >>>>> Actually I don't know what functionality is required here. Have to >>>>> investigate. >>>>> >>>>>> I'm sorry that the answer isn't more satisfactory, but in my >>>>>> experience >>>>>> SUSE just isn't very good for scientific work :-( >>>>> >>>>> Unfortunately changing distro is not an option right now. This is a big >>>>> compute cluster (in production) and I can't start from scratch again. >>>>> For the next time what distro do you propose for scientific computing? >>>>> >>>>> regards, Andreas >>>> >>>> We have a cluster running SUSE too, and I think I had to compile all >>>> libs from scratch as well, except BLAS and LAPACK. OTOH, the work >>>> needs only to be done once, and I'm routinely rebuilding Octave (to be >>>> used by all other users) from sources every 2-4 weeks... >>>> >>>> For a modest reward I'd be willing to do the same on your cluster :D >>>> >>>> But seriously, compiling Octave is surely much more work, but the >>>> result is worth it. You can use heavy compiler optimizations (we use >>>> Intel C++ with -O3), you can link in vendor-tuned BLAS if you have it >>>> (we use AMD's multi-threaded ACML) and most importantly, you get the >>>> most recent sources with the latest features. Also, when a bug is >>>> fixed, you just download and apply the patch (using mercurial that's >>>> trivial) and rebuild, no need to wait for next release... >>>> >>>> hth >>>> >>> _______________________________________________ >>> Help-octave mailing list >>> Help-octave at octave.org >>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >>> > > -- M?rio Costa Laborat?rio Nacional de Engenharia Civil LNEC.CTI.NTIEC Avenida do Brasil 101 1700-066 Lisboa, Portugal Tel : ++351 21 844 3911 From arnoques at gmail.com Thu Oct 29 18:55:43 2009 From: arnoques at gmail.com (Pablo) Date: Thu, 29 Oct 2009 19:55:43 -0400 Subject: The zooming capability disappears Message-ID: <4AEA2B7F.2020401@gmail.com> Hi, everyone! I'm having a few issues with the capability to use the mouse to zoom in plots. First I'd like to thank everyone that worked to restore it, since it's very useful for me. The problem is that sometimes that stops working, and the plots are not longer responsive to the mouse (or to other commands like 'g' for grid). The only way I can get it to work again is to close Octave (loosing all the variables I have defined) and restart it. I have tried using "close all" and "closeplot", with no results (other than learning that the latter is obsolete). I'm sure this is a bug that will be solved sometime, but since it's quite annoying, I'd like to know if there's any easy fix for now. Now, to the details: - I use Debian Lenny on an amd64, Octave version 3.0.1 (1:3.0.1-6lenny3) - I recently installed the CVS version of Gnuplot (gnuplot 4.5 patchlevel 0, from 10/26/09) following this instructions: https://help.ubuntu.com/community/Octave#Zooming in GNUPlot - I still have the old version installed (packages gnuplot-nox and gnuplot-x11, version 4.2.2-1.2) so I may have messed up there. - To get Octave to use the CVS version, I added gnuplot_binary('/usr/local/bin/gnuplot') to my ~/.octaverc - Pressing 'h' still shows the gnuplot help, and pressing 6 (verbose) shows that commands like 'g' and 'u' (unzoom) are echoed, but there's no change in the plot. The ruler and still work, though. - I noticed that when the plot is responsive, the axis is thicker than when it's not, FWIW. I don't really know what triggers the problem, and I can't seem to reproduce it with simple commands. I'm using an interactive script to analyze some data, and it's fairly long so I'm not sure where the problem is. If I'm able to pinpoint the problem, I'll send another email, but for now I'd like to know if there's a simple way to avoid restarting Octave. Thanks in advance, Arnoques From arnoques at gmail.com Thu Oct 29 19:24:25 2009 From: arnoques at gmail.com (Pablo) Date: Thu, 29 Oct 2009 20:24:25 -0400 Subject: The zooming capability disappears In-Reply-To: <4AEA2B7F.2020401@gmail.com> References: <4AEA2B7F.2020401@gmail.com> Message-ID: <4AEA3239.50806@gmail.com> Pablo wrote: > Hi, everyone! > > I'm having a few issues with the capability to use the mouse to zoom > in plots. First I'd like to thank everyone that worked to restore it, > since it's very useful for me. The problem is that sometimes that stops > working, and the plots are not longer responsive to the mouse (or to > other commands like 'g' for grid). > > The only way I can get it to work again is to close Octave (loosing all > the variables I have defined) and restart it. I have tried using "close > all" and "closeplot", with no results (other than learning that the > latter is obsolete). I'm sure this is a bug that will be solved > sometime, but since it's quite annoying, I'd like to know if there's any > easy fix for now. > > Now, to the details: > - I use Debian Lenny on an amd64, Octave version 3.0.1 (1:3.0.1-6lenny3) > - I recently installed the CVS version of Gnuplot (gnuplot 4.5 > patchlevel 0, from 10/26/09) following this instructions: > https://help.ubuntu.com/community/Octave#Zooming in GNUPlot > - I still have the old version installed (packages gnuplot-nox and > gnuplot-x11, version 4.2.2-1.2) so I may have messed up there. > - To get Octave to use the CVS version, I added > gnuplot_binary('/usr/local/bin/gnuplot') to my ~/.octaverc > - Pressing 'h' still shows the gnuplot help, and pressing 6 (verbose) > shows that commands like 'g' and 'u' (unzoom) are echoed, but there's no > change in the plot. The ruler and still work, though. > - I noticed that when the plot is responsive, the axis is thicker than > when it's not, FWIW. > > I don't really know what triggers the problem, and I can't seem to > reproduce it with simple commands. I'm using an interactive script to > analyze some data, and it's fairly long so I'm not sure where the > problem is. If I'm able to pinpoint the problem, I'll send another > email, but for now I'd like to know if there's a simple way to avoid > restarting Octave. > > Thanks in advance, > Arnoques > Ok, I found the problem! I was issuing the command clear all, from time to time, but now I found out that it also clears the gnuplot_binary command to "gnuplot", causing Octave to use the old version. So, the fix is easy: either i don't "clear all", or I change gnuplot_binary after I do. Sorry for the noise! Arnoques From mjscosta at lnec.pt Fri Oct 30 06:17:07 2009 From: mjscosta at lnec.pt (=?ISO-8859-1?Q?M=E1rio_Costa?=) Date: Fri, 30 Oct 2009 11:17:07 +0000 Subject: Binaries for SLES10 In-Reply-To: <4292f1ce0910291527p3b5880cfs9b29eff5ad8aad68@mail.gmail.com> References: <4ADD9A7C.8080500@mdc-berlin.de> <9543b3a40910200435y6414228fhf2e163d474bcd81f@mail.gmail.com> <4ADDA413.7030904@mdc-berlin.de> <1256041141.4689.16.camel@sh-t400> <4ADDAE28.9090407@mdc-berlin.de> <69d8d540910200643w2db4856bs877fabf0f23a156a@mail.gmail.com> <4AE86629.50506@mdc-berlin.de> <4292f1ce0910281137p3398985dp5327daf557253b22@mail.gmail.com> <4AE94577.4090402@mdc-berlin.de> <4292f1ce0910291527p3b5880cfs9b29eff5ad8aad68@mail.gmail.com> Message-ID: <4292f1ce0910300417p35104393p1aee6872161dce9b@mail.gmail.com> >From your suse 10 you will require these rpm -i glibc-devel-2.4-31.2.x86_64.rpm rpm -i gcc-4.1.0-28.4.x86_64.rpm rpm -i gmp-4.1.4-20.2.x86_64.rpm rpm -i gcc-fortran-4.1.0-28.4.x86_64.rpm rpm -i gd-2.0.32-23.2.x86_64.rpm rpm -i plotutils-2.4.1-591.2.x86_64.rpm rpm -i gnuplot-4.0.0-20.2.x86_64.rpm I've compiled these from source rpm -i libhdf5_hl0-1.8.2-2.1.x86_64.rpm rpm -i libhdf5-0-1.8.2-2.1.x86_64.rpm rpm -i libblas3-3.1.1-2.1.x86_64.rpm rpm -i liblapack3-3.1.1-2.1.x86_64.rpm rpm -i fftw3-3.1.2-31.1.x86_64.rpm rpm -i octave-3.0.3-5.2.x86_64.rpm I can send them by email, or if you know of an ftp server I can put there also ... > -- 2009/10/29 M?rio Costa : > Our system has AMD x86 64, its a 64 bit, I'm not sure about the > dependencies, I'm going to check that. > > If you install in /usr/local and export via nfs, there are (dynamic) > library dependencies of octave that you will still have to install in > all nodes in order to work, or that or install them in some nfs > exported /usr/lib , or /somepath/lib and update the LD_LIBRARY_PATH, > are you taking that into account ? > > 2009/10/29 Andreas Kuntzagk : >> Hi, >> >>> From my experience you will have a lot of problems compiling a static >>> version of octave, plus you will not be able yo add any of the >>> external available modules for octave, since it is required dynamic >>> linking, in order for those to be loaded by octave ... >> >> But I don't want static!!! I ran "configure --enable-shared" (also did a >> ?"make clean". Also the shared version of that liblapack is available so I >> don't know why it compiles against the static liblapack.a >> My experiences with compiling C and C++ are a little dusted (apart from the >> usual "configure; make; make install") so maybe it's something stupid. >> >>> I've managed to build from source a dynamic version for SLES 10, >>> although I was unable to use an up-to-date version of gnuplot, and >>> compiling that from source seems a nightmare ... >>> >>> I cat tell you I've used SRPMS in one of the cluster nodes (build >>> node) to compile and create the rpms, some of the specs required minor >>> chages as they where only available for fedora or so ... >>> >>> Then used the rmps created at that node to install in all the other >>> nodes of the cluster ... >> >> I don't really need rpm's since I have a /usr/local on a NFS for such shared >> software. >> >> But would you mind to send me your rpm's ? Maybe they are working for me? Or >> do they have some special dependencies built in? >> >> regards, Andreas >> >>> >>> Regards, >>> M?rio >>> >>> On Wed, Oct 28, 2009 at 3:41 PM, Andreas Kuntzagk >>> wrote: >>>> >>>> I just now started again to work on this problem and ATM it fails while >>>> linking against the static liblapack.a with this -fPIC error. I also >>>> have a liblapack.so and it should link against this. I configured with >>>> "--enable-shared". How do I force it to use the shared liblapack.so >>>> (both static and shared are in same directory) >>>> >>>> regards, Andreas >>>> >>>> Jaroslav Hajek wrote: >>>>> >>>>> On Tue, Oct 20, 2009 at 2:33 PM, Andreas Kuntzagk >>>>> wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>>> At my previous just I had to use SUSE as well, and getting Octave up >>>>>>> and >>>>>>> running was not a particular joyful experience. SUSE is just not very >>>>>>> good at packaging basic scientific libraries, so you'll have to >>>>>>> compile >>>>>>> a lot of stuff yourself from scratch. >>>>>> >>>>>> Yeah, but for this I need to find out what libraries are missing and >>>>>> where to get them. >>>>>> >>>>>>> You can get some (semi-old) Octave RPM's for SUSE by searching at >>>>>>> >>>>>>> ?http://software.opensuse.org/search >>>>>> >>>>>> Ok, didn't know this page before. There seems to be some 3.0.3 binaries >>>>>> there. I'll try and come back with results. >>>>>> >>>>>>> but (at least the last time I used them) they did not come with full >>>>>>> functionality (no QHull and no suite-sparse as far as I remember). >>>>>> >>>>>> Actually I don't know what functionality is required here. Have to >>>>>> investigate. >>>>>> >>>>>>> I'm sorry that the answer isn't more satisfactory, but in my >>>>>>> experience >>>>>>> SUSE just isn't very good for scientific work :-( >>>>>> >>>>>> Unfortunately changing distro is not an option right now. This is a big >>>>>> compute cluster (in production) and I can't start from scratch again. >>>>>> For the next time what distro do you propose for scientific computing? >>>>>> >>>>>> regards, Andreas >>>>> >>>>> We have a cluster running SUSE too, and I think I had to compile all >>>>> libs from scratch as well, except BLAS and LAPACK. OTOH, the work >>>>> needs only to be done once, and I'm routinely rebuilding Octave (to be >>>>> used by all other users) from sources every 2-4 weeks... >>>>> >>>>> For a modest reward I'd be willing to do the same on your cluster :D >>>>> >>>>> But seriously, compiling Octave is surely much more work, but the >>>>> result is worth it. You can use heavy compiler optimizations (we use >>>>> Intel C++ with -O3), you can link in vendor-tuned BLAS if you have it >>>>> (we use AMD's multi-threaded ACML) and most importantly, you get the >>>>> most recent sources with the latest features. Also, when a bug is >>>>> fixed, you just download and apply the patch (using mercurial that's >>>>> trivial) and rebuild, no need to wait for next release... >>>>> >>>>> hth >>>>> >>>> _______________________________________________ >>>> Help-octave mailing list >>>> Help-octave at octave.org >>>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >>>> >> >> > > > > -- From lorenzotrojan at yahoo.it Fri Oct 30 06:54:58 2009 From: lorenzotrojan at yahoo.it (Lorenzo Trojan) Date: Fri, 30 Oct 2009 11:54:58 +0000 (GMT) Subject: colorbar for decimal images Message-ID: <700825.73760.qm@web25407.mail.ukl.yahoo.com> Hi all, sorry for asking this question, I've been looking around but I couldn't find a solution to this. I have a matrix of intensities. The intensity of each pixel is a double number ranging from e-4 to e-3 and I'd like to produce an image using image() or imshow() and add a colorbar showing the correct range of values. I could do something like: > minmat = min (min (matrix)) ; > maxmat = max (max (matrix)) ; > delmat = maxmat - minmat ; > imgmat = (matrix + minmat) * 64 / delmat ; > image (imgmat); > colormat (hot (64)) ; > colorbar (); but then the colorbar would show the range from 1 to 64. is there a way to change the labels to the colorbar so that it display the range of the original image limits? I tried to look for the axis object associated with the colorbar, but I could't find them... Thanks, Lorenzo -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091030/93937bd3/attachment.html From coccoinomane at gmail.com Fri Oct 30 07:27:20 2009 From: coccoinomane at gmail.com (Guido Walter Pettinari) Date: Fri, 30 Oct 2009 12:27:20 +0000 Subject: slow 'eval' function - maybe pointers would do? In-Reply-To: <12D4BAEF-7966-4EE4-9283-1E80708B688E@gmail.com> References: <12D4BAEF-7966-4EE4-9283-1E80708B688E@gmail.com> Message-ID: <5CDEBDC1-32B3-4DE4-A3A3-61310921A17F@gmail.com> Hi! Thank you for the answers, Judd & Carlo! > You can do what you ask by: > > for ii = 1:N > names{ii} = sprintf("ks_%d", ii); > values{ii} = somehow_compute_value (ii); > endfor > > S = cell2struct (values, names, 2) You are right, but the point is that in my code each 'ks_i' is a vector of M elements. I am filling all the 'ks_i' vectors inside a 'for i=1:M; for i=1:N' nested loop. If I were to call 'cell2struct' in each sub-loop, I will obtain many structs, while my idea is to store the data in a single struct. I want to obtain a struct 's' such that each field 's.ks_i' contains a Mx1 vector (where M is big). By the way, I solved the issue by memorizing the 'ks_i' into a MxN vector called 'ks' inside the loop. Once outside the loop, I filled the struct in this way: for j=1:N eval( [ 's.k', int2str(j), ' = ks ( :, j );' ] ); endfor In this way I use more memory but the execution is faster. Thank you, Guido P.S. Carlo, is there any reason whereby in your example you used sprintf instead of the string concatenation operator [ 'ks_', ii ] ? Is the former faster? On Oct 29, 2009, at 19:37 , Carlo de Falco wrote: > > On 29 Oct 2009, at 18:52, Guido Walter Pettinari wrote: > >> Hi everybody! >> >> I need to assign values to a series of variables with numbered names, >> such as >> >> ks_1 = ... ; >> ks_2 = ... ; >> ... >> ks_N = ... ; >> >> where N is big and is determined at runtime. I do not want to use a >> vector named 'ks' such that ks(i) = ks_i and so on. Therefore, I used >> the 'eval' function in this way: >> >> for i=1:N >> eval ( [ 'k', int2str(i), ' = ... ;' ] ); >> endfor >> >> However, using 'eval' the execution time of my loop increases ~6 >> fold. >> To test this behaviour, please try to run the following script: >> >> tic(); >> for i=1:100000 sin(2); endfor >> toc() >> >> tic(); >> for i=1:100000 eval ( 'sin(2);' ); endfor >> toc() >> >> On my machine, the output is: >> >> Elapsed time is 0.8 seconds. >> Elapsed time is 5 seconds. >> >> Could you please suggest a more performance-friendly workaround? >> Actually, my numbered variables are fields of a structure (es. >> struct.k_1, struct.k_2 ... ); I thought that one could solve the >> problem by using pointers to access them, but I could not find >> support >> for pointers in Octave. >> >> Thank you, >> >> Guido > > > You can do what you ask by: > > for ii = 1:N > names{ii} = sprintf("ks_%d", ii); > values{ii} = somehow_compute_value (ii); > endfor > > S = cell2struct (values, names, 2) > > but what is the reason why you don't want to just use > > for ii = 1:N > ks{ii} = somehow_compute_value (ii); > endfor > > ? > > c. > From carlo.defalco at gmail.com Fri Oct 30 08:19:01 2009 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Fri, 30 Oct 2009 14:19:01 +0100 Subject: slow 'eval' function - maybe pointers would do? In-Reply-To: <5CDEBDC1-32B3-4DE4-A3A3-61310921A17F@gmail.com> References: <12D4BAEF-7966-4EE4-9283-1E80708B688E@gmail.com> <5CDEBDC1-32B3-4DE4-A3A3-61310921A17F@gmail.com> Message-ID: <0044A1AF-2E77-4AA7-8940-3F348BA99481@gmail.com> On 30 Oct 2009, at 13:27, Guido Walter Pettinari wrote: > Hi! > > Thank you for the answers, Judd & Carlo! > >> You can do what you ask by: >> >> for ii = 1:N >> names{ii} = sprintf("ks_%d", ii); >> values{ii} = somehow_compute_value (ii); >> endfor >> >> S = cell2struct (values, names, 2) > > > You are right, but the point is that in my code each 'ks_i' is a > vector of M elements. I am filling all the 'ks_i' vectors inside a > 'for i=1:M; for i=1:N' nested loop. If I were to call 'cell2struct' in > each sub-loop, I will obtain many structs, while my idea is to store > the data in a single struct. I want to obtain a struct 's' such that > each field 's.ks_i' contains a Mx1 vector (where M is big). You can still get rid of the eval doing something like the following: for ii =1:N names{ii} = sprintf("ks_%d", ii); endfor for jj=1:M for ii = 1:N KS{ii}(jj) = somehow_compute_value (ii,jj); endfor endfor S = cell2struct (KS, names, 2) but still I don't understand why you want to call your vectors S.ks_ii, I'm really curious: what's the problem with calling them KS{ii}? > By the way, I solved the issue by memorizing the 'ks_i' into a MxN > vector called 'ks' inside the loop. Once outside the loop, I filled > the struct in this way: > > for j=1:N > eval( [ 's.k', int2str(j), ' = ks ( :, j );' ] ); > endfor > > In this way I use more memory but the execution is faster. I expect the option I suggest above to be faster, especially if N is big. > Thank you, > Guido > > P.S. Carlo, is there any reason whereby in your example you used > sprintf instead of the string concatenation operator [ 'ks_', ii ] ? > Is the former faster? I don't know about performance, I just find my syntax more elegant. c. From benjamin.hall at pw.utc.com Fri Oct 30 08:31:11 2009 From: benjamin.hall at pw.utc.com (HALL, BENJAMIN PW) Date: Fri, 30 Oct 2009 09:31:11 -0400 Subject: slow 'eval' function - maybe pointers would do? In-Reply-To: <5CDEBDC1-32B3-4DE4-A3A3-61310921A17F@gmail.com> References: <12D4BAEF-7966-4EE4-9283-1E80708B688E@gmail.com> <5CDEBDC1-32B3-4DE4-A3A3-61310921A17F@gmail.com> Message-ID: <6D397E78EBE73E448F7583729027FCCCAE58EA@PUSMNEI2.pwemail.us> >-----Original Message----- >From: Guido Walter Pettinari [mailto:coccoinomane at gmail.com] >Sent: Friday, October 30, 2009 8:27 AM >To: Octave Help Mailing List >Subject: Re: slow 'eval' function - maybe pointers would do? > > >By the way, I solved the issue by memorizing the 'ks_i' into a MxN >vector called 'ks' inside the loop. Once outside the loop, I filled >the struct in this way: > >for j=1:N > eval( [ 's.k', int2str(j), ' = ks ( :, j );' ] ); >endfor > >In this way I use more memory but the execution is faster. > You might try something along the lines of what follows to at least eliminate the eval() call. I'm not sure if use of fieldnames below is documented in the octave manual (yet), but I'm sure there are examples documented on the m*lab web help flds = {}; for jj = 1:N flds{jj} = sprintf("k%d",jj); ## I use sprintf() because prefer the control end s.( flds{jj} ) = ks(:,jj); From jwe at octave.org Fri Oct 30 08:38:39 2009 From: jwe at octave.org (John W. Eaton) Date: Fri, 30 Oct 2009 09:38:39 -0400 Subject: slow 'eval' function - maybe pointers would do? In-Reply-To: <5CDEBDC1-32B3-4DE4-A3A3-61310921A17F@gmail.com> References: <12D4BAEF-7966-4EE4-9283-1E80708B688E@gmail.com> <5CDEBDC1-32B3-4DE4-A3A3-61310921A17F@gmail.com> Message-ID: <19178.60511.252449.894711@segfault.lan> On 30-Oct-2009, Guido Walter Pettinari wrote: | Thank you for the answers, Judd & Carlo! | | > You can do what you ask by: | > | > for ii = 1:N | > names{ii} = sprintf("ks_%d", ii); | > values{ii} = somehow_compute_value (ii); | > endfor | > | > S = cell2struct (values, names, 2) | | | You are right, but the point is that in my code each 'ks_i' is a | vector of M elements. I am filling all the 'ks_i' vectors inside a | 'for i=1:M; for i=1:N' nested loop. If I were to call 'cell2struct' in | each sub-loop, I will obtain many structs, while my idea is to store | the data in a single struct. I think that's what the above code does. It doesn't create many structures. Here's a complete working example: for ii = 1:4 names{ii} = sprintf ("ks_%d", ii); values{ii} = rand (3, 1); endfor S = cell2struct (values, names, 2) Does that help? You don't need eval to do this job. | P.S. Carlo, is there any reason whereby in your example you used | sprintf instead of the string concatenation operator [ 'ks_', ii ] ? | Is the former faster? The variable ii is not a string, so [ 'ks_', ii ] doesn't work. You have to convert the number to a string. It looks better to me to write it as sprintf ('ks_%d', ii) instead of ['ks_', num2str(ii)]. jwe From udippel at uniten.edu.my Fri Oct 30 09:19:32 2009 From: udippel at uniten.edu.my (Uwe Dippel) Date: Fri, 30 Oct 2009 22:19:32 +0800 Subject: Upgrade Ubuntu Jaunty to Karmic (9.04 to 9.10) breaks self-compiled octave Message-ID: <4AEAF5F4.1030302@uniten.edu.my> Alas, there it is gone, my octave ... :( And this is why, after upgrade of Jaunty to Karmic: $ which octave /usr/local/bin/octave $ /usr/local/bin/octave /usr/local/bin/octave: error while loading shared libraries: libumfpack.so.3.2.0: cannot open shared object file: No such file or directory $ locate libumfpack.so /usr/lib/libumfpack.so /usr/lib/libumfpack.so.5.4.0 And the version coming with 9.10 is 3.05 only. FYI, in case you thought of upgrading. Uwe From storrsjm at email.uc.edu Fri Oct 30 09:58:58 2009 From: storrsjm at email.uc.edu (Judd Storrs) Date: Fri, 30 Oct 2009 10:58:58 -0400 Subject: Upgrade Ubuntu Jaunty to Karmic (9.04 to 9.10) breaks self-compiled octave In-Reply-To: <4AEAF5F4.1030302@uniten.edu.my> References: <4AEAF5F4.1030302@uniten.edu.my> Message-ID: Karmic has octave 3.2.2 in universe. It's called "octave3.2" instead of "octave". I've used it for about two weeks without problem. --judd On Fri, Oct 30, 2009 at 10:19 AM, Uwe Dippel wrote: > Alas, there it is gone, my octave ... :( > > And this is why, after upgrade of Jaunty to Karmic: > $ which octave > /usr/local/bin/octave > $ /usr/local/bin/octave > /usr/local/bin/octave: error while loading shared libraries: > libumfpack.so.3.2.0: cannot open shared object file: No such file or > directory > $ locate libumfpack.so > /usr/lib/libumfpack.so > /usr/lib/libumfpack.so.5.4.0 > > > And the version coming with 9.10 is 3.05 only. > > FYI, in case you thought of upgrading. > > Uwe > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > From udippel at uniten.edu.my Fri Oct 30 10:24:41 2009 From: udippel at uniten.edu.my (Uwe Dippel) Date: Fri, 30 Oct 2009 23:24:41 +0800 Subject: Upgrade Ubuntu Jaunty to Karmic (9.04 to 9.10) breaks self-compiled octave In-Reply-To: References: <4AEAF5F4.1030302@uniten.edu.my> Message-ID: <4AEB0539.4010001@uniten.edu.my> Judd Storrs wrote: > Karmic has octave 3.2.2 in universe. It's called "octave3.2" instead > of "octave". I've used it for about two weeks without problem. > Yes, it is. Thanks, Judd! Though it would be great to have a transitional package. I wonder if there is a good reason to name it octave2.9 / octave3.0 / octave3.2 instead of maybe just octave? So that it gets updated automatically? Uwe > > On Fri, Oct 30, 2009 at 10:19 AM, Uwe Dippel wrote: > >> Alas, there it is gone, my octave ... :( >> >> And this is why, after upgrade of Jaunty to Karmic: >> $ which octave >> /usr/local/bin/octave >> $ /usr/local/bin/octave >> /usr/local/bin/octave: error while loading shared libraries: >> libumfpack.so.3.2.0: cannot open shared object file: No such file or >> directory >> $ locate libumfpack.so >> /usr/lib/libumfpack.so >> /usr/lib/libumfpack.so.5.4.0 >> >> >> And the version coming with 9.10 is 3.05 only. >> >> FYI, in case you thought of upgrading. >> >> Uwe >> >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> >> From storrsjm at email.uc.edu Fri Oct 30 10:40:46 2009 From: storrsjm at email.uc.edu (Judd Storrs) Date: Fri, 30 Oct 2009 11:40:46 -0400 Subject: slow 'eval' function - maybe pointers would do? In-Reply-To: <5CDEBDC1-32B3-4DE4-A3A3-61310921A17F@gmail.com> References: <12D4BAEF-7966-4EE4-9283-1E80708B688E@gmail.com> <5CDEBDC1-32B3-4DE4-A3A3-61310921A17F@gmail.com> Message-ID: > for j=1:N > eval( [ 's.k', int2str(j), ' = ks ( :, j );' ] ); > endfor If you want to make people shake their heads in disgust and pretend they don't know you in public (probably also in private) while they mutter under their breath about the coming of the end times and your personal role as /the cause/ of hadal cooling, you can try (on linux at least--I don't know how portable /dev/shm is to other unixen): fid = fopen('/dev/shm/look_ma_no_eval.m','w') ; fprintf(fid, "s.k%d = ks ( :, %d );\n" , 1:N, 1:N); fclose(fid) ; source /dev/shm/look_ma_no_eval.m ; unlink /dev/shm/look_ma_no_eval.m ; ;) --judd P.S. Don't do this. P.P.S. I have done this. /o\ From bpabbott at mac.com Fri Oct 30 10:40:29 2009 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 30 Oct 2009 11:40:29 -0400 Subject: colorbar for decimal images In-Reply-To: <700825.73760.qm@web25407.mail.ukl.yahoo.com> References: <700825.73760.qm@web25407.mail.ukl.yahoo.com> Message-ID: <748FB4E4-D555-4800-9819-F8255E0D4BA3@mac.com> On Oct 30, 2009, at 7:54 AM, Lorenzo Trojan wrote: > Hi all, > > sorry for asking this question, I've been looking around but I > couldn't find a solution to this. > > I have a matrix of intensities. The intensity of each pixel is a > double number ranging from e-4 to e-3 and I'd like to produce an > image using image() or imshow() and add a colorbar showing the > correct range of values. I could do something like: > > > minmat = min (min (matrix)) ; > > maxmat = max (max (matrix)) ; > > delmat = maxmat - minmat ; > > imgmat = (matrix + minmat) * 64 / delmat ; > > image (imgmat); > > colormat (hot (64)) ; > > colorbar (); > > but then the colorbar would show the range from 1 to 64. > > is there a way to change the labels to the colorbar so that it > display the range of the original image limits? I tried to look for > the axis object associated with the colorbar, but I could't find > them... You can obtain the handle to the colorbar by hc = findall (gcf, "tag", "colorbar", "type", "axes"); Or when you create the colorbar ... hc = colorbar (); Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20091030/01190b87/attachment.html From udippel at claude.uniten.edu.my Fri Oct 30 10:24:33 2009 From: udippel at claude.uniten.edu.my (Uwe Dippel) Date: Fri, 30 Oct 2009 23:24:33 +0800 Subject: Upgrade Ubuntu Jaunty to Karmic (9.04 to 9.10) breaks self-compiled octave In-Reply-To: References: <4AEAF5F4.1030302@uniten.edu.my> Message-ID: <4AEB0531.1030708@claude.uniten.edu.my> Judd Storrs wrote: > Karmic has octave 3.2.2 in universe. It's called "octave3.2" instead > of "octave". I've used it for about two weeks without problem. > Yes, it is. Thanks, Judd! Though it would be great to have a transitional package. I wonder if there is a good reason to name it octave2.9 / octave3.0 / octave3.2 instead of maybe just octave? So that it gets updated automatically? Uwe > > On Fri, Oct 30, 2009 at 10:19 AM, Uwe Dippel wrote: > >> Alas, there it is gone, my octave ... :( >> >> And this is why, after upgrade of Jaunty to Karmic: >> $ which octave >> /usr/local/bin/octave >> $ /usr/local/bin/octave >> /usr/local/bin/octave: error while loading shared libraries: >> libumfpack.so.3.2.0: cannot open shared object file: No such file or >> directory >> $ locate libumfpack.so >> /usr/lib/libumfpack.so >> /usr/lib/libumfpack.so.5.4.0 >> >> >> And the version coming with 9.10 is 3.05 only. >> >> FYI, in case you thought of upgrading. >> >> Uwe >> >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> >> From udippel at uniten.edu.my Fri Oct 30 11:13:41 2009 From: udippel at uniten.edu.my (Uwe Dippel) Date: Sat, 31 Oct 2009 00:13:41 +0800 Subject: Upgrade Ubuntu Jaunty to Karmic (9.04 to 9.10) breaks self-compiled octave In-Reply-To: <4AEB0539.4010001@uniten.edu.my> References: <4AEAF5F4.1030302@uniten.edu.my> <4AEB0539.4010001@uniten.edu.my> Message-ID: <4AEB10B5.5060800@uniten.edu.my> Uwe Dippel wrote: > Judd Storrs wrote: >> Karmic has octave 3.2.2 in universe. It's called "octave3.2" instead >> of "octave". I've used it for about two weeks without problem. >> > > Yes, it is. Thanks, Judd! Sorry, too early. Same problem in Karmic: $ sudo apt-get install octave3.2 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: octave3.0-common libqt4-svg Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libqrupdate1 octave3.2-common Suggested packages: octave3.2-info octave3.2-doc octave3.2-htmldoc octave3.2-headers octave3.2-emacsen The following NEW packages will be installed: libqrupdate1 octave3.2 octave3.2-common 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 10.9MB of archives. [...] Selecting previously deselected package libqrupdate1. (Reading database ... 204693 files and directories currently installed.) Unpacking libqrupdate1 (from .../libqrupdate1_1.0.1-1_amd64.deb) ... Selecting previously deselected package octave3.2-common. Unpacking octave3.2-common (from .../octave3.2-common_3.2.2-2build1_all.deb) ... Selecting previously deselected package octave3.2. Unpacking octave3.2 (from .../octave3.2_3.2.2-2build1_amd64.deb) ... Processing triggers for desktop-file-utils ... Processing triggers for man-db ... Setting up libqrupdate1 (1.0.1-1) ... Setting up octave3.2-common (3.2.2-2build1) ... Setting up octave3.2 (3.2.2-2build1) ... update-alternatives: using /usr/bin/octave-3.2.2 to provide /usr/bin/octave (octave) in auto mode. update-alternatives: using /usr/bin/octave-bug-3.2.2 to provide /usr/bin/octave-bug (octave-bug) in auto mode. octave-3.2.2: error while loading shared libraries: libumfpack.so.3.2.0: cannot open shared object file: No such file or directory dpkg: error processing octave3.2 (--configure): subprocess installed post-installation script returned error exit status 127 Processing triggers for libc-bin ... ldconfig deferred processing now taking place Errors were encountered while processing: octave3.2 E: Sub-process /usr/bin/dpkg returned an error code (1) Uwe From storrsjm at email.uc.edu Fri Oct 30 11:26:56 2009 From: storrsjm at email.uc.edu (Judd Storrs) Date: Fri, 30 Oct 2009 12:26:56 -0400 Subject: Upgrade Ubuntu Jaunty to Karmic (9.04 to 9.10) breaks self-compiled octave In-Reply-To: <4AEB10B5.5060800@uniten.edu.my> References: <4AEAF5F4.1030302@uniten.edu.my> <4AEB0539.4010001@uniten.edu.my> <4AEB10B5.5060800@uniten.edu.my> Message-ID: That's strange. On my system (Karmic x86_64) libumfpack3.2.0 isn't referenced by /usr/bin/octave-3.2.2: $ ldd /usr/bin/octave-3.2.2 | grep umf libumfpack.so.5.4.0 => /usr/lib/libumfpack.so.5.4.0 (0x00007f5949aad000) Is it possible your /usr/local/bin/octave is hiding /usr/bin/octave during install? Maybe you could temporarily rename /usr/local/bin/octave to /usr/local/bin/octave-disable and try again? --judd $ ldd /usr/bin/octave-3.2.2 linux-vdso.so.1 => (0x00007fffe9118000) liboctinterp.so => /usr/lib/octave-3.2.2/liboctinterp.so (0x00007fd6ca8db000) liboctave.so => /usr/lib/octave-3.2.2/liboctave.so (0x00007fd6c9bd5000) libcruft.so => /usr/lib/octave-3.2.2/libcruft.so (0x00007fd6c9948000) libumfpack.so.5.4.0 => /usr/lib/libumfpack.so.5.4.0 (0x00007fd6c9688000) libamd.so.2.2.0 => /usr/lib/libamd.so.2.2.0 (0x00007fd6c947e000) libcamd.so.2.2.0 => /usr/lib/libcamd.so.2.2.0 (0x00007fd6c9273000) libcolamd.so.2.7.1 => /usr/lib/libcolamd.so.2.7.1 (0x00007fd6c906b000) libcholmod.so.1.7.1 => /usr/lib/libcholmod.so.1.7.1 (0x00007fd6c8d6d000) libccolamd.so.2.7.1 => /usr/lib/libccolamd.so.2.7.1 (0x00007fd6c8b61000) libcxsparse.so.2.2.3 => /usr/lib/libcxsparse.so.2.2.3 (0x00007fd6c892f000) liblapack.so.3gf => /usr/lib/atlas/liblapack.so.3gf (0x00007fd6c7e44000) libblas.so.3gf => /usr/lib/atlas/libblas.so.3gf (0x00007fd6c7487000) libfftw3.so.3 => /usr/lib/libfftw3.so.3 (0x00007fd6c718c000) libfftw3f.so.3 => /usr/lib/libfftw3f.so.3 (0x00007fd6c6e99000) libqrupdate.so.1 => /usr/lib/libqrupdate.so.1 (0x00007fd6c6c73000) libarpack.so.2 => /usr/lib/libarpack.so.2 (0x00007fd6c6a1f000) libftgl.so.2 => /usr/lib/libftgl.so.2 (0x00007fd6c67ee000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007fd6c6569000) libz.so.1 => /lib/libz.so.1 (0x00007fd6c6352000) libGL.so.1 => /usr/lib/libGL.so.1 (0x00007fd6cb826000) libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00007fd6c60e1000) libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fd6c5dab000) libreadline.so.5 => /lib/libreadline.so.5 (0x00007fd6c5b6d000) libncurses.so.5 => /lib/libncurses.so.5 (0x00007fd6c592a000) libdl.so.2 => /lib/libdl.so.2 (0x00007fd6c5726000) libhdf5-1.6.6.so.0 => /usr/lib/libhdf5-1.6.6.so.0 (0x00007fd6c5403000) libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0x00007fd6c5117000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fd6c4e07000) libm.so.6 => /lib/libm.so.6 (0x00007fd6c4b83000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fd6c496c000) libc.so.6 => /lib/libc.so.6 (0x00007fd6c45fd000) libpcre.so.3 => /lib/libpcre.so.3 (0x00007fd6c43cf000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007fd6c41b3000) libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x00007fd6c3141000) libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1 (0x00007fd6c3040000) libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fd6c2e2e000) libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fd6c2c12000) /lib64/ld-linux-x86-64.so.2 (0x00007fd6cb7ff000) libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fd6c2a0f000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fd6c280a000) From storrsjm at email.uc.edu Fri Oct 30 12:59:27 2009 From: storrsjm at email.uc.edu (Judd Storrs) Date: Fri, 30 Oct 2009 13:59:27 -0400 Subject: Upgrade Ubuntu Jaunty to Karmic (9.04 to 9.10) breaks self-compiled octave In-Reply-To: References: <4AEAF5F4.1030302@uniten.edu.my> <4AEB0539.4010001@uniten.edu.my> <4AEB10B5.5060800@uniten.edu.my> Message-ID: On Fri, Oct 30, 2009 at 12:26 PM, Judd Storrs wrote: > Is it possible your /usr/local/bin/octave is hiding /usr/bin/octave > during install? Maybe you could temporarily rename > /usr/local/bin/octave to /usr/local/bin/octave-disable and try again? The debian/in/PACKAGE.postinst script runs octave-$VERSION --silent --no-history --no-init-file \ --eval "pkg ('rebuild');" I think what's happening is that your broken /usr/local/bin/octave-3.2.2 in being used instead of the package's /usr/bin/octave-3.2.2 My suggestion to temporarily rename /usr/local/bin/octave won't fix that. You'll have to rename /usr/local/bin/octave-3.2.2 for apt-get to succeed. I think anyone could break the install easily by ln -s /bin/false /usr/local/bin/octave-3.2.2 --judd From lorenzotrojan at yahoo.it Fri Oct 30 13:01:57 2009 From: lorenzotrojan at yahoo.it (Lorenzo Trojan) Date: Fri, 30 Oct 2009 18:01:57 +0000 (GMT) Subject: colorbar for decimal images Message-ID: <934836.32829.qm@web25407.mail.ukl.yahoo.com> On Oct 30, 2009, at 7:54 AM, Lorenzo Trojan ? wrote: > > Hi all, > > > > sorry for asking this question, I've been looking around but I? > > couldn't find a solution to this. > > > > I have a matrix of intensities. The intensity of each pixel is a? > > double number ranging from e-4 to e-3 and I'd like to produce an? > > image using image() or imshow() and add a colorbar showing the? > > correct range of values. I could do something like: > > > > > minmat = min (min (matrix)) ; > > > maxmat = max (max (matrix)) ; > > > delmat = maxmat - minmat ; > > > imgmat = (matrix + minmat) * 64 / delmat ; > > > image (imgmat); > > > colormat (hot (64)) ; > > > colorbar (); > > > > but then the colorbar would show the range from 1 to 64. > > > > is there a way to change the labels to the colorbar so that it? > > display the range of the original image limits? I tried to look for? > > the axis object associated with the colorbar, but I could't find? > > them... > > You can obtain the handle to the colorbar by > > hc = findall (gcf, "tag", "colorbar", "type", "axes"); > > Or when you create the colorbar ... > > hc = colorbar (); > > Ben Hi Thanks for the reply. I downloaded findall which didn't seem to be installed on my system, from: http://velveeta.che.wisc.edu/cgi-bin/hgwebdir.cgi/octave/file/tip//scripts/plot/findall.m?rev=HEAD&content-type=text/plain but is didn't work. When i use it says: > warning: get: invalid property `showhiddenhandles' and a bunch of other errors. the second solution also didn't work. Octave returns: > error: value on right hand side of assignment is undefined I've installed octave from the main Ubuntu rep: > octave:1405> version > ans = 3.0.1 is this octave version too old? thanks Lorenzo From bpabbott at mac.com Fri Oct 30 13:27:41 2009 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 30 Oct 2009 14:27:41 -0400 Subject: colorbar for decimal images In-Reply-To: <934836.32829.qm@web25407.mail.ukl.yahoo.com> References: <934836.32829.qm@web25407.mail.ukl.yahoo.com> Message-ID: <9964B56C-906D-48C1-A6F5-1E5F3203A93D@mac.com> On Oct 30, 2009, at 2:01 PM, Lorenzo Trojan wrote: > On Oct 30, 2009, at 7:54 AM, Lorenzo Trojan > wrote: > >>> Hi all, >>> >>> sorry for asking this question, I've been looking around but I >>> couldn't find a solution to this. >>> >>> I have a matrix of intensities. The intensity of each pixel is a >>> double number ranging from e-4 to e-3 and I'd like to produce an >>> image using image() or imshow() and add a colorbar showing the >>> correct range of values. I could do something like: >>> >>>> minmat = min (min (matrix)) ; >>>> maxmat = max (max (matrix)) ; >>>> delmat = maxmat - minmat ; >>>> imgmat = (matrix + minmat) * 64 / delmat ; >>>> image (imgmat); >>>> colormat (hot (64)) ; >>>> colorbar (); >>> >>> but then the colorbar would show the range from 1 to 64. >>> >>> is there a way to change the labels to the colorbar so that it >>> display the range of the original image limits? I tried to look for >>> the axis object associated with the colorbar, but I could't find >>> them... >> >> You can obtain the handle to the colorbar by >> >> hc = findall (gcf, "tag", "colorbar", "type", "axes"); >> >> Or when you create the colorbar ... >> >> hc = colorbar (); >> >> Ben > > Hi > > Thanks for the reply. I downloaded findall which didn't seem to be > installed on my system, from: > > http://velveeta.che.wisc.edu/cgi-bin/hgwebdir.cgi/octave/file/tip//scripts/plot/findall.m?rev=HEAD&content-type=text/plain > > but is didn't work. When i use it says: > >> warning: get: invalid property `showhiddenhandles' > > and a bunch of other errors. the second solution also didn't work. > Octave returns: > >> error: value on right hand side of assignment is undefined > > I've installed octave from the main Ubuntu rep: > >> octave:1405> version >> ans = 3.0.1 > > is this octave version too old? Yes, that's too old. There may be another solution, but I don't have a copy of 3.0.x available right now to try. Anyone else? Ben From dbateman at dbateman.org Fri Oct 30 14:26:15 2009 From: dbateman at dbateman.org (David Bateman) Date: Fri, 30 Oct 2009 20:26:15 +0100 Subject: colorbar for decimal images In-Reply-To: <9964B56C-906D-48C1-A6F5-1E5F3203A93D@mac.com> References: <934836.32829.qm@web25407.mail.ukl.yahoo.com> <9964B56C-906D-48C1-A6F5-1E5F3203A93D@mac.com> Message-ID: <4AEB3DD7.5090105@dbateman.org> Ben Abbott wrote: > Yes, that's too old. There may be another solution, but I don't have a > copy of 3.0.x available right now to try. Anyone else? > > There was no way to set the axis values of the colorbar in 3.0.x as it was in fact a gnuplot colorbox under the control of gnuplot itself.. This was one of the reasons that colorbar was reimplemented as an image in 3.2.x D. From Thomas.Treichl at gmx.net Fri Oct 30 14:31:26 2009 From: Thomas.Treichl at gmx.net (Thomas Treichl) Date: Fri, 30 Oct 2009 20:31:26 +0100 Subject: patch to install octave forge packages on mac os 10.6 (snow leopard) In-Reply-To: <49442.78.22.132.175.1256804777.squirrel@biomath.ugent.be> References: <49442.78.22.132.175.1256804777.squirrel@biomath.ugent.be> Message-ID: <4AEB3F0E.30307@gmx.net> aditya at biomath.ugent.be schrieb: > Dear all, > > I wasn't able to install octave forge packages on my mac (os 10.6) for a > long time, but thanks to the following blog I got it working! It helped me > so much that I wanted to share this with you all! > > http://www.supermegaultragroovy.com/blog/2009/09/17/installing-octave-packages-in-snow-leopard/ Thanks for the info, I'll try to fix that for the next Octave.app release. Thomas From vic at norton.name Fri Oct 30 20:24:52 2009 From: vic at norton.name (Vic Norton) Date: Fri, 30 Oct 2009 21:24:52 -0400 Subject: patch to install octave forge packages on mac os 10.6 (snow leopard) In-Reply-To: <4AEB3F0E.30307@gmx.net> References: <49442.78.22.132.175.1256804777.squirrel@biomath.ugent.be> <4AEB3F0E.30307@gmx.net> Message-ID: On Oct 30, 2009, at 3:31 PM, Thomas Treichl wrote: > Thanks for the info, I'll try to fix that for the next Octave.app > release. Oh, boy! There will be another Octave.app release! And I had been thinking Octave.app was a thing of the past. Thank you, Thomas!!! Regards, Vic From Thomas.Treichl at gmx.net Sat Oct 31 06:02:54 2009 From: Thomas.Treichl at gmx.net (Thomas Treichl) Date: Sat, 31 Oct 2009 12:02:54 +0100 Subject: patch to install octave forge packages on mac os 10.6 (snow leopard) In-Reply-To: References: <49442.78.22.132.175.1256804777.squirrel@biomath.ugent.be> <4AEB3F0E.30307@gmx.net> Message-ID: <4AEC195E.9070603@gmx.net> Vic Norton schrieb: > On Oct 30, 2009, at 3:31 PM, Thomas Treichl wrote: > >> Thanks for the info, I'll try to fix that for the next Octave.app >> release. > > Oh, boy! There will be another Octave.app release! And I had been > thinking Octave.app was a thing of the past. I hope not ;) In my last announcement I wrote "by the end of the year" so I hope that there is at least a 3.2.4 that I will pack. One person also informed me that he/she is interested in packaging Octave.app for some while, so I really hope that such a program is available for some longer... Thomas From raymondsgroupmail at gmail.com Fri Oct 30 21:06:43 2009 From: raymondsgroupmail at gmail.com (Raymond at SDSU) Date: Fri, 30 Oct 2009 19:06:43 -0700 (PDT) Subject: Building Octave Statically (and without graphics) In-Reply-To: <19170.25062.57745.204925@segfault.lan> References: <49A55107.4020604@ll.mit.edu> <25997094.post@talk.nabble.com> <19170.25062.57745.204925@segfault.lan> Message-ID: <26139248.post@talk.nabble.com> Thanks (both) for the help. The potential of a limited features version of Octave for use on computing clusters seems meritorious. The Octave configure without all of the packages: ./configure --prefix=/home/raymond --without-framework-carbon --without-zlib -- without-hdf5 --without-fftw --without-glpk --without-curl --without-framework-op engl --without-qrupdate --without-amd --without-umfpack --without-colamd -- without-ccolamd --without-cholmod --without-cxsparse --without-arpack allows the "make" to proceed further, but the make still fails at a linking step: g++ -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wold-style-cast -Wformat -g -O2 -rdynamic -L.. -fPIC -o octave main.o -L../liboctave -L../libcruft -L../src -Wl,-rpath -Wl,/home/raymond/lib/octave-3.2.3 -loctinterp -loctave -lcruft -lreadline -lncurses -ldl -lm -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../.. -lgfortranbegin -lgfortran -lm ../liboctave/liboctave.so: undefined reference to `pthread_mutexattr_destroy' ../src/liboctinterp.so: undefined reference to `XOpenDisplay' ../liboctave/liboctave.so: undefined reference to `pthread_mutexattr_init' ../liboctave/liboctave.so: undefined reference to `pthread_mutexattr_settype' ../src/liboctinterp.so: undefined reference to `XScreenNumberOfScreen' collect2: ld returned 1 exit status John W. Eaton-3 wrote: > > On 21-Oct-2009, Raymond at SDSU wrote: > > | My application is also a cluster, without graphics support on the nodes. > I'm > | trying to build Octave from source on a cluster that I don't have root > | access to and even the X11 include files aren't there. Is there an easy > way > | to configure for a minimal build? > > What have you tried? If you configure with all the --without-PKG > options, then Octave should avoid using those packages. > > If that doesn't work, then report the problem as a bug. But since I > normally want to build full-featured versions of Octave, I'm not sure > that I would consider this a high priority problem, so patches to fix > any problems like this would be appreciated. > > jwe > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > -- View this message in context: http://old.nabble.com/Building-Octave-Statically-%28and-without-graphics%29-tp22206716p26139248.html Sent from the Octave - General mailing list archive at Nabble.com. From jjstickel at vcn.com Sat Oct 31 10:23:21 2009 From: jjstickel at vcn.com (Jonathan Stickel) Date: Sat, 31 Oct 2009 09:23:21 -0600 Subject: new function for quadratic programming: pqpnonneg In-Reply-To: References: Message-ID: <4AEC5669.1040505@vcn.com> I finally got a round to checking this function out. However, my problem also has equality and inequality constraints in addition to x>=0. Is it possible to add constraints and use the same implementation Thanks, Jonathan On 09/11/2009 help-octave-request at octave.org wrote: > Date: Fri, 11 Sep 2009 11:17:16 +0200 > From: Jaroslav Hajek > Subject: new function for quadratic programming: pqpnonneg > To: Octave users list > Message-ID: > <69d8d540909110217j423527ebrf6fe14f2b6b321a9 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > hi all, > > I just contributed a new function: pqpnonneg (Positive Quadratic > Programming in NONNEGative variables). > It can be used to solve problems of the form > > min 1/2*x'*A*x + b'*x, all (x >= 0) > where A is a positive definite matrix. The implementation exploits a > duality between least squares and positive qp problems; it is very > similar to lsqnonneg except that it solves the dual system A \ -b and > works with a Cholesky factorization instead of QR (via qrinsert & > qrdelete). > > If applicable, there are two advantages against qp: > > 1. it is usually significantly faster > 2. it will always converge in a finite number of iterations (I think > this follows from the Lawson-Hanson proof and the duality) > > both of these are of course very desirable. Here's a small benchmark > creating an artificial problem and solving it via both pqpnonneg and > qp: From jwe at octave.org Sat Oct 31 10:29:36 2009 From: jwe at octave.org (John W. Eaton) Date: Sat, 31 Oct 2009 11:29:36 -0400 Subject: Building Octave Statically (and without graphics) In-Reply-To: <26139248.post@talk.nabble.com> References: <49A55107.4020604@ll.mit.edu> <25997094.post@talk.nabble.com> <19170.25062.57745.204925@segfault.lan> <26139248.post@talk.nabble.com> Message-ID: <19180.22496.893037.130473@segfault.lan> On 30-Oct-2009, Raymond at SDSU wrote: | Thanks (both) for the help. The potential of a limited features version of | Octave for use on computing clusters seems meritorious. The Octave | configure without all of the packages: | | ./configure --prefix=/home/raymond --without-framework-carbon --without-zlib | -- | without-hdf5 --without-fftw --without-glpk --without-curl | --without-framework-op | engl --without-qrupdate --without-amd --without-umfpack --without-colamd | -- | without-ccolamd --without-cholmod --without-cxsparse | --without-arpack | | allows the "make" to proceed further, but the make still fails at a linking | step: | | g++ -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H | -mieee-fp -Wall -W -Wshadow -Wold-style-cast -Wformat -g -O2 -rdynamic -L.. | -fPIC -o octave main.o -L../liboctave -L../libcruft -L../src -Wl,-rpath | -Wl,/home/raymond/lib/octave-3.2.3 -loctinterp -loctave -lcruft | -lreadline -lncurses -ldl -lm -L/usr/lib/gcc/i386-redhat-linux/4.1.2 | -L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../.. -lgfortranbegin -lgfortran | -lm | | ../liboctave/liboctave.so: undefined reference to | `pthread_mutexattr_destroy' | ../src/liboctinterp.so: undefined reference to `XOpenDisplay' | ../liboctave/liboctave.so: undefined reference to `pthread_mutexattr_init' | ../liboctave/liboctave.so: undefined reference to | `pthread_mutexattr_settype' | ../src/liboctinterp.so: undefined reference to `XScreenNumberOfScreen' | collect2: ld returned 1 exit status I understand wanting to build without graphics, but I don't understand why you would want to discard all these other numerical tools. What does that have to do with running on a cluster? I would expect --without-x to help, but I just tried a build with that and X was still enabled. That should probably be fixed, but it is not a high priority item for me, so I will probably just wait for someone to contribute patches. The -lpthread problem is known, and I think fixed in the current development sources (I haven't checked the 3.2.x release branch). If you are interested in contributing patches, please note that the configuration scripts are undergoing some major changes right now as we switch to automake and libtool. So it might be best to wait until after that transition is finished. Also, the maintainers list is probably a better place for this discussion. jwe From jordigh at gmail.com Sat Oct 31 12:20:12 2009 From: jordigh at gmail.com (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Sat, 31 Oct 2009 11:20:12 -0600 Subject: Upgrade Ubuntu Jaunty to Karmic (9.04 to 9.10) breaks self-compiled octave In-Reply-To: <4AEB0531.1030708@claude.uniten.edu.my> References: <4AEAF5F4.1030302@uniten.edu.my> <4AEB0531.1030708@claude.uniten.edu.my> Message-ID: <9543b3a40910311020n33cdda63y743ab2e68996acaa@mail.gmail.com> 2009/10/30 Uwe Dippel : > Though it would be great to have a transitional package. > I wonder if there is a good reason to name it octave2.9 / octave3.0 / > octave3.2 instead of maybe just octave? So that it gets updated > automatically? I can't remember the exact reason for it, but roughly, I believe it has to do with other packages dependent on Octave and of course, on specific versions of Octave. Rafael Laboissiere and his heir apparent Thomas Weber had very good reasons for keeping the version name in the package name, so perhaps one of them can provide an explanation. From lindnerben at gmx.net Sat Oct 31 15:01:48 2009 From: lindnerben at gmx.net (Benjamin Lindner) Date: Sat, 31 Oct 2009 21:01:48 +0100 Subject: package installation Octave In-Reply-To: References: <4AD75083.60408@gmx.net> Message-ID: <4AEC97AC.7060206@gmx.net> Erik Brezet wrote: > On Thu, Oct 15, 2009 at 5:40 PM, Benjamin Lindner wrote: >> Erik Brezet wrote: >>> Hi, >>> I can't seem to get any packages (tar.gz) installed on Octave in >>> windows. Packages like: RODBC, xlsreadwrite, ga .. >>> Octave gives: error COPYING file missing or other errors. >>> I've got the mingw32 installer for windows. >>> >>> Help? >> Well, not all available forge packages can be successfully built for the >> mingw32 build. >> >> Please provide some more information. Which version of octave do you have >> installed? Which version of the package do you try to install? Can you post >> the commands you executed and octave's error response? >> >> With the 3.2.2 mingw32 installer I can for example install ga-0.9.7 without >> errors. >> >> benjamin >> >> >> > > Hi Benjamin and Anandaram, > Thanks for your responses. > I've got Octave 3.2.2. I still don't get the packages to work. > For example, I want to install SPCtools: > > ftp://svr-ftp.eng.cam.ac.uk/pub/comp.speech/tools/spctools > > and I unzip the files in the package directory > "octave\share\octave\packeges\SPCtools" > ,but when I run Octave, it doesn't recognize any of the commands.. > Well, these tools are not an octave-forge-package, so they don't follow octave's packaging rules, and they must not be installed in octave's directory tree (well, it's not forbidden, but I'll encourage you not to do so). If you want to use tools like the above, then you must unzip them somewhere on your local machine, e.g. into a subdirectory in your home directory, and then tell octave where to find it by adding all paths with scripts to octave's searchpath using the command addpath(). If you want to add a directory and all its aubdirectories, you might also take a look at genpath(). hope this helps benjamin From tmacchant at yahoo.co.jp Sat Oct 31 15:48:57 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Sun, 1 Nov 2009 05:48:57 +0900 (JST) Subject: Building Octave Statically (and without graphics) In-Reply-To: <26139248.post@talk.nabble.com> Message-ID: <20091031204857.62792.qmail@web3814.mail.bbt.yahoo.co.jp> Hello You should add --disable-shared for configure options. Otherwise octave will make shared libraries because building with shared libraries is default option for the octave. Regards Tatsuro --- Raymond at SDSU wrote: > > Thanks (both) for the help. The potential of a limited features version of > Octave for use on computing clusters seems meritorious. The Octave > configure without all of the packages: > > ./configure --prefix=/home/raymond --without-framework-carbon --without-zlib > -- > without-hdf5 --without-fftw --without-glpk --without-curl > --without-framework-op > engl --without-qrupdate --without-amd --without-umfpack --without-colamd > -- > without-ccolamd --without-cholmod --without-cxsparse > --without-arpack > > allows the "make" to proceed further, but the make still fails at a linking > step: > > g++ -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H > -mieee-fp -Wall -W -Wshadow -Wold-style-cast -Wformat -g -O2 -rdynamic -L.. > -fPIC -o octave main.o -L../liboctave -L../libcruft -L../src -Wl,-rpath > -Wl,/home/raymond/lib/octave-3.2.3 -loctinterp -loctave -lcruft > -lreadline -lncurses -ldl -lm -L/usr/lib/gcc/i386-redhat-linux/4.1.2 > -L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../.. -lgfortranbegin -lgfortran > -lm > > ../liboctave/liboctave.so: undefined reference to > `pthread_mutexattr_destroy' > ../src/liboctinterp.so: undefined reference to `XOpenDisplay' > ../liboctave/liboctave.so: undefined reference to `pthread_mutexattr_init' > ../liboctave/liboctave.so: undefined reference to > `pthread_mutexattr_settype' > ../src/liboctinterp.so: undefined reference to `XScreenNumberOfScreen' > collect2: ld returned 1 exit status > > > > > John W. Eaton-3 wrote: > > > > On 21-Oct-2009, Raymond at SDSU wrote: > > > > | My application is also a cluster, without graphics support on the nodes. > > I'm > > | trying to build Octave from source on a cluster that I don't have root > > | access to and even the X11 include files aren't there. Is there an easy > > way > > | to configure for a minimal build? > > > > What have you tried? If you configure with all the --without-PKG > > options, then Octave should avoid using those packages. > > > > If that doesn't work, then report the problem as a bug. But since I > > normally want to build full-featured versions of Octave, I'm not sure > > that I would consider this a high priority problem, so patches to fix > > any problems like this would be appreciated. > > > > jwe > > _______________________________________________ > > Help-octave mailing list > > Help-octave at octave.org > > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > > > > > -- > View this message in context: > http://old.nabble.com/Building-Octave-Statically-%28and-without-graphics%29-tp22206716p26139248.html > Sent from the Octave - General mailing list archive at Nabble.com. > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ From tmkdudek at gmail.com Sat Oct 31 16:48:36 2009 From: tmkdudek at gmail.com (tmkd) Date: Sat, 31 Oct 2009 14:48:36 -0700 (PDT) Subject: How to add octjpeglib Message-ID: <26146221.post@talk.nabble.com> Hello. i installed jpeg-src7, then mkoct to create imread and imwrite. What should i do next? I tried to add path to folder with imread.oct but octave shows error:invalid image file: error: `__magick_read__' undefined near line 57 column 31.. Can you help? -- View this message in context: http://old.nabble.com/How-to-add-octjpeglib-tp26146221p26146221.html Sent from the Octave - General mailing list archive at Nabble.com. From jwe at octave.org Sat Oct 31 17:14:30 2009 From: jwe at octave.org (John W. Eaton) Date: Sat, 31 Oct 2009 18:14:30 -0400 Subject: How to add octjpeglib In-Reply-To: <26146221.post@talk.nabble.com> References: <26146221.post@talk.nabble.com> Message-ID: <19180.46790.304865.133345@segfault.lan> On 31-Oct-2009, tmkd wrote: | Hello. i installed jpeg-src7, then mkoct to create imread and imwrite. What | should i do next? I tried to add path to folder with imread.oct but octave | shows error:invalid image file: error: `__magick_read__' undefined | near line 57 column 31.. | Can you help? What version of Octave are you using? I'd recommend upgrading to the latest stable release, 3.2.3, which includes the imread and imwrite functions. jwe From tmacchant at yahoo.co.jp Sat Oct 31 20:04:16 2009 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Sun, 1 Nov 2009 10:04:16 +0900 (JST) Subject: How to add octjpeglib In-Reply-To: <19180.46790.304865.133345@segfault.lan> Message-ID: <20091101010416.18467.qmail@web3811.mail.bbt.yahoo.co.jp> Hello --- "John W. Eaton> wrote: > On 31-Oct-2009, tmkd wrote: > > | Hello. i installed jpeg-src7, then mkoct to create imread and imwrite. What > | should i do next? I tried to add path to folder with imread.oct but octave > | shows error:invalid image file: error: `__magick_read__' undefined > | near line 57 column 31.. > | Can you help? > > What version of Octave are you using? I'd recommend upgrading to the > latest stable release, 3.2.3, which includes the imread and imwrite > functions. In addition, which platform (e.g. Windows XP pro, mingw, Mac OS X, or Debian Linux) do you use? Platform information is essentially important for this kind of questions. In principle, imread and imwrite on octave 3.2 supports jpeg format through GraphicsMagick libraries. If you would like to upadate jpeg libraries, you should update GraphicsMagick to use jpeg-7. I do not know that only replacement of dynamic link libraries of GraphicsMagick by newer ones will be effective. In some cases, you should re-build octave with the new GraphicsMagick libraries. Regards Tatsuro -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/