From homerun4711 at googlemail.com Thu Dec 1 04:26:18 2011 From: homerun4711 at googlemail.com (Walter White) Date: Thu, 1 Dec 2011 11:26:18 +0100 Subject: Question about display of precision Message-ID: Hello, I have a question and hope that you can help me to understand that. I use str2double to convert a cell array of strings (output from strsplit). Outputting the cell array of strings, it says ... [1,28] = 999999999 ... Outputting the according number in the array converted with str2double says ... Columns 28 through ... ... 1.0000e+9 ... But if I explicitly output the converted numeric value in the array it reads 99999999, as expected. Why is 1.0000e+9 displayed, instead of the "more correct" calue 9.9999e+8 ?? Kind regards, Walter -------------- next part -------------- An HTML attachment was scrubbed... URL: From andybuckle at gmail.com Thu Dec 1 04:39:58 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Thu, 1 Dec 2011 10:39:58 +0000 Subject: Question about display of precision In-Reply-To: References: Message-ID: On 1 December 2011 10:26, Walter White wrote: > Hello, > > I have a question and hope that you can help me to understand that. > > I use str2double to convert a cell array of strings (output from strsplit). > > Outputting the cell array of strings, it says > > ... > [1,28] = 999999999 > ... > > Outputting the according number in the array converted with str2double says > > ... > Columns 28 through ... > ... 1.0000e+9 ... > > But if I explicitly output the converted numeric value in the array it reads > 99999999, as expected. > > Why is 1.0000e+9 displayed, instead of the "more correct" calue 9.9999e+8 ?? > > Kind regards, > Walter I don't understand To 4 decimal places 1e9 /is/ the closest way of expressing the number. >a=999999999 a = 999999999 >a-1e9 ans = -1 >a-9.9999e8 ans = 9999 -- /* andy buckle */ From bpabbott at mac.com Thu Dec 1 20:03:10 2011 From: bpabbott at mac.com (Ben Abbott) Date: Thu, 01 Dec 2011 21:03:10 -0500 Subject: qhull6 and octave In-Reply-To: <6.2.5.6.2.20111201201253.02abe1f0@shore.net> References: <6.2.5.6.2.20111130201101.02a54ff0@shore.net> <709845.36287.qm@web100303.mail.kks.yahoo.co.jp> <6.2.5.6.2.20111201201253.02abe1f0@shore.net> Message-ID: On Dec 1, 2011, at 8:18 PM, Brad Barber wrote: > P.S: email to octave-help bounces. What should the address be? Brad, The valid emails addresses are ... help-octave at octave.org octave-maintainers at octave.org Ben From syberraith at yahoo.com Fri Dec 2 01:34:52 2011 From: syberraith at yahoo.com (syberraith) Date: Thu, 1 Dec 2011 23:34:52 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data Message-ID: <1322811292594-4145498.post@n4.nabble.com> I have some functions for mechanical modeling. 1) I would like to generate a data set of a number of (x,y) pairs. 2) Next, numerically differentiate the pairs and fill another y column in the array. 3) Then finally, numerically integrate the second y column over the total number of rows in the array. I've played with octave a little bit and have been able to get quad to work and have written a few basic scripts, although I'm clueless about differentiating and integrating from array data. Fred -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4145498.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Fri Dec 2 03:06:41 2011 From: carlo.defalco at gmail.com (c.) Date: Fri, 2 Dec 2011 10:06:41 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1322811292594-4145498.post@n4.nabble.com> References: <1322811292594-4145498.post@n4.nabble.com> Message-ID: <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> On 2 Dec 2011, at 08:34, syberraith wrote: > I have some functions for mechanical modeling. > > 1) I would like to generate a data set of a number of (x,y) pairs. > > 2) Next, numerically differentiate the pairs and fill another y column in > the array. > > 3) Then finally, numerically integrate the second y column over the total > number of rows in the array. > > I've played with octave a little bit and have been able to get quad to work > and have written a few basic scripts, although I'm clueless about > differentiating and integrating from array data. for integration of data given as sample pairs "trapz" is probably more convenient to use rather than "quaad" for differentiation you might have a look at the function "diff". > Fred c. From huubvanniekerk at gmail.com Fri Dec 2 03:45:27 2011 From: huubvanniekerk at gmail.com (Huub van Niekerk) Date: Fri, 2 Dec 2011 10:45:27 +0100 Subject: error using control package on openSuse 11.4 Message-ID: Hi, Using octave 3.4.2 I'm trying to use control v. 2.2.0 which I installed using the packagemanager. However, when I typ "ver" in octave, it says ---------------------------------------------------------------------- GNU Octave Version 3.4.2 GNU Octave License: GNU General Public License Operating System: Linux 2.6.37.6-0.9-default #1 SMP 2011-10-19 22:33:27 +0200 i686 ---------------------------------------------------------------------- no packages installed. Also, querying which octave packages are installed gives: octave-forge-20111010-6.18.noarch octave-forge-control-2.2.0-6.18.noarch octave-devel-3.4.2-1.1.i586 octave-forge-nnet-0.1.13-6.18.noarch octave-3.4.2-1.1.i586 octave-forge-linear-algebra-2.0.0-6.18.noarch What's going wrong here? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lukas.reichlin at gmail.com Fri Dec 2 04:16:40 2011 From: lukas.reichlin at gmail.com (Lukas Reichlin) Date: Fri, 2 Dec 2011 11:16:40 +0100 Subject: error using control package on openSuse 11.4 In-Reply-To: References: Message-ID: <26CFA04D-F20A-4909-B62B-ECD413B2373D@gmail.com> On 02.12.2011, at 10:45, Huub van Niekerk wrote: > Hi, > > Using octave 3.4.2 I'm trying to use control v. 2.2.0 which I installed using the packagemanager. However, when I typ "ver" in octave, it says ---------------------------------------------------------------------- > GNU Octave Version 3.4.2 > GNU Octave License: GNU General Public License > Operating System: Linux 2.6.37.6-0.9-default #1 SMP 2011-10-19 22:33:27 +0200 i686 > ---------------------------------------------------------------------- > no packages installed. > > Also, querying which octave packages are installed gives: > > octave-forge-20111010-6.18.noarch > octave-forge-control-2.2.0-6.18.noarch > octave-devel-3.4.2-1.1.i586 > octave-forge-nnet-0.1.13-6.18.noarch > octave-3.4.2-1.1.i586 > octave-forge-linear-algebra-2.0.0-6.18.noarch > > What's going wrong here? > > Thank you. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave To me it looks if Suse's package manager doesn't register the packages with octave. First, try if this command is working: sys = ss (-1, 1, 1, 0) If it works, the problem is of cosmetic nature. If it doesn't work, the problem is serious and you should report it to Suse. As a workaround, you can install the control package by octave's own package manager. To do so, type inside octave: pkg install -forge control It may take several minutes to complete and you may see some verbose warnings. Afterwards, you can check if it works by sys = ss (-1, 1, 1, 0) again. Lukas From reza.housseini at gmail.com Fri Dec 2 03:56:21 2011 From: reza.housseini at gmail.com (Reza Housseini) Date: Fri, 2 Dec 2011 10:56:21 +0100 Subject: C++ API Problem Message-ID: Hello octave users, I've wrote a small C++ program with the octave API. Now I get the following error message: *Aborted -- stopping myself... attempting to save variables to `octave-core'... panic: attempted clean up apparently failed -- aborting... Aborted* How can I save the backtrace from a terminal? I tried it with piping but this didn't work. Thanks a lot! Reza -------------- next part -------------- An HTML attachment was scrubbed... URL: From andybuckle at gmail.com Fri Dec 2 04:44:18 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Fri, 2 Dec 2011 10:44:18 +0000 Subject: C++ API Problem In-Reply-To: References: Message-ID: On 2 December 2011 09:56, Reza Housseini wrote: > Hello octave users, > > I've wrote a small C++ program with the octave API. Now I get the following > error message: > > Aborted -- stopping myself... > attempting to save variables to `octave-core'... > panic: attempted clean up apparently failed -- aborting... > Aborted You can run the whole of octave through gdb, or valgrind. Either of which may help. -- /* andy buckle */ From lukas.reichlin at gmail.com Fri Dec 2 05:31:19 2011 From: lukas.reichlin at gmail.com (Lukas Reichlin) Date: Fri, 2 Dec 2011 12:31:19 +0100 Subject: error using control package on openSuse 11.4 In-Reply-To: References: <26CFA04D-F20A-4909-B62B-ECD413B2373D@gmail.com> Message-ID: On 02.12.2011, at 12:06, Huub van Niekerk wrote: > On Fri, Dec 2, 2011 at 11:16 AM, Lukas Reichlin wrote: > On 02.12.2011, at 10:45, Huub van Niekerk wrote: > >> Hi, >> >> Using octave 3.4.2 I'm trying to use control v. 2.2.0 which I installed using the packagemanager. However, when I typ "ver" in octave, it says ---------------------------------------------------------------------- >> GNU Octave Version 3.4.2 >> GNU Octave License: GNU General Public License >> Operating System: Linux 2.6.37.6-0.9-default #1 SMP 2011-10-19 22:33:27 +0200 i686 >> ---------------------------------------------------------------------- >> no packages installed. >> >> Also, querying which octave packages are installed gives: >> >> octave-forge-20111010-6.18.noarch >> octave-forge-control-2.2.0-6.18.noarch >> octave-devel-3.4.2-1.1.i586 >> octave-forge-nnet-0.1.13-6.18.noarch >> octave-3.4.2-1.1.i586 >> octave-forge-linear-algebra-2.0.0-6.18.noarch >> >> What's going wrong here? >> >> Thank you. >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://mailman.cae.wisc.edu/listinfo/help-octave > > To me it looks if Suse's package manager doesn't register the packages with octave. First, try if this command is working: > > sys = ss (-1, 1, 1, 0) > > If it works, the problem is of cosmetic nature. > If it doesn't work, the problem is serious and you should report it to Suse. > > As a workaround, you can install the control package by octave's own package manager. To do so, type inside octave: > > pkg install -forge control > > It may take several minutes to complete and you may see some verbose warnings. Afterwards, you can check if it works by sys = ss (-1, 1, 1, 0) again. > > Lukas > > Hi, > > Thank you for your answers. Unfortunately, neither the first option nor the work-around works. So I'll report it to Suse. Also, I got this: > > pkg install -forge control > AB08ND.f: In function ?ab08nd?: > AB08ND.f:265:0: warning: ?wrkopt? may be used uninitialized in this function > MB03OY.f: In function ?mb03oy?: > MB03OY.f:198:0: warning: ?aii? may be used uninitialized in this function > MB03PY.f: In function ?mb03py?: > MB03PY.f:201:0: warning: ?aii? may be used uninitialized in this function > In file included from /usr/include/octave-3.4.2/octave/../octave/ov.h:43:0, > from /usr/include/octave-3.4.2/octave/../octave/oct-obj.h:34, > from /usr/include/octave-3.4.2/octave/../octave/ov-fcn.h:32, > from /usr/include/octave-3.4.2/octave/../octave/ov-builtin.h:28, > from /usr/include/octave-3.4.2/octave/../octave/defun-int.h:28, > from /usr/include/octave-3.4.2/octave/../octave/defun-dld.h:30, > from /usr/include/octave-3.4.2/octave/../octave/oct.h:36, > from slab08nd.cc:30: > /usr/include/octave-3.4.2/octave/../octave/oct-hdf5.h:27:18: fatal error: hdf5.h: No such file or directory > compilation terminated. > make: *** [slab08nd.oct] Error 1 > 'make' returned the following error: make: Entering directory `/tmp/oct-VLkHnT/control/src' > mkoctfile slab08nd.cc \ > AB08ND.f AB08NX.f TB01ID.f MB03OY.f MB03PY.f > make: Leaving directory `/tmp/oct-VLkHnT/control/src' > error: called from `pkg>configure_make' in file /usr/share/octave/3.4.2/m/pkg/pkg.m near line 1339, column 9 > error: called from: > error: /usr/share/octave/3.4.2/m/pkg/pkg.m at line 790, column 5 > error: /usr/share/octave/3.4.2/m/pkg/pkg.m at line 361, column 9 >> > > It there a package conflict? I guess that Suse's octave package is somehow (partially) broken. For example, hdf5 is not found/not deactived. Unfortunately, there's little I can do here, the problem must be fixed by Suse. If needed, Suse maintainers may ask the guys from Fedora for some tips because Fedora 16 has working packages of recent octave and control versions. Lukas From huubvanniekerk at gmail.com Fri Dec 2 05:34:48 2011 From: huubvanniekerk at gmail.com (Huub van Niekerk) Date: Fri, 2 Dec 2011 12:34:48 +0100 Subject: error using control package on openSuse 11.4 In-Reply-To: <531CE7E1-0346-4084-B996-46B6F610741A@gmail.com> References: <26CFA04D-F20A-4909-B62B-ECD413B2373D@gmail.com> <531CE7E1-0346-4084-B996-46B6F610741A@gmail.com> Message-ID: On Fri, Dec 2, 2011 at 12:29 PM, Lukas Reichlin wrote: > > On 02.12.2011, at 12:06, Huub van Niekerk wrote: > > > On Fri, Dec 2, 2011 at 11:16 AM, Lukas Reichlin < > lukas.reichlin at gmail.com> wrote: > > On 02.12.2011, at 10:45, Huub van Niekerk wrote: > > > > > Hi, > > > > > > Using octave 3.4.2 I'm trying to use control v. 2.2.0 which I > installed using the packagemanager. However, when I typ "ver" in octave, it > says ---------------------------------------------------------------------- > > > GNU Octave Version 3.4.2 > > > GNU Octave License: GNU General Public License > > > Operating System: Linux 2.6.37.6-0.9-default #1 SMP 2011-10-19 > 22:33:27 +0200 i686 > > > ---------------------------------------------------------------------- > > > no packages installed. > > > > > > Also, querying which octave packages are installed gives: > > > > > > octave-forge-20111010-6.18.noarch > > > octave-forge-control-2.2.0-6.18.noarch > > > octave-devel-3.4.2-1.1.i586 > > > octave-forge-nnet-0.1.13-6.18.noarch > > > octave-3.4.2-1.1.i586 > > > octave-forge-linear-algebra-2.0.0-6.18.noarch > > > > > > What's going wrong here? > > > > > > Thank you. > > > _______________________________________________ > > > Help-octave mailing list > > > Help-octave at octave.org > > > https://mailman.cae.wisc.edu/listinfo/help-octave > > > > To me it looks if Suse's package manager doesn't register the packages > with octave. First, try if this command is working: > > > > sys = ss (-1, 1, 1, 0) > > > > If it works, the problem is of cosmetic nature. > > If it doesn't work, the problem is serious and you should report it to > Suse. > > > > As a workaround, you can install the control package by octave's own > package manager. To do so, type inside octave: > > > > pkg install -forge control > > > > It may take several minutes to complete and you may see some verbose > warnings. Afterwards, you can check if it works by sys = ss (-1, 1, 1, 0) > again. > > > > Lukas > > > > Hi, > > > > Thank you for your answers. Unfortunately, neither the first option nor > the work-around works. So I'll report it to Suse. Also, I got this: > > > > pkg install -forge control > > AB08ND.f: In function ?ab08nd?: > > AB08ND.f:265:0: warning: ?wrkopt? may be used uninitialized in this > function > > MB03OY.f: In function ?mb03oy?: > > MB03OY.f:198:0: warning: ?aii? may be used uninitialized in this function > > MB03PY.f: In function ?mb03py?: > > MB03PY.f:201:0: warning: ?aii? may be used uninitialized in this function > > In file included from > /usr/include/octave-3.4.2/octave/../octave/ov.h:43:0, > > from > /usr/include/octave-3.4.2/octave/../octave/oct-obj.h:34, > > from > /usr/include/octave-3.4.2/octave/../octave/ov-fcn.h:32, > > from > /usr/include/octave-3.4.2/octave/../octave/ov-builtin.h:28, > > from > /usr/include/octave-3.4.2/octave/../octave/defun-int.h:28, > > from > /usr/include/octave-3.4.2/octave/../octave/defun-dld.h:30, > > from > /usr/include/octave-3.4.2/octave/../octave/oct.h:36, > > from slab08nd.cc:30: > > /usr/include/octave-3.4.2/octave/../octave/oct-hdf5.h:27:18: fatal > error: hdf5.h: No such file or directory > > compilation terminated. > > make: *** [slab08nd.oct] Error 1 > > 'make' returned the following error: make: Entering directory > `/tmp/oct-VLkHnT/control/src' > > mkoctfile slab08nd.cc \ > > AB08ND.f AB08NX.f TB01ID.f MB03OY.f MB03PY.f > > make: Leaving directory `/tmp/oct-VLkHnT/control/src' > > error: called from `pkg>configure_make' in file > /usr/share/octave/3.4.2/m/pkg/pkg.m near line 1339, column 9 > > error: called from: > > error: /usr/share/octave/3.4.2/m/pkg/pkg.m at line 790, column 5 > > error: /usr/share/octave/3.4.2/m/pkg/pkg.m at line 361, column 9 > > > > > > > It there a package conflict? > > I guess that Suse's octave package is somehow (partially) broken. For > example, hdf5 is not found/not deactived. Unfortunately, there's little I > can do here, the problem must be fixed by Suse. If needed, Suse maintainers > may ask the guys from Fedora for some tips because Fedora 16 has working > packages of recent octave and control versions. > > Lukas > > > Ok, I'll report it to Suse and use Octave on another linux then. -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.arteaga at gmail.com Fri Dec 2 05:52:30 2011 From: daniel.arteaga at gmail.com (Daniel Arteaga) Date: Fri, 02 Dec 2011 12:52:30 +0100 Subject: Non-linear axis data in imagesc Message-ID: Hi all, imagesc fails to display correctly non-linarly spaced axes. Instead it "invents" linear axis from the maximum value. See what I mean: x = logspace(0,5,20); y = logspace(0,2,10); A = rand(10,20); imagesc(x,y,A); Is this a bug? Any workaround to get the correct behaviour? Tested using GNU Octave Version 3.4.2 under Ubuntu 11.10. Thank you, Daniel From bpabbott at mac.com Fri Dec 2 07:15:48 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 02 Dec 2011 08:15:48 -0500 Subject: Non-linear axis data in imagesc In-Reply-To: References: Message-ID: <29B53F8D-ED0C-4F76-B94E-1487C5A6DDCE@mac.com> On Dec 2, 2011, at 6:52 AM, Daniel Arteaga wrote: > Hi all, > > imagesc fails to display correctly non-linarly spaced axes. Instead it "invents" linear axis from the maximum value. See what I mean: > > x = logspace(0,5,20); > y = logspace(0,2,10); > A = rand(10,20); > imagesc(x,y,A); > > Is this a bug? Any workaround to get the correct behaviour? > > Tested using GNU Octave Version 3.4.2 under Ubuntu 11.10. > > Thank you, > > Daniel If you see (0,0) in the upper-left, then it is working as intended. Matlab behaves this way as well. If you'd prefer to have (0,0) in the lower left ... set (gca, "ydir", "normal") Ben From daniel.arteaga at gmail.com Fri Dec 2 07:20:37 2011 From: daniel.arteaga at gmail.com (Daniel Arteaga) Date: Fri, 02 Dec 2011 14:20:37 +0100 Subject: Non-linear axis data in imagesc In-Reply-To: <29B53F8D-ED0C-4F76-B94E-1487C5A6DDCE@mac.com> References: <29B53F8D-ED0C-4F76-B94E-1487C5A6DDCE@mac.com> Message-ID: On 02/12/11 14:15, Ben Abbott wrote: > On Dec 2, 2011, at 6:52 AM, Daniel Arteaga wrote: > >> Hi all, >> >> imagesc fails to display correctly non-linarly spaced axes. Instead it "invents" linear axis from the maximum value. See what I mean: >> >> x = logspace(0,5,20); >> y = logspace(0,2,10); >> A = rand(10,20); >> imagesc(x,y,A); >> >> Is this a bug? Any workaround to get the correct behaviour? >> >> Tested using GNU Octave Version 3.4.2 under Ubuntu 11.10. >> >> Thank you, >> >> Daniel > > If you see (0,0) in the upper-left, then it is working as intended. Matlab behaves this way as well. Sorry, I was not meaning that. What I was meaning is that the axis labels do not correspond to the x vector defined above. The real axis should be logarithmic, but imagesc invents a linear axis. Thank you, Daniel From bpabbott at mac.com Fri Dec 2 07:29:15 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 02 Dec 2011 08:29:15 -0500 Subject: Non-linear axis data in imagesc In-Reply-To: References: <29B53F8D-ED0C-4F76-B94E-1487C5A6DDCE@mac.com> Message-ID: On Dec 2, 2011, at 8:20 AM, Daniel Arteaga wrote: > On 02/12/11 14:15, Ben Abbott wrote: >> On Dec 2, 2011, at 6:52 AM, Daniel Arteaga wrote: >> >>> Hi all, >>> >>> imagesc fails to display correctly non-linarly spaced axes. Instead it "invents" linear axis from the maximum value. See what I mean: >>> >>> x = logspace(0,5,20); >>> y = logspace(0,2,10); >>> A = rand(10,20); >>> imagesc(x,y,A); >>> >>> Is this a bug? Any workaround to get the correct behaviour? >>> >>> Tested using GNU Octave Version 3.4.2 under Ubuntu 11.10. >>> >>> Thank you, >>> >>> Daniel >> >> If you see (0,0) in the upper-left, then it is working as intended. Matlab behaves this way as well. > > Sorry, I was not meaning that. What I was meaning is that the axis labels do not correspond to the x vector defined above. The real axis should be logarithmic, but imagesc invents a linear axis. > > Thank you, > > Daniel Ok. That *feature* is also inherited from Matlab. I've attached the result from Matlab (R2011b). Does it look the same as what Octave produces for you? Ben -------------- next part -------------- A non-text attachment was scrubbed... Name: matlab.pdf Type: application/pdf Size: 4392 bytes Desc: not available URL: From daniel.arteaga at gmail.com Fri Dec 2 08:12:07 2011 From: daniel.arteaga at gmail.com (Daniel Arteaga) Date: Fri, 02 Dec 2011 15:12:07 +0100 Subject: Non-linear axis data in imagesc In-Reply-To: References: <29B53F8D-ED0C-4F76-B94E-1487C5A6DDCE@mac.com> Message-ID: On 02/12/11 14:29, Ben Abbott wrote: > > On Dec 2, 2011, at 8:20 AM, Daniel Arteaga wrote: > >> On 02/12/11 14:15, Ben Abbott wrote: >>> On Dec 2, 2011, at 6:52 AM, Daniel Arteaga wrote: >>> >>>> Hi all, >>>> >>>> imagesc fails to display correctly non-linarly spaced axes. Instead it "invents" linear axis from the maximum value. See what I mean: >>>> >>>> x = logspace(0,5,20); >>>> y = logspace(0,2,10); >>>> A = rand(10,20); >>>> imagesc(x,y,A); >>>> >>>> Is this a bug? Any workaround to get the correct behaviour? >>>> >>>> Tested using GNU Octave Version 3.4.2 under Ubuntu 11.10. >>>> >>>> Thank you, >>>> >>>> Daniel >>> >>> If you see (0,0) in the upper-left, then it is working as intended. Matlab behaves this way as well. >> >> Sorry, I was not meaning that. What I was meaning is that the axis labels do not correspond to the x vector defined above. The real axis should be logarithmic, but imagesc invents a linear axis. >> >> Thank you, >> >> Daniel > > Ok. That *feature* is also inherited from Matlab. > > I've attached the result from Matlab (R2011b). Does it look the same as what Octave produces for you? Yes, the result is essentially the same. Anyway, be in Matlab or Octave, the result is incorrect as I understand, since it is assigning values to the axis that do not match with the plotted data. In other words, for a given x and y value (according to the displayed axis), the color plotted is not the correct one. In my opinion, at least a warning should be displayed in this situation. Thank you very much, Daniel From bpabbott at mac.com Fri Dec 2 08:57:57 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 02 Dec 2011 09:57:57 -0500 Subject: Non-linear axis data in imagesc In-Reply-To: References: <29B53F8D-ED0C-4F76-B94E-1487C5A6DDCE@mac.com> Message-ID: <58CCD727-40EF-419D-A7F0-5CE806481A83@mac.com> On Dec 2, 2011, at 9:12 AM, Daniel Arteaga wrote: > On 02/12/11 14:29, Ben Abbott wrote: >> >> On Dec 2, 2011, at 8:20 AM, Daniel Arteaga wrote: >> >>> On 02/12/11 14:15, Ben Abbott wrote: >>>> On Dec 2, 2011, at 6:52 AM, Daniel Arteaga wrote: >>>> >>>>> Hi all, >>>>> >>>>> imagesc fails to display correctly non-linarly spaced axes. Instead it "invents" linear axis from the maximum value. See what I mean: >>>>> >>>>> x = logspace(0,5,20); >>>>> y = logspace(0,2,10); >>>>> A = rand(10,20); >>>>> imagesc(x,y,A); >>>>> >>>>> Is this a bug? Any workaround to get the correct behaviour? >>>>> >>>>> Tested using GNU Octave Version 3.4.2 under Ubuntu 11.10. >>>>> >>>>> Thank you, >>>>> >>>>> Daniel >>>> >>>> If you see (0,0) in the upper-left, then it is working as intended. Matlab behaves this way as well. >>> >>> Sorry, I was not meaning that. What I was meaning is that the axis labels do not correspond to the x vector defined above. The real axis should be logarithmic, but imagesc invents a linear axis. >>> >>> Thank you, >>> >>> Daniel >> >> Ok. That *feature* is also inherited from Matlab. >> >> I've attached the result from Matlab (R2011b). Does it look the same as what Octave produces for you? > > Yes, the result is essentially the same. > > Anyway, be in Matlab or Octave, the result is incorrect as I understand, since it is assigning values to the axis that do not match with the plotted data. > > In other words, for a given x and y value (according to the displayed axis), the color plotted is not the correct one. > > In my opinion, at least a warning should be displayed in this situation. > > Thank you very much, > > Daniel The ML implementation is ugly. Adding a warning is a good idea. I'll apply a patch. Thanks, Ben From bpabbott at mac.com Fri Dec 2 09:07:56 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 02 Dec 2011 10:07:56 -0500 Subject: Non-linear axis data in imagesc In-Reply-To: References: <29B53F8D-ED0C-4F76-B94E-1487C5A6DDCE@mac.com> Message-ID: <0AD288C7-0B32-482B-8D84-04BED9CFFFA3@mac.com> On Dec 2, 2011, at 9:12 AM, Daniel Arteaga wrote: > On 02/12/11 14:29, Ben Abbott wrote: >> >> On Dec 2, 2011, at 8:20 AM, Daniel Arteaga wrote: >> >>> On 02/12/11 14:15, Ben Abbott wrote: >>>> On Dec 2, 2011, at 6:52 AM, Daniel Arteaga wrote: >>>> >>>>> Hi all, >>>>> >>>>> imagesc fails to display correctly non-linarly spaced axes. Instead it "invents" linear axis from the maximum value. See what I mean: >>>>> >>>>> x = logspace(0,5,20); >>>>> y = logspace(0,2,10); >>>>> A = rand(10,20); >>>>> imagesc(x,y,A); >>>>> >>>>> Is this a bug? Any workaround to get the correct behaviour? >>>>> >>>>> Tested using GNU Octave Version 3.4.2 under Ubuntu 11.10. >>>>> >>>>> Thank you, >>>>> >>>>> Daniel >>>> >>>> If you see (0,0) in the upper-left, then it is working as intended. Matlab behaves this way as well. >>> >>> Sorry, I was not meaning that. What I was meaning is that the axis labels do not correspond to the x vector defined above. The real axis should be logarithmic, but imagesc invents a linear axis. >>> >>> Thank you, >>> >>> Daniel >> >> Ok. That *feature* is also inherited from Matlab. >> >> I've attached the result from Matlab (R2011b). Does it look the same as what Octave produces for you? > > Yes, the result is essentially the same. > > Anyway, be in Matlab or Octave, the result is incorrect as I understand, since it is assigning values to the axis that do not match with the plotted data. > > In other words, for a given x and y value (according to the displayed axis), the color plotted is not the correct one. > > In my opinion, at least a warning should be displayed in this situation. > > Thank you very much, > > Daniel I forgot to mention that you can work around ML's implementation. Does the script below do what you want? x = linspace(0,1e5,21); y = linspace(0,1e2,11); A = rand(11,21); imagesc(x,y,A); set (gca, "xtick", 0:20e3:1e5) set (gca, "xticklabel", {"1", "10", "10^2", "10^3", "10^4", "10^5"}) set (gca, "ytick", [0, 50, 100]) set (gca, "yticklabel", {"1", "10", "10^2"}) Ben From daniel.arteaga at gmail.com Fri Dec 2 09:39:48 2011 From: daniel.arteaga at gmail.com (Daniel Arteaga) Date: Fri, 02 Dec 2011 16:39:48 +0100 Subject: Non-linear axis data in imagesc In-Reply-To: <0AD288C7-0B32-482B-8D84-04BED9CFFFA3@mac.com> References: <29B53F8D-ED0C-4F76-B94E-1487C5A6DDCE@mac.com> <0AD288C7-0B32-482B-8D84-04BED9CFFFA3@mac.com> Message-ID: On 02/12/11 16:07, Ben Abbott wrote: > > On Dec 2, 2011, at 9:12 AM, Daniel Arteaga wrote: > >> On 02/12/11 14:29, Ben Abbott wrote: >>> >>> On Dec 2, 2011, at 8:20 AM, Daniel Arteaga wrote: >>> >>>> On 02/12/11 14:15, Ben Abbott wrote: >>>>> On Dec 2, 2011, at 6:52 AM, Daniel Arteaga wrote: >>>>> >>>>>> Hi all, >>>>>> >>>>>> imagesc fails to display correctly non-linarly spaced axes. Instead it "invents" linear axis from the maximum value. See what I mean: >>>>>> >>>>>> x = logspace(0,5,20); >>>>>> y = logspace(0,2,10); >>>>>> A = rand(10,20); >>>>>> imagesc(x,y,A); >>>>>> >>>>>> Is this a bug? Any workaround to get the correct behaviour? >>>>>> >>>>>> Tested using GNU Octave Version 3.4.2 under Ubuntu 11.10. [...] >> >> Daniel > > I forgot to mention that you can work around ML's implementation. Does the script below do what you want? > > x = linspace(0,1e5,21); > y = linspace(0,1e2,11); > A = rand(11,21); > imagesc(x,y,A); > set (gca, "xtick", 0:20e3:1e5) > set (gca, "xticklabel", {"1", "10", "10^2", "10^3", "10^4", "10^5"}) > set (gca, "ytick", [0, 50, 100]) > set (gca, "yticklabel", {"1", "10", "10^2"}) Thank you very much for your workaround. Right now I don't have access to octave. I'll test and report. Daniel From daniel.arteaga at gmail.com Fri Dec 2 10:03:34 2011 From: daniel.arteaga at gmail.com (Daniel Arteaga) Date: Fri, 02 Dec 2011 17:03:34 +0100 Subject: Non-linear axis data in imagesc In-Reply-To: <0AD288C7-0B32-482B-8D84-04BED9CFFFA3@mac.com> References: <29B53F8D-ED0C-4F76-B94E-1487C5A6DDCE@mac.com> <0AD288C7-0B32-482B-8D84-04BED9CFFFA3@mac.com> Message-ID: On 02/12/11 16:07, Ben Abbott wrote: > > On Dec 2, 2011, at 9:12 AM, Daniel Arteaga wrote: > >> On 02/12/11 14:29, Ben Abbott wrote: >>> >>> On Dec 2, 2011, at 8:20 AM, Daniel Arteaga wrote: >>> >>>> On 02/12/11 14:15, Ben Abbott wrote: >>>>> On Dec 2, 2011, at 6:52 AM, Daniel Arteaga wrote: >>>>> >>>>>> Hi all, >>>>>> >>>>>> imagesc fails to display correctly non-linarly spaced axes. Instead it "invents" linear axis from the maximum value. See what I mean: >>>>>> >>>>>> x = logspace(0,5,20); >>>>>> y = logspace(0,2,10); >>>>>> A = rand(10,20); >>>>>> imagesc(x,y,A); >>>>>> >>>>>> Is this a bug? Any workaround to get the correct behaviour? [...] > > I forgot to mention that you can work around ML's implementation. Does the script below do what you want? > > x = linspace(0,1e5,21); > y = linspace(0,1e2,11); > A = rand(11,21); > imagesc(x,y,A); > set (gca, "xtick", 0:20e3:1e5) > set (gca, "xticklabel", {"1", "10", "10^2", "10^3", "10^4", "10^5"}) > set (gca, "ytick", [0, 50, 100]) > set (gca, "yticklabel", {"1", "10", "10^2"}) The workaround works perfectly. Thank you very much! Daniel From muhali at shaw.ca Fri Dec 2 12:21:02 2011 From: muhali at shaw.ca (Muhali) Date: Fri, 2 Dec 2011 10:21:02 -0800 (PST) Subject: confusing urlwrite output Message-ID: <1322850062594-4148381.post@n4.nabble.com> This is what I get from a simple urlwrite: I find that confusing since no error actually occurred. -- View this message in context: http://octave.1599824.n4.nabble.com/confusing-urlwrite-output-tp4148381p4148381.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at octave.org Fri Dec 2 12:25:17 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 2 Dec 2011 13:25:17 -0500 Subject: confusing urlwrite output In-Reply-To: <1322850062594-4148381.post@n4.nabble.com> References: <1322850062594-4148381.post@n4.nabble.com> Message-ID: On 2 December 2011 13:21, Muhali wrote: > This is what I get from a simple urlwrite: > > > > I find that confusing since no error actually occurred. I already fixed that in dev: http://hg.savannah.gnu.org/hgweb/octave/rev/27e5f0e79f19 HTH, - Jordi G. H. From ratulloch at gmail.com Fri Dec 2 13:35:48 2011 From: ratulloch at gmail.com (Rick T) Date: Fri, 2 Dec 2011 09:35:48 -1000 Subject: textread error / question Message-ID: Greetings All I'm trying to read in a text file with comma delimited data see text of what's in data.txt below but I keep getting an error feval: function `print_usage' not found text1,eq1=a+b*c text2,eq2=b+c*d text3,eq3=c+a*a This the command I use [names,equation]=textread('data.txt', '%s%s', 'delimiter', ',') I have the io package installed and I'm using ubuntu 10.04 with octave 3.2.4 Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From przemek.klosowski at nist.gov Fri Dec 2 13:58:01 2011 From: przemek.klosowski at nist.gov (Przemek Klosowski) Date: Fri, 02 Dec 2011 14:58:01 -0500 Subject: image package loaded up twice Message-ID: <4ED92DC9.7090902@nist.gov> I did 'pkg install -forge image' and ended up with: image *| 1.0.15 | /home/przemek/octave/image-1.0.15 image *| 1.0.14 | /usr/share/octave/packages/image-1.0.14 I expected that the old/default image will be shadowed and invisible, which I think was the case on my previous successful pkg installations. Why is 'image' different, and how to resolve this? From muhali at shaw.ca Fri Dec 2 14:19:10 2011 From: muhali at shaw.ca (Muhali) Date: Fri, 2 Dec 2011 12:19:10 -0800 (PST) Subject: confusing urlwrite output In-Reply-To: References: <1322850062594-4148381.post@n4.nabble.com> Message-ID: <1322857150587-4149067.post@n4.nabble.com> but I am at changeset: 13955:ffbbe6719ef5 tag: tip user: Michael Goffioul date: Mon Nov 28 22:19:54 2011 +0000 summary: Implement support for cellstr argument in get() function. So why do I still see it? M. -- View this message in context: http://octave.1599824.n4.nabble.com/confusing-urlwrite-output-tp4148381p4149067.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at octave.org Fri Dec 2 14:34:53 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 2 Dec 2011 15:34:53 -0500 Subject: confusing urlwrite output In-Reply-To: <1322857150587-4149067.post@n4.nabble.com> References: <1322850062594-4148381.post@n4.nabble.com> <1322857150587-4149067.post@n4.nabble.com> Message-ID: On 2 December 2011 15:19, Muhali wrote: > but I am at > > changeset: ? 13955:ffbbe6719ef5 > tag: ? ? ? ? tip > user: ? ? ? ?Michael Goffioul > date: ? ? ? ?Mon Nov 28 22:19:54 2011 +0000 > summary: ? ? Implement support for cellstr argument in get() function. > > So why do I still see it? You didn't actually write what the error was. I thought it was "error: no error". Can you tell me what you did and what you saw? - Jordi G. H. From bpabbott at mac.com Fri Dec 2 14:36:34 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 02 Dec 2011 15:36:34 -0500 Subject: textread error / question In-Reply-To: References: Message-ID: <19DE7C36-6268-4D50-89AC-E1447DB27817@mac.com> On Dec 2, 2011, at 2:35 PM, Rick T wrote: > Greetings All > > I'm trying to read in a text file with comma delimited data see text of what's in data.txt below but I keep getting an error > feval: function `print_usage' not found > > text1,eq1=a+b*c > text2,eq2=b+c*d > text3,eq3=c+a*a > > This the command I use > [names,equation]=textread('data.txt', '%s%s', 'delimiter', ',') > > I have the io package installed and I'm using ubuntu 10.04 with octave 3.2.4 > > Thanks With Octave 3.4.x, I tried ran the attached "rick.m" and obtained ... rick names = { [1,1] = text1 [2,1] = text2 [3,1] = text3 } equation = { [1,1] = eq1=a+b*c [2,1] = eq2=b+c*d [3,1] = eq3=c+a*a } Since you are seeing "feval: function `print_usage' not found", it appears that there are two problems. First, textread() or something it calls is throwing an error via print_usage(). I don't think textread.m was part of Octave's core functions when Octave-3.2.4 was released. What do you get when you type "which textread" ? Do you know where you got this function? Perhaps it is not compatible with 3.2.4 ? Secondly, it appears that print_usage() is not in your path. What do you get when you type "path" ? And just to be sure, what do you get when you type "which print_usage" ? Ben -------------- next part -------------- A non-text attachment was scrubbed... Name: rick.m Type: application/octet-stream Size: 222 bytes Desc: not available URL: From syberraith at yahoo.com Fri Dec 2 14:44:09 2011 From: syberraith at yahoo.com (syberraith) Date: Fri, 2 Dec 2011 12:44:09 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> Message-ID: <1322858649285-4149261.post@n4.nabble.com> I can find only one brief example of how to use diff to estimate a derivative and that omits an explanation of how exactly diff computes it results. I think I just outright code a central difference algorithm along with a trapezoid integration algorithm. Iike it to run fast so I guess I use c or fortran. Now my main concern will be in determining an optimal or at least acceptable value for h. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4149261.html Sent from the Octave - General mailing list archive at Nabble.com. From muhali at shaw.ca Fri Dec 2 14:50:08 2011 From: muhali at shaw.ca (Muhali) Date: Fri, 2 Dec 2011 12:50:08 -0800 (PST) Subject: confusing urlwrite output In-Reply-To: References: <1322850062594-4148381.post@n4.nabble.com> <1322857150587-4149067.post@n4.nabble.com> Message-ID: <1322859008503-4149305.post@n4.nabble.com> Jordi Guti?rrez Hermoso-2 wrote > > You didn't actually write what the error was. I thought it was "error: > no error". Can you tell me what you did and what you saw? > Jordi, I did as described in my first post, and it is no error but confusing. I would assume that if you put a semicolon at the end of the line then you don't see any standard output, so I assume that is actually standard error. No? -- View this message in context: http://octave.1599824.n4.nabble.com/confusing-urlwrite-output-tp4148381p4149305.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at octave.org Fri Dec 2 14:54:41 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 2 Dec 2011 15:54:41 -0500 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1322858649285-4149261.post@n4.nabble.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> Message-ID: On 2 December 2011 15:44, syberraith wrote: > I can find only one brief example of how to use diff to estimate a derivative > and that omits an explanation of how exactly diff computes it results. Try this: t = linspace(0,2*pi,200); s = sin(t); c = diff(sin(t)) ./ diff(t); plot(t, s, "-r;;sin(t)", t(2:end), c, "-b;;cos(t)"); All that diff does is elementwise differences of consecutive entries in vectors. > I think I just outright code a central difference algorithm along > with a trapezoid integration algorithm. ?Iike it to run fast so I > guess I use c or fortran. You don't neec C or Fortran for something this simple. You can use the trapz function to integrate and central divides differences of the vector pair {t,f} representing the function f(t) you can do (f(3:end) - f(1:end-3)) ./ (diff(f)(1:end-1) + diff(f)(2:end)) You might also be interesting in using and inspecting the source of the deriv function in the optim package: http://octave.sourceforge.net/optim/function/deriv.html HTH, - Jordi G. H. From jordigh at octave.org Fri Dec 2 14:55:35 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 2 Dec 2011 15:55:35 -0500 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> Message-ID: 2011/12/2 Jordi Guti?rrez Hermoso : > On 2 December 2011 15:44, syberraith wrote: >> I can find only one brief example of how to use diff to estimate a derivative >> and that omits an explanation of how exactly diff computes it results. > > Try this: > > ? ?t = linspace(0,2*pi,200); > ? ?s = sin(t); > ? ?c = diff(sin(t)) ./ diff(t); > > ? ?plot(t, s, "-r;;sin(t)", t(2:end), c, "-b;;cos(t)"); Sorry, this last line should have been plot(t, s, ";sin(t);-r", t(2:end), c, ";cos(t);-b"); - Jordi G. H. From jordigh at octave.org Fri Dec 2 15:06:50 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 2 Dec 2011 16:06:50 -0500 Subject: confusing urlwrite output In-Reply-To: <1322859008503-4149305.post@n4.nabble.com> References: <1322850062594-4148381.post@n4.nabble.com> <1322857150587-4149067.post@n4.nabble.com> <1322859008503-4149305.post@n4.nabble.com> Message-ID: On 2 December 2011 15:50, Muhali wrote: > > Jordi Guti?rrez Hermoso-2 wrote >> >> You didn't actually write what the error was. I thought it was "error: >> no error". Can you tell me what you did and what you saw? >> > > Jordi, I did as described in my first post, and it is no error but > confusing. A blank line is the error you're seeing? Oh, I see now. Nabble isn't actually send the error to the mailing list. This looks like a Nabble bug. Sigh, okay, I see that now. Please open a bug report, and I'll try fixing this again, or perhaps you can figure out what the correct fix is instead of the patch I tried. - Jordi G. H. From akukhtinskiy at gmail.com Fri Dec 2 06:13:09 2011 From: akukhtinskiy at gmail.com (Artyom Kukhtinskiy) Date: Fri, 2 Dec 2011 18:13:09 +0600 Subject: trisurf is not working correctly Message-ID: I get a strange result, some triangles are black and some are missing; Pictures: https://docs.google.com/open?id=0B_bp56vJQBI4YzBmODIyNzMtNDIxNy00MDcyLTk0MWUtNmYxOTkwOGQ3NDkx https://docs.google.com/open?id=0B_bp56vJQBI4ZjVhZGY4NDAtMmY3Ny00MTFkLWFhNTQtZDE1NTBjZmQ3OWUy From jordigh at octave.org Fri Dec 2 16:02:12 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 2 Dec 2011 17:02:12 -0500 Subject: trisurf is not working correctly In-Reply-To: References: Message-ID: On 2 December 2011 07:13, Artyom Kukhtinskiy wrote: > I get a strange result, some triangles are black and some are missing; You've already reported this bug to the bug tracker. Please be patient. For the benefit of anyone who is interested in commenting, please move this discussion to the bug report: https://savannah.gnu.org/bugs/?34936 - Jordi G. H. From ratulloch at gmail.com Fri Dec 2 16:10:28 2011 From: ratulloch at gmail.com (Rick T) Date: Fri, 2 Dec 2011 12:10:28 -1000 Subject: textread error / question In-Reply-To: <19DE7C36-6268-4D50-89AC-E1447DB27817@mac.com> References: <19DE7C36-6268-4D50-89AC-E1447DB27817@mac.com> Message-ID: On Fri, Dec 2, 2011 at 10:36 AM, Ben Abbott wrote: > On Dec 2, 2011, at 2:35 PM, Rick T wrote: > > > Greetings All > > > > I'm trying to read in a text file with comma delimited data see text of > what's in data.txt below but I keep getting an error > > feval: function `print_usage' not found > > > > text1,eq1=a+b*c > > text2,eq2=b+c*d > > text3,eq3=c+a*a > > > > This the command I use > > [names,equation]=textread('data.txt', '%s%s', 'delimiter', ',') > > > > I have the io package installed and I'm using ubuntu 10.04 with octave > 3.2.4 > > > > Thanks > > With Octave 3.4.x, I tried ran the attached "rick.m" and obtained ... > > rick > names = > { > [1,1] = text1 > [2,1] = text2 > [3,1] = text3 > } > equation = > { > [1,1] = eq1=a+b*c > [2,1] = eq2=b+c*d > [3,1] = eq3=c+a*a > } > > Since you are seeing "feval: function `print_usage' not found", it appears > that there are two problems. > > First, textread() or something it calls is throwing an error via > print_usage(). I don't think textread.m was part of Octave's core functions > when Octave-3.2.4 was released. > > What do you get when you type "which textread" ? > >>> which textread `textread' is a function from the file /usr/lib/octave/packages/3.2/io-1.0.9/x8 6_64-pc-linux-gnu-api-v37/textread.oct > > Do you know where you got this function? Perhaps it is not compatible with > 3.2.4 ? > ubuntu software center standard software > > Secondly, it appears that print_usage() is not in your path. > > What do you get when you type "path" ? > > >>> path Octave's search path contains the following directories: . /usr/local/share/qtoctave/scripts_octave/ /usr/local/share/octave/site-m /usr/share/octave/packages/3.2/time-1.0.9 /usr/lib/octave/packages/3.2/signal-1.0.10/x86_64-pc-linux-gnu-api-v37 /usr/share/octave/packages/3.2/signal-1.0.10 /usr/lib/octave/packages/3.2/specfun-1.0.8/x86_64-pc-linux-gnu-api-v37 /usr/share/octave/packages/3.2/specfun-1.0.8 /usr/lib/octave/packages/3.2/optim-1.0.6/x86_64-pc-linux-gnu-api-v37 /usr/share/octave/packages/3.2/optim-1.0.6 /usr/lib/octave/packages/3.2/multicore-0.2.15/x86_64-pc-linux-gnu-api-v37 /usr/share/octave/packages/3.2/multicore-0.2.15 /usr/lib/octave/packages/3.2/miscellaneous-1.0.9/x86_64-pc-linux-gnu-api-v37 /usr/share/octave/packages/3.2/miscellaneous-1.0.9 /usr/lib/octave/packages/3.2/jaudio-0.2.0/x86_64-pc-linux-gnu-api-v37 /usr/share/octave/packages/3.2/jaudio-0.2.0 /usr/lib/octave/packages/3.2/io-1.0.9/x86_64-pc-linux-gnu-api-v37 /usr/share/octave/packages/3.2/io-1.0.9 /usr/lib/octave/packages/3.2/audio-1.1.4/x86_64-pc-linux-gnu-api-v37 /usr/share/octave/packages/3.2/audio-1.1.4 /usr/lib/octave/packages/3.2/aaudio-0.2.1/x86_64-pc-linux-gnu-api-v37 /usr/share/octave/packages/3.2/aaudio-0.2.1 /usr/lib/octave/3.2.4/oct/x86_64-pc-linux-gnu /usr/share/octave/3.2.4/m /usr/share/octave/3.2.4/m/miscellaneous /usr/share/octave/3.2.4/m/special-matrix /usr/share/octave/3.2.4/m/sparse /usr/share/octave/3.2.4/m/geometry /usr/share/octave/3.2.4/m/polynomial /usr/share/octave/3.2.4/m/audio /usr/share/octave/3.2.4/m/startup /usr/share/octave/3.2.4/m/image /usr/share/octave/3.2.4/m/pkg /usr/share/octave/3.2.4/m/testfun /usr/share/octave/3.2.4/m/optimization /usr/share/octave/3.2.4/m/strings /usr/share/octave/3.2.4/m/path /usr/share/octave/3.2.4/m/general /usr/share/octave/3.2.4/m/statistics /usr/share/octave/3.2.4/m/statistics/distributions /usr/share/octave/3.2.4/m/statistics/tests /usr/share/octave/3.2.4/m/statistics/models /usr/share/octave/3.2.4/m/statistics/base /usr/share/octave/3.2.4/m/help /usr/share/octave/3.2.4/m/deprecated /usr/share/octave/3.2.4/m/set /usr/share/octave/3.2.4/m/time /usr/share/octave/3.2.4/m/specfun /usr/share/octave/3.2.4/m/plot /usr/share/octave/3.2.4/m/elfun /usr/share/octave/3.2.4/m/signal /usr/share/octave/3.2.4/m/linear-algebra /usr/share/octave/3.2.4/m/io >>> > And just to be sure, what do you get when you type "which print_usage" ? > >>> which print_usage `print_usage' is a function from the file /usr/share/octave/3.2.4/m/help/print_ usage.m >>> > > Ben > > -- -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpabbott at mac.com Fri Dec 2 16:51:51 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 02 Dec 2011 17:51:51 -0500 Subject: textread error / question In-Reply-To: References: <19DE7C36-6268-4D50-89AC-E1447DB27817@mac.com> Message-ID: <1EC7A1AE-169D-4AFA-86B4-0A09BD9A9BB7@mac.com> On Dec 2, 2011, at 5:10 PM, Rick T wrote: > On Fri, Dec 2, 2011 at 10:36 AM, Ben Abbott wrote: > On Dec 2, 2011, at 2:35 PM, Rick T wrote: > > > Greetings All > > > > I'm trying to read in a text file with comma delimited data see text of what's in data.txt below but I keep getting an error > > feval: function `print_usage' not found > > > > text1,eq1=a+b*c > > text2,eq2=b+c*d > > text3,eq3=c+a*a > > > > This the command I use > > [names,equation]=textread('data.txt', '%s%s', 'delimiter', ',') > > > > I have the io package installed and I'm using ubuntu 10.04 with octave 3.2.4 > > > > Thanks > > With Octave 3.4.x, I tried ran the attached "rick.m" and obtained ... > > rick > names = > { > [1,1] = text1 > [2,1] = text2 > [3,1] = text3 > } > equation = > { > [1,1] = eq1=a+b*c > [2,1] = eq2=b+c*d > [3,1] = eq3=c+a*a > } > > Since you are seeing "feval: function `print_usage' not found", it appears that there are two problems. > > First, textread() or something it calls is throwing an error via print_usage(). I don't think textread.m was part of Octave's core functions when Octave-3.2.4 was released. > > What do you get when you type "which textread" ? > >>> which textread > `textread' is a function from the file /usr/lib/octave/packages/3.2/io-1.0.9/x8 > 6_64-pc-linux-gnu-api-v37/textread.oct Ok. the bug is with the octave forge version. Some time since 3.2.4 the textread.m was added to Octave's core. You might try to transplant the m-files from the developers sources. http://hg.savannah.gnu.org/hgweb/octave/file/09432c6f23e7/scripts/io > Do you know where you got this function? Perhaps it is not compatible with 3.2.4 ? > > ubuntu software center standard software > > > Secondly, it appears that print_usage() is not in your path. > > What do you get when you type "path" ? > > > >>> path > Octave's search path contains the following directories: > . > /usr/local/share/qtoctave/scripts_octave/ > /usr/local/share/octave/site-m > /usr/share/octave/packages/3.2/time-1.0.9 > /usr/lib/octave/packages/3.2/signal-1.0.10/x86_64-pc-linux-gnu-api-v37 > /usr/share/octave/packages/3.2/signal-1.0.10 > /usr/lib/octave/packages/3.2/specfun-1.0.8/x86_64-pc-linux-gnu-api-v37 > /usr/share/octave/packages/3.2/specfun-1.0.8 > /usr/lib/octave/packages/3.2/optim-1.0.6/x86_64-pc-linux-gnu-api-v37 > /usr/share/octave/packages/3.2/optim-1.0.6 > /usr/lib/octave/packages/3.2/multicore-0.2.15/x86_64-pc-linux-gnu-api-v37 > /usr/share/octave/packages/3.2/multicore-0.2.15 > /usr/lib/octave/packages/3.2/miscellaneous-1.0.9/x86_64-pc-linux-gnu-api-v37 > /usr/share/octave/packages/3.2/miscellaneous-1.0.9 > /usr/lib/octave/packages/3.2/jaudio-0.2.0/x86_64-pc-linux-gnu-api-v37 > /usr/share/octave/packages/3.2/jaudio-0.2.0 > /usr/lib/octave/packages/3.2/io-1.0.9/x86_64-pc-linux-gnu-api-v37 > /usr/share/octave/packages/3.2/io-1.0.9 > /usr/lib/octave/packages/3.2/audio-1.1.4/x86_64-pc-linux-gnu-api-v37 > /usr/share/octave/packages/3.2/audio-1.1.4 > /usr/lib/octave/packages/3.2/aaudio-0.2.1/x86_64-pc-linux-gnu-api-v37 > /usr/share/octave/packages/3.2/aaudio-0.2.1 > /usr/lib/octave/3.2.4/oct/x86_64-pc-linux-gnu > /usr/share/octave/3.2.4/m > /usr/share/octave/3.2.4/m/miscellaneous > /usr/share/octave/3.2.4/m/special-matrix > /usr/share/octave/3.2.4/m/sparse > /usr/share/octave/3.2.4/m/geometry > /usr/share/octave/3.2.4/m/polynomial > /usr/share/octave/3.2.4/m/audio > /usr/share/octave/3.2.4/m/startup > /usr/share/octave/3.2.4/m/image > /usr/share/octave/3.2.4/m/pkg > /usr/share/octave/3.2.4/m/testfun > /usr/share/octave/3.2.4/m/optimization > /usr/share/octave/3.2.4/m/strings > /usr/share/octave/3.2.4/m/path > /usr/share/octave/3.2.4/m/general > /usr/share/octave/3.2.4/m/statistics > /usr/share/octave/3.2.4/m/statistics/distributions > /usr/share/octave/3.2.4/m/statistics/tests > /usr/share/octave/3.2.4/m/statistics/models > /usr/share/octave/3.2.4/m/statistics/base > /usr/share/octave/3.2.4/m/help > /usr/share/octave/3.2.4/m/deprecated > /usr/share/octave/3.2.4/m/set > /usr/share/octave/3.2.4/m/time > /usr/share/octave/3.2.4/m/specfun > /usr/share/octave/3.2.4/m/plot > /usr/share/octave/3.2.4/m/elfun > /usr/share/octave/3.2.4/m/signal > /usr/share/octave/3.2.4/m/linear-algebra > /usr/share/octave/3.2.4/m/io > >>> > > > > And just to be sure, what do you get when you type "which print_usage" ? > > >>> which print_usage > `print_usage' is a function from the file /usr/share/octave/3.2.4/m/help/print_ > usage.m > >>> > Since Octave sees "print_usage" in the path, I'm surprised it gave you the error > feval: function `print_usage' not found If you decide you want to track this error down, please cut-n-paste the entire error. Ben From ratulloch at gmail.com Fri Dec 2 18:23:47 2011 From: ratulloch at gmail.com (Rick T) Date: Fri, 2 Dec 2011 14:23:47 -1000 Subject: textread error / question In-Reply-To: <1EC7A1AE-169D-4AFA-86B4-0A09BD9A9BB7@mac.com> References: <19DE7C36-6268-4D50-89AC-E1447DB27817@mac.com> <1EC7A1AE-169D-4AFA-86B4-0A09BD9A9BB7@mac.com> Message-ID: It looks like the old IO package available for download never included the textread.m option and the new textread.m is only compatible with octave 3.4 or greater. http://octave.sourceforge.net/io/index.html which sucks, any body have any work arounds to read text data from a file into arrays? On Fri, Dec 2, 2011 at 12:51 PM, Ben Abbott wrote: > On Dec 2, 2011, at 5:10 PM, Rick T wrote: > > > On Fri, Dec 2, 2011 at 10:36 AM, Ben Abbott wrote: > > On Dec 2, 2011, at 2:35 PM, Rick T wrote: > > > > > Greetings All > > > > > > I'm trying to read in a text file with comma delimited data see text > of what's in data.txt below but I keep getting an error > > > feval: function `print_usage' not found > > > > > > text1,eq1=a+b*c > > > text2,eq2=b+c*d > > > text3,eq3=c+a*a > > > > > > This the command I use > > > [names,equation]=textread('data.txt', '%s%s', 'delimiter', ',') > > > > > > I have the io package installed and I'm using ubuntu 10.04 with octave > 3.2.4 > > > > > > Thanks > > > > With Octave 3.4.x, I tried ran the attached "rick.m" and obtained ... > > > > rick > > names = > > { > > [1,1] = text1 > > [2,1] = text2 > > [3,1] = text3 > > } > > equation = > > { > > [1,1] = eq1=a+b*c > > [2,1] = eq2=b+c*d > > [3,1] = eq3=c+a*a > > } > > > > Since you are seeing "feval: function `print_usage' not found", it > appears that there are two problems. > > > > First, textread() or something it calls is throwing an error via > print_usage(). I don't think textread.m was part of Octave's core functions > when Octave-3.2.4 was released. > > > > What do you get when you type "which textread" ? > > >>> which textread > > `textread' is a function from the file > /usr/lib/octave/packages/3.2/io-1.0.9/x8 > > 6_64-pc-linux-gnu-api-v37/textread.oct > > Ok. the bug is with the octave forge version. Some time since 3.2.4 the > textread.m was added to Octave's core. You might try to transplant the > m-files from the developers sources. > > > http://hg.savannah.gnu.org/hgweb/octave/file/09432c6f23e7/scripts/io > > > Do you know where you got this function? Perhaps it is not compatible > with 3.2.4 ? > > > > ubuntu software center standard software > > > > > > Secondly, it appears that print_usage() is not in your path. > > > > What do you get when you type "path" ? > > > > > > >>> path > > Octave's search path contains the following directories: > > . > > /usr/local/share/qtoctave/scripts_octave/ > > /usr/local/share/octave/site-m > > /usr/share/octave/packages/3.2/time-1.0.9 > > /usr/lib/octave/packages/3.2/signal-1.0.10/x86_64-pc-linux-gnu-api-v37 > > /usr/share/octave/packages/3.2/signal-1.0.10 > > /usr/lib/octave/packages/3.2/specfun-1.0.8/x86_64-pc-linux-gnu-api-v37 > > /usr/share/octave/packages/3.2/specfun-1.0.8 > > /usr/lib/octave/packages/3.2/optim-1.0.6/x86_64-pc-linux-gnu-api-v37 > > /usr/share/octave/packages/3.2/optim-1.0.6 > > /usr/lib/octave/packages/3.2/multicore-0.2.15/x86_64-pc-linux-gnu-api-v37 > > /usr/share/octave/packages/3.2/multicore-0.2.15 > > > /usr/lib/octave/packages/3.2/miscellaneous-1.0.9/x86_64-pc-linux-gnu-api-v37 > > /usr/share/octave/packages/3.2/miscellaneous-1.0.9 > > /usr/lib/octave/packages/3.2/jaudio-0.2.0/x86_64-pc-linux-gnu-api-v37 > > /usr/share/octave/packages/3.2/jaudio-0.2.0 > > /usr/lib/octave/packages/3.2/io-1.0.9/x86_64-pc-linux-gnu-api-v37 > > /usr/share/octave/packages/3.2/io-1.0.9 > > /usr/lib/octave/packages/3.2/audio-1.1.4/x86_64-pc-linux-gnu-api-v37 > > /usr/share/octave/packages/3.2/audio-1.1.4 > > /usr/lib/octave/packages/3.2/aaudio-0.2.1/x86_64-pc-linux-gnu-api-v37 > > /usr/share/octave/packages/3.2/aaudio-0.2.1 > > /usr/lib/octave/3.2.4/oct/x86_64-pc-linux-gnu > > /usr/share/octave/3.2.4/m > > /usr/share/octave/3.2.4/m/miscellaneous > > /usr/share/octave/3.2.4/m/special-matrix > > /usr/share/octave/3.2.4/m/sparse > > /usr/share/octave/3.2.4/m/geometry > > /usr/share/octave/3.2.4/m/polynomial > > /usr/share/octave/3.2.4/m/audio > > /usr/share/octave/3.2.4/m/startup > > /usr/share/octave/3.2.4/m/image > > /usr/share/octave/3.2.4/m/pkg > > /usr/share/octave/3.2.4/m/testfun > > /usr/share/octave/3.2.4/m/optimization > > /usr/share/octave/3.2.4/m/strings > > /usr/share/octave/3.2.4/m/path > > /usr/share/octave/3.2.4/m/general > > /usr/share/octave/3.2.4/m/statistics > > /usr/share/octave/3.2.4/m/statistics/distributions > > /usr/share/octave/3.2.4/m/statistics/tests > > /usr/share/octave/3.2.4/m/statistics/models > > /usr/share/octave/3.2.4/m/statistics/base > > /usr/share/octave/3.2.4/m/help > > /usr/share/octave/3.2.4/m/deprecated > > /usr/share/octave/3.2.4/m/set > > /usr/share/octave/3.2.4/m/time > > /usr/share/octave/3.2.4/m/specfun > > /usr/share/octave/3.2.4/m/plot > > /usr/share/octave/3.2.4/m/elfun > > /usr/share/octave/3.2.4/m/signal > > /usr/share/octave/3.2.4/m/linear-algebra > > /usr/share/octave/3.2.4/m/io > > >>> > > > > > > > > And just to be sure, what do you get when you type "which print_usage" ? > > > > >>> which print_usage > > `print_usage' is a function from the file > /usr/share/octave/3.2.4/m/help/print_ > > usage.m > > >>> > > > > Since Octave sees "print_usage" in the path, I'm surprised it gave you the > error > > > feval: function `print_usage' not found > > If you decide you want to track this error down, please cut-n-paste the > entire error. > > Ben > > > > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordigh at octave.org Fri Dec 2 18:25:55 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 2 Dec 2011 19:25:55 -0500 Subject: textread error / question In-Reply-To: References: <19DE7C36-6268-4D50-89AC-E1447DB27817@mac.com> <1EC7A1AE-169D-4AFA-86B4-0A09BD9A9BB7@mac.com> Message-ID: On 2 December 2011 19:23, Rick T wrote: > It looks like the old IO package available for download never included the > textread.m option and the new textread.m is only compatible with octave 3.4 > or greater. http://octave.sourceforge.net/io/index.html which sucks, any > body have any work arounds to read text data from a file into arrays? Upgrade to Octave 3.4? There are binaries available for all popular OSes, as far as I know. - Jordi G. H. From ratulloch at gmail.com Fri Dec 2 18:54:36 2011 From: ratulloch at gmail.com (Rick T) Date: Fri, 2 Dec 2011 14:54:36 -1000 Subject: textread error / question In-Reply-To: References: <19DE7C36-6268-4D50-89AC-E1447DB27817@mac.com> <1EC7A1AE-169D-4AFA-86B4-0A09BD9A9BB7@mac.com> Message-ID: At the moment recompiling for 40+ machines isn't an option just looking for a work around without doing a new install. And there is no PPA for ubuntu 10.04 and octave. at least not that I know of. 2011/12/2 Jordi Guti?rrez Hermoso > On 2 December 2011 19:23, Rick T wrote: > > It looks like the old IO package available for download never included > the > > textread.m option and the new textread.m is only compatible with octave > 3.4 > > or greater. http://octave.sourceforge.net/io/index.html which sucks, any > > body have any work arounds to read text data from a file into arrays? > > Upgrade to Octave 3.4? There are binaries available for all popular > OSes, as far as I know. > > - Jordi G. H. > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmacchant at yahoo.co.jp Fri Dec 2 20:11:22 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Sat, 3 Dec 2011 11:11:22 +0900 (JST) Subject: FYI: FreeMat 4.1 includes Octavee Integration Message-ID: <939139.36390.qm@web100301.mail.kks.yahoo.co.jp> Hello I have heard that FreeMat 4.1 includes Octave Integration. http://freemat.sourceforge.net/#news I have not tried yet so that I do not know the Octave Integration in detail. Regards Tatsuro From muhali at shaw.ca Fri Dec 2 22:25:15 2011 From: muhali at shaw.ca (Muhali) Date: Fri, 2 Dec 2011 20:25:15 -0800 (PST) Subject: I think I "broke" mkoctfile for 3.4.1 Message-ID: <1322886315071-4152235.post@n4.nabble.com> This is in response to Jordi's post on the maintainer list here: http://octave.1599824.n4.nabble.com/I-think-I-broke-mkoctfile-for-3-4-1-tp3608378p3608378.html Is this the same reason why I can no longer install the octcdf package from forge? - By doing pkg install -forge -verbose octcdf and calling the netcdf function I get undefined symbol: nc_put_att_double In the last step of the installation (see attached), LIBS="..." mkoctfile ... the LIBS prefix does not seem to have any effect. If I append all the LIBS entries directly to the subsequent g++ command, all libraries are recognized and everything works. M. octave:6> pkg install -noauto -nodeps -forge -global -verbose octcdf mkdir (/tmp/oct-JtdStp) untar (/root/octcdf-1.1.2.tar.gz, /tmp/oct-JtdStp) [...] LIBS="-lm -L/usr/local/lib -lnc-dap -ldapclient -lcurl -lidn -llber -lldap -lrt -lgssapi_krb5 -lgcrypt -lrtmp -lgnutls -ldap -lpthread -lxml2 -lz -lm " /usr/local/bin/mkoctfile-3.5.0+ -DHAVE_OCTAVE_ -v -o netcdf.oct -I/usr/local/include/libnc-dap -DHAVE_OCTAVE_INT ov-netcdf.o ov-ncfile.o ov-ncvar.o ov-ncatt.o ov-ncdim.o g++ -shared -Wl,-Bsymbolic -o netcdf.oct ov-netcdf.o ov-ncfile.o ov-ncvar.o ov-ncatt.o ov-ncdim.o -L/usr/local/lib/octave/3.5.0+ -L/usr/local/lib -loctinterp -loctave -lcruft make: Leaving directory `/tmp/oct-JtdStp/octcdf/src' copyfile /tmp/oct-JtdStp/octcdf/src/netcdf.oct /tmp/oct-JtdStp/octcdf/inst/x86_64-unknown-linux-gnu-api-v45+ octave:7> -- View this message in context: http://octave.1599824.n4.nabble.com/Re-I-think-I-broke-mkoctfile-for-3-4-1-tp4152235p4152235.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at octave.org Fri Dec 2 22:35:39 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 2 Dec 2011 23:35:39 -0500 Subject: textread error / question In-Reply-To: References: <19DE7C36-6268-4D50-89AC-E1447DB27817@mac.com> <1EC7A1AE-169D-4AFA-86B4-0A09BD9A9BB7@mac.com> Message-ID: 2011/12/2 Rick T : > At the moment recompiling for 40+ machines isn't an option just looking for > a work around without doing a new install. Uhm, are all the machines completely different? If not, you can compile for just one and copy your compilation around. > And there is no PPA for ubuntu 10.04 and octave. at least not that I know > of. Juan Pablo Carbajal seems to have made one. Look here: http://ubuntuone.com/6iTsUm8xqX7rXDf3S6yfeM HTH, - Jordi G. H. > > > 2011/12/2 Jordi Guti?rrez Hermoso >> >> On 2 December 2011 19:23, Rick T wrote: >> > It looks like the old IO package available for download never included >> > the >> > textread.m option and the new textread.m is only compatible with octave >> > 3.4 >> > or greater. http://octave.sourceforge.net/io/index.html which sucks, any >> > body have any work arounds to read text data from a file into arrays? >> >> Upgrade to Octave 3.4? There are binaries available for all popular >> OSes, as far as I know. >> >> - Jordi G. H. > > > > > -- > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > From jordigh at octave.org Fri Dec 2 22:32:11 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 2 Dec 2011 23:32:11 -0500 Subject: I think I "broke" mkoctfile for 3.4.1 In-Reply-To: <1322886315071-4152235.post@n4.nabble.com> References: <1322886315071-4152235.post@n4.nabble.com> Message-ID: On 2 December 2011 23:25, Muhali wrote: > This is in response to Jordi's post on the maintainer list here: > > http://octave.1599824.n4.nabble.com/I-think-I-broke-mkoctfile-for-3-4-1-tp3608378p3608378.html > > Is this the same reason why I can no longer install the octcdf package from > forge? - By doing > > pkg install -forge -verbose octcdf > > and calling the netcdf function I get > > undefined symbol: nc_put_att_double No, this is unrelated. The brokage I introduced there was exactly reversed soon after. It was only released on 3.4.1 or 3.4.2 (I forget which). - Jordi G. H. From carlo.defalco at gmail.com Sat Dec 3 01:00:20 2011 From: carlo.defalco at gmail.com (c.) Date: Sat, 3 Dec 2011 08:00:20 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1322858649285-4149261.post@n4.nabble.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> Message-ID: <1F68223B-7854-48B6-92E7-CF4F9A8722DD@gmail.com> On 2 Dec 2011, at 21:44, syberraith wrote: > trapezoid integration algorithm. that's already implemented in the "trapz" function and, anyways, it is just as simple as this: suppose you have a list of values y of a function f sampled at points x intf = sum (.5*(y(1:end-1)+y(2:end))./dx) this is completely vectorized, I doubt you'll be able to easily make it any faster in C or fortran, if you do I'd be interested in seeing the comparison. c. From carlo.defalco at gmail.com Sat Dec 3 01:02:59 2011 From: carlo.defalco at gmail.com (c.) Date: Sat, 3 Dec 2011 08:02:59 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> Message-ID: <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> On 2 Dec 2011, at 21:54, Jordi Guti?rrez Hermoso wrote: > (f(3:end) - f(1:end-3)) > ./ > (diff(f)(1:end-1) + diff(f)(2:end)) I think think should be (f(3:end) - f(1:end-2)) ./ (diff(f)(1:end-1) + diff(f)(2:end)) right? c. From carlo.defalco at gmail.com Sat Dec 3 01:55:53 2011 From: carlo.defalco at gmail.com (c.) Date: Sat, 3 Dec 2011 08:55:53 +0100 Subject: FYI: FreeMat 4.1 includes Octavee Integration In-Reply-To: <939139.36390.qm@web100301.mail.kks.yahoo.co.jp> References: <939139.36390.qm@web100301.mail.kks.yahoo.co.jp> Message-ID: <5A031053-E67E-415D-80BC-5F2D4789EFEA@gmail.com> On 3 Dec 2011, at 03:11, Tatsuro MATSUOKA wrote: > Hello > > I have heard that FreeMat 4.1 includes Octave Integration. > > http://freemat.sourceforge.net/#news > > I have not tried yet so that I do not know the Octave Integration in detail. > > Regards > > Tatsuro Intersting ... It does not yet seem to work properly though: freemat: --> a=[1:10](1:2:end)(2:3) Error: Unexpected input Octave: >> a=[1:10](1:2:end)(2:3) a = 3 5 BTW freemat now includes parts of Octave into its binary distribution, e.g. http://freemat.svn.sourceforge.net/viewvc/freemat/trunk/FreeMat/toolbox/specfun/%2Boctave/ but it appears freemat is GPLv2 [1] while Octave is GPLv3 are these compatible? the FAQ at FSF says: "When we say that GPLv2 and GPLv3 are incompatible, it means there is no legal way to combine code under GPLv2 with code under GPLv3" c. [1] I'm not sure whether it is "GPLv2 only" or "GPLv2 or later": - the copyright statements in the code are simply like this % Copyright (c) 2002-2007 Samit Basu 2 % Licensed under the GPL - the binary distribution does not include any COPYING file - the file COPYING in the source tree contains version 2 of the GPL From syberraith at yahoo.com Sat Dec 3 02:09:01 2011 From: syberraith at yahoo.com (syberraith) Date: Sat, 3 Dec 2011 00:09:01 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> Message-ID: <1322899741402-4152632.post@n4.nabble.com> I worked out a version of the central difference algorithm in c, although I'm having a rather comical result with it. When ever I increase the number of data points by a factor of ten, the integrated results decreased by a factor of ten. I could post the code if you like. I was thinking I had done something slick, although the data points thing is just buggering me. I had looked at using diff, although I had trouble working out how to change it from backward looking to forward looking. The example I found was confusing. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4152632.html Sent from the Octave - General mailing list archive at Nabble.com. From syberraith at yahoo.com Sat Dec 3 04:51:18 2011 From: syberraith at yahoo.com (syberraith) Date: Sat, 3 Dec 2011 02:51:18 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1322899741402-4152632.post@n4.nabble.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> Message-ID: <1322909478031-4152936.post@n4.nabble.com> Those replies helped. Here is my version of the the central difference algorithm along with a sum statement for integrating. n = 100000; # Number of data points p = 0.005; # Time period a = 5; # Just a variable parameter h = p ./ n; # dt g = h ./ 2; # dt/2 for my version of central diff t = linspace(0, p , n); f = ( (a .+ sin(1256 .* (t .+ g))) .- (a .+ sin(1256 .* (t .- g))) ) ./ h; s = sum(h .* (f(1:end-1) .+ f(2:end)) ./ 2) Nifty, and quick too. Although with a million data points it gave octave a bit of a pause, a bit more then a second on my machine. Accuracy seemed sufficient at 100,000 data points. Although I would figure this should sum to zero. It seems to be providing only three significant digits of of accuracy. That would be the minimum I could use. I would prefer at least 4 and 6 would be comforting. I'll have to study up on some err management. The functions for my model are significantly more involved, and there are three of them, each of which needs to be differentiated then integrated, along with some additional calculations which are just basic stuff. My guess is that octave would be noticably slow then a compiled program. The c program does all three functions even with 1 million data points each as fast as I can release the return key. :) Now if I can just get it to give a proper answer... Maybe I'll end up using octave anyway, now I know how to do that. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4152936.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Sat Dec 3 06:02:38 2011 From: carlo.defalco at gmail.com (c.) Date: Sat, 3 Dec 2011 13:02:38 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1322909478031-4152936.post@n4.nabble.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> Message-ID: On 3 Dec 2011, at 11:51, syberraith wrote: > Although I would figure this should sum to zero. It seems to be providing > only three significant digits of of accuracy. That would be the minimum I > could use. I would prefer at least 4 and 6 would be comforting. I'll have > to study up on some err management. Why exactly do you expect s to be 0? you are not integrating over an exact period as 1256 is not exactly equal to (2 * pi / p). If I integrate over a period I get the expected order of convergence n = 100000; # Number of data points p = 0.005; # Time period a = 5; # Just a variable parameter h = p / (n-1); # dt g = h / 2; # dt/2 for my version of central diff t = linspace (0, p , n); f = diff (a + sin ((2 * pi / p) * t)) / h; s = sum (g * (f(1:end-1) + f(2:end))) s = -6.2832e-05 n = 200000; # Number of data points p = 0.005; # Time period a = 5; # Just a variable parameter h = p / (n-1); # dt g = h / 2; # dt/2 for my version of central diff t = linspace (0, p , n); tmp = a + sin ((2 * pi / p) * t); f = diff (tmp) / h; s = sum (g * (f(1:end-1) + f(2:end))) s = -3.1416e-05 Notice that changing the finite difference scheme I have also reduced the number of function evaluations by half. c. From carlo.defalco at gmail.com Sat Dec 3 05:41:35 2011 From: carlo.defalco at gmail.com (c.) Date: Sat, 3 Dec 2011 12:41:35 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1322909478031-4152936.post@n4.nabble.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> Message-ID: <9D0DC1D1-BA67-44F8-9B91-322E0FA6E01C@gmail.com> On 3 Dec 2011, at 11:51, syberraith wrote: > Those replies helped. > > Here is my version of the the central difference algorithm along with a sum > statement for integrating. > > n = 100000; # Number of data points > p = 0.005; # Time period > a = 5; # Just a variable parameter > h = p ./ n; # dt > g = h ./ 2; # dt/2 for my version of central diff > > t = linspace(0, p , n); > > f = ( (a .+ sin(1256 .* (t .+ g))) .- (a .+ sin(1256 .* (t .- g))) ) ./ h; > > s = sum(h .* (f(1:end-1) .+ f(2:end)) ./ 2) I think h should be defined as p/(n-1) rather than p/n as it's the distance between two samples: t(2) - t(1) ans = 5.0001e-08 >> p/(n-1) ans = 5.0001e-08 >> p/(n) ans = 5.0000e-08 also, you don't need to use '.+' and '.-' they are just synonyms for '+' and '-' c. From carlo.defalco at gmail.com Sat Dec 3 06:47:47 2011 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Sat, 3 Dec 2011 13:47:47 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <4311B9A3-1AD0-4BFA-AD6C-0281707DEAEE@gmail.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <4311B9A3-1AD0-4BFA-AD6C-0281707DEAEE@gmail.com> Message-ID: <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> On 3 Dec 2011, at 13:22, c. wrote: > > On 3 Dec 2011, at 11:51, syberraith wrote: > >> My guess is that octave would be noticably slow then a compiled program. >> The c program does all three functions even with 1 million data points each >> as fast as I can release the return key. :) > > The time taken by Octave is also barely noticeable: > >>> tic, >>> n = 1000000; # One million samples >>> p = 0.005; # Time period >>> a = 5; # Just a variable parameter >>> h = p / (n-1); # dt >>> g = h / 2; # dt/2 for my version of central diff >>> t = linspace (0, p , n); >>> tmp = a + sin ((2 * pi / p) * t); >>> f = diff (tmp) / h; >>> s = g * sum (f(1:end-1) + f(2:end)) > s = -6.2832e-06 >>> toc > Elapsed time is 0.1559 seconds. > > c. and using the centered scheme as suggested by Jordi greatly improves the accuracy whithout impact on the efficiency >> tic, >> n = 1000000; # One million samples >> p = 0.005; # Time period >> a = 5; # Just a variable parameter >> h = p / (n-1); # dt >> t = linspace (0, p , n); >> tmp = a + sin ((2 * pi / p) * t); >> f = [(tmp(2)-tmp(1))/h, (tmp(3:end)-tmp(1:end-2))/(2*h), (tmp(end)-tmp(end-1))/h]; >> s = (h/2) * sum (f(1:end-1) + f(2:end)) s = -2.8232e-14 >> toc Elapsed time is 0.1762 seconds. >> BTW why do you first compute the derivative of a + sin ((2 * pi / p) * t) and then integrate it back? you could get the same result simply as s = tmp(end) - tmp(1) ... c. From syberraith at yahoo.com Sat Dec 3 06:58:43 2011 From: syberraith at yahoo.com (syberraith) Date: Sat, 3 Dec 2011 04:58:43 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> Message-ID: <1322917123974-4153155.post@n4.nabble.com> You're right about the h = p ./ ( n - 1). It's been a long time since I did any coding. :) And about the 1256 and 0.005. This is what I was actually aiming for, a rotational time period of 0.005 sec, 200 cps. *** n = 100000; # Number of data points p = 0.005; # Time period h = p ./ (n - 1); # dt g = h ./ 2; # dt/2 for my version of central diff t = linspace(0, p , n); f = ( sin(400 .* pi .* (t + g)) .- sin(400 .* pi .* (t - g)) ) ./ h; s = sum(h .* (f(1:end-1) + f(2:end)) ./ 2) *** s = -1.9872e-11 That's much more satisfying! I was unsure were the dot operators were needed and where non-dot operators could be used. So just for * and /? Now I'll have to figure out what you did on the evaluations. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4153155.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Sat Dec 3 07:28:29 2011 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Sat, 3 Dec 2011 14:28:29 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <4311B9A3-1AD0-4BFA-AD6C-0281707DEAEE@gmail.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <4311B9A3-1AD0-4BFA-AD6C-0281707DEAEE@gmail.com> Message-ID: <9A9EEDB0-B682-4774-B3D1-730563FC4AE9@gmail.com> On 3 Dec 2011, at 13:22, c. wrote: >>> >>> tic, >>> n = 1000000; # One million samples >>> p = 0.005; # Time period >>> a = 5; # Just a variable parameter >>> h = p / (n-1); # dt >>> g = h / 2; # dt/2 for my version of central diff >>> t = linspace (0, p , n); >>> tmp = a + sin ((2 * pi / p) * t); >>> f = diff (tmp) / h; >>> s = g * sum (f(1:end-1) + f(2:end)) > s = -6.2832e-06 >>> toc > Elapsed time is 0.1559 seconds. oops! this should have actually been: >> tic, >> n = 1000000; # One million samples >> p = 0.005; # Time period >> a = 5; # Just a variable parameter >> h = p / (n-1); # dt >> t = linspace (0, p , n); >> tmp = a + sin ((2 * pi / p) * t); ## one-side finite differences >> f = diff (tmp) / h; ## midpoint rule >> s = h * sum (f) s = 4.4830e-14 >> toc Elapsed time is 0.1509 seconds. >> the previous code was actually computing the integral from h/2 to p - h/2 c. From syberraith at yahoo.com Sat Dec 3 07:44:53 2011 From: syberraith at yahoo.com (syberraith) Date: Sat, 3 Dec 2011 05:44:53 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <9A9EEDB0-B682-4774-B3D1-730563FC4AE9@gmail.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <9A9EEDB0-B682-4774-B3D1-730563FC4AE9@gmail.com> Message-ID: <1322919893773-4153312.post@n4.nabble.com> Well, if this accomplishes my goal, all the better. I did have it in the back of my mind the that I was taking one step forward, then one step back. It's just how I worked out the process. *** tic n = 1000000; # Number of data points p = 0.005; # Time period a = 0.25; # Variable parameter; t = linspace(0, p , n); tmp = a + sin(t .* 2 .* pi ./ p); s = tmp(end) .- tmp(1) toc *** s = -2.4980e-16 ans = 0.44271 I'll have to see how that works out for my project functions. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4153312.html Sent from the Octave - General mailing list archive at Nabble.com. From syberraith at yahoo.com Sat Dec 3 07:50:50 2011 From: syberraith at yahoo.com (syberraith) Date: Sat, 3 Dec 2011 05:50:50 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1322919893773-4153312.post@n4.nabble.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <9A9EEDB0-B682-4774-B3D1-730563FC4AE9@gmail.com> <1322919893773-4153312.post@n4.nabble.com> Message-ID: <1322920250909-4153330.post@n4.nabble.com> Also, I did come to the conclusion because the way the math worked out. The failure of symbolic calculus to be able to work out an answer for these functions, that the phenomenon that I am modeling is momentum based. So, I had concluded that there was an absence of any real need to derive and integrate acceleration curves for the thing. I just missed how to do it all with the velocity equation. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4153330.html Sent from the Octave - General mailing list archive at Nabble.com. From syberraith at yahoo.com Sat Dec 3 08:02:36 2011 From: syberraith at yahoo.com (syberraith) Date: Sat, 3 Dec 2011 06:02:36 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1322920250909-4153330.post@n4.nabble.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <9A9EEDB0-B682-4774-B3D1-730563FC4AE9@gmail.com> <1322919893773-4153312.post@n4.nabble.com> <1322920250909-4153330.post@n4.nabble.com> Message-ID: <1322920956335-4153359.post@n4.nabble.com> I complete missed the fact that I already had the indefinite integral. Well, I learned something, and made my life easier. If everything would just resolve that well... -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4153359.html Sent from the Octave - General mailing list archive at Nabble.com. From bdsatish at gmail.com Sat Dec 3 14:16:04 2011 From: bdsatish at gmail.com (bd satish) Date: Sat, 3 Dec 2011 22:16:04 +0200 Subject: Error compiling Octave 3.4.3 Message-ID: Hi, Octave 3.4.3 (on Debian x86_64) fails to compile because of missing fftw3.h. make[3]: Entering directory `/home/debian/foss/octave-3.4.3/src' ./DLD-FUNCTIONS/config-module.sh .. ../src/DLD-FUNCTIONS/module.mk is unchanged libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread -g -O2 -MT DLD-FUNCTIONS/liboctinterp_la-fftw.lo -MD -MP -MF DLD-FUNCTIONS/.deps/liboctinterp_la-fftw.Tpo -c DLD-FUNCTIONS/fftw.cc -fPIC -DPIC -o DLD-FUNCTIONS/liboctinterp_la-fftw.o In file included from DLD-FUNCTIONS/fftw.cc:29:0: ../liboctave/oct-fftw.h:29:19: fatal error: fftw3.h: No such file or directory compilation terminated. make[3]: *** [DLD-FUNCTIONS/liboctinterp_la-fftw.lo] Error 1 make[3]: Leaving directory `/home/debian/foss/octave-3.4.3/src' The problem is that the "-I/path/to/fftw3" flag is not added to the above compilation statement (as you can see) even though I specified explicitly during 'configure' and indeed 'configure' succeeded finding it: ./configure --prefix=$HOME/foss/installed/octave --with-pic --with-fftw3-includedir=/home/debian/foss/installed/fftw/include --with-fftw3-libdir=/home/debian/foss/installed/fftw/lib --disable-shared --disable-dl --enable-static --with-blas="-L/home/debian/foss/installed/lapack -lblas" --with-lapack="-L/home/debian/foss/installed/lapack -llapack" I verified that the path mentioned in "--with-fftw3-includedir" is indeed valid and fftw3.h exists in that directory but looks like this is not added to CXXFLAGS ( or CPPFLAGS) and hence compilation fails. -- Satish.BD From syberraith at yahoo.com Sat Dec 3 15:14:57 2011 From: syberraith at yahoo.com (syberraith) Date: Sat, 3 Dec 2011 13:14:57 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> Message-ID: <1322946897881-4154879.post@n4.nabble.com> Actually, I'm unsure if I could apply those simplifacations to the actual functions I am using. It works well enough for a function simple as sin(a * t), however my function include a dynamic correction factor as well. Perhaps you like to look over the paper I'm writing. for publication rather than homework, that has the full explanation of what my function are trying to express mathematically? I'd be glad to give you a credit. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4154879.html Sent from the Octave - General mailing list archive at Nabble.com. From syberraith at yahoo.com Sat Dec 3 19:58:07 2011 From: syberraith at yahoo.com (syberraith) Date: Sat, 3 Dec 2011 17:58:07 -0800 (PST) Subject: Nonconforming Err Message-ID: <1322963887588-4155804.post@n4.nabble.com> Why is is this failing to work? n = 100000; G_rpm = 12000; X_rpm = 300; Gr = 0.025; Xr = 0.15; Gw = 2 .* pi .* G_rpm ./ 60; Xw = 2 .* pi .* X_rpm ./ 60; p = 60 ./ G_rpm; h = p ./ ( n - 1 ); g = h ./ 2; function y = raw_vel( x ) global Gw; y = sin( Gw .* x ); endfunction t = linspace(0,p,n); f = raw_vel( t ); s = sum(f(1:end) .* h) -- View this message in context: http://octave.1599824.n4.nabble.com/Nonconforming-Err-tp4155804p4155804.html Sent from the Octave - General mailing list archive at Nabble.com. From bpabbott at mac.com Sat Dec 3 20:05:28 2011 From: bpabbott at mac.com (Ben Abbott) Date: Sat, 03 Dec 2011 21:05:28 -0500 Subject: Nonconforming Err In-Reply-To: <1322963887588-4155804.post@n4.nabble.com> References: <1322963887588-4155804.post@n4.nabble.com> Message-ID: On Dec 3, 2011, at 8:58 PM, syberraith wrote: > Why is is this failing to work? > > n = 100000; > G_rpm = 12000; > X_rpm = 300; > Gr = 0.025; > Xr = 0.15; > Gw = 2 .* pi .* G_rpm ./ 60; > Xw = 2 .* pi .* X_rpm ./ 60; > p = 60 ./ G_rpm; > h = p ./ ( n - 1 ); > g = h ./ 2; > > function y = raw_vel( x ) > global Gw; > y = sin( Gw .* x ); > endfunction > > t = linspace(0,p,n); > f = raw_vel( t ); > s = sum(f(1:end) .* h) There may be other problems (I haven't checked), but you'll make Gw global from the command line. So you'll need to replace .... > Gw = 2 .* pi .* G_rpm ./ 60; ... with ... > global Gw = 2 .* pi .* G_rpm ./ 60; Ben From syberraith at yahoo.com Sat Dec 3 20:20:41 2011 From: syberraith at yahoo.com (syberraith) Date: Sat, 3 Dec 2011 18:20:41 -0800 (PST) Subject: Nonconforming Err In-Reply-To: References: <1322963887588-4155804.post@n4.nabble.com> Message-ID: <1322965241659-4155883.post@n4.nabble.com> What I posted is in a script. I tried adding global to the initial Gw assignment statement. That failed to help anything. I thought the global key word would just stop a function from making a local variable named Gw and ignoring the one declared outside the function block. -- View this message in context: http://octave.1599824.n4.nabble.com/Nonconforming-Err-tp4155804p4155883.html Sent from the Octave - General mailing list archive at Nabble.com. From bpabbott at mac.com Sat Dec 3 20:36:31 2011 From: bpabbott at mac.com (Ben Abbott) Date: Sat, 03 Dec 2011 21:36:31 -0500 Subject: Nonconforming Err In-Reply-To: <1322965241659-4155883.post@n4.nabble.com> References: <1322963887588-4155804.post@n4.nabble.com> <1322965241659-4155883.post@n4.nabble.com> Message-ID: On Dec 3, 2011, at 9:20 PM, syberraith wrote: > What I posted is in a script. I tried adding global to the initial Gw > assignment statement. That failed to help anything. > > I thought the global key word would just stop a function from making a local > variable named Gw and ignoring the one declared outside the function block. When I run the attached script (tmp.m), I get ... s = 3.4592e-19 Ben -------------- next part -------------- A non-text attachment was scrubbed... Name: tmp.m Type: application/octet-stream Size: 313 bytes Desc: not available URL: From syberraith at yahoo.com Sat Dec 3 20:46:55 2011 From: syberraith at yahoo.com (syberraith) Date: Sat, 3 Dec 2011 18:46:55 -0800 (PST) Subject: Nonconforming Err In-Reply-To: References: <1322963887588-4155804.post@n4.nabble.com> <1322965241659-4155883.post@n4.nabble.com> Message-ID: <1322966815815-4155926.post@n4.nabble.com> Oh thank God! I was beginning to rip my hair out over this. I always stess out excessively when I run into a bizarre little stumper like that. What is that, a global declaration before an assignment statement at the highest level of scope? -- View this message in context: http://octave.1599824.n4.nabble.com/Nonconforming-Err-tp4155804p4155926.html Sent from the Octave - General mailing list archive at Nabble.com. From syberraith at yahoo.com Sat Dec 3 20:53:49 2011 From: syberraith at yahoo.com (syberraith) Date: Sat, 3 Dec 2011 18:53:49 -0800 (PST) Subject: Nonconforming Err In-Reply-To: <1322966815815-4155926.post@n4.nabble.com> References: <1322963887588-4155804.post@n4.nabble.com> <1322965241659-4155883.post@n4.nabble.com> <1322966815815-4155926.post@n4.nabble.com> Message-ID: <1322967229645-4155940.post@n4.nabble.com> Say, I know this is an octave forum, although I have another problem going on with some c code. Both the octave script and the c code I am working on do the same thing, numerical differentiation and integration. The c code has the comical problem that when I increase the data points by a factor of 10, the over all result decrease by a factor of 10, and vice-versa. I'll attach it, in case you want to have a look. http://octave.1599824.n4.nabble.com/file/n4155940/gyro.c gyro.c -- View this message in context: http://octave.1599824.n4.nabble.com/Nonconforming-Err-tp4155804p4155940.html Sent from the Octave - General mailing list archive at Nabble.com. From kasozi5 at yahoo.com Sat Dec 3 21:08:32 2011 From: kasozi5 at yahoo.com (Kasozi Joseph) Date: Sat, 3 Dec 2011 19:08:32 -0800 (PST) Subject: Octave background Message-ID: <1322968112.93802.YahooMailNeo@web162206.mail.bf1.yahoo.com> Hi Well i happen to be working on building an Octave High Performance Computing? Cluster. my major tools are octave and mpi, i first learnt using the generic mpi by writing, compiling and running mpi scripts at my terminal prompt of my debian linux operating system. it was okay. but now i need to understand a bit of background on using Octave before i can use it to write my own MPI Scripts. However am stuck on how to begin tackling this problem, may u pliz? recommend any imformation,reference, whatsoever? that could be of guidance to solve this problem of mine. thank you for your time. Regards Taza -------------- next part -------------- An HTML attachment was scrubbed... URL: From puranjoy at yahoo.com Sun Dec 4 01:36:30 2011 From: puranjoy at yahoo.com (Puranjoy Bhattacharya) Date: Sat, 3 Dec 2011 23:36:30 -0800 (PST) Subject: One-off error in piping data to Gnuplot: bug link is a dud In-Reply-To: <4D30678E-4AFB-4A12-A209-352F741E3736@mac.com> References: <1322307592.65060.YahooMailNeo@web161405.mail.bf1.yahoo.com> <7B6EB30F-714A-4F50-8E67-8AEC9370250F@mac.com> <1322382426.44392.YahooMailNeo@web161403.mail.bf1.yahoo.com> <1322588401.8652.YahooMailNeo@web161402.mail.bf1.yahoo.com> <4D30678E-4AFB-4A12-A209-352F741E3736@mac.com> Message-ID: <1322984190.75006.YahooMailNeo@web161404.mail.bf1.yahoo.com> Indeed, uninstalling oct2mat using the command >> pkg uninstall oct2mat solves the problem. Thanks to Jordi. ________________________________ From: Ben Abbott To: Puranjoy Bhattacharya Cc: help-octave Octave Sent: Wednesday, November 30, 2011 3:33 AM Subject: Re: One-off error in piping data to Gnuplot: bug link is a dud On Nov 29, 2011, at 12:40 PM, Puranjoy Bhattacharya wrote: > From: Ben Abbott > To: Puranjoy Bhattacharya > Cc: help-octave Octave > Sent: Tuesday, November 29, 2011 1:24 AM > Subject: Re: One-off error in piping data to Gnuplot: bug link is a dud > >> On Nov 27, 2011, at 11:45 AM, Ben Abbott wrote: >> >> > On Nov 27, 2011, at 3:27 AM, Puranjoy Bhattacharya wrote: >> > >> >> From: Ben Abbott >> >> To: Puranjoy Bhattacharya >> >> Cc: "help at octave.org" >> >> Sent: Sunday, November 27, 2011 4:51 AM >> >> Subject: Re: One-off error in piping data to Gnuplot: bug link is a dud >> >> >> >>> On Nov 26, 2011, at 6:39 AM, Puranjoy Bhattacharya wrote: >> >>> >> >>>> I have been facing the problem with a Windows7 installation of Octave. However, the bug report link that is quoted everywhere (quoted below) is dead. Please send me the bugfix. I have faced this problem once before, and remember having used a fix in form of building or installing some package from Octave command line. >> >>>> >> >>>> "When plotting Octave occasionally gives me errors like `gnuplot> 9 0.735604 line 26317: invalid command'. >> >>>> There is a known bug in gnuplot 4.2 that can cause an off by one error while piping data to gnuplot. The relevant gnuplot bug report can be found at http://sourceforge.net/tracker/index.php?func=detail&aid=1716556&group_id=2055&atid=102055." >> >>> >> >>> The bug report you are referring to is with gnuplot. >> >>> >> >>> The mail list you've sent your inquiry to is for octave. >> >>> >> >>> I recommend you update you gnuplot to a more recent version. >> >>> >> >>> I'm not a Windows user, so I can't help with that, but for someone to help you, you'll need to tell us where you got your copy of Octave from. >> >>> >> >>> Ben >> >> >> >> Thanks for the prompt reply. The problem concerns piping data to GnuPlot from Octave on Windows7. This GnuPlot in question is bundled with the Windows installer of Octave downloaded from octave.sourceforge.net. There's no other GnuPlot installed on the system. I guess this refers to an issue that's probably been solved for Linux, but persists on Windows. The quoted comment is from the Octave FAQ. >> >> >> >> The problem that I'm facing is that when I use plot or imagesc from Octave, I end up getting a one-off error. E.g. first plot command produces no graph, second plot command produces the first graph, third produces the second, and so on. >> >> >> >> With regards, >> >> Puranjoy >> > >> > Please "reply-all". That way those more knowledgeable can comment as well. In addition, by replying at the bottom of the email it is easier for those who arrive late to follow along. >> > >> > It is possible the problem you are seeing still exists for the developers sources. So I'd like to help fix this. If the problem has already be solved in the developers sources, there is a reasonable chance you'll be able to apply the same fix to your version. >> > >> > Unfortunately, I don't have access to a Win7 machine. Until that changes, I won't be much help in debugging this. >> > >> > Ben >> >> Puranjoy, >> >> I've installed Win7 via VirtualBox on MacOSX and then installed Octave-3.2.4 from the Octave-Forge link. >> >> I tried "demo legend". Each of the plots displayed correctly for me. >> >> I'm unable to duplicate the problem you've encountered. If "demo legend" works correctly for you, can you give me an example of a simple script that does not? >> >> Ben > > "demo legend" works for me too. However, right after the demo, if I try something like > >> plot(1:100) > the problem starts. There's no output. Then I try > >> plot(1:200) > and I get the plot of 1:100, and so on. I still don't see the problem. Try removing oct2mat as Jordi suggested and let us know if that fixes the problem for you. Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlo.defalco at gmail.com Sun Dec 4 03:22:45 2011 From: carlo.defalco at gmail.com (c.) Date: Sun, 4 Dec 2011 10:22:45 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1322946897881-4154879.post@n4.nabble.com> References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> Message-ID: On 3 Dec 2011, at 22:14, syberraith wrote: > Actually, I'm unsure if I could apply those simplifacations to the actual > functions I am using. It works well enough for a function simple as sin(a * > t), however my function include a dynamic correction factor as well. > > Perhaps you like to look over the paper I'm writing. for publication rather > than homework, that has the full explanation of what my function are trying > to express mathematically? > > I'd be glad to give you a credit. Although it might be more complicated to implement in case of a different function the algorithm should work identically. Find below a generaliziotion of your procedure. c. ##---------------------------------------------------------------- ## algorithm parameters n = 1000000; ## function parameters p = 0.005; a = 5; ## if you need to apply the same procedure ## to different functions you'll want to ## make it into a function function [f, s, s2] = process (fun, t) h = t(2) - t(1); f = diff (fun (t)) / h; ## the two computations below ## should give the same result s = h * sum (f); s2 = fun (t (end)) - fun (t (1)); endfunction ## define here the function(s) you want to process fun = @(t) a + sin ((2 * pi / p) * t); ## if the function is more complicated you may want to ## use a full function definition instead function res = funtmp (t, a, p) res = a + tanh ((2 * pi / p) * t); endfunction fun1 = @(t) funtmp (t, a, p); ## time grid t = linspace (0, p , n); ## process the first function [f, s, sf] = process (fun, t); # consisency error err = s - sf ## process the second function [f1, s1, sf1] = process (fun1, t); # consisency error err1 = s1 - sf1 From carlo.defalco at gmail.com Sun Dec 4 04:05:16 2011 From: carlo.defalco at gmail.com (Carlo de Falco) Date: Sun, 4 Dec 2011 11:05:16 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: References: <1322811292594-4145498.post@n4.nabble.com> <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> Message-ID: <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> On 4 Dec 2011, at 10:22, c. wrote: > > On 3 Dec 2011, at 22:14, syberraith wrote: > >> Actually, I'm unsure if I could apply those simplifacations to the actual >> functions I am using. It works well enough for a function simple as sin(a * >> t), however my function include a dynamic correction factor as well. >> >> Perhaps you like to look over the paper I'm writing. for publication rather >> than homework, that has the full explanation of what my function are trying >> to express mathematically? >> >> I'd be glad to give you a credit. > > Although it might be more complicated to implement in case of a > different function the algorithm should work identically. > > Find below a generaliziotion of your procedure. > > c. > And here is the application to your problem as described in "gyro.c" as you can see the numeriacl integration step appears to be useless and (either with or without it) the computation is very fast: >> tic, gyro, toc err_hor = 2.9681e-15 err_tan = -6.2235e-19 err_ver = -1.0915e-14 The tangential sum is: 0.000000e+00 The horizontal sum is: 7.604169e-16 The vertical sum is: 0.000000e+00 Elapsed time is 0.008413 seconds. c. ##---------------------------------------------------------------- ## file gyro.m ##---------------------------------------------------------------- ## algorithm parameters n = 1000; ## function parameters gyr_rpm = 1200; p = 60 / gyr_rpm; gyr_rad = 2.50e-2; gyr_vel = 2 * pi * 1200 / 60; xrm_rad = 1.50e-1; xrm_vel = 2 * pi * 31.4 / 60; ## if you need to apply the same procedure ## to different functions you'll want to ## make it into a function function [f, s, s2] = process (fun, t) h = t(2) - t(1); f = diff (fun (t)) / h; s2 = h * sum (f); s = fun (t (end)) - fun (t (1)); endfunction ## define here the function(s) you want to process function res = raw_vel (x, gyr_rad, gyr_vel, xrm_vel) res = sqrt ((-gyr_rad * gyr_vel * sin (gyr_vel * x) + gyr_rad * xrm_vel) .^ 2 + (gyr_rad * gyr_vel * cos (gyr_vel * x)) .^ 2); endfunction function res = del_the (x, gyr_rad, xrm_rad, gyr_vel, xrm_vel) f_ang = atan2 (-gyr_rad * gyr_vel* sin (gyr_vel * x) + xrm_rad * xrm_vel, gyr_rad * gyr_vel * cos (gyr_vel * x)); r_ang = atan2 (sin (gyr_vel * x), cos (gyr_vel * x)); res = f_ang + r_ang; res(res > pi) -= 2 * pi; endfunction tan_vel = @(t) cos (del_the (t, gyr_rad, xrm_rad, gyr_vel, xrm_vel)) .* ... raw_vel(t, gyr_rad, gyr_vel, xrm_vel); hor_vel = @(t) -sin (gyr_vel * t) .* ... cos (del_the (t, gyr_rad, xrm_rad, gyr_vel, xrm_vel)) .* ... raw_vel (t, gyr_rad, gyr_vel, xrm_vel); ver_vel = @(t) cos (gyr_vel * t) .* ... cos (del_the (t, gyr_rad, xrm_rad, gyr_vel, xrm_vel)) .* ... raw_vel(t, gyr_rad, gyr_vel, xrm_vel); ## time grid t = linspace (0, p , n); ## process the first function [f, hor_sum, sf] = process (hor_vel, t); # consisency error err_hor = hor_sum - sf ## process the second function [f1, tan_sum, sf1] = process (tan_vel, t); # consisency error err_tan = tan_sum - sf1 ## process the third function [f2, ver_sum, sf2] = process (ver_vel, t); # consisency error err_ver = ver_sum - sf2 printf ("The tangential sum is: %1.6e\n", tan_sum ); printf ("The horizontal sum is: %1.6e\n", hor_sum ); printf ("The vertical sum is: %1.6e\n", ver_sum ); From syberraith at yahoo.com Sun Dec 4 05:15:06 2011 From: syberraith at yahoo.com (syberraith) Date: Sun, 4 Dec 2011 03:15:06 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> References: <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> Message-ID: <1322997306849-4156607.post@n4.nabble.com> Actually I kind of understand what your saying. I've been playing with this: n = 1000000 p = 2 * pi; h = p / (n-1); g = h / 2; function y = f ( x ) y = sin( x ); endfunction t = linspace(0 - g, p + g, n + 1); a = (f(t+g) - f(t-g))./h; a = h.*(a(1:end-1) + a(2:end))./2; u = linspace(0, p, n); s = sum(a.*h) s1 = a(end) - a(1) #plot(u, a,"-1") The more data points I used the closer s got to s1. My last try was with 100,000,000 data points. That overwhelm my machine. All though at 10,000,000 data points s was x.xxe-13 and s1 was x.xxe-17 so they were on the way to converging. Now I have to figure out just how much accuracy do I need, or can s1 just do by itself. I think now the behavior of the c program is OK. What it is showing is just s approaching s1. I also fixed my central difference algorithm so that it minimizes funcion calls, it now does half the calls it originally did. Nifty stuff. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4156607.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Sun Dec 4 06:43:28 2011 From: carlo.defalco at gmail.com (c.) Date: Sun, 4 Dec 2011 13:43:28 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1322997306849-4156607.post@n4.nabble.com> References: <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1322997306849-4156607.post@n4.nabble.com> Message-ID: On 4 Dec 2011, at 12:15, syberraith wrote: > Actually I kind of understand what your saying. I've been playing with this: > > n = 1000000 > p = 2 * pi; > h = p / (n-1); > g = h / 2; > > function y = f ( x ) > y = sin( x ); > endfunction > > t = linspace(0 - g, p + g, n + 1); > a = (f(t+g) - f(t-g))./h; > a = h.*(a(1:end-1) + a(2:end))./2; > > u = linspace(0, p, n); > s = sum(a.*h) > s1 = a(end) - a(1) > #plot(u, a,"-1") > > The more data points I used the closer s got to s1. The comparison you are making here is wrong: s and s1 do not represent the same quantity, they jus happen to have similar values because f = sin(x) and a is an approximation of cos (x) which are functions with the same periodicity. the correct comparison is between s and s1 = f(p) - f(0) If you do the comparison correctly you get the maximum possible accuracy already with about 50 samples. --------- n = 100 p = 2 * pi; h = p / (n-1); g = h / 2; function y = f ( x ) y = sin( x ); endfunction t = linspace(0, p, n); a = (diff (f (t))) / h; u = linspace(0, p, n); s = sum(a * h) s1 = f(p) - f(0) figure (1) plot (t(1:end-1)+g, a, t, cos (t)) title ("compare a and cos(t)") figure (2) plot (t, f(t), t, sin (t)) title ("compare f(t) and sin(t)") --------- n = 50 s = -2.4980e-16 s1 = -2.4493e-16 >> s-s1 ans = -4.8708e-18 This said, I think you should sit back and carefully rethink your model, you are spending a lot of time on a numerical method to compute an approximation "s" of the quantity "s1" which you already know analytically from the beginning. c. From lukas.reichlin at gmail.com Sun Dec 4 13:28:41 2011 From: lukas.reichlin at gmail.com (Lukas Reichlin) Date: Sun, 4 Dec 2011 20:28:41 +0100 Subject: control-2.2.2 released in package forum - please upload Message-ID: <85DF8B60-BD52-4010-8383-AEEC6DD79733@gmail.com> Hi all, I've just posted control-2.2.2 (SVN Revision 9260) in the package forum [1]. Please upload it to the server. The changes are listed in the NEWS file [2]. The notice for http://octave.sourceforge.net/ December 4, 2011 control-2.2.2 released Best regards Lukas [1] http://sourceforge.net/apps/phpbb/octave/viewforum.php?f=1 [2] http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/control/NEWS?revision=9260&view=markup From carandraug+dev at gmail.com Sun Dec 4 14:59:14 2011 From: carandraug+dev at gmail.com (=?ISO-8859-1?Q?Carn=EB_Draug?=) Date: Sun, 4 Dec 2011 20:59:14 +0000 Subject: control-2.2.2 released in package forum - please upload In-Reply-To: <85DF8B60-BD52-4010-8383-AEEC6DD79733@gmail.com> References: <85DF8B60-BD52-4010-8383-AEEC6DD79733@gmail.com> Message-ID: On 4 December 2011 19:28, Lukas Reichlin wrote: > I've just posted control-2.2.2 (SVN Revision 9260) in the package forum [1]. Please upload it to the server. Done From syberraith at yahoo.com Sun Dec 4 15:21:18 2011 From: syberraith at yahoo.com (syberraith) Date: Sun, 4 Dec 2011 13:21:18 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: References: <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1322997306849-4156607.post@n4.nabble.com> Message-ID: <1323033678387-4158193.post@n4.nabble.com> *** This said, I think you should sit back and carefully rethink your model, you are spending a lot of time on a numerical method to compute an approximation "s" of the quantity "s1" which you already know analytically from the beginning. *** Yeah, I got that a while ago. I've just been trying to learn how exactly I went wrong, to satisfy my compulsion to understand everything even the things that are wrong. Sometimes they're even more interesting. Now, I just have to figure out what to do with this paper that I spent the last month writing and that is now obviously based on calculation err... So, the summation value with f(p) - f(0), got it. The only thing was was concerning me about doing that you all reminded me that f(x) was the indefinite integral to begin with of what I was integrating, what that f(x) was a combination of two or thee other functions: delta-theta(x), v(x), and either -sin(x) or cos(x) as the case was. The one that concerned me most was the delta theta correction because is was so asymmetrical. Anyway, I gotta get back to the drawing board now to see if I can salvage any of this. :) I appreciate everyone help with this very much. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4158193.html Sent from the Octave - General mailing list archive at Nabble.com. From syberraith at yahoo.com Sun Dec 4 16:20:46 2011 From: syberraith at yahoo.com (syberraith) Date: Sun, 4 Dec 2011 14:20:46 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323033678387-4158193.post@n4.nabble.com> References: <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1322997306849-4156607.post@n4.nabble.com> <1323033678387-4158193.post@n4.nabble.com> Message-ID: <1323037246313-4158382.post@n4.nabble.com> Although this seems to be wrong too. Am I to take it that with only 3 samples the accuracy of the diff function is already at a maximum? n = 3 p = 2 * pi; h = p / (n-1); g = h / 2; function y = f ( x ) y = sin( x ); endfunction t = linspace(0, p, n); a = diff ( f(t) ) / h; s1 = sum(a.*h) s2 = f(p) - f(0) ds = s1 - s2 n = 3 s1 = -2.4492e-16 s2 = -2.4492e-16 ds = -4.9304e-32 Does the sampling rate here have anything to do with the Nyquist frequency, which in this case would be 2Hz? And a sampling rate of 2hz would only detect variations in the signal that were below 1hz. So if the signal, the velocity of my particle here, contained any information higher then 1hz, which the sin function lacks, it should be undetectable in the result, aye? I actually doubt there would be any major components in the result higher than the second harmonic of the period frequency, although the delta-theta correction might introduce some. So would a sampling rate of 4/p be sufficient according to Nyquist? Maybe I should analyze the output of the functions in the frequency domain just to see what's going on there... -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4158382.html Sent from the Octave - General mailing list archive at Nabble.com. From syberraith at yahoo.com Sun Dec 4 16:36:16 2011 From: syberraith at yahoo.com (syberraith) Date: Sun, 4 Dec 2011 14:36:16 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323037246313-4158382.post@n4.nabble.com> References: <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1322997306849-4156607.post@n4.nabble.com> <1323033678387-4158193.post@n4.nabble.com> <1323037246313-4158382.post@n4.nabble.com> Message-ID: <1323038176701-4158445.post@n4.nabble.com> Actually, I think my central difference algorithm is providing more realistic answers than Octave's diff function in this case: n = 400 p = (2 * pi)/200; h = p / (n-1); g = h / 2; function y = f ( x ) y = sin( 200 * x ); endfunction t = linspace(0 - g, p + g, n + 1); a = (f(t+g) - f(t-g))/h; a = h.*(a(1:end-1) + a(2:end))./2; #t = linspace(0, p, n); #a = diff(f(t))/h; s1 = sum(a.*h) s2 = f(p) - f(0) ds = s1 - s2 n = 400 p = (2 * pi)/200; h = p / (n-1); g = h / 2; n = 400 s1 = 1.2398e-06 s2 = 6.4326e-16 ds = 1.2398e-06 Or, am I still missing something? -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4158445.html Sent from the Octave - General mailing list archive at Nabble.com. From syberraith at yahoo.com Sun Dec 4 21:05:52 2011 From: syberraith at yahoo.com (syberraith) Date: Sun, 4 Dec 2011 19:05:52 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> References: <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> Message-ID: <1323054352047-4159094.post@n4.nabble.com> I finally figured out how to quote. Doh, use the quote button! c.-2 wrote > > On 4 Dec 2011, at 10:22, c. wrote: > > ## if you need to apply the same procedure > ## to different functions you'll want to > ## make it into a function > > function [f, s, s2] = process (fun, t) > ... > endfunction > > ## define here the function(s) you want to process > > function > ... > endfunction > > ... > > > tan_vel = @(t) cos (del_the (t, gyr_rad, xrm_rad, gyr_vel, xrm_vel)) .* > ... > raw_vel(t, gyr_rad, gyr_vel, xrm_vel); > > ... > This is very interesting and new to me. That last bit I know is an assignment statement, and I realize that it's meant to be evaluated at the discrete values of t, although what is this '@t' construct called, and how does it work by getting passed as an argument and then treated as a function? Can this also be done in c? -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4159094.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Sun Dec 4 21:26:55 2011 From: carlo.defalco at gmail.com (c.) Date: Mon, 5 Dec 2011 04:26:55 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323054352047-4159094.post@n4.nabble.com> References: <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323054352047-4159094.post@n4.nabble.com> Message-ID: <62268AF6-F86D-40F5-9347-CC69E7CCD4BA@gmail.com> On 5 Dec 2011, at 04:05, syberraith wrote: > This is very interesting and new to me. That last bit I know is an > assignment statement, and I realize that it's meant to be evaluated at the > discrete values of t, although what is this '@t' construct called, and how > does it work by getting passed as an argument and then treated as a > function? http://www.gnu.org/software/octave/doc/interpreter/Function-Handles.html > Can this also be done in c? well, it can be done in c++ with functors, I'm not sure about plain c c. From mixmaster at remailer.privacy.at Sun Dec 4 07:57:52 2011 From: mixmaster at remailer.privacy.at (Anonymous Remailer (austria)) Date: Sun, 4 Dec 2011 14:57:52 +0100 (CET) Subject: C++ libraries - libpgxx and postgresql Message-ID: <12bda9ebb4eb7c8be1c87620014beddb@remailer.privacy.at> Hi all, I may need to put together some code to read from a postgresql database for processing by octave. I found an example for mysql (mysql.cpp) though none for postgresql. That suggests that while there may be some application that finds connection to a database as the best way of working, there is an easier or better way. So, before investing time and effort, a couple of questions: A) Is there a better way of reading and writing stored information to octave that does not use files. B) Is a library already in existence for exchanging data with a postgresql database? TIA Richard From wangzhijiebill at gmail.com Sun Dec 4 19:11:48 2011 From: wangzhijiebill at gmail.com (Bill Wang) Date: Sun, 4 Dec 2011 20:11:48 -0500 Subject: Limit of loading data Message-ID: Hello Sir, I am an octave newbie. I want to load a big data set saved as .csv file. It is really big, about 50K examples. After loading, I checked my variable size, the variable size is smaller the the data set. And I think the data set is not fully loaded. Is there any way to solve it? Or I should import to Access and export? Please give me a relative detailed explanation. Thanks, Bill Wang -------------- next part -------------- An HTML attachment was scrubbed... URL: From syberraith at yahoo.com Sun Dec 4 23:27:09 2011 From: syberraith at yahoo.com (syberraith) Date: Sun, 4 Dec 2011 21:27:09 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <62268AF6-F86D-40F5-9347-CC69E7CCD4BA@gmail.com> References: <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323054352047-4159094.post@n4.nabble.com> <62268AF6-F86D-40F5-9347-CC69E7CCD4BA@gmail.com> Message-ID: <1323062829542-4159347.post@n4.nabble.com> So the '@' is a function handle indicator, athough it's used with an array here. I'm still wondering how that works. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4159347.html Sent from the Octave - General mailing list archive at Nabble.com. From syberraith at yahoo.com Sun Dec 4 23:37:29 2011 From: syberraith at yahoo.com (syberraith) Date: Sun, 4 Dec 2011 21:37:29 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323062829542-4159347.post@n4.nabble.com> References: <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323054352047-4159094.post@n4.nabble.com> <62268AF6-F86D-40F5-9347-CC69E7CCD4BA@gmail.com> <1323062829542-4159347.post@n4.nabble.com> Message-ID: <1323063449992-4159361.post@n4.nabble.com> I'm getting syntax errs with this, although I'm running the debian package of octave, which is far from the newest version: dat_pts = 1000; gyr_rpm = 12000; xrm_rpm = 1000; gyr_rad = 0.025; xrm_rad = 0.15; gyr_vel = 2 * pi * gyr_rpm / 60; xrm_vel = 2 * pi * xrm_rpm / 60; p = 60 / gyr_rpm; h = p / ( dat_pts - 1 ); g = h / 2; t = linspace(0 - g, p + g, dat_pts + 1); function [f, s1, s2] = process (f, t, h, g) a = (f(t+g) - f(t-g))/h; a = h.*(a(1:end-1) + a(2:end))./2; s1 = f(t(end)) - f(t(1)); s2 = h * sum (f); endfunction function y = raw_vel(x, gyr_rad, gyr_vel, xrm_rad, xrm_vel) y = sqrt((-gyr_rad*gyr_vel*sin(gyr_vel*x) + xrm_rad*xrm_vel)^2 + (gyr_rad*gyr_vel*cos(gyr_vel*x))^2 ); endfunction function y = del_the(x, gyr_rad, gyr_vel, xrm_rad, xrm_vel) raw_ang = atan2(-gyr_rad*gyr_vel*sin(gyr_vel*x) + xrm_rad*xrm_vel, gyr_rad*gyr_vel*cos(gyr_vel*x)); tan_ang = atan2(sin(gyr_vel*x), cos(gyr_vel*x)); y = raw_ang + tan_ang; y(y > pi) -= 2 * pi; endfunction tan_vel = @(t) cos(del_the(t, gyr_rad, gyr_vel, xrm_rad, xrm_vel))*raw_vel (t, gyr_rad, gyr_vel, xrm_rad, xrm_vel); hor_vel = @(t) -sin(gyr_vel*t)*cos( del_the(t, gyr_rad, gyr_vel, xrm_rad, xrm_vel))*raw_vel(t, gyr_rad, gyr_vel, xrm_rad, xrm_vel); ver_vel = @(t) cos(gyr_vel*x)*cos( del_the(t, gyr_rad, gyr_vel, xrm_rad, xrm_vel))*raw_vel(t, gyr_rad, gyr_vel, xrm_rad, xrm_vel); [tan_f, tan_s1, tan_s2] = process(tan_vel, t, h, g) [hor_f, hor_s1, hor_s2] = process(hor_vel, t, h, g) [ver_f, ver_s1, ver_s2] = process(ver_vel, t, h, g) -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4159361.html Sent from the Octave - General mailing list archive at Nabble.com. From heweipeng at gmail.com Mon Dec 5 00:35:15 2011 From: heweipeng at gmail.com (Weipeng He) Date: Mon, 05 Dec 2011 14:35:15 +0800 Subject: How to add non-English characters to figures Message-ID: <4EDC6623.80001@gmail.com> I want to add a Chinese title or other labels to a figure. Commands are like title("??????) text(0,0,"??????) However, I get only garbled characters on the figure with the following warning warning: ft_render: skipping missing glyph for character `?' Is there any solution I can get it work? Thanks~ Some additional information: Octave Version is 3.4.3 |graphics_toolkit is gnu-plot| System is Fedora 15 -------------- next part -------------- An HTML attachment was scrubbed... URL: From carbajal at ifi.uzh.ch Mon Dec 5 01:24:18 2011 From: carbajal at ifi.uzh.ch (Juan Pablo Carbajal) Date: Mon, 5 Dec 2011 08:24:18 +0100 Subject: How to add non-English characters to figures In-Reply-To: <4EDC6623.80001@gmail.com> References: <4EDC6623.80001@gmail.com> Message-ID: 2011/12/5 Weipeng He : > I want to add a Chinese title or other labels to a figure. Commands are like > > title("???) > text(0,0,"???) > > However, I get only garbled characters on the figure with the following > warning > > warning: ft_render: skipping missing glyph for character `?' > > Is there any solution I can get it work? > > Thanks~ > > > Some additional information: > > Octave Version is 3.4.3 > graphics_toolkit is gnu-plot > System is Fedora 15 > > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > If it is only a few figures you could produce an SVG output and add the labels with Inkscape, manually. Otherwise you could try to use psfrag in Latex and replace placeholder labels like "LabelX", "Title", "LabelY" with your characters. -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Z?rich http://ailab.ifi.uzh.ch/carbajal/ From Potorti at isti.cnr.it Mon Dec 5 03:36:35 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Mon, 05 Dec 2011 10:36:35 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323037246313-4158382.post@n4.nabble.com> References: <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1322997306849-4156607.post@n4.nabble.com> <1323033678387-4158193.post@n4.nabble.com> <1323037246313-4158382.post@n4.nabble.com> Message-ID: >Am I to take it that with only 3 samples the accuracy of the diff function >is already at a maximum? There is not "a maximum". This is numerical differentiation, and if you are interested, you should look at one or more numerical methods books. For example my old "numericl methods" by Fahlquist and Bj?rck dedicates around 30 pages to this matter. >Does the sampling rate here have anything to do with the Nyquist frequency, >which in this case would be 2Hz? It has to do with how well you sampled the phisical phenomenon. Differentiationg it cannot bring you any more information than already is in the original data. >Actually, I think my central difference algorithm is providing more realistic >answers than Octave's diff function in this case: The diff function is just a brick, which you should use to build what you need. Generally speaking, yes, a central difference algorithm is more accurate than a simple difference in estimating the derivative. -- Francesco Potort? (ricercatore) Voice: +39.050.315.3058 (op.2111) ISTI - Area della ricerca CNR Mobile: +39.348.8283.107 via G. Moruzzi 1, I-56124 Pisa Fax: +39.050.315.2040 (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it From Potorti at isti.cnr.it Mon Dec 5 03:43:55 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Mon, 05 Dec 2011 10:43:55 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <62268AF6-F86D-40F5-9347-CC69E7CCD4BA@gmail.com> References: <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323054352047-4159094.post@n4.nabble.com> <62268AF6-F86D-40F5-9347-CC69E7CCD4BA@gmail.com> Message-ID: >> This is very interesting and new to me. That last bit I know is an >> assignment statement, and I realize that it's meant to be evaluated at the >> discrete values of t, although what is this '@t' construct called, and how >> does it work by getting passed as an argument and then treated as a >> function? > >http://www.gnu.org/software/octave/doc/interpreter/Function-Handles.html > >> Can this also be done in c? > >well, it can be done in c++ with functors, I'm not sure about plain c Yes, function pointers have always been available in the C language. Are there general purpose languages where you do not have function pointers or an equivalent construct? -- Francesco Potort? (ricercatore) Voice: +39.050.315.3058 (op.2111) ISTI - Area della ricerca CNR Mobile: +39.348.8283.107 via G. Moruzzi 1, I-56124 Pisa Fax: +39.050.315.2040 (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it From Potorti at isti.cnr.it Mon Dec 5 03:45:05 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Mon, 05 Dec 2011 10:45:05 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323054352047-4159094.post@n4.nabble.com> References: <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323054352047-4159094.post@n4.nabble.com> Message-ID: >I finally figured out how to quote. > >Doh, use the quote button! No, does not work :) You should configure your mail reader to use bottom quoting when writing on this list. Look at how the others do. -- Francesco Potort? (ricercatore) Voice: +39.050.315.3058 (op.2111) ISTI - Area della ricerca CNR Mobile: +39.348.8283.107 via G. Moruzzi 1, I-56124 Pisa Fax: +39.050.315.2040 (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it From Potorti at isti.cnr.it Mon Dec 5 03:48:26 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Mon, 05 Dec 2011 10:48:26 +0100 Subject: Limit of loading data In-Reply-To: References: Message-ID: > I am an octave newbie. I want to load a big data set saved as .csv >file. It is really big, about 50K examples. Well, most of us would say that it is fairly small :) >After loading, I checked my >variable size, the variable size is smaller the the data set. You should tell more about the type and number of data contained in your data set. You should also tell us what the variable size is. >And I think the data set is not fully loaded. Is there any way to solve >it? Probably. You should tell us what is the command that you used to load the data, what you expected and what you got, in detail. It is nearly to impossible to give any meaningful answer with the little data you provided. -- Francesco Potort? (ricercatore) Voice: +39.050.315.3058 (op.2111) ISTI - Area della ricerca CNR Mobile: +39.348.8283.107 via G. Moruzzi 1, I-56124 Pisa Fax: +39.050.315.2040 (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it From Potorti at isti.cnr.it Mon Dec 5 03:50:37 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Mon, 05 Dec 2011 10:50:37 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323063449992-4159361.post@n4.nabble.com> References: <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323054352047-4159094.post@n4.nabble.com> <62268AF6-F86D-40F5-9347-CC69E7CCD4BA@gmail.com> <1323062829542-4159347.post@n4.nabble.com> <1323063449992-4159361.post@n4.nabble.com> Message-ID: >I'm getting syntax errs with this If you tell what is the error you get it will be easier to give an answer. You should give us the code, the command you used to invoke it and the trasncript of the error. -- Francesco Potort? (ricercatore) Voice: +39.050.315.3058 (op.2111) ISTI - Area della ricerca CNR Mobile: +39.348.8283.107 via G. Moruzzi 1, I-56124 Pisa Fax: +39.050.315.2040 (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it From carandraug+dev at gmail.com Mon Dec 5 06:34:21 2011 From: carandraug+dev at gmail.com (=?ISO-8859-1?Q?Carn=EB_Draug?=) Date: Mon, 5 Dec 2011 12:34:21 +0000 Subject: image package loaded up twice In-Reply-To: <4ED92DC9.7090902@nist.gov> References: <4ED92DC9.7090902@nist.gov> Message-ID: On 2 December 2011 19:58, Przemek Klosowski wrote: > I did 'pkg install -forge image' and ended up with: > > ? ? ? image *| ?1.0.15 | /home/przemek/octave/image-1.0.15 > ? ? ? image *| ?1.0.14 | /usr/share/octave/packages/image-1.0.14 > > I expected that the old/default image will be shadowed and invisible, > which I think was the case on my previous successful pkg installations. > Why is 'image' different, and how to resolve this? Hmmm.. it seems you installed one with the local flag while the other has a system wide installation. I'll say just uninstall the package (you may need to do it twice) and then reinstall it. This looks like a bug, can you replicate it? And maybe submit a bug report with it here https://savannah.gnu.org/bugs/?group=octave ? Carn? From heweipeng at gmail.com Mon Dec 5 08:57:57 2011 From: heweipeng at gmail.com (Weipeng He) Date: Mon, 05 Dec 2011 22:57:57 +0800 Subject: How to add non-English characters to figures In-Reply-To: References: <4EDC6623.80001@gmail.com> Message-ID: <4EDCDBF5.90801@gmail.com> ? 2011?12?05? 15:24, Juan Pablo Carbajal ??: > 2011/12/5 Weipeng He: >> I want to add a Chinese title or other labels to a figure. Commands are like >> >> title("???) >> text(0,0,"???) >> >> However, I get only garbled characters on the figure with the following >> warning >> >> warning: ft_render: skipping missing glyph for character `?' >> >> Is there any solution I can get it work? >> >> Thanks~ >> >> >> Some additional information: >> >> Octave Version is 3.4.3 >> graphics_toolkit is gnu-plot >> System is Fedora 15 >> >> >> >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://mailman.cae.wisc.edu/listinfo/help-octave >> > If it is only a few figures you could produce an SVG output and add > the labels with Inkscape, manually. > > Otherwise you could try to use psfrag in Latex and replace placeholder > labels like "LabelX", "Title", "LabelY" with your characters. > Thanks for your suggestion. However, I want put some (maybe more than 20) text labels beside the specified points on the figure. (Using** function *text*). Maybe it is not doable to add these labels manually. I am wondering whether there is some problem with my font manager or encoding. Or nobody can get it work in Octave? Someone has encountered the same problem(please refer to http://octave.1599824.n4.nabble.com/Graphic-accents-and-plot-command-in-octave-3-3-53-td3032491.html). As said in that post, he can get it work in Octave 3.2.4, while it doesn't work in Octave 3.3.53. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo.fbus at gmail.com Mon Dec 5 09:44:40 2011 From: pablo.fbus at gmail.com (Pablo Fernandez) Date: Mon, 5 Dec 2011 16:44:40 +0100 Subject: How to add non-English characters to figures In-Reply-To: <4EDCDBF5.90801@gmail.com> References: <4EDC6623.80001@gmail.com> <4EDCDBF5.90801@gmail.com> Message-ID: > , I want put some (maybe more than 20) text labels beside the specified > points on the figure. (Using function *text*). Maybe it is not doable to > add these labels manually. > I am wondering whether there is some problem with my font manager or > encoding. Or nobody can get it work in Octave? > > Someone has encountered the same problem(please refer to > http://octave.1599824.n4.nabble.com/Graphic-accents-and-plot-command-in-octave-3-3-53-td3032491.html). > As said in that post, he can get it work in Octave 3.2.4, while it doesn't > work in Octave 3.3.53. > > Hi! I am new to octave and to this mailing list. I think that you need UTF-8 support in gnuplot. Read this: http://lists.gnu.org/archive/html/octave-bug-tracker/2010-12/msg00238.html I hope this helps. Pablo -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlo.defalco at gmail.com Mon Dec 5 10:54:08 2011 From: carlo.defalco at gmail.com (c.) Date: Mon, 5 Dec 2011 17:54:08 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: References: <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323054352047-4159094.post@n4.nabble.com> <62268AF6-F86D-40F5-9347-CC69E7CCD4BA@gmail.com> Message-ID: <96DA44C9-A86E-45BB-913C-6685F2D5C2AC@gmail.com> On 5 Dec 2011, at 10:43, Francesco Potort? wrote: > Yes, function pointers have always been available in the C language. > > Are there general purpose languages where you do not have function > pointers or an equivalent construct? This is totally off-topic as regarding to Octave so if yo prefer you can answer off-list, but I'm curios: how to do someting like this in C? function f = fun (x, p) f = x + p; endfunction p = 3; specialized_fun = @(x) fun (x, p) c. From mmt200575 at yahoo.com Mon Dec 5 10:35:58 2011 From: mmt200575 at yahoo.com (Mircea Toma) Date: Mon, 5 Dec 2011 08:35:58 -0800 (PST) Subject: No subject Message-ID: <1323102958.38990.YahooMailNeo@web112015.mail.gq1.yahoo.com> I try to test the examples in "A.1 Oct-Files" to understand them. I arrived at "Structures in Oct-Files" where I encountered an error "error: 'octave_scalar_map' declared in this scope. Can't find a h file with? 'octave_scalar_map'. Anyone say how how it can be solved. Thanks, Mircea T ====================================================================== cd C:\oct-test mkoctfile structdemo.cpp x.a = 1; x.b = "test"; x.c = [1, 2]; structdemo (x, "b") ----------------------------------------------------------------------------- GNU Octave, version 3.2.4 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'. warning: mark_as_command is obsolete and will be removed from a future version o f Octave octave-3.2.4.exe:1> cd C:\oct-test octave-3.2.4.exe:2> mkoctfile structdemo.cpp structdemo.cpp: In function 'octave_value_list Fstructdemo(const octave_value_li st&, int)': structdemo.cpp:11: error: 'octave_scalar_map' was not declared in this scope structdemo.cpp:11: error: expected ';' before 'arg0' structdemo.cpp:19: error: 'arg0' was not declared in this scope structdemo.cpp:23: error: expected ';' before 'st' structdemo.cpp:25: error: 'st' was not declared in this scope structdemo.cpp:6: warning: unused variable 'nargin' mingw32-g++-4.4.0-dw2: structdemo.o: No such file or directory octave-3.2.4.exe:3> x.a = 1; x.b = "test"; x.c = [1, 2]; structdemo (x, "b") error: `structdemo' undefined near line 3 column 38 octave-3.2.4.exe:3====================================================? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Potorti at isti.cnr.it Mon Dec 5 11:07:18 2011 From: Potorti at isti.cnr.it (Francesco =?utf-8?Q?Potort=C3=AC?=) Date: Mon, 05 Dec 2011 18:07:18 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <96DA44C9-A86E-45BB-913C-6685F2D5C2AC@gmail.com> References: <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323054352047-4159094.post@n4.nabble.com> <62268AF6-F86D-40F5-9347-CC69E7CCD4BA@gmail.com> <96DA44C9-A86E-45BB-913C-6685F2D5C2AC@gmail.com> Message-ID: >> Yes, function pointers have always been available in the C language. >> >> Are there general purpose languages where you do not have function >> pointers or an equivalent construct? > >This is totally off-topic as regarding to Octave so if yo prefer you can answer off-list, >but I'm curios: how to do someting like this in C? > >function f = fun (x, p) >f = x + p; >endfunction > >p = 3; >specialized_fun = @(x) fun (x, p) double f (double x, double p) { return x+p; } double (*specialized_fun)(double, double) = f; -- Francesco Potort? (ricercatore) Voice: +39.050.315.3058 (op.2111) ISTI - Area della ricerca CNR Mobile: +39.348.8283.107 via G. Moruzzi 1, I-56124 Pisa Fax: +39.050.315.2040 (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it From carlo.defalco at gmail.com Mon Dec 5 11:08:21 2011 From: carlo.defalco at gmail.com (c.) Date: Mon, 5 Dec 2011 18:08:21 +0100 Subject: In-Reply-To: <1323102958.38990.YahooMailNeo@web112015.mail.gq1.yahoo.com> References: <1323102958.38990.YahooMailNeo@web112015.mail.gq1.yahoo.com> Message-ID: <1080030D-C407-446B-BA00-7A24BCF43D39@gmail.com> On 5 Dec 2011, at 17:35, Mircea Toma wrote: > I try to test the examples in "A.1 Oct-Files" to understand them. I arrived at "Structures in Oct-Files" where I encountered an error "error: 'octave_scalar_map' declared in this scope. > Can't find a h file with 'octave_scalar_map'. Anyone say how how it can be solved. > Thanks, > Mircea T I think you should update your Octave version. I believe octave_scalar_map was introduced in 3.4 . With 3.2.4 you can still use the octave_map class though ... c. From joeqsmith49 at yahoo.com Mon Dec 5 13:27:08 2011 From: joeqsmith49 at yahoo.com (Joe Smith) Date: Mon, 5 Dec 2011 11:27:08 -0800 (PST) Subject: Help-octave Digest, Vol 68, Issue 71 In-Reply-To: References: <1322507693.43232.YahooMailNeo@web121709.mail.ne1.yahoo.com> Message-ID: <1323113228.48348.YahooMailNeo@web121709.mail.ne1.yahoo.com> I saved the .deb file from the link you provided.?? I then ran ? sudo dpkg -i octave.....deb ? Again, I have no idea what I am doing so this is all a guess on my part without having detailed instructions. ? It seems to create a directory under the /usr/share area.??? If I run QtOctave, it still uses the old Octave.? So I manually tried to force the link for Octave.? This seems to allow QtOctave to find the new version, but there must be more to it.? When I check the version, it shows all the packages I had installed with the older version.? When I tried to run a m file that uses a package, it fails.????Any details on how to install this version of Octave would be helpful.?? Again, I am not a UNIX user or a programmer, so any details would be great.? Thanks ? ? ________________________________ From: Juan Pablo Carbajal To: Joe Smith Cc: "help-octave at octave.org" Sent: Monday, November 28, 2011 2:32 PM Subject: Re: Help-octave Digest, Vol 68, Issue 71 On Mon, Nov 28, 2011 at 8:14 PM, Joe Smith wrote: >> >> Hi Mike, >> I am glad to hear it worked for you. I have never tried to compile for >> 64bits, so I wouldn't be able to help you. I am forwarding your e-mail >> to the octave-help mailing list, maybe somebody there can give you >> some advice. >> >> A colleague told me today that he managed to compile 3.4.3 for Ubuntu >> 10.04 64bits, so I will ask him tomorrow to prepare a deb package. >> >> Cheers, >> >> >> >> -- >> M. Sc. Juan Pablo Carbajal >> ----- >> PhD Student >> University of Z?rich >> http://ailab.ifi.uzh.ch/carbajal/ >> >>Hi Mike, >>My colleague kindly prepared a package using checkinstall for Ubuntu >>10.04 64bits. >>Please try it out >>http://ubuntuone.com/4sGNUuh9ykZdadEX0QPtY2 >> >>md5 = 12269c3caee06b0a3fbd74006c7074a4 >> >>-- >>M. Sc. Juan Pablo Carbajal >>----- >>PhD Student >>University of Z?rich >>http://ailab.ifi.uzh.ch/carbajal/ > Thanks for these posts!? I would be very interested in knowing the details > of how this was built.?? I tried the link provided but it does not appear > valid. > > > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > > Hi Joe, The link, as far as I can tell, is working. the package was created using checkinstall https://help.ubuntu.com/community/CheckInstall -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Z?rich http://ailab.ifi.uzh.ch/carbajal/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From carbajal at ifi.uzh.ch Mon Dec 5 14:01:47 2011 From: carbajal at ifi.uzh.ch (Juan Pablo Carbajal) Date: Mon, 5 Dec 2011 21:01:47 +0100 Subject: Help-octave Digest, Vol 68, Issue 71 In-Reply-To: <1323113228.48348.YahooMailNeo@web121709.mail.ne1.yahoo.com> References: <1322507693.43232.YahooMailNeo@web121709.mail.ne1.yahoo.com> <1323113228.48348.YahooMailNeo@web121709.mail.ne1.yahoo.com> Message-ID: On Mon, Dec 5, 2011 at 8:27 PM, Joe Smith wrote: > I saved the .deb file from the link you provided.?? I then ran > > sudo dpkg -i octave.....deb > > Again, I have no idea what I am doing so this is all a guess on my part > without having detailed instructions. > > It seems to create a directory under the /usr/share area.??? If I run > QtOctave, it still uses the old Octave.? So I manually tried to force the > link for Octave.? This seems to allow QtOctave to find the new version, but > there must be more to it.? When I check the version, it shows all the > packages I had installed with the older version.? When I tried to run a m > file that uses a package, it fails.????Any details on how to install this > version of Octave would be helpful.?? Again, I am not a UNIX user or a > programmer, so any details would be great.? Thanks > > > > From: Juan Pablo Carbajal > To: Joe Smith > Cc: "help-octave at octave.org" > Sent: Monday, November 28, 2011 2:32 PM > Subject: Re: Help-octave Digest, Vol 68, Issue 71 > > On Mon, Nov 28, 2011 at 8:14 PM, Joe Smith wrote: >>> >>> Hi Mike, >>> I am glad to hear it worked for you. I have never tried to compile for >>> 64bits, so I wouldn't be able to help you. I am forwarding your e-mail >>> to the octave-help mailing list, maybe somebody there can give you >>> some advice. >>> >>> A colleague told me today that he managed to compile 3.4.3 for Ubuntu >>> 10.04 64bits, so I will ask him tomorrow to prepare a deb package. >>> >>> Cheers, >>> >>> >>> >>> -- >>> M. Sc. Juan Pablo Carbajal >>> ----- >>> PhD Student >>> University of Z?rich >>> http://ailab.ifi.uzh.ch/carbajal/ >>> >>>Hi Mike, >>>My colleague kindly prepared a package using checkinstall for Ubuntu >>>10.04 64bits. >>>Please try it out >>>http://ubuntuone.com/4sGNUuh9ykZdadEX0QPtY2 >>> >>>md5 = 12269c3caee06b0a3fbd74006c7074a4 >>> >>>-- >>>M. Sc. Juan Pablo Carbajal >>>----- >>>PhD Student >>>University of Z?rich >>>http://ailab.ifi.uzh.ch/carbajal/ >> Thanks for these posts!? I would be very interested in knowing the details >> of how this was built.?? I tried the link provided but it does not appear >> valid. >> >> >> >> >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://mailman.cae.wisc.edu/listinfo/help-octave >> >> > > Hi Joe, > > The link, as far as I can tell, is working. > the package was created using checkinstall > https://help.ubuntu.com/community/CheckInstall > > -- > M. Sc. Juan Pablo Carbajal > ----- > PhD Student > University of Z?rich > http://ailab.ifi.uzh.ch/carbajal/ > > Hi, I do not know what is the problem exactly. I suggest the following (since you can always install 3.2 from apt there is no risk on this) 1. Uninstall octave 3.2 sudo apt-get purge octave3.2 2. Re-install the package as you did 3. Test the installation from the command line. 3.a Open a terminal and type octave The version of Octave is given in the text printed when it initializes. Also, we usually recommend not to use QtOctave cause ti is old, abandoned and buggy. You can use gedit + plugins to make an excellent IDE (search the mailing list archive for "gedit" to learn more). Let me know how it goes. -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Z?rich http://ailab.ifi.uzh.ch/carbajal/ From carandraug+dev at gmail.com Mon Dec 5 14:06:02 2011 From: carandraug+dev at gmail.com (=?ISO-8859-1?Q?Carn=EB_Draug?=) Date: Mon, 5 Dec 2011 20:06:02 +0000 Subject: Help-octave Digest, Vol 68, Issue 71 In-Reply-To: References: <1322507693.43232.YahooMailNeo@web121709.mail.ne1.yahoo.com> <1323113228.48348.YahooMailNeo@web121709.mail.ne1.yahoo.com> Message-ID: On 5 December 2011 20:01, Juan Pablo Carbajal wrote: > On Mon, Dec 5, 2011 at 8:27 PM, Joe Smith wrote: >> I saved the .deb file from the link you provided.?? I then ran >> >> sudo dpkg -i octave.....deb >> >> Again, I have no idea what I am doing so this is all a guess on my part >> without having detailed instructions. >> >> It seems to create a directory under the /usr/share area.??? If I run >> QtOctave, it still uses the old Octave.? So I manually tried to force the >> link for Octave.? This seems to allow QtOctave to find the new version, but >> there must be more to it.? When I check the version, it shows all the >> packages I had installed with the older version.? When I tried to run a m >> file that uses a package, it fails.????Any details on how to install this >> version of Octave would be helpful.?? Again, I am not a UNIX user or a >> programmer, so any details would be great.? Thanks >> >> >> >> From: Juan Pablo Carbajal >> To: Joe Smith >> Cc: "help-octave at octave.org" >> Sent: Monday, November 28, 2011 2:32 PM >> Subject: Re: Help-octave Digest, Vol 68, Issue 71 >> >> On Mon, Nov 28, 2011 at 8:14 PM, Joe Smith wrote: >>>> >>>> Hi Mike, >>>> I am glad to hear it worked for you. I have never tried to compile for >>>> 64bits, so I wouldn't be able to help you. I am forwarding your e-mail >>>> to the octave-help mailing list, maybe somebody there can give you >>>> some advice. >>>> >>>> A colleague told me today that he managed to compile 3.4.3 for Ubuntu >>>> 10.04 64bits, so I will ask him tomorrow to prepare a deb package. >>>> >>>> Cheers, >>>> >>>> >>>> >>>> -- >>>> M. Sc. Juan Pablo Carbajal >>>> ----- >>>> PhD Student >>>> University of Z?rich >>>> http://ailab.ifi.uzh.ch/carbajal/ >>>> >>>>Hi Mike, >>>>My colleague kindly prepared a package using checkinstall for Ubuntu >>>>10.04 64bits. >>>>Please try it out >>>>http://ubuntuone.com/4sGNUuh9ykZdadEX0QPtY2 >>>> >>>>md5 = 12269c3caee06b0a3fbd74006c7074a4 >>>> >>>>-- >>>>M. Sc. Juan Pablo Carbajal >>>>----- >>>>PhD Student >>>>University of Z?rich >>>>http://ailab.ifi.uzh.ch/carbajal/ >>> Thanks for these posts!? I would be very interested in knowing the details >>> of how this was built.?? I tried the link provided but it does not appear >>> valid. >>> >>> >>> >>> >>> _______________________________________________ >>> Help-octave mailing list >>> Help-octave at octave.org >>> https://mailman.cae.wisc.edu/listinfo/help-octave >>> >>> >> >> Hi Joe, >> >> The link, as far as I can tell, is working. >> the package was created using checkinstall >> https://help.ubuntu.com/community/CheckInstall >> >> -- >> M. Sc. Juan Pablo Carbajal >> ----- >> PhD Student >> University of Z?rich >> http://ailab.ifi.uzh.ch/carbajal/ >> >> > > Hi, > > I do not know what is the problem exactly. I suggest the following > (since you can always install 3.2 from apt there is no risk on this) > > 1. Uninstall octave 3.2 > sudo apt-get purge octave3.2 > > 2. Re-install the package as you did > > 3. Test the installation from the command line. > 3.a Open a terminal and type > octave > > The version of Octave is given in the text printed when it initializes. > > Also, we usually recommend not to use QtOctave cause ti is old, > abandoned and buggy. You can use gedit + plugins to make an excellent > IDE (search the mailing list archive for "gedit" to learn more). For use of gedit with octave see http://octave.org/wiki/index.php?title=Gedit (this can be further extend but the basics are already there). Carn? From syberraith at yahoo.com Mon Dec 5 14:37:49 2011 From: syberraith at yahoo.com (syberraith) Date: Mon, 5 Dec 2011 12:37:49 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: References: <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323054352047-4159094.post@n4.nabble.com> <62268AF6-F86D-40F5-9347-CC69E7CCD4BA@gmail.com> <96DA44C9-A86E-45BB-913C-6685F2D5C2AC@gmail.com> Message-ID: <1323117469363-4162044.post@n4.nabble.com> Francesco, I've been using the nabble portal for reading and replying to the thead. The quote looked ok there. I've worked with c mostly and a bit of fortran and assembler. I just recently started picking up python and octave's script. Actually by reading a bit more, I noticed that the construct I originally asked about was anonymous functions. Please ignore the last bit of code I just posted, I hacked a working script to tryout the anonymous functions and messed it all up. Now that I read the page on anonymous functions I think I got it. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4162044.html Sent from the Octave - General mailing list archive at Nabble.com. From pr.nienhuis at hccnet.nl Mon Dec 5 15:40:05 2011 From: pr.nienhuis at hccnet.nl (PhilipNienhuis) Date: Mon, 5 Dec 2011 13:40:05 -0800 (PST) Subject: regexp question Message-ID: <1323121205726-4162260.post@n4.nabble.com> I need to check if a string contains one or more sequences of exactly two identical consecutive characters. So I figured I could do (in Octave-3.4.3 MinGW), e.g.: octave:1> tststr = 'baaaaa baab' tststr = baaaaa baab octave:2> regexp (tststr, "a{2}") but the result is: ans = 2 4 9 which -depending on perception- may be right but intuitively is not what I expected (uhm, hoped). I'd expect the first sequence of five consecutive "a"s to be indexed only with a pattern of "a{5}" but obviously I'm wrong. Now, the "aaaaa" substring actually contains 4 "aa" sequences, so regexp's choice is at least a bit arbitrary; I couldn't find in the docs that regexp only returns non-overlapping substring patterns. IMO strfind() does this more consistently: octave:12> strfind (tststr, 'aa') ans = 2 3 4 5 9 Anyway: Q1: Just to be sure: IS this the way regexp() is supposed to work? Q2: Of course: how can I get together what I'm after? i.e., to find only the position of the one "aa" substring in tststr starting at position 9? Thanks, Philip -- View this message in context: http://octave.1599824.n4.nabble.com/regexp-question-tp4162260p4162260.html Sent from the Octave - General mailing list archive at Nabble.com. From WKrekeler at cleanearthtech.com Mon Dec 5 16:12:20 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Mon, 5 Dec 2011 22:12:20 +0000 Subject: regexp question In-Reply-To: <1323121205726-4162260.post@n4.nabble.com> References: <1323121205726-4162260.post@n4.nabble.com> Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB684E7843@CETEX1.cleanearth.ceprivate> Philip, Try: indexes = regexp (tststr, "a{2,}") or regexp (tststr, "a+") Though the former is closer to the behavior that you wanted. William Krekeler From WKrekeler at cleanearthtech.com Mon Dec 5 16:16:12 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Mon, 5 Dec 2011 22:16:12 +0000 Subject: regexp question References: <1323121205726-4162260.post@n4.nabble.com> Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB684E7858@CETEX1.cleanearth.ceprivate> Sorry I responded too soon. To only get the second shorter set of aa the following works. indexes = regexp (tststr, "a{2,}"); indexes2 = regexp (tststr, "a{3,}"); desiredIndex = setxor( indexes, indexes2 ) William Krekeler From sergstesh at yahoo.com Mon Dec 5 15:54:50 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Mon, 5 Dec 2011 13:54:50 -0800 (PST) Subject: regexp question In-Reply-To: <1323121205726-4162260.post@n4.nabble.com> References: <1323121205726-4162260.post@n4.nabble.com> Message-ID: <1323122090.73136.YahooMailNeo@web112106.mail.gq1.yahoo.com> ----- Original Message ----- > From: PhilipNienhuis > To: help-octave at octave.org > Cc: > Sent: Monday, December 5, 2011 11:40 PM > Subject: regexp question > > I need to check if a string contains one or more sequences of exactly two > identical consecutive characters. > So I figured I could do (in Octave-3.4.3 MinGW), e.g.: > > octave:1> tststr = 'baaaaa baab' > tststr = baaaaa baab > octave:2> regexp (tststr, "a{2}") > > but the result is: > > ans = > ? 2? 4? 9 > > which -depending on perception- may be right but intuitively is not what I > expected (uhm, hoped). > I'd expect the first sequence of five consecutive "a"s to be > indexed only > with a pattern of "a{5}" but obviously I'm wrong. > > Now, the "aaaaa" substring actually contains 4 "aa" > sequences, so regexp's > choice is at least a bit arbitrary; I couldn't find in the docs that regexp > only returns non-overlapping substring patterns. > IMO strfind() does this more consistently: > > octave:12> strfind (tststr, 'aa') > ans = > ? 2? 3? 4? 5? 9 > > > Anyway: > > Q1: Just to be sure: IS this the way regexp() is supposed to work? > > Q2: Of course: how can I get together what I'm after? i.e., to find only the > position of the one "aa" substring in tststr starting at position 9? > > Thanks, > > Philip > I guess you need 'aa' surrounded by not 'a'. Octave uses PCRE; I am not familiar with nuances of Octave PCRE usage; in Perl I would write the regular expression this way: [^a]aa[^a] and if/when it matches, it returns pointer to the character preceding the 'aa' substring, i.e. in case of 'baab' it should return pointer to the first 'b'. Regards, ? Sergei. P.S. '[^a]' is so called character class - it matches all characters except for 'a'. P.P.S. You probably need: http://perldoc.perl.org/perlreftut.html http://perldoc.perl.org/perlretut.html http://perldoc.perl.org/perlre.html > From syberraith at yahoo.com Mon Dec 5 17:11:02 2011 From: syberraith at yahoo.com (syberraith) Date: Mon, 5 Dec 2011 15:11:02 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> References: <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> Message-ID: <1323126662552-4162565.post@n4.nabble.com> Hey C. I got this mostly working, the anonymous function. The only problem fully implementing you scheme is getting the anonymous function to pass the four parameter values to the raw_vel and del_the functions. I had to resort to using some global variables. Here's what I got working. global gyr_rad gyr_vel xrm_rad xrm_vel dat_pts = 1000; gyr_rpm = 12000; xrm_rpm = 300; gyr_rad = 0.025; xrm_rad = 0.15; gyr_vel = 2 * pi * gyr_rpm / 60; xrm_vel = 2 * pi * xrm_rpm / 60; p = 60 / gyr_rpm; h = p / ( dat_pts - 1 ); g = h / 2; t = linspace (0 - g, p + g, dat_pts + 1); function [s1, s2] = process (f, t, h, g) a = (f(t+g) - f(t-g))./h; a = h.*(a(1:end-1) + a(2:end))./2; s1 = f(t(end)) - f(t(1)); s2 = h.*sum(a); endfunction function y = raw_vel (x) global gyr_rad gyr_vel xrm_rad xrm_vel; y = sqrt((-gyr_rad.*gyr_vel.*sin(gyr_vel.*x) + xrm_rad.*xrm_vel).^2 + (gyr_rad.*gyr_vel.*cos(gyr_vel.*x)).^2 ); endfunction function y = del_the (x) global gyr_rad gyr_vel xrm_rad xrm_vel; raw_ang = atan2(-gyr_rad.*gyr_vel.*sin(gyr_vel.*x) + xrm_rad.*xrm_vel, gyr_rad.*gyr_vel.*cos(gyr_vel.*x)); tan_ang = atan2(sin(gyr_vel.*x), cos(gyr_vel.*x)); y = raw_ang + tan_ang; y(y > pi) -= 2 * pi; endfunction tan_vel = @(s) -cos( del_the(s) ) .* raw_vel(s); [s1, s2] = process(tan_vel, t, h, g) -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4162565.html Sent from the Octave - General mailing list archive at Nabble.com. From wnyrodeo at yahoo.com Mon Dec 5 17:17:22 2011 From: wnyrodeo at yahoo.com (Imam Toufique) Date: Mon, 5 Dec 2011 15:17:22 -0800 (PST) Subject: having issues with qhull support Message-ID: <1323127042.79961.YahooMailNeo@web31706.mail.mud.yahoo.com> Hi all, I am trying to compile octave 3.4.3 in SuSE Linux Enterprise Server 10 64-bit OS, and it looks like qhull is not happy. ?I have tried qhull versions, 2003.1, 2011.2 so far. this is what the error message is: checking qhull/qhull_a.h usability... no checking qhull/qhull_a.h presence... yes configure: WARNING: qhull/qhull_a.h: present but cannot be compiled configure: WARNING: qhull/qhull_a.h: ? ? check for missing prerequisite headers? configure: WARNING: qhull/qhull_a.h: see the Autoconf documentation configure: WARNING: qhull/qhull_a.h: ? ? section "Present But Cannot Be Compiled" configure: WARNING: qhull/qhull_a.h: proceeding with the compiler's result configure: WARNING: ? ? ## ------------------------------------------ ## configure: WARNING: ? ? ## Report this to http://octave.org/bugs.html ## configure: WARNING: ? ? ## ------------------------------------------ ## my configure line is: ./configure --prefix=/opt/tools/3.4.3 --libdir=/opt/tools/3.4.3/lib --with-blas="-L/opt/tools/mkl/lib/intel64 -I//opt/tools/mkl/include -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread" --with-lapack="-L/opt/tools/mkl/lib/intel64 -I/opt/tools/mkl/include -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread" --with-qhull=/opt/tools/qhull/2003.1 CPPFLAGS="$CPPFLAGS" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS -Wl,--rpath -Wl,$LD_LIBRARY_PATH" I have also tried adding?--with-qhull-includedir and?--with-qhull-libdir, but that did not help much. Any help on this is greatly appreciated! ? Regards, I. Toufique -------------- next part -------------- An HTML attachment was scrubbed... URL: From syberraith at yahoo.com Mon Dec 5 17:18:12 2011 From: syberraith at yahoo.com (syberraith) Date: Mon, 5 Dec 2011 15:18:12 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: References: <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1322997306849-4156607.post@n4.nabble.com> <1323033678387-4158193.post@n4.nabble.com> <1323037246313-4158382.post@n4.nabble.com> Message-ID: <1323127092021-4162586.post@n4.nabble.com> I'm too poor to buy books anymore, and soon I'll be too poor to afford internet access as well. I'll see what I can find online. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4162586.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Tue Dec 6 00:39:45 2011 From: carlo.defalco at gmail.com (c.) Date: Tue, 6 Dec 2011 07:39:45 +0100 Subject: In-Reply-To: <1323136629.28121.YahooMailNeo@web112012.mail.gq1.yahoo.com> References: <1323102958.38990.YahooMailNeo@web112015.mail.gq1.yahoo.com> <1080030D-C407-446B-BA00-7A24BCF43D39@gmail.com> <1323136629.28121.YahooMailNeo@web112012.mail.gq1.yahoo.com> Message-ID: On 6 Dec 2011, at 02:57, Mircea Toma wrote: > It is a easy way to update for windows 7? > Thanks, > Mircea > > From: c. > To: Mircea Toma > Cc: "help-octave at octave.org" > Sent: Monday, December 5, 2011 11:08 AM > Subject: Re: > > > On 5 Dec 2011, at 17:35, Mircea Toma wrote: > > > I try to test the examples in "A.1 Oct-Files" to understand them. I arrived at "Structures in Oct-Files" where I encountered an error "error: 'octave_scalar_map' declared in this scope. > > Can't find a h file with 'octave_scalar_map'. Anyone say how how it can be solved. > > Thanks, > > Mircea T > > I think you should update your Octave version. I believe octave_scalar_map was introduced in 3.4 . > With 3.2.4 you can still use the octave_map class though ... > c. > please use 'reply all' to keep the thread on the list. I don't use windows so I do not know how difficult it is to install on windows 7 but there are windows binaries being distributed, if you search the mailing list I'll sure you'll find links, for example: http://octave.1599824.n4.nabble.com/ginput-over-image-on-Windows-7-x64-Octave-3-2-4-gcc-4-4-0-td4020675.html#a4030597 c. From carlo.defalco at gmail.com Tue Dec 6 01:02:47 2011 From: carlo.defalco at gmail.com (c.) Date: Tue, 6 Dec 2011 08:02:47 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323126662552-4162565.post@n4.nabble.com> References: <28BEF2A2-9B63-4B05-9186-B8C1CBDDC0F0@gmail.com> <1322858649285-4149261.post@n4.nabble.com> <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323126662552-4162565.post@n4.nabble.com> Message-ID: <6698FC62-A9E6-4220-9B5D-1816CC39831C@gmail.com> On 6 Dec 2011, at 00:11, syberraith wrote: > Hey C. > > I got this mostly working, the anonymous function. > > The only problem fully implementing you scheme is getting the anonymous > function to pass the four parameter values to the raw_vel and del_the > functions. > > I had to resort to using some global variables. Here's what I got working. avoiding global variables was the reason why I used function handles in the first place. using function handles you can construct a function whith just one input parameter from one with multiple parameters like this: ## fun is a function that takes two inputs function f = fun (x, p) f = x + p; endfunction ## fix the value of p p = 3; ## specialized_fun is a function of x only specialized_fun = @(x) fun (x, p) ## fix a different value of p p = 2; ## specialized_fun_2 is also a function of x ## but is different from specialized_fun specialized_fun_2 = @(x) fun (x, p) The rough C++ equivalent of this is something like #include class fun { private: const double p; public: fun (const double pin) : p (pin) {}; double operator() (const double x) {return (x+p);}; }; int main (void) { fun specialized_fun (3.0); std::cout << specialized_fun (1.0) << std::endl; fun specialized_fun_2 (2.0); std::cout << specialized_fun_2 (1.0) << std::endl; } c. From pgajdos at suse.cz Tue Dec 6 02:20:58 2011 From: pgajdos at suse.cz (Petr Gajdos) Date: Tue, 6 Dec 2011 09:20:58 +0100 Subject: having issues with qhull support In-Reply-To: <1323127042.79961.YahooMailNeo@web31706.mail.mud.yahoo.com> References: <1323127042.79961.YahooMailNeo@web31706.mail.mud.yahoo.com> Message-ID: <20111206082058.GA16426@laura.suse.cz> On Mon, Dec 05, 2011 at 03:17:22PM -0800, Imam Toufique wrote: > Hi all, > > I am trying to compile octave 3.4.3 in SuSE Linux Enterprise Server 10 64-bit > OS, and it looks like qhull is not happy. I have tried qhull versions, 2003.1, > 2011.2 so far. And do you really need qhull? If yes, then could you please try qhull5 package from science repo: http://download.opensuse.org/repositories/science/SLE_10/ octave is not built there because of missing dependencies, I could try to resolve it eventually. Petr -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From gaikwadpreeti at gmail.com Tue Dec 6 03:42:09 2011 From: gaikwadpreeti at gmail.com (Preeti Gaikwad) Date: Tue, 6 Dec 2011 10:42:09 +0100 Subject: Image analysis Message-ID: Dear all, Could you please let me know, if possible, to do image analysis using octave. I have an image contains random sized pore diameter distribution. starting from 1 micron to 60 or 70 um. I would like to measure those size distribution. Is it possible using octave. can I get some literature about the same. thanks a lot in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From carandraug+dev at gmail.com Tue Dec 6 05:41:54 2011 From: carandraug+dev at gmail.com (=?ISO-8859-1?Q?Carn=EB_Draug?=) Date: Tue, 6 Dec 2011 11:41:54 +0000 Subject: Image analysis In-Reply-To: References: Message-ID: On 6 December 2011 09:42, Preeti Gaikwad wrote: > Dear all, > > ???????????? Could you please let me know, if possible, to do image analysis > using octave. I have an image contains random sized pore diameter > distribution. starting from 1 micron to 60 or 70 um. I would like to measure > those size distribution. Is it possible using octave. can I get some > literature about the same. thanks a lot in advance. That's not trying to learn octave, it's trying to learn image processing. If you already have an algorithm to solve your problem, we can help in writing it in octave. Since I haven't seen your images yet, a guess would be that you'll need to threshold your images (you may need some processing before, maybe a gaussian filter) and then obtain the mask for the individual objects (pores), and check their sizes. You'll probably need the image package from octave-forge. Carn? From heweipeng at gmail.com Tue Dec 6 05:41:01 2011 From: heweipeng at gmail.com (Weipeng He) Date: Tue, 06 Dec 2011 19:41:01 +0800 Subject: How to add non-English characters to figures In-Reply-To: References: <4EDC6623.80001@gmail.com> <4EDCDBF5.90801@gmail.com> Message-ID: <4EDDFF4D.4030401@gmail.com> ? 2011?12?05? 23:44, Pablo Fernandez ??: > > , I want put some (maybe more than 20) text labels beside the > specified points on the figure. (Using function *text*). Maybe it > is not doable to add these labels manually. > I am wondering whether there is some problem with my font manager > or encoding. Or nobody can get it work in Octave? > > > Someone has encountered the same problem(please refer to > http://octave.1599824.n4.nabble.com/Graphic-accents-and-plot-command-in-octave-3-3-53-td3032491.html). > As said in that post, he can get it work in Octave 3.2.4, while it > doesn't work in Octave 3.3.53. > > > Hi! I am new to octave and to this mailing list. > > I think that you need UTF-8 support in gnuplot. Read this: > > http://lists.gnu.org/archive/html/octave-bug-tracker/2010-12/msg00238.html > > I hope this helps. Pablo > Thanks for your advice. I tried plotting Chinese characters in gnuplot. It works fine. I edited ~/.Xresources and ran xrdb -merge according to the instructions in the page you gave. However, octave still don't work. Is there any other setting I have to change? Weipeng -------------- next part -------------- An HTML attachment was scrubbed... URL: From lukshuntim at gmail.com Tue Dec 6 07:43:54 2011 From: lukshuntim at gmail.com (lukshuntim at gmail.com) Date: Tue, 06 Dec 2011 21:43:54 +0800 Subject: How to add non-English characters to figures In-Reply-To: <4EDDFF4D.4030401@gmail.com> References: <4EDC6623.80001@gmail.com> <4EDCDBF5.90801@gmail.com> <4EDDFF4D.4030401@gmail.com> Message-ID: <4EDE1C1A.5070202@gmail.com> On 12/06/2011 07:41 PM, Weipeng He wrote: > ? 2011?12?05? 23:44, Pablo Fernandez ??: >> >> , I want put some (maybe more than 20) text labels beside the >> specified points on the figure. (Using function *text*). Maybe it >> is not doable to add these labels manually. >> I am wondering whether there is some problem with my font manager >> or encoding. Or nobody can get it work in Octave? >> >> >> Someone has encountered the same problem(please refer to >> >> http://octave.1599824.n4.nabble.com/Graphic-accents-and-plot-command-in-octave-3-3-53-td3032491.html). >> >> As said in that post, he can get it work in Octave 3.2.4, while it >> doesn't work in Octave 3.3.53. >> >> >> Hi! I am new to octave and to this mailing list. >> >> I think that you need UTF-8 support in gnuplot. Read this: >> >> http://lists.gnu.org/archive/html/octave-bug-tracker/2010-12/msg00238.html >> >> >> I hope this helps. Pablo >> > > Thanks for your advice. > > I tried plotting Chinese characters in gnuplot. It works fine. > I edited ~/.Xresources and ran xrdb -merge according to the instructions > in the page you gave. However, octave still don't work. > > Is there any other setting I have to change? > > Weipeng Hi, In (a self-compiled) octave 3.4.3 in debian/sid, I can see the chinese characters if the graphics backed gnuplot is used, but not with the fltk backend. It seems to require "set term wxt enhanced" in ~/.gnuplot as well. With the wxt terminal, gnuplot uses the fontconfig mechanism. See if it works for you. Regards, ST -- From mmt200575 at yahoo.com Tue Dec 6 10:36:27 2011 From: mmt200575 at yahoo.com (Mircea Toma) Date: Tue, 6 Dec 2011 08:36:27 -0800 (PST) Subject: how to instal, or upgrade, the latest octave version on windows 7 Message-ID: <1323189387.37727.YahooMailNeo@web112014.mail.gq1.yahoo.com> How to instal, or upgrade, the latest octave version on Windows 7? Thanks for any help. Mircea -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordigh at octave.org Tue Dec 6 10:54:03 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Tue, 6 Dec 2011 11:54:03 -0500 Subject: Search string in cell string? Message-ID: How can you get the index of where in a cell string a specified search term occurs, if it does at all? Assuming the cell string were ordered, you could binary search. But how can you compare strings ASCIIbetically? The strcmp function only gives you equality or not, not order. So what can be done? - Jordi G. H. From marco.atzeri at gmail.com Tue Dec 6 10:54:20 2011 From: marco.atzeri at gmail.com (marco atzeri) Date: Tue, 06 Dec 2011 17:54:20 +0100 Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <1323189387.37727.YahooMailNeo@web112014.mail.gq1.yahoo.com> References: <1323189387.37727.YahooMailNeo@web112014.mail.gq1.yahoo.com> Message-ID: <4EDE48BC.8070308@gmail.com> On 12/6/2011 5:36 PM, Mircea Toma wrote: > How to instal, or upgrade, the latest octave version on Windows 7? > Thanks for any help. > Mircea > same as for other windows version http://octave.org/wiki/index.php?title=Octave_for_Windows Regards Marco From WKrekeler at cleanearthtech.com Tue Dec 6 11:20:13 2011 From: WKrekeler at cleanearthtech.com (William Krekeler) Date: Tue, 6 Dec 2011 17:20:13 +0000 Subject: Search string in cell string? In-Reply-To: References: Message-ID: <6765D38A4FDFC347A2934D0D5AB0F1AB684E7987@CETEX1.cleanearth.ceprivate> -----Original Message----- From: help-octave-bounces at octave.org [mailto:help-octave-bounces at octave.org] On Behalf Of Jordi Guti?rrez Hermoso Sent: Tuesday, December 06, 2011 10:54 AM To: Octave-help Subject: Search string in cell string? How can you get the index of where in a cell string a specified search term occurs, if it does at all? Assuming the cell string were ordered, you could binary search. But how can you compare strings ASCIIbetically? The strcmp function only gives you equality or not, not order. So what can be done? - Jordi G. H. _______________________________________________ Help-octave mailing list Help-octave at octave.org https://mailman.cae.wisc.edu/listinfo/help-octave Jordi, It took me awhile to figure this out some time ago. You may have to modify a little for you application. Example, depending upon your input the {} may not be needed. Note, this works in ML, I'm pretty sure it should also work in Octave. indexes = find( cellfun( 'isempty', regexpi( {cellStringArray}, matchString ) ) == 0 ); William Krekeler From jordigh at octave.org Tue Dec 6 11:44:23 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Tue, 6 Dec 2011 12:44:23 -0500 Subject: Search string in cell string? In-Reply-To: <6765D38A4FDFC347A2934D0D5AB0F1AB684E7987@CETEX1.cleanearth.ceprivate> References: <6765D38A4FDFC347A2934D0D5AB0F1AB684E7987@CETEX1.cleanearth.ceprivate> Message-ID: 2011/12/6 William Krekeler : > It took me awhile to figure this out some time ago. You may have to > modify a little for you application. Example, depending upon your > input the {} may not be needed. Note, this works in ML, I'm pretty > sure it should also work in Octave. > > indexes = find( cellfun( 'isempty', regexpi( {cellStringArray}, matchString ) ) == 0 ); Well, for this approach, this also works: idx = find(cellfun(@(x) strcmp(x, match_string), cell_string)) which seems simpler to me. However, I should have been more specific. Suppose you have a large ordered dictionary, where binary search is possible. How can you do binary search with strings? - Jordi G. H. From pr.nienhuis at hccnet.nl Tue Dec 6 11:52:31 2011 From: pr.nienhuis at hccnet.nl (Philip Nienhuis) Date: Tue, 06 Dec 2011 18:52:31 +0100 Subject: regexp question In-Reply-To: <6765D38A4FDFC347A2934D0D5AB0F1AB684E7858@CETEX1.cleanearth.ceprivate> References: <1323121205726-4162260.post@n4.nabble.com> <6765D38A4FDFC347A2934D0D5AB0F1AB684E7858@CETEX1.cleanearth.ceprivate> Message-ID: <4EDE565F.30709@hccnet.nl> Sergei, Wiliam, 2 answers in one post: Sergei Steshenko wrote: > I guess you need 'aa' surrounded by not 'a'. Octave uses PCRE; I am not familiar with nuances of Octave PCRE usage; in Perl I would write the regular expression this way: > > [^a]aa[^a] > > and if/when it matches, it returns pointer to the character preceding the 'aa' substring, i.e. in case of 'baab' it should return pointer to the first 'b'. Thanks, Sergei. I already tried this and found it'll work, but unfortunately not in a more complicated situation: octave:35> tststr3 = 'aa aaaaa baa' ## Patterns at start & end tststr3 = aa aaaaa baa octave:36> regexp (tststr3, "[^a]aa[^a]") ans = [](1x0) ## Hey...... but octave:41> tststr4 = ' aa aaaaa baa ' ## Note spaces at start and end tststr4 = aa aaaaa baa octave:42> regexp (tststr4, "[^a]aa[^a]") ans = 1 11 ... so it doesn't catch the pattern at start and end of line. William Krekeler wrote: > Sorry I responded too soon. To only get the second shorter set of aa the following works. > > indexes = regexp (tststr, "a{2,}"); > indexes2 = regexp (tststr, "a{3,}"); > desiredIndex = setxor( indexes, indexes2 ) Thanks. octave:37> indexes = regexp (tststr3, "a{2,}") indexes = 1 4 11 octave:38> indexes2 = regexp (tststr3, "a{3,}") indexes2 = 4 octave:39> desiredIndex = setxor( indexes, indexes2 ) desiredIndex = 1 11 ... so your trick seems to catch the right ones. I'm a bit concerned that this solution will be too time-consuming. What I actually want to do is check format strings from a spreadsheet which potentially may involve several tens of thousands strings (which are not much more complicated than the example above). The following script: tic tststr3 = 'aa aaaaa baa'; for ii=1:50000 indexes = regexp (tststr3, "a{2,}"); indexes2 = regexp (tststr3, "a{3,}"); desiredIndex = setxor( indexes, indexes2 ); endfor toc ...says: "Elapsed time is 33.1 seconds." A script using strfind: tic tststr3 = 'aa aaaaa baa'; for ii=1:50000 idx1 = strfind (tststr3, 'aa'); idx2 = strfind (tststr3, 'aaa'); idx2 = strfind (tststr3, 'aaaa'); idx2 = strfind (tststr3, 'aaaaa'); endfor toc ...gives: "Elapsed time is 2.27 seconds." so a solution based on strfind() seems more preferrable. (findstr() takes about 68 secs, I suspect it is based on regexp()). Thanks again, Philip From olaf.till at uni-jena.de Tue Dec 6 11:55:28 2011 From: olaf.till at uni-jena.de (Olaf Till) Date: Tue, 6 Dec 2011 18:55:28 +0100 Subject: Search string in cell string? In-Reply-To: References: Message-ID: <20111206175528.GA14748@olaf> On Tue, Dec 06, 2011 at 11:54:03AM -0500, Jordi Guti?rrez Hermoso wrote: > How can you get the index of where in a cell string a specified search > term occurs, if it does at all? > > Assuming the cell string were ordered, you could binary search. But > how can you compare strings ASCIIbetically? The strcmp function only > gives you equality or not, not order. > > So what can be done? > > - Jordi G. H. Have you looked at the 'lookup' function? Olaf From jordigh at octave.org Tue Dec 6 12:16:04 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Tue, 6 Dec 2011 13:16:04 -0500 Subject: Search string in cell string? In-Reply-To: <20111206175528.GA14748@olaf> References: <20111206175528.GA14748@olaf> Message-ID: 2011/12/6 Olaf Till : > On Tue, Dec 06, 2011 at 11:54:03AM -0500, Jordi Guti?rrez Hermoso wrote: >> How can you get the index of where in a cell string a specified search >> term occurs, if it does at all? >> >> Assuming the cell string were ordered, you could binary search. But >> how can you compare strings ASCIIbetically? The strcmp function only >> gives you equality or not, not order. >> >> So what can be done? >> >> - Jordi G. H. > > Have you looked at the 'lookup' function? Perfect, thanks. I had only used it for vectors. I didn't realise it also worked for cell strings. - Jordi G. H. From tmacchant at yahoo.co.jp Tue Dec 6 12:02:50 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Wed, 7 Dec 2011 03:02:50 +0900 (JST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <1323189387.37727.YahooMailNeo@web112014.mail.gq1.yahoo.com> Message-ID: <41111.71165.qm@web100319.mail.kks.yahoo.co.jp> Hello Please see http://wiki.octave.org/wiki.pl?OctaveForWindows 1.3. Octave-3.4.3-mingw + octaveforge pkgs Please care that this distribution does not have automated installer. You have to install it according the instruction on the page. Regards Tatsuro --- On Wed, 2011/12/7, Mircea Toma wrote: > > > How to instal, or upgrade, the latest octave version on Windows 7? > Thanks for any help. > Mircea From sergstesh at yahoo.com Tue Dec 6 12:27:07 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Tue, 6 Dec 2011 10:27:07 -0800 (PST) Subject: regexp question In-Reply-To: <4EDE565F.30709@hccnet.nl> References: <1323121205726-4162260.post@n4.nabble.com> <6765D38A4FDFC347A2934D0D5AB0F1AB684E7858@CETEX1.cleanearth.ceprivate> <4EDE565F.30709@hccnet.nl> Message-ID: <1323196027.51391.YahooMailNeo@web112107.mail.gq1.yahoo.com> ----- Original Message ----- > From: Philip Nienhuis > To: William Krekeler > Cc: "help-octave at octave.org" ; sergstesh at yahoo.com > Sent: Tuesday, December 6, 2011 7:52 PM > Subject: Re: regexp question > > Sergei, Wiliam, > > 2 answers in one post: > > Sergei Steshenko wrote: >> I guess you need 'aa' surrounded by not 'a'. Octave uses > PCRE; I am not familiar with nuances of Octave PCRE usage; in Perl I would write > the regular expression this way: >> >> [^a]aa[^a] >> >> and if/when it matches, it returns pointer to the character preceding the > 'aa' substring, i.e. in case of 'baab' it should return pointer > to the first 'b'. > > Thanks, Sergei. I already tried this and found it'll work, but unfortunately > not in a more complicated situation: > > octave:35> tststr3 = 'aa aaaaa baa'? ? ## Patterns at start & > end > tststr3 = aa aaaaa baa > octave:36> regexp (tststr3, "[^a]aa[^a]") > ans = [](1x0)? ? ? ? ? ? ? ? ? ? ? ? ? ## Hey...... > > but > octave:41> tststr4 = ' aa aaaaa baa '? ## Note spaces at start and > end > tststr4 =? aa aaaaa baa > octave:42> regexp (tststr4, "[^a]aa[^a]") > ans = > ? ? 1? 11 > > ... so it doesn't catch the pattern at start and end of line. > [snip] I still suggest the Perl regular expressions tutorials/documentation I gave links to. Straightforwardly the regular expression can be extended to (in Perl syntax) : (^|[^a])(aa)([^a]|$) #? $1??? $2??? $3 . Not inside character class '^' means line beginning, and '$' means line end. In Perl terms the 'aa' part you are interest in is in $2. Regards, ? Sergei. From pr.nienhuis at hccnet.nl Tue Dec 6 14:00:13 2011 From: pr.nienhuis at hccnet.nl (Philip Nienhuis) Date: Tue, 06 Dec 2011 21:00:13 +0100 Subject: regexp question In-Reply-To: <1323196027.51391.YahooMailNeo@web112107.mail.gq1.yahoo.com> References: <1323121205726-4162260.post@n4.nabble.com> <6765D38A4FDFC347A2934D0D5AB0F1AB684E7858@CETEX1.cleanearth.ceprivate> <4EDE565F.30709@hccnet.nl> <1323196027.51391.YahooMailNeo@web112107.mail.gq1.yahoo.com> Message-ID: <4EDE744D.9060802@hccnet.nl> Sergei Steshenko wrote: > > > > > ----- Original Message ----- >> From: Philip Nienhuis >> To: William Krekeler >> Cc: "help-octave at octave.org"; sergstesh at yahoo.com >> Sent: Tuesday, December 6, 2011 7:52 PM >> Subject: Re: regexp question >> >> Sergei, Wiliam, >> >> 2 answers in one post: >> >> Sergei Steshenko wrote: >>> I guess you need 'aa' surrounded by not 'a'. Octave uses >> PCRE; I am not familiar with nuances of Octave PCRE usage; in Perl I would write >> the regular expression this way: >>> >>> [^a]aa[^a] >>> >>> and if/when it matches, it returns pointer to the character preceding the >> 'aa' substring, i.e. in case of 'baab' it should return pointer >> to the first 'b'. >> >> Thanks, Sergei. I already tried this and found it'll work, but unfortunately >> not in a more complicated situation: >> >> octave:35> tststr3 = 'aa aaaaa baa' ## Patterns at start& >> end >> tststr3 = aa aaaaa baa >> octave:36> regexp (tststr3, "[^a]aa[^a]") >> ans = [](1x0) ## Hey...... >> >> but >> octave:41> tststr4 = ' aa aaaaa baa ' ## Note spaces at start and >> end >> tststr4 = aa aaaaa baa >> octave:42> regexp (tststr4, "[^a]aa[^a]") >> ans = >> 1 11 >> >> ... so it doesn't catch the pattern at start and end of line. >> > [snip] > > I still suggest the Perl regular expressions tutorials/documentation I gave links to. > > Straightforwardly the regular expression can be extended to (in Perl syntax) : > > (^|[^a])(aa)([^a]|$) > # $1 $2 $3 > . > > Not inside character class '^' means line beginning, and '$' means line end. > > In Perl terms the 'aa' part you are interest in is in $2. Thank you, Sergei. How do I get $2? octave-3.5.0+:1> tststr3 = 'aa aaaaa baa' # No spaces at ends tststr3 = aa aaaaa baa octave-3.5.0+:2> regexp (tststr3, "(^|[^a])(aa)([^a]|$)") ans = 1 10 octave-3.5.0+:3> tststr3(1) ans = a octave-3.5.0+:4> tststr3(10) ans = b ... so there's some extra interpretation involved to get the proper position. (Little wonder as line beginnings/-ends have no length.) Anyway, I think a regexp() solution is doomed here as its execution time is -currently- excessive (see my previous post). A while ago Rik wrote that regexprep() would be in the order of 20 X slower than strrep. The script in my previous post confirms this relative slowness of regexp vs. compiled script functions. In conclusion, I think I'll try to cook up something with strfind(). Philip From jcw at speakeasy.net Mon Dec 5 19:31:52 2011 From: jcw at speakeasy.net (jcw at speakeasy.net) Date: Mon, 05 Dec 2011 17:31:52 PST Subject: Direct Integration of Matrices Message-ID: <54857.1323135112@speakeasy.net> I am working on mechanical systems dynamics. I have a system state equation in the time domain: x' = Ax + Bu Where: A is (n x n) and is known x is (n x 1) is unknown B is (n x r) is known u is (r x 1) is known u = u(t) and is the input to the system I realize that I could do this one row at a time by hand (so to speak), but I am trying to generalize to large-ish values of n. My dynamics text tells me that I can solve the system state, x, by direct integration of x'. x = x_0 + INT ( Ax + Bu ) dt Does octave provide a method of solving this matrix of diff eq's directly? Nothing stood out as the function I needed while reading the docs. The one thing that seemed pertinent is "Octave does not have built-in functions for computing the integral of functions of multiple variables directly." Am I stuck writing my own loops for this problem? I've done some numerical integration in the past. I'd like to use a built-in method if one is available. Don't assume I know what I'm doing. It's been a while since college. I may well have overlooked something obvious to a person who has lots of practice. Thanks, Jason C. Wells From doganerbahar at gmail.com Tue Dec 6 03:21:17 2011 From: doganerbahar at gmail.com (dogan_79) Date: Tue, 6 Dec 2011 01:21:17 -0800 (PST) Subject: lsode question Message-ID: <1323163277507-4164020.post@n4.nabble.com> Hello, I am kind of new to Octave, I wrote the following code to solve the set of a diff. equations with lsode. The thing is it works for a different set of parameters like it gives result pretty fast for t = linspace(0,3.0,4000) but if I change it to t = linspace(0,3.2,4000) it takes forever to give anything, kind of freezes. Is this a bug or am I doing something wrong. The code is as follows: function vdot = func (v,t) g = 9.80; R = 10; mu = 0.8; vdot(1) = v(2); vdot(2) = (-1*g/R)*sin(v(1))-sign(v(2))*((g*mu/R)*cos(v(1))+mu*v(2)*v(2)); endfunction v_0 = 0; R = 10; theta0 = 90; v0 = [theta0*3.141592654/180; v_0/R]; t = linspace(0,3.0,4000); v = lsode ("func", v0, t); plot (t', v(1:4000,1)) Thank you very much in advance, Dogan Erbahar Physics PhD canditate from Turkey -- View this message in context: http://octave.1599824.n4.nabble.com/lsode-question-tp4164020p4164020.html Sent from the Octave - General mailing list archive at Nabble.com. From vlad718 at gmail.com Tue Dec 6 13:41:27 2011 From: vlad718 at gmail.com (vlad777) Date: Tue, 6 Dec 2011 11:41:27 -0800 (PST) Subject: Prompt line number Message-ID: <1323200487362-4166202.post@n4.nabble.com> For example, my octave prompt is showing line number 7 octave...:7> Is there a way to delete 4th line so that now it shows 6. Or can I cancel all my previous lines and reset this counter? Many Thanks -- View this message in context: http://octave.1599824.n4.nabble.com/Prompt-line-number-tp4166202p4166202.html Sent from the Octave - General mailing list archive at Nabble.com. From pr.nienhuis at hccnet.nl Tue Dec 6 14:13:12 2011 From: pr.nienhuis at hccnet.nl (PhilipNienhuis) Date: Tue, 6 Dec 2011 12:13:12 -0800 (PST) Subject: Search string in cell string? In-Reply-To: References: Message-ID: <1323202392126-4166283.post@n4.nabble.com> Jordi Guti?rrez Hermoso-2 wrote > > How can you get the index of where in a cell string a specified search > term occurs, if it does at all? > > Assuming the cell string were ordered, you could binary search. But > how can you compare strings ASCIIbetically? The strcmp function only > gives you equality or not, not order. > > So what can be done? > (Hopefully I interpret your question correctly) Many string functions operate on cell arrays too. And you can define your own cell function. In the dev version of strread.m Rik and I have included several examples, mine may be a bit ugly (as I'm no guru like Rik) but They Work. See esp. lines 380- 570. Moreover: octave-3.5.0+:13> 'a' < 'b' ans = 1 octave-3.5.0+:14> 'a' > 'b' ans = 0 so you can directly compare characters. (It might be more neat to cast them to e.g., int8) Philip -- View this message in context: http://octave.1599824.n4.nabble.com/Search-string-in-cell-string-tp4165511p4166283.html Sent from the Octave - General mailing list archive at Nabble.com. From shermanjj at gmail.com Tue Dec 6 14:57:41 2011 From: shermanjj at gmail.com (James Sherman Jr.) Date: Tue, 6 Dec 2011 15:57:41 -0500 Subject: Prompt line number In-Reply-To: <1323200487362-4166202.post@n4.nabble.com> References: <1323200487362-4166202.post@n4.nabble.com> Message-ID: On Tue, Dec 6, 2011 at 2:41 PM, vlad777 wrote: > For example, my octave prompt is showing line number 7 octave...:7> > Is there a way to delete 4th line so that now it shows 6. > Or can I cancel all my previous lines and reset this counter? > > Many Thanks > > Hi, First, I don't believe it is possible. Second, why would you want to? The counter (AFAIK) is there simply as a way to identify the line you're on usually when debugging something. Particularly at the prompt, it doesn't serve much of a purpose (I think you can hide it, but I don't know the details). I think you have a misconception of how the prompt works. After you type in a command, say: octave:1> a= 5; Then octave creates a variable called "a" that is assigned the value 5. Then that variable is available to use as you see fit, but the line itself has executed and gone (well except as an entry in the history). You could undo the line in some sense by clearing the variable like: octave:2> clear a; but this isn't what (I think) you mean by "deleting" a line. Perhaps you could clarify what you're trying to do and why? -------------- next part -------------- An HTML attachment was scrubbed... URL: From vlad718 at gmail.com Tue Dec 6 15:18:13 2011 From: vlad718 at gmail.com (vlad777) Date: Tue, 6 Dec 2011 13:18:13 -0800 (PST) Subject: Prompt line number In-Reply-To: References: <1323200487362-4166202.post@n4.nabble.com> Message-ID: <1323206293480-4166508.post@n4.nabble.com> Yes you are right, I am just starting learning octave and how this prompt works. Thing is octave remembers what I entered previously so there must be a way to rewrite or delete it from octaves memory. I just want to learn about prompt before I use editor(notepad++) for coding. There are few prompts I encountered. DOS type where command is executed and nothing is related to the next command. Old Commodore prompt which remembers everything by line number, and you manipulate everything by line number. (i am not that old though, and i program in C++) -- View this message in context: http://octave.1599824.n4.nabble.com/Prompt-line-number-tp4166202p4166508.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at octave.org Tue Dec 6 15:23:18 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Tue, 6 Dec 2011 16:23:18 -0500 Subject: Prompt line number In-Reply-To: <1323206293480-4166508.post@n4.nabble.com> References: <1323200487362-4166202.post@n4.nabble.com> <1323206293480-4166508.post@n4.nabble.com> Message-ID: On 6 December 2011 16:18, vlad777 wrote: > I just want to learn about prompt before I use editor(notepad++) for coding. It's a readline prompt. Does this documentation help? http://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html - Jordi G. H. From vlad718 at gmail.com Tue Dec 6 15:36:20 2011 From: vlad718 at gmail.com (vlad777) Date: Tue, 6 Dec 2011 13:36:20 -0800 (PST) Subject: Prompt line number In-Reply-To: References: <1323200487362-4166202.post@n4.nabble.com> <1323206293480-4166508.post@n4.nabble.com> Message-ID: <1323207380752-4166579.post@n4.nabble.com> I guess my main question is: How do I manipulate objects in memory created on previous lines? (BTW many thanks for replies) -- View this message in context: http://octave.1599824.n4.nabble.com/Prompt-line-number-tp4166202p4166579.html Sent from the Octave - General mailing list archive at Nabble.com. From shermanjj at gmail.com Tue Dec 6 15:44:37 2011 From: shermanjj at gmail.com (James Sherman Jr.) Date: Tue, 6 Dec 2011 16:44:37 -0500 Subject: Prompt line number In-Reply-To: <1323207380752-4166579.post@n4.nabble.com> References: <1323200487362-4166202.post@n4.nabble.com> <1323206293480-4166508.post@n4.nabble.com> <1323207380752-4166579.post@n4.nabble.com> Message-ID: On Tue, Dec 6, 2011 at 4:36 PM, vlad777 wrote: > I guess my main question is: > > How do I manipulate objects in memory created on previous lines? > > (BTW many thanks for replies) > > -- > Think of it as writing code one line at a time: octave-3.2.4.exe:1> a = 5 a = 5 octave-3.2.4.exe:2> b = a^2 b = 25 Note that as you want to code anything substantial, you'll want to put all the lines you want to execute in a script in a file, say foo.m with the lines in foo.m: a = 5; b = a^2; Then when you type "foo", it will execute those lines just like you had typed them in. Hope this helps. -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.dastew at gmail.com Tue Dec 6 15:46:15 2011 From: doug.dastew at gmail.com (Doug Stewart) Date: Tue, 6 Dec 2011 16:46:15 -0500 Subject: Prompt line number In-Reply-To: <1323207380752-4166579.post@n4.nabble.com> References: <1323200487362-4166202.post@n4.nabble.com> <1323206293480-4166508.post@n4.nabble.com> <1323207380752-4166579.post@n4.nabble.com> Message-ID: If you type whos at the prompt you can see all the variable that you have previously made. All these variables are still there ready to use again. If you really want to remove one or more of them try the clear command. type help clear Doug On Tue, Dec 6, 2011 at 4:36 PM, vlad777 wrote: > I guess my main question is: > > How do I manipulate objects in memory created on previous lines? > > (BTW many thanks for replies) > > -- > View this message in context: > http://octave.1599824.n4.nabble.com/Prompt-line-number-tp4166202p4166579.html > Sent from the Octave - General mailing list archive at Nabble.com. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > -- DAS https://linuxcounter.net/user/206392.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From vlad718 at gmail.com Tue Dec 6 15:57:09 2011 From: vlad718 at gmail.com (vlad777) Date: Tue, 6 Dec 2011 13:57:09 -0800 (PST) Subject: Prompt line number In-Reply-To: References: <1323200487362-4166202.post@n4.nabble.com> <1323206293480-4166508.post@n4.nabble.com> <1323207380752-4166579.post@n4.nabble.com> Message-ID: <1323208629288-4166658.post@n4.nabble.com> Yes whos and clear seem to do it. Clear deallocates and deletes so variable doesn't show up again in whos. -- View this message in context: http://octave.1599824.n4.nabble.com/Prompt-line-number-tp4166202p4166658.html Sent from the Octave - General mailing list archive at Nabble.com. From pathematica at gmail.com Tue Dec 6 16:43:59 2011 From: pathematica at gmail.com (pathematica) Date: Tue, 6 Dec 2011 14:43:59 -0800 (PST) Subject: Prompt line number In-Reply-To: <1323208629288-4166658.post@n4.nabble.com> References: <1323200487362-4166202.post@n4.nabble.com> <1323206293480-4166508.post@n4.nabble.com> <1323207380752-4166579.post@n4.nabble.com> <1323208629288-4166658.post@n4.nabble.com> Message-ID: <1323211439299-4166800.post@n4.nabble.com> You can change the prompt and remove the line numbers, if you wanted to do that for some reason. You need the command: PS1('What you put here becomes the prompt') This might be illustrated in the following lines. For each case, I have made the change then pressed return once to see the new prompt without a command. Note the requirement for quotation marks, and for the need to insert spaces or other characters, such as the >, if required (I forgot with one of the changes so that the prompt collided with the command, which is obviously not very sensible). octave:1> PS1('>') > >PS1('Octave rules') Octave rules Octave rulesPS1('Octave rules>') Octave rules> Octave rules>PS1('Octave rules >') Octave rules > Octave rules >PS1('>>') >> ----- However good you think Octave is, it's much, much better. -- View this message in context: http://octave.1599824.n4.nabble.com/Prompt-line-number-tp4166202p4166800.html Sent from the Octave - General mailing list archive at Nabble.com. From carbajal at ifi.uzh.ch Tue Dec 6 18:20:49 2011 From: carbajal at ifi.uzh.ch (Juan Pablo Carbajal) Date: Wed, 7 Dec 2011 01:20:49 +0100 Subject: lsode question In-Reply-To: <1323163277507-4164020.post@n4.nabble.com> References: <1323163277507-4164020.post@n4.nabble.com> Message-ID: On Tue, Dec 6, 2011 at 10:21 AM, dogan_79 wrote: > Hello, I am kind of new to Octave, I wrote the following code to solve the > set of a diff. equations with lsode. > The thing is it works for a different set of parameters like it gives result > pretty fast for t = linspace(0,3.0,4000) but if I change it to t = > linspace(0,3.2,4000) it takes forever to give anything, kind of freezes. Is > this a bug or am I doing something wrong. The code is as follows: > > function vdot = func (v,t) > g = 9.80; > R = 10; > mu = 0.8; > vdot(1) = v(2); > vdot(2) = (-1*g/R)*sin(v(1))-sign(v(2))*((g*mu/R)*cos(v(1))+mu*v(2)*v(2)); > endfunction > > v_0 = 0; > R = 10; > theta0 = 90; > v0 = [theta0*3.141592654/180; v_0/R]; > t = linspace(0,3.0,4000); > v = lsode ("func", v0, t); > plot (t', v(1:4000,1)) > > Thank you very much in advance, > Dogan Erbahar > Physics PhD canditate from Turkey > > -- > View this message in context: http://octave.1599824.n4.nabble.com/lsode-question-tp4164020p4164020.html > Sent from the Octave - General mailing list archive at Nabble.com. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave Your dynamical system is quite nonlinear. First, give just initial and final value to the time vector and let lsode choose the discretization t = [0 3] and t=[0 3.2]. Note that sine the period is longer and you are suing the same number of steps you are indeed using a bigger time step fr the second case. Second, Have you tried to plot the solutions you get as you approach the end point 3.2? Remember that the existence and uniqueness of a solution for a smooth nonlinear system is defined on an interval of radius epsilon from the initial condition, not necessarily for all times. Of course, this is very system dependent. -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Z?rich http://ailab.ifi.uzh.ch/carbajal/ From carbajal at ifi.uzh.ch Tue Dec 6 18:21:54 2011 From: carbajal at ifi.uzh.ch (Juan Pablo Carbajal) Date: Wed, 7 Dec 2011 01:21:54 +0100 Subject: Direct Integration of Matrices In-Reply-To: <54857.1323135112@speakeasy.net> References: <54857.1323135112@speakeasy.net> Message-ID: On Tue, Dec 6, 2011 at 2:31 AM, wrote: > I am working on mechanical systems dynamics. ?I have a system state equation in > the time domain: > > ? ? ? ?x' = Ax + Bu > > Where: > ? ? ? ?A is (n x n) and is known > ? ? ? ?x is (n x 1) is unknown > ? ? ? ?B is (n x r) is known > ? ? ? ?u is (r x 1) is known u = u(t) and is the input to the system > > I realize that I could do this one row at a time by hand (so to speak), but I am > trying to generalize to large-ish values of n. > > My dynamics text tells me that I can solve the system state, x, by direct > integration of x'. > > ? ? ? ?x = x_0 + INT ( Ax + Bu ) dt > > Does octave provide a method of solving this matrix of diff eq's directly? > Nothing stood out as the function I needed while reading the docs. ?The one thing > that seemed pertinent is > > ? ? ? ?"Octave does not have built-in functions for computing the integral of functions > of multiple variables directly." > > Am I stuck writing my own loops for this problem? ?I've done some numerical > integration in the past. ?I'd like to use a built-in method if one is available. > Don't assume I know what I'm doing. ?It's been a while since college. I may well > have overlooked something obvious to a person who has lots of practice. > > Thanks, > Jason C. Wells > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave check lsode and the odepkg package. -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Z?rich http://ailab.ifi.uzh.ch/carbajal/ From syberraith at yahoo.com Tue Dec 6 21:04:32 2011 From: syberraith at yahoo.com (syberraith) Date: Tue, 6 Dec 2011 19:04:32 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <6698FC62-A9E6-4220-9B5D-1816CC39831C@gmail.com> References: <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323126662552-4162565.post@n4.nabble.com> <6698FC62-A9E6-4220-9B5D-1816CC39831C@gmail.com> Message-ID: <1323227072770-4167474.post@n4.nabble.com> I was thinking you used the anonymous function to avoid the repeating the code of the process function. I understand what your showing there, although I've tried it a number of different ways, and octave keeps giving me undefined errs. So when I put this into a script and try to run it: a = 2; b = 3; one = @(x) a.*x + b; two = @(x) a.^2.*x + b; function res = calculate ( f, v ) res = f(v) endfunction calculate (one, 5) calculate (two, 4) I get this: error: `a' undefined near line 4 column 12 error: evaluating binary operator `.*' near line 4, column 13 error: evaluating binary operator `+' near line 4, column 17 error: called from `?unknown?' error: evaluating assignment expression near line 8, column 8 error: called from `calculate' error: near line 11 of file `/home/fred/octave/test4.m' octave:1> I read that all variables in the next higher scope are supposed to be available to the anonymous function. Although it seems the next higher scope in this case is the scope of the function calculate rather then the the promary scope of the script itself. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4167474.html Sent from the Octave - General mailing list archive at Nabble.com. From syberraith at yahoo.com Tue Dec 6 21:38:28 2011 From: syberraith at yahoo.com (syberraith) Date: Tue, 6 Dec 2011 19:38:28 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323227072770-4167474.post@n4.nabble.com> References: <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323126662552-4162565.post@n4.nabble.com> <6698FC62-A9E6-4220-9B5D-1816CC39831C@gmail.com> <1323227072770-4167474.post@n4.nabble.com> Message-ID: <1323229108295-4167564.post@n4.nabble.com> Even this fails to work: a = 2; b = 3; one = @(x) a.*x + b; two = @(x) a.^2.*x + b; one(4) two(5) error: `a' undefined near line 3 column 12 error: evaluating binary operator `.*' near line 3, column 13 error: evaluating binary operator `+' near line 3, column 17 error: called from `?unknown?' error: near line 5 of file `/home/fred/octave/test4.m' -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4167564.html Sent from the Octave - General mailing list archive at Nabble.com. From syberraith at yahoo.com Tue Dec 6 21:44:48 2011 From: syberraith at yahoo.com (syberraith) Date: Tue, 6 Dec 2011 19:44:48 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323229108295-4167564.post@n4.nabble.com> References: <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323126662552-4162565.post@n4.nabble.com> <6698FC62-A9E6-4220-9B5D-1816CC39831C@gmail.com> <1323227072770-4167474.post@n4.nabble.com> <1323229108295-4167564.post@n4.nabble.com> Message-ID: <1323229488358-4167575.post@n4.nabble.com> BTW, I'm running ver 2.1.73. I guess that's it. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4167575.html Sent from the Octave - General mailing list archive at Nabble.com. From wnyrodeo at yahoo.com Tue Dec 6 23:07:49 2011 From: wnyrodeo at yahoo.com (Imam Toufique) Date: Tue, 6 Dec 2011 21:07:49 -0800 (PST) Subject: having issues with qhull support In-Reply-To: <20111206082058.GA16426@laura.suse.cz> References: <1323127042.79961.YahooMailNeo@web31706.mail.mud.yahoo.com> <20111206082058.GA16426@laura.suse.cz> Message-ID: <1323234469.10431.YahooMailNeo@web31707.mail.mud.yahoo.com> I have tried using the version you specified, I had to compile it from the source (rpm), but that did not help.? ?I still get this error: checking qhull/qhull_a.h usability... no checking qhull/qhull_a.h presence... yes configure: WARNING: qhull/qhull_a.h: present but cannot be compiled configure: WARNING: qhull/qhull_a.h:???? check for missing prerequisite headers? configure: WARNING: qhull/qhull_a.h: see the Autoconf documentation configure: WARNING: qhull/qhull_a.h:???? section "Present But Cannot Be Compiled" configure: WARNING: qhull/qhull_a.h: proceeding with the compiler's result configure: WARNING:???? ## ------------------------------------------ ## configure: WARNING:???? ## Report this to http://octave.org/bugs.html ## configure: WARNING:???? ## ------------------------------------------ ## checking for qhull/qhull_a.h... no configure: WARNING: Qhull library not found -- this will result in loss of functionality of some geometry functions. comments?? What exactly do I loose if I did not use qhull? ? Regards, Imam Toufique From: Petr Gajdos >To: Imam Toufique >Cc: "help-octave at octave.org" >Sent: Tuesday, December 6, 2011 12:20 AM >Subject: Re: having issues with qhull support > >On Mon, Dec 05, 2011 at 03:17:22PM -0800, Imam Toufique wrote: >> Hi all, >> >> I am trying to compile octave 3.4.3 in SuSE Linux Enterprise Server 10 64-bit >> OS, and it looks like qhull is not happy.? I have tried qhull versions, 2003.1, >> 2011.2 so far. > >And do you really need qhull? > >If yes, then could you please try qhull5 package from science repo: > >http://download.opensuse.org/repositories/science/SLE_10/ > >octave is not built there because of missing dependencies, I could try >to resolve it eventually. > >Petr > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tshores1 at math.unl.edu Tue Dec 6 23:28:24 2011 From: tshores1 at math.unl.edu (Thomas Shores) Date: Tue, 06 Dec 2011 23:28:24 -0600 Subject: lsode question In-Reply-To: References: <1323163277507-4164020.post@n4.nabble.com> Message-ID: <4EDEF978.6060708@math.unl.edu> On 12/06/2011 06:20 PM, Juan Pablo Carbajal wrote: > On Tue, Dec 6, 2011 at 10:21 AM, dogan_79 wrote: >> Hello, I am kind of new to Octave, I wrote the following code to solve the >> set of a diff. equations with lsode. >> The thing is it works for a different set of parameters like it gives result >> pretty fast for t = linspace(0,3.0,4000) but if I change it to t = >> linspace(0,3.2,4000) it takes forever to give anything, kind of freezes. Is >> this a bug or am I doing something wrong. The code is as follows: >> >> function vdot = func (v,t) >> g = 9.80; >> R = 10; >> mu = 0.8; >> vdot(1) = v(2); >> vdot(2) = (-1*g/R)*sin(v(1))-sign(v(2))*((g*mu/R)*cos(v(1))+mu*v(2)*v(2)); >> endfunction >> >> v_0 = 0; >> R = 10; >> theta0 = 90; >> v0 = [theta0*3.141592654/180; v_0/R]; >> t = linspace(0,3.0,4000); >> v = lsode ("func", v0, t); >> plot (t', v(1:4000,1)) >> >> Thank you very much in advance, >> Dogan Erbahar >> Physics PhD canditate from Turkey >> >> -- >> View this message in context: http://octave.1599824.n4.nabble.com/lsode-question-tp4164020p4164020.html >> Sent from the Octave - General mailing list archive at Nabble.com. >> _______________________________________________ >> Help-octave mailing list >> Help-octave at octave.org >> https://mailman.cae.wisc.edu/listinfo/help-octave > Your dynamical system is quite nonlinear. > First, give just initial and final value to the time vector and let > lsode choose the discretization > t = [0 3] and t=[0 3.2]. > Note that sine the period is longer and you are suing the same number > of steps you are indeed using a bigger time step fr the second case. > > Second, Have you tried to plot the solutions you get as you approach > the end point 3.2? > > Remember that the existence and uniqueness of a solution for a smooth > nonlinear system is defined on an interval of radius epsilon from the > initial condition, not necessarily for all times. Of course, this is > very system dependent. > > Interestingly enough, 3 < pi < 3.2. More to the point, the critical points for this nonlinear system are easily seen to be [0; k*pi/2], k any integer. You start the system at a non-critical point (that's good) and seem to stall. This suggests to me that the limiting solution (possibly as t approaches pi) approaches a critical point that is a sink, i.e., the Jacobian of the system at this point has negative eigenvalues. You might check your solution and see if it approaches some critical point of the form [0; k*pi/2], and also calculate the eigenvalues numerically for the solution as t approaches pi. If they are negative, this explains the stalling. Thomas Shores From mech.mon2011 at gmail.com Tue Dec 6 23:33:00 2011 From: mech.mon2011 at gmail.com (Mechanical Mon) Date: Tue, 6 Dec 2011 23:33:00 -0600 Subject: how to instal, or upgrade, the latest octave version on windows 7 Message-ID: >Hello > Please see > http://wiki.octave.org/wiki.pl?OctaveForWindows > 1.3. Octave-3.4.3-mingw + octaveforge pkgs > Please care that this distribution does not have automated installer. > You have to install it according the instruction on the page. > Regards > Tatsuro Greetings, Would it be possible to download from any other location? The site http://www.multiupload.com/7U6J23CSZ6 - is blocked on my work computer. Regards, Mon -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlo.defalco at gmail.com Wed Dec 7 01:46:39 2011 From: carlo.defalco at gmail.com (c.) Date: Wed, 7 Dec 2011 08:46:39 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323227072770-4167474.post@n4.nabble.com> References: <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323126662552-4162565.post@n4.nabble.com> <6698FC62-A9E6-4220-9B5D-1816CC39831C@gmail.com> <1323227072770-4167474.post@n4.nabble.com> Message-ID: <384A8276-2FE7-4BC7-860E-8BB98D7FE314@gmail.com> On 7 Dec 2011, at 04:04, syberraith wrote: > I was thinking you used the anonymous function to avoid the repeating the > code of the process function. > > I understand what your showing there, although I've tried it a number of > different ways, and octave keeps giving me undefined errs. So when I put > this into a script and try to run it: > > a = 2; > b = 3; > one = @(x) a.*x + b; > two = @(x) a.^2.*x + b; > function res = calculate ( f, v ) > res = f(v) > endfunction > calculate (one, 5) > calculate (two, 4) Your example works without errors for me: >> a = 2; >> b = 3; >> one = @(x) a.*x + b; >> two = @(x) a.^2.*x + b; >> function res = calculate ( f, v ) res = f(v) endfunction >> calculate (one, 5) res = 13 ans = 13 >> calculate (two, 4) res = 19 ans = 19 the double outpt is due to a missing semicolon in the roe "res = f(v)" > I get this: > > error: `a' undefined near line 4 column 12 > error: evaluating binary operator `.*' near line 4, column 13 > error: evaluating binary operator `+' near line 4, column 17 > error: called from `?unknown?' > error: evaluating assignment expression near line 8, column 8 > error: called from `calculate' > error: near line 11 of file `/home/fred/octave/test4.m' > octave:1> what version of Octave are you using? on what system? how did you install it? c. From carlo.defalco at gmail.com Wed Dec 7 01:49:02 2011 From: carlo.defalco at gmail.com (c.) Date: Wed, 7 Dec 2011 08:49:02 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323229488358-4167575.post@n4.nabble.com> References: <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323126662552-4162565.post@n4.nabble.com> <6698FC62-A9E6-4220-9B5D-1816CC39831C@gmail.com> <1323227072770-4167474.post@n4.nabble.com> <1323229108295-4167564.post@n4.nabble.com> <1323229488358-4167575.post@n4.nabble.com> Message-ID: <3D68BB66-B3B4-4ABA-84D4-22E3A37BFBD2@gmail.com> On 7 Dec 2011, at 04:44, syberraith wrote: > BTW, I'm running ver 2.1.73. I guess that's it. OH YES, that is VERY old, you should really get a newer version, what is your system? c. From carlo.defalco at gmail.com Wed Dec 7 01:52:02 2011 From: carlo.defalco at gmail.com (c.) Date: Wed, 7 Dec 2011 08:52:02 +0100 Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <41111.71165.qm@web100319.mail.kks.yahoo.co.jp> References: <41111.71165.qm@web100319.mail.kks.yahoo.co.jp> Message-ID: <3AFFF054-3231-4AD0-991B-B0AE94ED5B52@gmail.com> On 6 Dec 2011, at 19:02, Tatsuro MATSUOKA wrote: > Hello > > Please see > > http://wiki.octave.org/wiki.pl?OctaveForWindows > > 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > Please care that this distribution does not have automated installer. > You have to install it according the instruction on the page. > > Regards > > Tatsuro Carn?, do you think it would make sense to host this on Octave-Forge? c. From doganerbahar at gmail.com Wed Dec 7 04:15:08 2011 From: doganerbahar at gmail.com (dogan_79) Date: Wed, 7 Dec 2011 02:15:08 -0800 (PST) Subject: lsode question In-Reply-To: <4EDEF978.6060708@math.unl.edu> References: <1323163277507-4164020.post@n4.nabble.com> <4EDEF978.6060708@math.unl.edu> Message-ID: <1323252908700-4168427.post@n4.nabble.com> Thank you very much for the nice answers, but I am still uncertain about some things as I am newbie to Octave. My physical problem is to solve the differential equation describing the motion of a point mass inside a spherical bowl which is also subjected to surface friction with the bowl. The friction constant is constant (mu in the code.) What is interesting about this problem is to see the effect of the initial velocity (as the friction will also depend on increasing velocity via centripetal force) So we were discussing the situation with some collegues and none of us had a intuitive feeling about the difference in motion if we threw or released the mass initially. So I started looking diff. eq. solvers on the web, I had very little experience with Octave before. For the answers first Juan how do I not specify the discretization and let lsode do it itself? Thomas, 3.2 is actually system dependent and the pi thing might just be a coincidence. I plotted the velocity also and it seems that the "problem point" is where the mass comes to its first stop. Yes, it is a critical point but how do I get around with this, I want to monitor at least a few periods of the system. Should I do it piecewise and how? Technical help is the most I need with this as you may understand... Thank you very much again... You guys are doing great job... Cheers from Turkey, Dogan -- View this message in context: http://octave.1599824.n4.nabble.com/lsode-question-tp4164020p4168427.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Wed Dec 7 04:28:28 2011 From: carlo.defalco at gmail.com (c.) Date: Wed, 7 Dec 2011 11:28:28 +0100 Subject: lsode question In-Reply-To: <1323252908700-4168427.post@n4.nabble.com> References: <1323163277507-4164020.post@n4.nabble.com> <4EDEF978.6060708@math.unl.edu> <1323252908700-4168427.post@n4.nabble.com> Message-ID: On 7 Dec 2011, at 11:15, dogan_79 wrote: > > So I started looking diff. eq. solvers on the web, I had very little > experience with Octave before. For the answers first Juan how do I not > specify the discretization and let lsode do it itself? that is what lsode does by default, the timestep for solution discretization is selected automatically what you specify at input is the timesteps you want the output solution to be stored at. c. From pgajdos at suse.cz Wed Dec 7 04:46:32 2011 From: pgajdos at suse.cz (Petr Gajdos) Date: Wed, 7 Dec 2011 11:46:32 +0100 Subject: having issues with qhull support In-Reply-To: <1323234469.10431.YahooMailNeo@web31707.mail.mud.yahoo.com> References: <1323127042.79961.YahooMailNeo@web31706.mail.mud.yahoo.com> <20111206082058.GA16426@laura.suse.cz> <1323234469.10431.YahooMailNeo@web31707.mail.mud.yahoo.com> Message-ID: <20111207104632.GA16192@laura.suse.cz> On Tue, Dec 06, 2011 at 09:07:49PM -0800, Imam Toufique wrote: > I have tried using the version you specified, I had to compile it from the > source (rpm), but that did not help. You can look at science repo, there is octave built for SLE_10 (even against qhull5). Nevertheless it doesn't work and I am afraid I don't have enough courage to fix it. Petr -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From olaf.till at uni-jena.de Wed Dec 7 05:21:04 2011 From: olaf.till at uni-jena.de (Olaf Till) Date: Wed, 7 Dec 2011 12:21:04 +0100 Subject: lsode question In-Reply-To: <1323252908700-4168427.post@n4.nabble.com> References: <1323163277507-4164020.post@n4.nabble.com> <4EDEF978.6060708@math.unl.edu> <1323252908700-4168427.post@n4.nabble.com> Message-ID: <20111207112104.GA22410@olaf> On Wed, Dec 07, 2011 at 02:15:08AM -0800, dogan_79 wrote: > Thank you very much for the nice answers, but I am still uncertain about some > things as I am newbie to Octave. > > My physical problem is to solve the differential equation describing the > motion of a point mass inside a spherical bowl which is also subjected to > surface friction with the bowl. The friction constant is constant (mu in the > code.) What is interesting about this problem is to see the effect of the > initial velocity (as the friction will also depend on increasing velocity > via centripetal force) So we were discussing the situation with some > collegues and none of us had a intuitive feeling about the difference in > motion if we threw or released the mass initially. If lsode gets stuck on this problem I'd take this as a strong advise to double-check the differential equations ... and what makes me suspicious is the use of the 'sign' function ... Olaf From libr.tissier at wanadoo.fr Wed Dec 7 07:11:49 2011 From: libr.tissier at wanadoo.fr (Laurent Tissier) Date: Wed, 07 Dec 2011 14:11:49 +0100 Subject: problem with the bode function Message-ID: <4EDF6615.4020201@wanadoo.fr> Hello, yesterday I have updated the control toolbox (ver 2.2.2) and now the following command fails: H=tf([1 0 1],[1 1 1]); bode(H) I work under ubuntu 10.10 with octave 3.4.3 From przemek.klosowski at nist.gov Wed Dec 7 08:03:24 2011 From: przemek.klosowski at nist.gov (Przemek Klosowski) Date: Wed, 07 Dec 2011 09:03:24 -0500 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323229108295-4167564.post@n4.nabble.com> References: <9BEBE3A7-D4E9-4D72-B1AA-DE247C4EEAD5@gmail.com> <1322899741402-4152632.post@n4.nabble.com> <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323126662552-4162565.post@n4.nabble.com> <6698FC62-A9E6-4220-9B5D-1816CC39831C@gmail.com> <1323227072770-4167474.post@n4.nabble.com> <1323229108295-4167564.post@n4.nabble.com> Message-ID: <4EDF722C.6050809@nist.gov> On 12/06/2011 10:38 PM, syberraith wrote: > Even this fails to work: > > a = 2; > b = 3; > one = @(x) a.*x + b; > two = @(x) a.^2.*x + b; > one(4) > two(5) > > error: `a' undefined near line 3 column 12 In Octave you have to explicitly declare global variables to be able to see them across the 'lexical scopes' of different function definitions. Anonymous functions don't magically exempt you from that---but they can capture the values of variables from the scope they are defined in, at the time they are defined in. See again what Carlo was showing; adapted to your example, it'd be a=2;b=3; one = @(x,a,b) a.*x+b one_specialized_for_ab = @(x) one(x,a,b) one_specialized_for_ab(10) From sergstesh at yahoo.com Wed Dec 7 08:06:43 2011 From: sergstesh at yahoo.com (Sergei Steshenko) Date: Wed, 7 Dec 2011 06:06:43 -0800 (PST) Subject: regexp question In-Reply-To: <4EDE744D.9060802@hccnet.nl> References: <1323121205726-4162260.post@n4.nabble.com> <6765D38A4FDFC347A2934D0D5AB0F1AB684E7858@CETEX1.cleanearth.ceprivate> <4EDE565F.30709@hccnet.nl> <1323196027.51391.YahooMailNeo@web112107.mail.gq1.yahoo.com> <4EDE744D.9060802@hccnet.nl> Message-ID: <1323266803.65639.YahooMailNeo@web112111.mail.gq1.yahoo.com> ----- Original Message ----- > From: Philip Nienhuis > To: Sergei Steshenko > Cc: "help-octave at octave.org" > Sent: Tuesday, December 6, 2011 10:00 PM > Subject: Re: regexp question > [snip] > How do I get $2? [snip] > Philip > I have no idea. I mean, I haven't used PCRE, I used regular expressions in Perl. So the answer is somewhere in PCRE and Octave documentation. ... Looking into http://www.pcre.org/pcre.txt I see: In? addition? to? the? main compiling and matching functions, there are ?????? convenience functions for extracting captured substrings from a subject ?????? string that is matched by pcre_exec(). They are: ???????? pcre_copy_substring() ???????? pcre_copy_named_substring() ???????? pcre_get_substring() ???????? pcre_get_named_substring() ???????? pcre_get_substring_list() ???????? pcre_get_stringnumber() ???????? pcre_get_stringtable_entries() ?????? pcre_free_substring() and pcre_free_substring_list() are also provided, ?????? to free the memory used for extracted strings. - I think this is the piece to start from. Regards, ? Sergei. From lukas.reichlin at swissonline.ch Wed Dec 7 08:42:45 2011 From: lukas.reichlin at swissonline.ch (Lukas Reichlin) Date: Wed, 7 Dec 2011 15:42:45 +0100 Subject: problem with the bode function In-Reply-To: <4EDF6615.4020201@wanadoo.fr> References: <4EDF6615.4020201@wanadoo.fr> Message-ID: <556D1D86-F8ED-488B-87FF-771728F27333@swissonline.ch> On 07.12.2011, at 14:11, Laurent Tissier wrote: > Hello, > > yesterday I have updated the control toolbox (ver 2.2.2) and now the following command fails: > > H=tf([1 0 1],[1 1 1]); > bode(H) > > I work under ubuntu 10.10 with octave 3.4. Thanks for your report. A few observations: - The problem is also present with control-2.2.1. --> not related to version 2.2.2 - [mag, pha, w] = bode (H) doesn't hang ---> looks like a plotting problem - both Fltk and Gnuplot graphics backends are affected - H=tf([1 1 1],[1 1 1]) gets plotted ---> The zero for s^1 in the numerator seems to cause the problem - H = tf (1, [1, 0, 1]) hangs too ---> there must be a problem with complex conjugate pole or zero pairs when their real part is 0. - Plotting mag, pha and w from point 2 works ---> hmm? - Commenting out the two 'axis' commands in bode.m gets your example working - The variable ax_vec_mag contains infs and nans when octave hangs --> I'll take care of __axis_limits__.m I'll try to fix this and release control-2.2.3. Regards, Lukas From carbajal at ifi.uzh.ch Wed Dec 7 09:15:28 2011 From: carbajal at ifi.uzh.ch (Juan Pablo Carbajal) Date: Wed, 7 Dec 2011 16:15:28 +0100 Subject: lsode question In-Reply-To: <20111207112104.GA22410@olaf> References: <1323163277507-4164020.post@n4.nabble.com> <4EDEF978.6060708@math.unl.edu> <1323252908700-4168427.post@n4.nabble.com> <20111207112104.GA22410@olaf> Message-ID: On Wed, Dec 7, 2011 at 12:21 PM, Olaf Till wrote: > On Wed, Dec 07, 2011 at 02:15:08AM -0800, dogan_79 wrote: >> Thank you very much for the nice answers, but I am still uncertain about some >> things as I am newbie to Octave. >> >> My physical problem is to solve the differential equation describing the >> motion of a point mass inside a spherical bowl which is also subjected to >> surface friction with the bowl. The friction constant is constant (mu in the >> code.) What is interesting about this problem is to see the effect of the >> initial velocity (as the friction will also depend on increasing velocity >> via centripetal force) So we were discussing the situation with some >> collegues and none of us had a intuitive feeling about the difference in >> motion if we threw or released the mass initially. > > If lsode gets stuck on this problem I'd take this as a strong advise > to double-check the differential equations ... and what makes me > suspicious is the use of the 'sign' function ... > > Olaf > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave Hi, If lsode is selecting the discretization automatically (I thought you force the time step with the time vector as in odepkg) then you can try controlling some options on the discretization. just type help lsode and read carefully also you can try (assuming you are in GNU/Linux) pkg -forge install odepkg and then help odepkg (in particular try out first ode45) However, before meddling with the discrete solver try to understand your dynamical system. Find the fixed points and their stability (as Thomas Shores was suggesting). Can you sketch the phase portrait? If you do not know what I am talking about, check out these references http://en.wikipedia.org/wiki/Phase_portrait http://en.wikipedia.org/wiki/Linear_dynamical_system http://books.google.com/books/about/Nonlinear_dynamics_and_chaos.html?id=FIYHiBLWCJMC -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Z?rich http://ailab.ifi.uzh.ch/carbajal/ From lukas.reichlin at gmail.com Wed Dec 7 09:16:25 2011 From: lukas.reichlin at gmail.com (Lukas Reichlin) Date: Wed, 7 Dec 2011 16:16:25 +0100 Subject: problem with the bode function - solved In-Reply-To: <4EDF6615.4020201@wanadoo.fr> References: <4EDF6615.4020201@wanadoo.fr> Message-ID: <70B86635-558F-4AAB-8926-601D126F9493@gmail.com> On 07.12.2011, at 15:42, Lukas Reichlin wrote: > On 07.12.2011, at 14:11, Laurent Tissier wrote: > >> Hello, >> >> yesterday I have updated the control toolbox (ver 2.2.2) and now the following command fails: >> >> H=tf([1 0 1],[1 1 1]); >> bode(H) >> >> I work under ubuntu 10.10 with octave 3.4. > > Thanks for your report. A few observations: > - The problem is also present with control-2.2.1. --> not related to version 2.2.2 > - [mag, pha, w] = bode (H) doesn't hang ---> looks like a plotting problem > - both Fltk and Gnuplot graphics backends are affected > - H=tf([1 1 1],[1 1 1]) gets plotted ---> The zero for s^1 in the numerator seems to cause the problem > - H = tf (1, [1, 0, 1]) hangs too ---> there must be a problem with complex conjugate pole or zero pairs when their real part is 0. > - Plotting mag, pha and w from point 2 works ---> hmm? > - Commenting out the two 'axis' commands in bode.m gets your example working > - The variable ax_vec_mag contains infs and nans when octave hangs --> I'll take care of __axis_limits__.m > > I'll try to fix this and release control-2.2.3. > > Regards, > Lukas I solved the problem for bode, bodemag, sigma and nichols. I'll release control-2.2.3 shortly. Regards, Lukas From lukas.reichlin at gmail.com Wed Dec 7 10:13:44 2011 From: lukas.reichlin at gmail.com (Lukas Reichlin) Date: Wed, 7 Dec 2011 17:13:44 +0100 Subject: control-2.2.3 released in package forum - please upload Message-ID: Hi all, I've just posted control-2.2.3 (SVN Revision 9303) in the package forum [1]. Please upload it to the server. The changes are listed in the NEWS file [2]. The notice for http://octave.sourceforge.net/ December 7, 2011 control-2.2.3 released Best regards Lukas [1] http://sourceforge.net/apps/phpbb/octave/viewforum.php?f=1 [2] http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/control/NEWS?revision=9303&view=markup From carandraug+dev at gmail.com Wed Dec 7 10:48:06 2011 From: carandraug+dev at gmail.com (=?ISO-8859-1?Q?Carn=EB_Draug?=) Date: Wed, 7 Dec 2011 16:48:06 +0000 Subject: control-2.2.3 released in package forum - please upload In-Reply-To: References: Message-ID: On 7 December 2011 16:13, Lukas Reichlin wrote: > I've just posted control-2.2.3 (SVN Revision 9303) in the package forum [1]. Please upload it to the server. The changes are listed in the NEWS file [2]. Done. From forkandwait at gmail.com Wed Dec 7 12:21:27 2011 From: forkandwait at gmail.com (fork) Date: Wed, 7 Dec 2011 18:21:27 +0000 (UTC) Subject: qp() issues? Message-ID: I am (mostly) successfully using qp(), but I am running into a problem that I don't quite understand. (I will try to explain in the abstract, and I am not cutting and pasting the code directly because there is too much going on to see the problem directly.) (I am using Nit's 3.4.3 build on Windows.) I am trying to model having elements of my decision variable be decrease monotonically plus a little bit. Let's say the optimization variable is x, with x = [x1 x2 x3 x4], and I want x2 References: Message-ID: On Wed, Dec 7, 2011 at 7:21 PM, fork wrote: > I am (mostly) successfully using qp(), but I am running into a problem that I > don't quite understand. ?(I will try to explain in the abstract, and I am not > cutting and pasting the code directly because there is too much going on to see > the problem directly.) > > (I am using Nit's 3.4.3 build on Windows.) > > I am trying to model having elements of my decision variable be decrease > monotonically plus a little bit. ?Let's say the optimization variable is x, with > x = [x1 x2 x3 x4], and I want x2 like A_in=[-1 1 0 0] and A_ub=0; which gives me what I expect (x2<=x1). > However, when I set A_ub=-.00001, qp() says the problem is infeasible. > > The actual decision variable is 86 elements long. ? I have packed all the other > parameters of qp() with upper and lower bounds on all the elements of x and some > equality constraints to force parts of x to maintain constant relative > proportions. ?(I can imagine there being issues with all the constraints > stomping on each other.) > > Does this issue ring any bells? ?Am I making a mistake, or is this a bug? > > I am new to optimization, so (as always) feel free to point out the obvious. > > I looked at the OCT file, but I don't understand the algorithm enough to have > anything to say about it (I know I still you owe you a new which() function, and > I can understand that...) > > Thanks again for great software. > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave Hi, First adisclaimer: I do not use qp, but sqp for nonlinear problems, yours look to be a linear one so it should be ok to use qp. Do you know direct collocation methods? If you can right the relation between your variables in the form of a mapping, like x(n+1) = x(n) - dx then you can use equality constraints to enforce the difference. That is if x is the current value of the vector variable (of length n) you want x(2:n) - x(1:n-1) + dx = 0 I hope this helps -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Z?rich http://ailab.ifi.uzh.ch/carbajal/ From forkandwait at gmail.com Wed Dec 7 13:17:25 2011 From: forkandwait at gmail.com (fork) Date: Wed, 7 Dec 2011 19:17:25 +0000 (UTC) Subject: qp() issues? References: Message-ID: Juan Pablo Carbajal ifi.uzh.ch> writes: > then you can use equality constraints to enforce the difference. That > is if x is the current value of the vector variable (of length n) you > want > > x(2:n) - x(1:n-1) + dx = 0 > > I hope this helps Well, it is definitely cool. I am going to keep hacking at the formulation using inequality matrixes in qp(), and maybe a simple test formulation, because either there is a bug (unlikely but possible), or I don't understand something (more likely). I may wind up rewriting the constraints and trying to call __qp__ directly, and slack ish techniques like the above will really come in handy. Tx From Laurent.Tissier at ac-nantes.fr Wed Dec 7 02:40:20 2011 From: Laurent.Tissier at ac-nantes.fr (Laurent Tissier) Date: Wed, 07 Dec 2011 09:40:20 +0100 Subject: problem with the bode function Message-ID: <4EDF2674.7040201@ac-nantes.fr> Hello, yesterday I have updated the control toolbox (ver 2.2.2) and now the following command fails: H=tf([1 0 1],[1 1 1]); bode(H) I work under ubuntu 10.10 with octave 3.4.3 From syberraith at yahoo.com Wed Dec 7 16:11:27 2011 From: syberraith at yahoo.com (syberraith) Date: Wed, 7 Dec 2011 14:11:27 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <4EDF722C.6050809@nist.gov> References: <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323126662552-4162565.post@n4.nabble.com> <6698FC62-A9E6-4220-9B5D-1816CC39831C@gmail.com> <1323227072770-4167474.post@n4.nabble.com> <1323229108295-4167564.post@n4.nabble.com> <4EDF722C.6050809@nist.gov> Message-ID: <1323295887367-4170730.post@n4.nabble.com> It was my impression from the first few lines of the Octave manual entry for anonymous functions that they would have access to variables defined in the next higher scope: http://www.gnu.org/software/octave/doc/interpreter/Anonymous-Functions.html#Anonymous-Functions C: It a Debian Squeeze system, and I installed the pre-built Debian Octave package. -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4170730.html Sent from the Octave - General mailing list archive at Nabble.com. From martin at mhelm.de Wed Dec 7 16:30:29 2011 From: martin at mhelm.de (Martin Helm) Date: Wed, 07 Dec 2011 23:30:29 +0100 Subject: Fwd: Re: Numerical Differentiation and Integration of Array Data In-Reply-To: <4EDFE885.3030507@mhelm.de> References: <4EDFE885.3030507@mhelm.de> Message-ID: <4EDFE905.8030608@mhelm.de> Am 07.12.2011 23:11, schrieb syberraith: > It was my impression from the first few lines of the Octave manual entry for > anonymous functions that they would have access to variables defined in the > next higher scope: > They have! What you create by using free variables in an anonymous function which are defined in the next higher lexical scope is strictly speaking a closure. I use that often. octave:1> a =2; b=3; octave:2> f = @(x) a*x+b; octave:3> f(3) ans = 9 octave:4> a = 10; octave:5> f(3) ans = 9 changing the free variable later has no effect to the closure, the closed over variables still have the value within the anonymous function they originally had at the time of definition. From tmacchant at yahoo.co.jp Wed Dec 7 17:27:21 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Thu, 8 Dec 2011 08:27:21 +0900 (JST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: Message-ID: <571273.99670.qm@web100307.mail.kks.yahoo.co.jp> Hello Mechanical Mon I have temporarily mirrored the archive files. http://www.tatsuromatsuoka.com/octave/Eng/Win/ Octave3.4.3_gcc4.5.2_20111025.7z, 140,259,588 bytes Octave3.4.3_gcc4.5.2_pkgs_20111026.7z, 44,798,571 bytes Can you access the files ? Regards Tatsuro --- On Wed, 2011/12/7, Mechanical Mon wrote: > > > >Hello > > > Please see > > > http://wiki.octave.org/wiki.pl?OctaveForWindows > > > 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > > Please care that this distribution does not haveautomated installer. > > > You have to install it according the instruction on thepage. > > ? > > > Regards > > > Tatsuro > > ? > > Greetings, > > Would it be possible todownload from any other location? > > The site http://www.multiupload.com/7U6J23CSZ6- is blocked on my work computer. > > ?Regards, > > Mon From mmt200575 at yahoo.com Wed Dec 7 17:29:17 2011 From: mmt200575 at yahoo.com (Mircea Toma) Date: Wed, 7 Dec 2011 15:29:17 -0800 (PST) Subject: how to instal, or upgrade, the latest octave version on windows 7 References: <41111.71165.qm@web100319.mail.kks.yahoo.co.jp> <3AFFF054-3231-4AD0-991B-B0AE94ED5B52@gmail.com> Message-ID: <1323300557.14131.YahooMailNeo@web112012.mail.gq1.yahoo.com> Thanks. 1. Did I have to instal gcc4.5.2? it mean Mingw 4.5.2? I have gcc version 4.6.1 2. We repeated the tests in "A.1 October Files". It seems that "readline" is missing from the newly installed version. For the moment I not tried to understand other warnings or errors. I do not know if they are conected with my example. Thanks for any help. Regards Mircea ======================== GNU Octave, version 3.4.3 ...................................... warning: C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\integration-1.0.7\PKG_ADD: possible Matlab-style short-circuit operator at line 9, column 32 io PKG_ADD: java classes has been found and added in C:\Octave\3.4.3_gcc-4.5.2\bin io PKG_ADD: run chk_spreadsheet_support([],3) to view io support warning: gmsh does not seem to be present some functionalities will be disabled warning: dx does not seem to be present some functionalities will be disabled warning: function C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\statistics-1.0.10\fstat.m shadows a core library funct ion octave:1> cd "C:/oct-test/helloworld" octave:2> mkoctfile helloworld.cpp --link-stand-alone c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lreadline collect2: ld returned 1 exit status octave:3> ============================= ________________________________ From: c. To: Tatsuro MATSUOKA ; Carn? Draug Cc: "help-octave at octave.org" ; Mircea Toma Sent: Wednesday, December 7, 2011 1:52 AM Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 On 6 Dec 2011, at 19:02, Tatsuro MATSUOKA wrote: > Hello > > Please see > > http://wiki.octave.org/wiki.pl?OctaveForWindows > > 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > Please care that this distribution does not have automated installer. > You have to install it according the instruction on the page. > > Regards > > Tatsuro Carn?, do you think it would make sense to host this on Octave-Forge? c. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prachijain.it at gmail.com Wed Dec 7 18:52:04 2011 From: prachijain.it at gmail.com (Prachi Jain) Date: Wed, 7 Dec 2011 19:52:04 -0500 Subject: K means. Message-ID: I was wondering is there any command by which we can find K means. From jordigh at octave.org Wed Dec 7 21:37:37 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Wed, 7 Dec 2011 22:37:37 -0500 Subject: K means. In-Reply-To: References: Message-ID: On 7 December 2011 19:52, Prachi Jain wrote: > I was wondering is there any command by which we can find K means. We don't have such a function in Octave yet, but there are several implementations on the web. Would you like to help us get this function into Octave? - Jordi G. H. From freddy.vate01 at gmail.com Wed Dec 7 23:15:36 2011 From: freddy.vate01 at gmail.com (=?UTF-8?Q?Freddy_L=C3=B3pez?=) Date: Thu, 8 Dec 2011 00:45:36 -0430 Subject: K means. In-Reply-To: References: Message-ID: Perhaps: http://www.christianherta.de/kmeans.html Cheers. 2011/12/7 Jordi Guti?rrez Hermoso > On 7 December 2011 19:52, Prachi Jain wrote: > > I was wondering is there any command by which we can find K means. > > We don't have such a function in Octave yet, but there are several > implementations on the web. Would you like to help us get this > function into Octave? > > - Jordi G. H. > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > -- ?But Gwindor answered: 'The doom lies in yourself, not in your name.'? JRR Tolkien -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmacchant at yahoo.co.jp Wed Dec 7 23:21:27 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Thu, 8 Dec 2011 14:21:27 +0900 (JST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <1323300557.14131.YahooMailNeo@web112012.mail.gq1.yahoo.com> Message-ID: <116556.31149.qm@web100313.mail.kks.yahoo.co.jp> Hello --- On Thu, 2011/12/8, Mircea Toma wrote: > Thanks. > > 1. Did I have to instal gcc4.5.2? it mean Mingw 4.5.2? No.?Gcc-4.5.2 is bundled with the octave package > I have gcc version 4.6.1 > > 2. We repeated the tests in "A.1 October Files". It seems that "readline" is missing from the newly installed version. > For the moment I not tried to understand other warnings or errors. I do not know if they are conected with my example. Indeed libreadline.dll.a is missing in the Nitzan's archives. I have upload on my web. http://www.tatsuromatsuoka.com/octave/Eng/Win/ libreadline.dll.a.zip, 29,542 bytes, 2011-12-08 Regards Tatsuro > Thanks for any help. > Regards Mircea > > ======================== > > GNU Octave, version 3.4.3 > ...................................... > warning: C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\integration-1.0.7\PKG_ADD: possible Matlab-style short-circuit > operator at line 9, column 32 > io PKG_ADD: java classes has been found and added in C:\Octave\3.4.3_gcc-4.5.2\bin > io PKG_ADD: run chk_spreadsheet_support([],3) to view io support > warning: gmsh does not seem to be present some functionalities will be disabled > warning: dx does not seem to be present some functionalities will be disabled > warning: function C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\statistics-1.0.10\fstat.m shadows a core library funct > ion > octave:1> cd "C:/oct-test/helloworld" > octave:2> mkoctfile helloworld.cpp --link-stand-alone > c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lreadline > collect2: ld returned 1 exit status > octave:3> > > ============================= > > > > > From: c. > To: Tatsuro MATSUOKA ; Carn? Draug > Cc: "help-octave at octave.org" ; Mircea Toma > Sent: Wednesday, December 7, 2011 1:52 AM > Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 > > > On 6 Dec 2011, at 19:02, Tatsuro MATSUOKA wrote: > > > Hello > > > > Please see > > > > http://wiki.octave.org/wiki.pl?OctaveForWindows > > > > 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > > > Please care that this distribution does not have automated installer. > > You have to install it according the instruction on the page. > > > > Regards > > > > Tatsuro > > > Carn?, > do you think it would make sense to host this on Octave-Forge? > c. > > From mech.mon2011 at gmail.com Thu Dec 8 00:39:23 2011 From: mech.mon2011 at gmail.com (Mechanical Mon) Date: Thu, 8 Dec 2011 00:39:23 -0600 Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <571273.99670.qm@web100307.mail.kks.yahoo.co.jp> References: <571273.99670.qm@web100307.mail.kks.yahoo.co.jp> Message-ID: On Wed, Dec 7, 2011 at 5:27 PM, Tatsuro MATSUOKA wrote: > Hello Mechanical Mon > > I have temporarily mirrored the archive files. > http://www.tatsuromatsuoka.com/octave/Eng/Win/ > > Octave3.4.3_gcc4.5.2_20111025.7z, 140,259,588 bytes > Octave3.4.3_gcc4.5.2_pkgs_20111026.7z, 44,798,571 bytes > > Can you access the files ? > > Regards > > Tatsuro > --- On Wed, 2011/12/7, Mechanical Mon wrote: > > > > > > > >Hello > > > > > Please see > > > > > http://wiki.octave.org/wiki.pl?OctaveForWindows > > > > > 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > > > > Please care that this distribution does not haveautomated installer. > > > > > You have to install it according the instruction on thepage. > > > > > > > > > Regards > > > > > Tatsuro > > > > > > > > Greetings, > > > > Would it be possible todownload from any other location? > > > > The site http://www.multiupload.com/7U6J23CSZ6- is blocked on my work > computer. > > > > Regards, > > > > Mon > Hello Tatsuro, I can access your site, but not download the files. It seems the Information Security Protocols are preventing access. I'm not in a big hurry at this time, 3.2.4 is still working well for me, I just like to update when possible. Regards, Mon -------------- next part -------------- An HTML attachment was scrubbed... URL: From nitnit at gmail.com Thu Dec 8 00:44:55 2011 From: nitnit at gmail.com (nitnit) Date: Wed, 7 Dec 2011 22:44:55 -0800 (PST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <116556.31149.qm@web100313.mail.kks.yahoo.co.jp> References: <1323189387.37727.YahooMailNeo@web112014.mail.gq1.yahoo.com> <41111.71165.qm@web100319.mail.kks.yahoo.co.jp> <3AFFF054-3231-4AD0-991B-B0AE94ED5B52@gmail.com> <1323300557.14131.YahooMailNeo@web112012.mail.gq1.yahoo.com> <116556.31149.qm@web100313.mail.kks.yahoo.co.jp> Message-ID: <1323326695165-4171733.post@n4.nabble.com> Tatsuro MATSUOKA-2 wrote > > Hello > > --- On Thu, 2011/12/8, Mircea Toma wrote: > >> Thanks. >> >> 1. Did I have to instal gcc4.5.2? it mean Mingw 4.5.2? > No.?Gcc-4.5.2 is bundled with the octave package >> I have gcc version 4.6.1 >> >> 2. We repeated the tests in "A.1 October Files". It seems that "readline" >> is missing from the newly installed version. >> For the moment I not tried to understand other warnings or errors. I do >> not know if they are conected with my example. > > Indeed libreadline.dll.a is missing in the Nitzan's archives. > > I have upload on my web. > http://www.tatsuromatsuoka.com/octave/Eng/Win/ > libreadline.dll.a.zip, 29,542 bytes, 2011-12-08 > > Regards > > Tatsuro > > On my system (win7 x64) with the original gcc-4.5.2 in exec path, I could "mkoctfile helloworld.cc" and didn't get the "cannot find -lreadline" error. This is the reason I didn't noticed it in the past. Anyhow, I will add that file in next update. Thanks for hosting the archives on your site. Nitzan -- View this message in context: http://octave.1599824.n4.nabble.com/how-to-instal-or-upgrade-the-latest-octave-version-on-windows-7-tp4165440p4171733.html Sent from the Octave - General mailing list archive at Nabble.com. From nitnit at gmail.com Thu Dec 8 00:55:28 2011 From: nitnit at gmail.com (nitnit) Date: Wed, 7 Dec 2011 22:55:28 -0800 (PST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: References: <1323189387.37727.YahooMailNeo@web112014.mail.gq1.yahoo.com> <571273.99670.qm@web100307.mail.kks.yahoo.co.jp> Message-ID: <1323327328402-4171753.post@n4.nabble.com> Mech.Mon wrote > > > Hello Tatsuro, > I can access your site, but not download the files. It seems the > Information Security Protocols are preventing access. I'm not in a big > hurry at this time, 3.2.4 is still working well for me, I just like to > update when possible. > > Regards, > Mon > > Hello Mon, I have uploaded these archives to the www.multiupload.com because I do not have access to any other non-free public file storage service. I think that the best solution is that someone of the sourceforge octaveforge admins will store it there (I do not have access). I am keeping these archives on my system and If you have any ftp or other service that I can access, I will be happy to upload the archives for you. Nitzan -- View this message in context: http://octave.1599824.n4.nabble.com/how-to-instal-or-upgrade-the-latest-octave-version-on-windows-7-tp4165440p4171753.html Sent from the Octave - General mailing list archive at Nabble.com. From soren at hauberg.org Thu Dec 8 01:04:43 2011 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Thu, 08 Dec 2011 08:04:43 +0100 Subject: K means. In-Reply-To: References: Message-ID: <1323327883.1905.9.camel@hauberg-laptop> ons, 07 12 2011 kl. 22:37 -0500, skrev Jordi Guti?rrez Hermoso: > On 7 December 2011 19:52, Prachi Jain wrote: > > I was wondering is there any command by which we can find K means. > > We don't have such a function in Octave yet, but there are several > implementations on the web. Would you like to help us get this > function into Octave? Attached is an implementation I did some years ago; it's missing documentation, but otherwise is in a reasonable state. S?ren -------------- next part -------------- A non-text attachment was scrubbed... Name: kmeans.m Type: text/x-objcsrc Size: 2306 bytes Desc: not available URL: From libr.tissier at wanadoo.fr Thu Dec 8 01:20:16 2011 From: libr.tissier at wanadoo.fr (Laurent Tissier) Date: Thu, 08 Dec 2011 08:20:16 +0100 Subject: problem with bode function Message-ID: <4EE06530.6070601@wanadoo.fr> Hi all With the new package control -2.2.3, no more problem with the bode function ,but "margin" fails ,I think that's the same issue: H=tf([1 0 1],[1 1 1]) margin(H) best regards Laurent From lukas.reichlin at gmail.com Thu Dec 8 02:11:44 2011 From: lukas.reichlin at gmail.com (Lukas Reichlin) Date: Thu, 8 Dec 2011 09:11:44 +0100 Subject: problem with bode function In-Reply-To: <4EE06530.6070601@wanadoo.fr> References: <4EE06530.6070601@wanadoo.fr> Message-ID: <5F6FACBB-1D97-420F-B8CB-664F56439B0F@gmail.com> On 08.12.2011, at 08:20, Laurent Tissier wrote: > Hi all > With the new package control -2.2.3, no more problem with the bode function ,but "margin" fails ,I think that's the same issue: > > H=tf([1 0 1],[1 1 1]) > margin(H) > > best regards > > Laurent Yes, it is the same plotting issue. Without plotting, it works: [gm, pm, w_gm, w_pm] = margin (H) I forgot to fix margin when I updated the other plotting commands. However, margin is a bit more difficult to fix. I know a hack, but maybe I find a more elegant solution. BTW: Could you please do me a favour and test the following code? semilogx (1:10, 1:10) ax = [1, 10, NaN, Inf] axis (ax) grid on title ("title") xlabel ("xlabel") ylabel ("ylabel") What's happening? I need that info for a bug report: http://savannah.gnu.org/bugs/?35004 (IIRC you are using ubuntu 10.10 with octave 3.4.3) Lukas From tmacchant at yahoo.co.jp Thu Dec 8 02:36:36 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Thu, 8 Dec 2011 17:36:36 +0900 (JST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: Message-ID: <567479.31302.qm@web100306.mail.kks.yahoo.co.jp> Hello Mechanical Mon You seem to be able to download 7zip archives. Therefore I archive libreadline.dll.a by 7zip and update web page. http://www.tatsuromatsuoka.com/octave/Eng/Win/ BTW, the readline libraries for this release is the same as octave-3.2.4. You can copy it lib directory of octave-3.2.4 to that of octave-3.4.2. Hope the above helps. Regards Tatsuro --- On Thu, 2011/12/8, Mechanical Mon wrote: > > On Wed, Dec 7, 2011 at 5:27 PM, Tatsuro MATSUOKA wrote: > Hello Mechanical Mon > > I have temporarily mirrored the archive files. > http://www.tatsuromatsuoka.com/octave/Eng/Win/ > > Octave3.4.3_gcc4.5.2_20111025.7z, 140,259,588 bytes > Octave3.4.3_gcc4.5.2_pkgs_20111026.7z, 44,798,571 bytes > > Can you access the files ? > > Regards > > Tatsuro > > --- On Wed, 2011/12/7, Mechanical Mon ?wrote: > > > > > > > >Hello > > > > > Please see > > > > > http://wiki.octave.org/wiki.pl?OctaveForWindows > > > > > 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > > > > Please care that this distribution does not haveautomated installer. > > > > > > You have to install it according the instruction on thepage. > > > > ? > > > > > Regards > > > > > Tatsuro > > > > ? > > > > Greetings, > > > > Would it be possible todownload from any other location? > > > > The site http://www.multiupload.com/7U6J23CSZ6- is blocked on my work computer. > > > > ?Regards, > > > > Mon > > Hello Tatsuro, > I can access your site, but not download the files. It seems the Information Security Protocols are preventing access. I'm not in a big hurry at this time, 3.2.4 is still working well for me, I just like to update when possible. > > Regards, > Mon > From jj.ss at web.de Thu Dec 8 02:40:35 2011 From: jj.ss at web.de (J Schreiber) Date: Thu, 08 Dec 2011 09:40:35 +0100 Subject: diff undefined Message-ID: <4EE07803.9090801@web.de> Hi everyone, under cygwin the diff-command works well (however I get a lot of strange Characters when using arrows for recalling last command ) under octave for win however diff causes error, also ver command: Windows 7 regards, J?rg -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moz-screenshot-45.png Type: image/png Size: 27407 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 27345 bytes Desc: not available URL: From carlo.defalco at gmail.com Thu Dec 8 04:37:05 2011 From: carlo.defalco at gmail.com (c.) Date: Thu, 8 Dec 2011 11:37:05 +0100 Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: <1323295887367-4170730.post@n4.nabble.com> References: <1322909478031-4152936.post@n4.nabble.com> <613E0628-6117-4011-86FF-7F237642BAC1@gmail.com> <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323126662552-4162565.post@n4.nabble.com> <6698FC62-A9E6-4220-9B5D-1816CC39831C@gmail.com> <1323227072770-4167474.post@n4.nabble.com> <1323229108295-4167564.post@n4.nabble.com> <4EDF722C.6050809@nist.gov> <1323295887367-4170730.post@n4.nabble.com> Message-ID: On 7 Dec 2011, at 23:11, syberraith wrote: > C: It a Debian Squeeze system, and I installed the pre-built Debian Octave > package. then to update to a less outdated version you can just do: sudo apt-get install octave3.2 c. From andybuckle at gmail.com Thu Dec 8 04:55:47 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Thu, 8 Dec 2011 10:55:47 +0000 Subject: =?ISO-8859-1?Q?Carn=EB_please_read_=28was_Re=3A_how_to_instal=2C_or_upgrad?= =?ISO-8859-1?Q?e=2C_the_latest_octave_version_on_windows_7=29?= Message-ID: >> Please see >> >> http://wiki.octave.org/wiki.pl?OctaveForWindows >> >> 1.3. Octave-3.4.3-mingw + octaveforge pkgs >> >> Please care that this distribution does not have automated installer. >> You have to install it according the instruction on the page. >> >> Regards >> >> Tatsuro > > > Carn?, > do you think it would make sense to host this on Octave-Forge? > c. Carn?, I guess you may have skimmed over this thread as irrelevant to you. Please could you consider adding the 3.4.3 mingw builds of Octave and packages to sourceforge (from the link provided above by Tatsuro). The multiupload.com site is troublesome for several reasons. It would be nice to have 3.4.3 available for windows users as Ben Lindner's legendary 3.4.2 build was before. -- /* andy buckle */ From johanl at isy.liu.se Thu Dec 8 05:10:54 2011 From: johanl at isy.liu.se (=?UTF-8?Q?Johan_L=C3=B6fberg?=) Date: Thu, 8 Dec 2011 03:10:54 -0800 (PST) Subject: More possible incompatibilities in Yalmip? In-Reply-To: <20181.10767.642731.822794@gargle.gargle.HOWL> References: <20181.10767.642731.822794@gargle.gargle.HOWL> Message-ID: <1323342654887-4172288.post@n4.nabble.com> The "sdpvar name(arguments)" syntax works in MATLAB, but is largely a hack that I added support for, for some unknown reason... The general syntax in matlab is that "function arguments" sends the string 'arguments' to the function. /johan (YALMIP developer) -- View this message in context: http://octave.1599824.n4.nabble.com/More-possible-incompatibilities-in-Yalmip-tp4120202p4172288.html Sent from the Octave - General mailing list archive at Nabble.com. From johanl at isy.liu.se Thu Dec 8 05:32:39 2011 From: johanl at isy.liu.se (=?UTF-8?Q?Johan_L=C3=B6fberg?=) Date: Thu, 8 Dec 2011 03:32:39 -0800 (PST) Subject: Weird mex file contents in Yalmip In-Reply-To: References: Message-ID: <1323343959934-4172363.post@n4.nabble.com> This was simply a weird bug that has been fixed in a recent version of YALMIP (maybe it was you who alerted me) -- View this message in context: http://octave.1599824.n4.nabble.com/Weird-mex-file-contents-in-Yalmip-tp4120128p4172363.html Sent from the Octave - General mailing list archive at Nabble.com. From Hendrik.Raasch.external at astrium.eads.net Thu Dec 8 06:43:37 2011 From: Hendrik.Raasch.external at astrium.eads.net (Raasch, Hendrik (external)) Date: Thu, 8 Dec 2011 13:43:37 +0100 Subject: Problem with data conversion Message-ID: <62FAFDDEC5607A4F930DC92C1BDF89190241CBBB@FOWEXMC1.de.astrium.corp> Hello, I have a problem with matrices. Check the following: octave:88> p_v p_v = 1 1 1 1 octave:89> time_tmp time_tmp = 3.8593e+08 3.8593e+08 3.8593e+08 3.8593e+08 octave:90> [rot90(time_tmp), rot90(p_v)] ans = 255 1 255 1 255 1 255 1 Why is the time_tmp data converted from an floating point value into an eight bit integer?? I assume, that I have just done something wrong. So, can someone tell me what is the correct way of doing this? Regards, HR This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Astrium disclaims any and all liability if this email transmission was virus corrupted, altered or falsified. ---------------------------------------------------------------------------- Astrium GmbH Vorsitzender des Aufsichtsrates: Thomas S. M?ller - Gesch?ftsf?hrung: Evert Dudok (Vorsitzender), Josef Stukenborg, Dr. Johannes von Thadden Sitz der Gesellschaft: M?nchen - Registergericht: Amtsgericht M?nchen, HRB Nr. 107647 ---------------------------------------------------------------------------- Weitere Informationen ?ber EADS Astrium unter www.astrium.eads.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From andybuckle at gmail.com Thu Dec 8 07:06:17 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Thu, 8 Dec 2011 13:06:17 +0000 Subject: Problem with data conversion In-Reply-To: <62FAFDDEC5607A4F930DC92C1BDF89190241CBBB@FOWEXMC1.de.astrium.corp> References: <62FAFDDEC5607A4F930DC92C1BDF89190241CBBB@FOWEXMC1.de.astrium.corp> Message-ID: On 8 December 2011 12:43, Raasch, Hendrik (external) wrote: > > Hello, > > I have a problem with matrices. Check the following: > > octave:88> p_v > p_v = > > ? 1? 1? 1? 1 > > octave:89> time_tmp > time_tmp = > > ?? 3.8593e+08?? 3.8593e+08?? 3.8593e+08?? 3.8593e+08 > > octave:90> [rot90(time_tmp), rot90(p_v)] > ans = > > ? 255??? 1 > ? 255??? 1 > ? 255??? 1 > ? 255??? 1 > > > Why is the time_tmp data converted from an floating point value into an eight bit integer?? > > I assume, that I have just done something wrong. So, can someone tell me what is the correct way of doing this? > > Regards, > HR I guess because p_v is uint8, and you are concatenating with it. >[rot90(time_tmp) rot90(p_v)] ans = 255 1 255 1 255 1 255 1 >[rot90(time_tmp) rot90(double(p_v))] ans = 385930000 1 385930000 1 385930000 1 385930000 1 > -- /* andy buckle */ From Hendrik.Raasch.external at astrium.eads.net Thu Dec 8 07:13:18 2011 From: Hendrik.Raasch.external at astrium.eads.net (Raasch, Hendrik (external)) Date: Thu, 8 Dec 2011 14:13:18 +0100 Subject: AW: Problem with data conversion In-Reply-To: References: <62FAFDDEC5607A4F930DC92C1BDF89190241CBBB@FOWEXMC1.de.astrium.corp> Message-ID: <62FAFDDEC5607A4F930DC92C1BDF89190241CBF4@FOWEXMC1.de.astrium.corp> That was the missing bit. Thanks alot. HR This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Astrium disclaims any and all liability if this email transmission was virus corrupted, altered or falsified. ---------------------------------------------------------------------------- Astrium GmbH Vorsitzender des Aufsichtsrates: Thomas S. M?ller - Gesch?ftsf?hrung: Evert Dudok (Vorsitzender), Josef Stukenborg, Dr. Johannes von Thadden Sitz der Gesellschaft: M?nchen - Registergericht: Amtsgericht M?nchen, HRB Nr. 107647 ---------------------------------------------------------------------------- Weitere Informationen ?ber EADS Astrium unter www.astrium.eads.net From carandraug+dev at gmail.com Thu Dec 8 07:46:43 2011 From: carandraug+dev at gmail.com (=?ISO-8859-1?Q?Carn=EB_Draug?=) Date: Thu, 8 Dec 2011 13:46:43 +0000 Subject: =?ISO-8859-1?Q?Re=3A_Carn=EB_please_read_=28was_Re=3A_how_to_instal=2C_or_up?= =?ISO-8859-1?Q?grade=2C_the_latest_octave_version_on_windows_7=29?= In-Reply-To: References: Message-ID: On 8 December 2011 10:55, Andy Buckle wrote: >>> Please see >>> >>> http://wiki.octave.org/wiki.pl?OctaveForWindows >>> >>> 1.3. Octave-3.4.3-mingw + octaveforge pkgs >>> >>> Please care that this distribution does not have automated installer. >>> You have to install it according the instruction on the page. >>> >>> Regards >>> >>> Tatsuro >> >> >> Carn?, >> do you think it would make sense to host this on Octave-Forge? >> c. > > Carn?, I guess you may have skimmed over this thread as irrelevant to you. You're right, I was not following this thread at all. Thanks for pointing it out on subject. > Please could you consider adding the 3.4.3 mingw builds of Octave and > packages to sourceforge (from the link provided above by Tatsuro). The > multiupload.com site is troublesome for several reasons. It would be > nice to have 3.4.3 available for windows users as Ben Lindner's > legendary 3.4.2 build was before. > > -- > /* andy buckle */ Got it. Will do. From carandraug+dev at gmail.com Thu Dec 8 08:16:22 2011 From: carandraug+dev at gmail.com (=?ISO-8859-1?Q?Carn=EB_Draug?=) Date: Thu, 8 Dec 2011 14:16:22 +0000 Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <3AFFF054-3231-4AD0-991B-B0AE94ED5B52@gmail.com> References: <41111.71165.qm@web100319.mail.kks.yahoo.co.jp> <3AFFF054-3231-4AD0-991B-B0AE94ED5B52@gmail.com> Message-ID: On 7 December 2011 07:52, c. wrote: > On 6 Dec 2011, at 19:02, Tatsuro MATSUOKA wrote: > >> Hello >> >> Please see >> >> http://wiki.octave.org/wiki.pl?OctaveForWindows >> >> 1.3. Octave-3.4.3-mingw + octaveforge pkgs >> >> Please care that this distribution does not have automated installer. >> You have to install it according the instruction on the page. >> >> Regards >> >> Tatsuro > > > Carn?, > do you think it would make sense to host this on Octave-Forge? Yes it does. I'm uploading these files now. Sorry for taking so long, I was not following this thread at all since I know absolutely nothing of windows. If anyone that knows about it, can write a README file, something like the one for 3.2.4. This file is the one that would go ono the directory that has the different files and explains why there's one pkgs and another without, and what to do with the libreadline file. Carn? From jgallogly at raytheonvtc.com Thu Dec 8 10:39:50 2011 From: jgallogly at raytheonvtc.com (James Gallogly) Date: Thu, 8 Dec 2011 11:39:50 -0500 (EST) Subject: Issue installing Octave-forge database-1.0.4 In-Reply-To: <5a07d0a4-a817-4676-a979-4a954dfb5082@LE000198> Message-ID: Hello, I am trying to install the database package on Octave 3.2.4 and I get a lot of errors. A google search indicates this issue has exisisted for several years. Is this package no longer maintained and thus no longer installable or is there something I cam doing wrong? Below is the output. Thanks for any help. octave-3.2.4.exe:5> pkg install database-1.0.4.tar.gz warning: creating installation directory C:\Octave\3.2.4_gcc-4.4.0\share\octave\ packages odbc_wrap.cpp: In member function 'void octave_swig_type::install_global()': odbc_wrap.cpp:1197: error: 'curr_sym_tab' was not declared in this scope odbc_wrap.cpp:1197: error: 'link_to_global_variable' was not declared in this sc ope odbc_wrap.cpp:1204: error: 'symbol_record' was not declared in this scope odbc_wrap.cpp:1204: error: 'sr' was not declared in this scope odbc_wrap.cpp:1204: error: 'global_sym_tab' was not declared in this scope odbc_wrap.cpp: In function 'void SWIG_Octave_SetModule(void*, swig_module_info*) ': odbc_wrap.cpp:2110: error: 'curr_sym_tab' was not declared in this scope odbc_wrap.cpp:2110: error: 'link_to_global_variable' was not declared in this sc ope odbc_wrap.cpp: In function 'SQLRETURN SQLGetData(void*, SQLUSMALLINT, std::strin g*, SQLINTEGER*)': odbc_wrap.cpp:2429: warning: comparison between signed and unsigned integer expr essions odbc_wrap.cpp:2431: warning: comparison between signed and unsigned integer expr essions odbc_wrap.cpp: In function 'octave_value_list _wrap_SQLExtendedFetch(const octav e_value_list&, int)': odbc_wrap.cpp:5287: error: 'SQLROWSETSIZE' was not declared in this scope odbc_wrap.cpp:5287: error: 'arg4' was not declared in this scope odbc_wrap.cpp:5287: error: expected primary-expression before ')' token odbc_wrap.cpp:5287: error: expected ';' before numeric constant odbc_wrap.cpp:5324: error: expected primary-expression before ')' token odbc_wrap.cpp: In function 'octave_value_list Fodbc(const octave_value_list&, in t)': odbc_wrap.cpp:9826: error: 'curr_sym_tab' was not declared in this scope odbc_wrap.cpp:9826: error: 'link_to_global_variable' was not declared in this sc ope odbc_wrap.cpp: At global scope: odbc_wrap.cpp:853: warning: 'void Swig::swig_register_director(octave_swig_type* , void*, Swig::Director*)' declared 'static' but never defined mingw32-g++-4.4.0-dw2: odbc_wrap.o: No such file or directory make: *** [odbc.oct] Error 1 'make' returned the following error: make: Entering directory `/tmp/oct-2/databa se-1.0.4/src' CXXFLAGS="-D_GLIBCXX_DLL -march=i686 -mtune=generic -O3 -Wall" mkoctfile -DHAVE_ OCTAVE_32 -v -o odbc.oct -lodbc32 odbc_wrap.cpp mingw32-g++-4.4.0-dw2 -c -I/usr/local/octmgw32_gcc-4.4.0-dw2/include -Ic:\Octav e\3.2.4_gcc-4.4.0\include\octave-3.2.4 -Ic:\Octave\3.2.4_gcc-4.4.0\include\octav e-3.2.4\octave -Ic:\Octave\3.2.4_gcc-4.4.0\include -mieee-fp -D_GLIBCXX_DLL -ma rch=i686 -mtune=generic -O3 -Wall -DHAVE_OCTAVE_32 odbc_wrap.cpp -o odbc_wrap .o mingw32-g++-4.4.0-dw2 -shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -shared-libgcc -Wl,--allow-multiple-definition -o odbc.oct odbc_wrap.o -lodbc32 -Lc:\Octave\3.2.4_gcc-4.4.0\lib\octave-3.2 .4 -Lc:\Octave\3.2.4_gcc-4.4.0\lib -loctinterp -loctave -lcruft -shared-libgcc -Wl,--allow-multiple-definition -llapack -lblas -lfftw3 -lfftw3f -lreadline -ln curses -liberty -lhdf5 -lz -lm -lgdi32 -lws2_32 -luser32 -lkernel32 -lgfortran -lstdc++_s make: Leaving directory `/tmp/oct-2/database-1.0.4/src' error: called from `pkg>configure_make' in file C:\Octave\3.2.4_gcc-4.4.0\share\ octave\3.2.4\m\pkg\pkg.m near line 1253, column 2 error: called from: error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\pkg\pkg.m at line 714, c olumn 5 error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\pkg\pkg.m at line 287, c olumn 7 octave-3.2.4.exe:5> list warning: list objects are deprecated; use cell arrays instead ans = () From marco.atzeri at gmail.com Thu Dec 8 10:48:00 2011 From: marco.atzeri at gmail.com (marco atzeri) Date: Thu, 08 Dec 2011 17:48:00 +0100 Subject: diff undefined In-Reply-To: <4EE07803.9090801@web.de> References: <4EE07803.9090801@web.de> Message-ID: <4EE0EA40.6050403@gmail.com> On 12/8/2011 9:40 AM, J Schreiber wrote: > > > Hi everyone, > > under cygwin the diff-command works well (however I get a lot of strange > Characters when using arrows for recalling last command ) > > > under octave for win however diff causes error, also ver command: > > > > Windows 7 > > regards, J?rg > Hi Joerg, the windows console is very bad handling character control and currently Mintty is the standard text console for cygwin. Try running octave inside mintty if you do not need graphics, or better inside a XTerm (and start X before) so that also the graphics/plot is fine. Regards Marco From tmacchant at yahoo.co.jp Thu Dec 8 11:49:57 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Fri, 9 Dec 2011 02:49:57 +0900 (JST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: Message-ID: <300730.98685.qm@web100301.mail.kks.yahoo.co.jp> Hello I think that Nitzan Arazi is the most proper person to write the Readme because he made the packages. When uploading the binary to Octave-forge site, please ask that Nitzan correct the missing libreadline.dll.a. Regards Tatsuro --- On Thu, 2011/12/8, Carn? Draug wrote: > On 7 December 2011 07:52, c. wrote: > > On 6 Dec 2011, at 19:02, Tatsuro MATSUOKA wrote: > > > >> Hello > >> > >> Please see > >> > >> http://wiki.octave.org/wiki.pl?OctaveForWindows > >> > >> 1.3. Octave-3.4.3-mingw + octaveforge pkgs > >> > >> Please care that this distribution does not have automated installer. > >> You have to install it according the instruction on the page. > >> > >> Regards > >> > >> Tatsuro > > > > > > Carn?, > > do you think it would make sense to host this on Octave-Forge? > > Yes it does. I'm uploading these files now. Sorry for taking so long, > I was not following this thread at all since I know absolutely nothing > of windows. > > If anyone that knows about it, can write a README file, something like > the one for 3.2.4. This file is the one that would go ono the > directory that has the different files and explains why there's one > pkgs and another without, and what to do with the libreadline file. > > Carn? > From mmt200575 at yahoo.com Thu Dec 8 11:59:34 2011 From: mmt200575 at yahoo.com (Mircea Toma) Date: Thu, 8 Dec 2011 09:59:34 -0800 (PST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <300730.98685.qm@web100301.mail.kks.yahoo.co.jp> References: <300730.98685.qm@web100301.mail.kks.yahoo.co.jp> Message-ID: <1323367174.20654.YahooMailNeo@web112014.mail.gq1.yahoo.com> I downloaded libreadline.dll.a.7z and uncompressed it. I don't think that libreadline.dll.a is a name for a windows dll. It is just the name (extension)?? Regards, mircea ________________________________ From: Tatsuro MATSUOKA To: c. ; Carn? Draug Cc: "help-octave at octave.org" ; Mircea Toma ; nitnit Sent: Thursday, December 8, 2011 11:49 AM Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 Hello I think that Nitzan Arazi is the most proper person to write the Readme because he made the packages.? When uploading the binary to Octave-forge site, please ask that Nitzan correct the missing libreadline.dll.a. Regards Tatsuro --- On Thu, 2011/12/8, Carn? Draug? wrote: > On 7 December 2011 07:52, c. wrote: > > On 6 Dec 2011, at 19:02, Tatsuro MATSUOKA wrote: > > > >> Hello > >> > >> Please see > >> > >> http://wiki.octave.org/wiki.pl?OctaveForWindows > >> > >> 1.3. Octave-3.4.3-mingw + octaveforge pkgs > >> > >> Please care that this distribution does not have automated installer. > >> You have to install it according the instruction on the page. > >> > >> Regards > >> > >> Tatsuro > > > > > > Carn?, > > do you think it would make sense to host this on Octave-Forge? > > Yes it does. I'm uploading these files now. Sorry for taking so long, > I was not following this thread at all since I know absolutely nothing > of windows. > > If anyone that knows about it, can write a README file, something like > the one for 3.2.4. This file is the one that would go ono the > directory that has the different files and explains why there's one > pkgs and another without, and what to do with the libreadline file. > > Carn? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sedwards2 at cinci.rr.com Thu Dec 8 13:04:15 2011 From: sedwards2 at cinci.rr.com (Stuart Edwards) Date: Thu, 8 Dec 2011 14:04:15 -0500 Subject: Issue installing Octave-forge database-1.0.4 In-Reply-To: References: Message-ID: <325479CF-734D-419E-96DE-EBD56C8DA985@cinci.rr.com> On Dec 8, 2011, at 11:39 AM, James Gallogly wrote: > Hello, > I am trying to install the database package on Octave 3.2.4 and I get a lot of errors. > > A google search indicates this issue has exisisted for several years. Is this package no longer maintained and thus no longer installable or is there something I cam doing wrong? > > > Below is the output. > > Thanks for any help. > > octave-3.2.4.exe:5> pkg install database-1.0.4.tar.gz > warning: creating installation directory C:\Octave\3.2.4_gcc-4.4.0\share\octave\ > packages > odbc_wrap.cpp: In member function 'void octave_swig_type::install_global()': > odbc_wrap.cpp:1197: error: 'curr_sym_tab' was not declared in this scope > odbc_wrap.cpp:1197: error: 'link_to_global_variable' was not declared in this sc > ope > odbc_wrap.cpp:1204: error: 'symbol_record' was not declared in this scope > odbc_wrap.cpp:1204: error: 'sr' was not declared in this scope > odbc_wrap.cpp:1204: error: 'global_sym_tab' was not declared in this scope > odbc_wrap.cpp: In function 'void SWIG_Octave_SetModule(void*, swig_module_info*) > ': > odbc_wrap.cpp:2110: error: 'curr_sym_tab' was not declared in this scope > odbc_wrap.cpp:2110: error: 'link_to_global_variable' was not declared in this sc > ope > odbc_wrap.cpp: In function 'SQLRETURN SQLGetData(void*, SQLUSMALLINT, std::strin > g*, SQLINTEGER*)': > odbc_wrap.cpp:2429: warning: comparison between signed and unsigned integer expr > essions > odbc_wrap.cpp:2431: warning: comparison between signed and unsigned integer expr > essions > odbc_wrap.cpp: In function 'octave_value_list _wrap_SQLExtendedFetch(const octav > e_value_list&, int)': > odbc_wrap.cpp:5287: error: 'SQLROWSETSIZE' was not declared in this scope > odbc_wrap.cpp:5287: error: 'arg4' was not declared in this scope > odbc_wrap.cpp:5287: error: expected primary-expression before ')' token > odbc_wrap.cpp:5287: error: expected ';' before numeric constant > odbc_wrap.cpp:5324: error: expected primary-expression before ')' token > odbc_wrap.cpp: In function 'octave_value_list Fodbc(const octave_value_list&, in > t)': > odbc_wrap.cpp:9826: error: 'curr_sym_tab' was not declared in this scope > odbc_wrap.cpp:9826: error: 'link_to_global_variable' was not declared in this sc > ope > odbc_wrap.cpp: At global scope: > odbc_wrap.cpp:853: warning: 'void Swig::swig_register_director(octave_swig_type* > , void*, Swig::Director*)' declared 'static' but never defined > mingw32-g++-4.4.0-dw2: odbc_wrap.o: No such file or directory > make: *** [odbc.oct] Error 1 > 'make' returned the following error: make: Entering directory `/tmp/oct-2/databa > se-1.0.4/src' > CXXFLAGS="-D_GLIBCXX_DLL -march=i686 -mtune=generic -O3 -Wall" mkoctfile -DHAVE_ > OCTAVE_32 -v -o odbc.oct -lodbc32 odbc_wrap.cpp > mingw32-g++-4.4.0-dw2 -c -I/usr/local/octmgw32_gcc-4.4.0-dw2/include -Ic:\Octav > e\3.2.4_gcc-4.4.0\include\octave-3.2.4 -Ic:\Octave\3.2.4_gcc-4.4.0\include\octav > e-3.2.4\octave -Ic:\Octave\3.2.4_gcc-4.4.0\include -mieee-fp -D_GLIBCXX_DLL -ma > rch=i686 -mtune=generic -O3 -Wall -DHAVE_OCTAVE_32 odbc_wrap.cpp -o odbc_wrap > .o > mingw32-g++-4.4.0-dw2 -shared -Wl,--export-all-symbols -Wl,--enable-auto-import > -Wl,--enable-runtime-pseudo-reloc -shared-libgcc -Wl,--allow-multiple-definition > -o odbc.oct odbc_wrap.o -lodbc32 -Lc:\Octave\3.2.4_gcc-4.4.0\lib\octave-3.2 > .4 -Lc:\Octave\3.2.4_gcc-4.4.0\lib -loctinterp -loctave -lcruft -shared-libgcc > -Wl,--allow-multiple-definition -llapack -lblas -lfftw3 -lfftw3f -lreadline -ln > curses -liberty -lhdf5 -lz -lm -lgdi32 -lws2_32 -luser32 -lkernel32 -lgfortran > -lstdc++_s > make: Leaving directory `/tmp/oct-2/database-1.0.4/src' > error: called from `pkg>configure_make' in file C:\Octave\3.2.4_gcc-4.4.0\share\ > octave\3.2.4\m\pkg\pkg.m near line 1253, column 2 > error: called from: > error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\pkg\pkg.m at line 714, c > olumn 5 > error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\pkg\pkg.m at line 287, c > olumn 7 > octave-3.2.4.exe:5> list > warning: list objects are deprecated; use cell arrays instead > ans = () > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave I ran into this some months ago and could not resolve the problem. I tried to contact the maintainer but received no reply. There's another package called osdbi that is released under the BSD license that I was able to make work, but only for sqlite3. You can find it here: http://jriedy.users.sonic.net/cgi/jriedy/cgit/cgit.cgi/osdbi/tree/doc/osdbi.texi JRiedy the author will answer emails. I use it on OS X 10.6 and octave 3.4.0. Also on 10.5.8 but no luck on 10.7 Let me know if you run into problems - Stu From bpabbott at mac.com Thu Dec 8 13:35:37 2011 From: bpabbott at mac.com (Ben Abbott) Date: Thu, 08 Dec 2011 14:35:37 -0500 Subject: K means. In-Reply-To: <1323327883.1905.9.camel@hauberg-laptop> References: <1323327883.1905.9.camel@hauberg-laptop> Message-ID: <03F523B9-0C87-41A9-AC44-0FECE2FC5146@mac.com> On Dec 8, 2011, at 2:04 AM, S?ren Hauberg wrote: > ons, 07 12 2011 kl. 22:37 -0500, skrev Jordi Guti?rrez Hermoso: >> On 7 December 2011 19:52, Prachi Jain wrote: >>> I was wondering is there any command by which we can find K means. >> >> We don't have such a function in Octave yet, but there are several >> implementations on the web. Would you like to help us get this >> function into Octave? > > Attached is an implementation I did some years ago; it's missing > documentation, but otherwise is in a reasonable state. > > S?ren Soren, Is your implementation compatible with Matlab's? http://www.mathworks.com/help/toolbox/stats/kmeans.html Ben From thompson.steve.c at gmail.com Thu Dec 8 13:39:14 2011 From: thompson.steve.c at gmail.com (Steve Thompson) Date: Thu, 8 Dec 2011 11:39:14 -0800 Subject: Generate same rand sequence in Octave, Matlab Message-ID: Hi list, I'm trying to figure out if it is possible to get the same rand (and randn) sequence in Matlab (2007) and Octave. In Matlab (7.4.0.287 (R2007a)) I get: >> rand('state', 0) >> rand ans = 0.9501 In Octave (3.2.4) I get: octave:1> rand('state', 0) octave:2> rand ans = 0.84442 It is possible to get the same sequence? Thanks! Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From soren at hauberg.org Thu Dec 8 14:01:31 2011 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Thu, 08 Dec 2011 21:01:31 +0100 Subject: K means. In-Reply-To: <03F523B9-0C87-41A9-AC44-0FECE2FC5146@mac.com> References: <1323327883.1905.9.camel@hauberg-laptop> <03F523B9-0C87-41A9-AC44-0FECE2FC5146@mac.com> Message-ID: <1323374491.1905.15.camel@hauberg-laptop> tor, 08 12 2011 kl. 14:35 -0500, skrev Ben Abbott: > On Dec 8, 2011, at 2:04 AM, S?ren Hauberg wrote: > > > ons, 07 12 2011 kl. 22:37 -0500, skrev Jordi Guti?rrez Hermoso: > >> On 7 December 2011 19:52, Prachi Jain wrote: > >>> I was wondering is there any command by which we can find K means. > >> > >> We don't have such a function in Octave yet, but there are several > >> implementations on the web. Would you like to help us get this > >> function into Octave? > > > > Attached is an implementation I did some years ago; it's missing > > documentation, but otherwise is in a reasonable state. > > > > S?ren > > Soren, > > Is your implementation compatible with Matlab's? > > http://www.mathworks.com/help/toolbox/stats/kmeans.html Not quite, it seems. My implementation requires an explicit initialisation, whereas Matlab finds an initial set of clusters by sampling k random points. This shouldn't be much work to implement, though. The Matlab version also has a bunch of options that my version does not have. I don't think it's much work to implement these options, but I don't have the time right now. S?ren From tmacchant at yahoo.co.jp Thu Dec 8 15:14:30 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Fri, 9 Dec 2011 06:14:30 +0900 (JST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <1323367174.20654.YahooMailNeo@web112014.mail.gq1.yahoo.com> Message-ID: <609896.75394.qm@web100319.mail.kks.yahoo.co.jp> Hello > I downloaded libreadline.dll.a.7z and uncompressed it. I don't think that libreadline.dll.a is a name for a windows dll. It is just the name (extension)?? You wrote octave:2> mkoctfile helloworld.cpp --link-stand-alone c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lreadline collect2: ld returned 1 exit status libreadline.dll.a is a library against dynamic link library for readline.dll. readline.dll already exists in Octave3.4.3_gcc4.5.2\bin Please place libreadline.dll.a in Octave3.4.3_gcc4.5.2\lib *.dll.a files are used in linking for MinGW platform. Regards Tatsuro --- On Fri, 2011/12/9, Mircea Toma wrote: > > > Regards, > mircea > > > > > From: Tatsuro MATSUOKA > To: c. ; Carn? Draug > Cc: "help-octave at octave.org" ; Mircea Toma ; nitnit > Sent: Thursday, December 8, 2011 11:49 AM > Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 > > Hello > > I think that Nitzan Arazi is the most proper person to write the Readme because he made the packages.? When uploading the binary to Octave-forge site, please ask that Nitzan correct the missing libreadline.dll.a. > > Regards > > Tatsuro > > > --- On Thu, 2011/12/8, Carn? Draug? wrote: > > > On 7 December 2011 07:52, c. wrote: > > > On 6 Dec 2011, at 19:02, Tatsuro MATSUOKA wrote: > > > > > >> Hello > > >> > > >> Please see > > >> > > >> http://wiki.octave.org/wiki.pl?OctaveForWindows > > >> > > >> 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > >> > > >> Please care that this distribution does not have automated installer. > > >> You have to install it according the instruction on the page. > > >> > > >> Regards > > >> > > >> Tatsuro > > > > > > > > > Carn?, > > > do you think it would make sense to host this on Octave-Forge? > > > > Yes it does. I'm uploading these files now. Sorry for taking so long, > > I was not following this thread at all since I know absolutely nothing > > of windows. > > > > If anyone that knows about it, can write a README file, something like > > the one for 3.2.4. This file is the one that would go ono the > > directory that has the different files and explains why there's one > > pkgs and another without, and what to do with the libreadline file. > > > > Carn? > > > > > From yoyoq at yahoo.com Thu Dec 8 15:51:00 2011 From: yoyoq at yahoo.com (jp d) Date: Thu, 8 Dec 2011 13:51:00 -0800 (PST) Subject: periodogram format question In-Reply-To: References: Message-ID: <1323381060.17192.YahooMailNeo@web130104.mail.mud.yahoo.com> hi, dumb question, what wrong with this? a = [-1,-1,-1, 2,-1,-1, 2, 1, 1; ?2, 2,-1,-2,-1, 2,-2, 1,-1,; -1, 1,-2, 1, 1, 1, 2,-2, 1; ?2,-1,-1,-1, 1,-1,-2, 1, 1; -1,-2,-1,-1,-1,-1, 2,-1, 2; ?2,-2,-2,-1, 2, 1, 2,-2,-1;] periodogram(a) i get these errors: error: operator -: nonconformant arguments (op1 is 6x9, op2 is 1x9) error: evaluating binary operator `-' near line 41, column 25 error: evaluating argument list element number 1 error: evaluating argument list element number 1 error: evaluating binary operator `.^' near line 41, column 39 error: evaluating binary operator `/' near line 41, column 44 error: evaluating assignment expression near line 41, column 10 error: called from `periodogram' in file `/usr/share/octave/3.0.5/m/signal/periodogram.m' error: near line 8 of file `negnotyet.dat' thanks jpd From nitnit at gmail.com Thu Dec 8 16:30:16 2011 From: nitnit at gmail.com (nitnit) Date: Thu, 8 Dec 2011 14:30:16 -0800 (PST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <300730.98685.qm@web100301.mail.kks.yahoo.co.jp> References: <1323189387.37727.YahooMailNeo@web112014.mail.gq1.yahoo.com> <41111.71165.qm@web100319.mail.kks.yahoo.co.jp> <3AFFF054-3231-4AD0-991B-B0AE94ED5B52@gmail.com> <300730.98685.qm@web100301.mail.kks.yahoo.co.jp> Message-ID: <1323383416557-4174622.post@n4.nabble.com> Tatsuro MATSUOKA-2 wrote > > Hello > > I think that Nitzan Arazi is the most proper person to write the Readme > because he made the packages. When uploading the binary to Octave-forge > site, please ask that Nitzan correct the missing libreadline.dll.a. > > Regards > > Tatsuro > > The following text can be used as a readme for current 7z archives. I hope it will allow most users to install octave on windows. Regarding libreadline.dll.a (in libreadline.dll.a.7z), I will add it to the main 7z archive on next release Readme file for Octave-3.4.3-mingw + octaveforge pkgs (updated 2011-12-09) --------------------------------------------------------------------------- The following 7z archives can be used for manual installation of octave-3.4.3 mingw32 on MS windows: a. Octave3.4.3_gcc4.5.2_20111025.7z (MD5:5AA004D933E000E762AE2AE95573ACBD) - is a 7z archive which includes a directory tree of all the binaries and libraries required for a complete octave installation (excluding octaveforge packages). b. libreadline.dll.a.7z (MD5:975F8A8B4B5255E079F1E0E4E8530815) - additional library file (will be added to main 7z on next release) These archive include: octave-3.4.3 including PDF and html documentation (built using Tatsuro Matsuka OctaveLibs.zip and gplibs.zip http://www.tatsuromatsuoka.com/octave/Eng/Win/) mingw32 + msys tool chain gnuplot-4.4.3 fig2dev-3.2.5c ghostscript-9.0.2 pstoedit-3.50 c. Octave3.4.3_gcc4.5.2_pkgs_20111026.7z (MD5:2987F6078B4AD161F2D23634D5109D61) - is a 7z archive which includes additional binaries and libraries for a set of octaveforge packages. The included packages are: actuarial-1.1.0 ad-1.0.6 audio-1.1.4 benchmark-1.1.1 bim-1.0.2 bioinfo-0.1.2 civil-engineering-1.0.7 combinatorics-1.0.9 communications-1.1.0_patched control-2.2.0 data-smoothing-1.2.3 dataframe-0.8.2 econometrics-1.0.8 fenv-0.1.0 financial-0.3.2 fpl-1.2.0 fuzzy-logic-toolkit-0.2.4 ga-0.9.8 general-1.2.2 generate_html-0.1.3 geometry-1.2.0 gnuplot-1.0.1 gpc-0.1.7 gsl-1.0.8 ident-1.0.7 image-1.0.15 informationtheory-0.1.8 integration-1.0.7 io-1.0.15 + supporting java jars irsa-1.0.7 java-1.2.8_patched + java.opts file linear-algebra-2.0.0_svn20111014 mapping-1.0.7 mechanics-1.1.0 miscellaneous-1.0.11_svn20110912 missing-functions-1.0.2 msh-1.0.2 multicore-0.2.15 nlwing2-1.2.0 nnet-0.1.13 nurbs-1.3.5 ocs-0.1.1_patched octclip-1.0.0 octgpr-1.2.0 odebvp-1.0.6 odepkg-0.8.0 optim-1.0.16 optiminterp-0.3.3 outliers-0.13.9 physicalconstants-0.1.7 plot-1.0.8 quaternion-1.0.0 secs1d-0.0.8 secs2d-0.0.8 secs3d-0.0.1 signal-1.0.11 simp-1.1.0 sockets-1.0.7_svn20111014 specfun-1.0.9 special-matrix-1.0.7 spline-gcvspl-1.0.8 splines-1.0.7 statistics-1.0.10 strings-1.0.7 struct-1.0.9 symband-1.0.10 symbolic-1.1.0 tcl-octave-0.1.8 time-1.0.9 tsa-4.1.1 video-1.0.2_patched vrml-1.0.12_svn20111014_patched windows-1.1.0 xraylib-1.0.8 zenity-0.5.7 Installation instructions: ----------------------- 1. Create an installation directory of which doesn't have space chars (i.e. C:\Octave\Octave3.4.2_gcc4.5.2\). This directory is referred hereafter as . 2. Extract the complete directories tree from Octave3.4.3_gcc4.5.2_20111025.7z to the installation directory keeping the original directory structure as in the archive (you can use 7zip tool from http://www.7-zip.org/). 3. Extract libreadline.dll.a from libreadline.dll.a.7z and copy it to \lib subdir. 4. Copy octave3.4.3_gcc4.5.2.lnk to any convenient location and edit its properties respectively to point to \bin\octave.exe and \share\octave\3.4.3\imagelib\octave-logo.ico as an icon 5. Copy octave3.4.3_gcc4.5.2_docs.lnk to any convenient location and edit its properties respectively to point to \doc\octave and \share\octave\3.4.3\imagelib\octave-logo.ico as an icon. At this point you can: a. Launch and use octave by double-clicking the copied octave3.4.3_gcc4.5.2.lnk b. Access and browse the documentation files by double-clicking the copied octave3.4.3_gcc4.5.2_docs.lnk Installation instructions for the Octave-forge packages: ----------------------------------------------------- 6. Extract the complete directories tree from Octave3.4.2_gcc4.5.2_pkgs_20111014.7z to the installation directory () keeping the original directory structure as in the archive (you can use 7zip tool from http://www.7-zip.org/). 7. In order to update octave_packages database with your installation tree and auto-load most packages (excluding 'ad' and 'windows' which may crash octave when loaded and 'clear all' is executed), launch Octave and execute the following 3 rebuild commands from the octave console: pkg rebuild -auto pkg rebuild -noauto ad windows pkg rebuild -auto java Last pkg rebuild command is required in order for the java pkg entry to be moved to the top of \share\octave\octave_packages db file - thus java pkg is loaded before io pkg is loaded, and io pkg related jars are added to java class path. 8. You can optionally adjust your installed packages status per your specific needs and usage by executing the following commands: a. To interactively load or unload a package pkg load or pkg unload b. To disable auto-load for specific pkg pkg rebuild -noauto c. To enable auto-load for specific pkg pkg rebuild -auto d. To completely uninstall a package pkg uninstall Optional installation of Notepad++ as an editor (recommended): ------------------------------------------------------------- 9. Download recent Notepad++ installation package from http://notepad-plus-plus.org/ and install it on your system. 10. Edit \share\octave\site\m\startup\octaverc and un-comment the line which sets octave default editor: EDITOR('C:\\Program Files\\Notepad++\\notepad++.exe'); Note: You may adjust the above line for the location of notepad++.exe as installed on your system. -- View this message in context: http://octave.1599824.n4.nabble.com/how-to-instal-or-upgrade-the-latest-octave-version-on-windows-7-tp4165440p4174622.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at octave.org Thu Dec 8 17:17:50 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Thu, 8 Dec 2011 18:17:50 -0500 Subject: Generate same rand sequence in Octave, Matlab In-Reply-To: References: Message-ID: On 8 December 2011 14:39, Steve Thompson wrote: > Hi list, > > I'm trying to figure out if it is possible to get the same rand (and randn) > sequence in Matlab (2007) and Octave. > > In Matlab (7.4.0.287 (R2007a)) I get: >>> rand('state', 0) >>> rand > ans =?0.9501 > > In Octave (3.2.4) I get: > octave:1> rand('state', 0) > octave:2> rand > ans = ?0.84442 > > It is possible to get the same sequence? Unlkely. We don't use the same implementation, and I would expect the details of their implementation are hidden, so there's no way we could even match it. If you are able to find a description of the details (if possible, reading the source) and are able to describe those details to us WITHOUT showing us the source (i.e. clean room reverse engineering, just give us a spec to implement) we might be able to patch Octave to do this. - Jordi G. H. From bpabbott at mac.com Thu Dec 8 17:51:50 2011 From: bpabbott at mac.com (Ben Abbott) Date: Thu, 08 Dec 2011 18:51:50 -0500 Subject: Generate same rand sequence in Octave, Matlab In-Reply-To: References: Message-ID: <6840F438-E843-4B19-A3EE-F997E975A67B@mac.com> On Dec 8, 2011, at 6:17 PM, Jordi Guti?rrez Hermoso wrote: > On 8 December 2011 14:39, Steve Thompson wrote: >> Hi list, >> >> I'm trying to figure out if it is possible to get the same rand (and randn) >> sequence in Matlab (2007) and Octave. >> >> In Matlab (7.4.0.287 (R2007a)) I get: >>>> rand('state', 0) >>>> rand >> ans = 0.9501 >> >> In Octave (3.2.4) I get: >> octave:1> rand('state', 0) >> octave:2> rand >> ans = 0.84442 >> >> It is possible to get the same sequence? > > Unlkely. We don't use the same implementation, and I would expect the > details of their implementation are hidden, so there's no way we could > even match it. > > If you are able to find a description of the details (if possible, > reading the source) and are able to describe those details to us > WITHOUT showing us the source (i.e. clean room reverse engineering, > just give us a spec to implement) we might be able to patch Octave to > do this. > > - Jordi G. H. There's no chance to peak at the code. Both rand and randn are built-ins for Matlab. which rand built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/randfun/rand) which randn built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/randfun/randn) Ben From mmt200575 at yahoo.com Thu Dec 8 18:14:34 2011 From: mmt200575 at yahoo.com (Mircea Toma) Date: Thu, 8 Dec 2011 16:14:34 -0800 (PST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <609896.75394.qm@web100319.mail.kks.yahoo.co.jp> References: <1323367174.20654.YahooMailNeo@web112014.mail.gq1.yahoo.com> <609896.75394.qm@web100319.mail.kks.yahoo.co.jp> Message-ID: <1323389674.8576.YahooMailNeo@web112005.mail.gq1.yahoo.com> Thaks for help. Now I get "undefined reference to `WinMain at 16'". Regards, Mircea GNU Octave, version 3.4.3 ............................. octave:1> cd "C:/oct-test/helloworld" octave:2> mkoctfile helloworld.cpp --link-stand-alone c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../libmingw32.a(main.o): In function `main': C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference to `WinMain at 16' collect2: ld returned 1 exit status octave:3> ________________________________ From: Tatsuro MATSUOKA To: c. ; Carn? Draug ; Mircea Toma Cc: "help-octave at octave.org" ; nitnit Sent: Thursday, December 8, 2011 3:14 PM Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 Hello > I downloaded libreadline.dll.a.7z and uncompressed it. I don't think that libreadline.dll.a is a name for a windows dll. It is just the name (extension)?? You wrote octave:2> mkoctfile helloworld.cpp --link-stand-alone c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lreadline collect2: ld returned 1 exit status libreadline.dll.a is a library against dynamic link library for readline.dll. readline.dll already exists in Octave3.4.3_gcc4.5.2\bin Please place libreadline.dll.a in Octave3.4.3_gcc4.5.2\lib *.dll.a files are used in linking for MinGW platform. Regards Tatsuro --- On Fri, 2011/12/9, Mircea Toma wrote: > > > Regards, > mircea > >? >? >? >? From: Tatsuro MATSUOKA >? To: c. ; Carn? Draug > Cc: "help-octave at octave.org" ; Mircea Toma ; nitnit >? Sent: Thursday, December 8, 2011 11:49 AM >? Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 >? > Hello > > I think that Nitzan Arazi is the most proper person to write the Readme because he made the packages.? When uploading the binary to Octave-forge site, please ask that Nitzan correct the missing libreadline.dll.a. > > Regards > > Tatsuro > > > --- On Thu, 2011/12/8, Carn? Draug? wrote: > > > On 7 December 2011 07:52, c. wrote: > > > On 6 Dec 2011, at 19:02, Tatsuro MATSUOKA wrote: > > > > > >> Hello > > >> > > >> Please see > > >> > > >> http://wiki.octave.org/wiki.pl?OctaveForWindows > > >> > > >> 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > >> > > >> Please care that this distribution does not have automated installer. > > >> You have to install it according the instruction on the page. > > >> > > >> Regards > > >> > > >> Tatsuro > > > > > > > > > Carn?, > > > do you think it would make sense to host this on Octave-Forge? > > > > Yes it does. I'm uploading these files now. Sorry for taking so long, > > I was not following this thread at all since I know absolutely nothing > > of windows. > > > > If anyone that knows about it, can write a README file, something like > > the one for 3.2.4. This file is the one that would go ono the > > directory that has the different files and explains why there's one > > pkgs and another without, and what to do with the libreadline file. > > > > Carn? > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordigh at octave.org Thu Dec 8 18:27:27 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Thu, 8 Dec 2011 19:27:27 -0500 Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <1323389674.8576.YahooMailNeo@web112005.mail.gq1.yahoo.com> References: <1323367174.20654.YahooMailNeo@web112014.mail.gq1.yahoo.com> <609896.75394.qm@web100319.mail.kks.yahoo.co.jp> <1323389674.8576.YahooMailNeo@web112005.mail.gq1.yahoo.com> Message-ID: On 8 December 2011 19:14, Mircea Toma wrote: > Thaks for help. Now I get "undefined reference to `WinMain at 16'". Looks like you need to define an int main function in your helloworld.c++. - Jordi G. H. From jcw at speakeasy.net Thu Dec 8 18:44:47 2011 From: jcw at speakeasy.net (Jason C. Wells) Date: Thu, 08 Dec 2011 16:44:47 -0800 Subject: Generate same rand sequence in Octave, Matlab In-Reply-To: References: Message-ID: <4EE159FF.10005@speakeasy.net> On 12/08/11 11:39, Steve Thompson wrote: > Hi list, > > I'm trying to figure out if it is possible to get the same rand (and > randn) sequence in Matlab (2007) and Octave. > > In Matlab (7.4.0.287 (R2007a)) I get: > >> rand('state', 0) > >> rand > ans = 0.9501 > > In Octave (3.2.4) I get: > octave:1> rand('state', 0) > octave:2> rand > ans = 0.84442 > > It is possible to get the same sequence? > You could write the sequence to a file with one program and read it with the other. (I realize that I haven't answered your question, maybe I've helped though.) Regards, Jason From jwe at octave.org Thu Dec 8 19:03:37 2011 From: jwe at octave.org (John W. Eaton) Date: Thu, 8 Dec 2011 20:03:37 -0500 Subject: Generate same rand sequence in Octave, Matlab In-Reply-To: References: Message-ID: <20193.24169.172233.575851@gargle.gargle.HOWL> On 8-Dec-2011, Steve Thompson wrote: | Hi list, | | I'm trying to figure out if it is possible to get the same rand (and randn) | sequence in Matlab (2007) and Octave. | | In Matlab (7.4.0.287 (R2007a)) I get: | >> rand('state', 0) | >> rand | ans =?0.9501 | | In Octave (3.2.4) I get: | octave:1> rand('state', 0) | octave:2> rand | ans = ?0.84442 | | It is possible to get the same sequence? I think the random number generator in Matlab has changed in the past and I don't know of anything that says they won't do it again, so you might not get the same sequence if you use different versions of Matlab. jwe From freddy.vate01 at gmail.com Thu Dec 8 19:24:18 2011 From: freddy.vate01 at gmail.com (=?UTF-8?Q?Freddy_L=C3=B3pez?=) Date: Thu, 8 Dec 2011 20:54:18 -0430 Subject: periodogram format question In-Reply-To: <1323381060.17192.YahooMailNeo@web130104.mail.mud.yahoo.com> References: <1323381060.17192.YahooMailNeo@web130104.mail.mud.yahoo.com> Message-ID: Hello. If I type: periodogram(rand(1,10)) I get: error: vertical dimensions mismatch (1x1 vs 1x127) error: called from: error: /usr/local/share/octave/3.4.3/m/signal/periodogram.m at line 158, column 5 And if I type: periodogram(rand(10,1)) I get a plot. So, I suppose you arrange your data as a = [-1;-1;-1; 2;-1;-1; 2; 1; 1; 2; 2;-1;-2;-1; 2;-2; 1;-1; -1; 1;-2; 1; 1; 1; 2;-2; 1; 2;-1;-1;-1; 1;-1;-2; 1; 1; -1;-2;-1;-1;-1;-1; 2;-1; 2; 2;-2;-2;-1; 2; 1; 2;-2;-1] and type: periodogram(a) you will get a periodogram. But I'm not sure... On Thu, Dec 8, 2011 at 17:21, jp d wrote: > hi, > dumb question, > what wrong with this? > > a = [-1,-1,-1, 2,-1,-1, 2, 1, 1; > 2, 2,-1,-2,-1, 2,-2, 1,-1,; > -1, 1,-2, 1, 1, 1, 2,-2, 1; > 2,-1,-1,-1, 1,-1,-2, 1, 1; > -1,-2,-1,-1,-1,-1, 2,-1, 2; > 2,-2,-2,-1, 2, 1, 2,-2,-1;] > > periodogram(a) > > i get these errors: > > error: operator -: nonconformant arguments (op1 is 6x9, op2 is 1x9) > error: evaluating binary operator `-' near line 41, column 25 > error: evaluating argument list element number 1 > error: evaluating argument list element number 1 > error: evaluating binary operator `.^' near line 41, column 39 > error: evaluating binary operator `/' near line 41, column 44 > error: evaluating assignment expression near line 41, column 10 > error: called from `periodogram' in file > `/usr/share/octave/3.0.5/m/signal/periodogram.m' > error: near line 8 of file `negnotyet.dat' > > thanks > jpd > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > -- ?But Gwindor answered: 'The doom lies in yourself, not in your name.'? JRR Tolkien -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.journeaux at newpagecorp.com Thu Dec 8 19:32:34 2011 From: ian.journeaux at newpagecorp.com (ijourneaux) Date: Thu, 8 Dec 2011 17:32:34 -0800 (PST) Subject: Octave 3.4.3 for Mingw; IMRead Message-ID: <1323394354372-4175118.post@n4.nabble.com> I downloaded and installed the latest version of Octave 3.4.3 and all of the packages. Installation seem to go fine but when I try to run the scripts I have running under Octave 3.2.4 I encounter errors with imread error: imread: invalid image file: invalid conversion from string to real N-d array error: called from: error: C:\Octave343\Octave3.4.3_gcc4.5.2\share\octave\3.4.3\m\image\imread.m at line 74, column 7 error: C:/HelioDotSkip/Scripts\helio2.m at line 94, column 10 \ Do I need to install GraphicsMagik separately? -- View this message in context: http://octave.1599824.n4.nabble.com/Octave-3-4-3-for-Mingw-IMRead-tp4175118p4175118.html Sent from the Octave - General mailing list archive at Nabble.com. From carandraug+dev at gmail.com Thu Dec 8 19:43:24 2011 From: carandraug+dev at gmail.com (=?ISO-8859-1?Q?Carn=EB_Draug?=) Date: Fri, 9 Dec 2011 01:43:24 +0000 Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <1323383416557-4174622.post@n4.nabble.com> References: <1323189387.37727.YahooMailNeo@web112014.mail.gq1.yahoo.com> <41111.71165.qm@web100319.mail.kks.yahoo.co.jp> <3AFFF054-3231-4AD0-991B-B0AE94ED5B52@gmail.com> <300730.98685.qm@web100301.mail.kks.yahoo.co.jp> <1323383416557-4174622.post@n4.nabble.com> Message-ID: On 8 December 2011 22:30, nitnit wrote: > > Tatsuro MATSUOKA-2 wrote >> >> Hello >> >> I think that Nitzan Arazi is the most proper person to write the Readme >> because he made the packages. ?When uploading the binary to Octave-forge >> site, please ask that Nitzan correct the missing libreadline.dll.a. >> >> Regards >> >> Tatsuro >> >> > > The following text can be used as a readme for current 7z archives. I hope > it will allow most users to install octave on windows. Ok. I added it to the folder so it should show up when users are downloading it. See https://sourceforge.net/projects/octave/files/Octave_Windows%20-%20MinGW/Octave%203.4.3%20for%20Windows%20MinGW%20Installer/ Carn? From tmacchant at yahoo.co.jp Thu Dec 8 19:50:45 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Fri, 9 Dec 2011 10:50:45 +0900 (JST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <1323389674.8576.YahooMailNeo@web112005.mail.gq1.yahoo.com> Message-ID: <208805.62279.qm@web100314.mail.kks.yahoo.co.jp> Hello I have used the following source in the octave manual. //HelloWorld.cc #include #include int main (void) { std::cout << "Hello Octave world!\n"; int n = 2; Matrix a_matrix = Matrix (n, n); for (octave_idx_type i = 0; i < n; i++) { for (octave_idx_type j = 0; j < n; j++) { a_matrix (i, j) = (i + 1) * 10 + (j + 1); } } std::cout << a_matrix; return 0; } // End of HelloWorld.cc octave:5> mkoctfile --link-stand-alone HelloWorld.cc -o HelloWorld octave:6> system ('HelloWorld') Hello Octave world! 11 12 21 22 ans = 0 Worked as expected Regards Tatsuro --- On Fri, 2011/12/9, Mircea Toma wrote: > > > Thaks for help. Now I get "undefined reference to `WinMain at 16'". > Regards, > Mircea > > > > GNU Octave, version 3.4.3 > ............................. > octave:1> cd "C:/oct-test/helloworld" > octave:2> mkoctfile helloworld.cpp --link-stand-alone > c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../libmingw32.a(main.o): In function `main': > C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference to `WinMain at 16' > collect2: ld returned 1 exit status > octave:3> > > > > > > From: Tatsuro MATSUOKA > To: c. ; Carn? Draug ; Mircea Toma > Cc: "help-octave at octave.org" ; nitnit > Sent: Thursday, December 8, 2011 3:14 PM > Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 > > Hello > > > I downloaded libreadline.dll.a.7z and uncompressed it. I don't think that libreadline.dll.a is a name for a windows dll. It is just the name (extension)?? > > You wrote > octave:2> mkoctfile helloworld.cpp --link-stand-alone > c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lreadline > collect2: ld returned 1 exit status > > libreadline.dll.a is a library against dynamic link library for readline.dll. > readline.dll already exists in Octave3.4.3_gcc4.5.2\bin > Please place libreadline.dll.a in Octave3.4.3_gcc4.5.2\lib > *.dll.a files are used in linking for MinGW platform. > > Regards > > Tatsuro > > --- On Fri, 2011/12/9, Mircea Toma wrote: > > > > > > > > Regards, > > mircea > > > >? > >? > >? > >? From: Tatsuro MATSUOKA > >? To: c. ; Carn? Draug > > Cc: "help-octave at octave.org" ; Mircea Toma ; nitnit > >? Sent: Thursday, December 8, 2011 11:49 AM > >? Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 > >? > > Hello > > > > I think that Nitzan Arazi is the most proper person to write the Readme because he made the packages.? When uploading the binary to Octave-forge site, please ask that Nitzan correct the missing libreadline.dll.a. > > > > Regards > > > > Tatsuro > > > > > > --- On Thu, 2011/12/8, Carn? Draug? wrote: > > > > > On 7 December 2011 07:52, c. wrote: > > > > On 6 Dec 2011, at 19:02, Tatsuro MATSUOKA wrote: > > > > > > > >> Hello > > > >> > > > >> Please see > > > >> > > > >> http://wiki.octave.org/wiki.pl?OctaveForWindows > > > >> > > > >> 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > > >> > > > >> Please care that this distribution does not have automated installer. > > > >> You have to install it according the instruction on the page. > > > >> > > > >> Regards > > > >> > > > >> Tatsuro > > > > > > > > > > > > Carn?, > > > > do you think it would make sense to host this on Octave-Forge? > > > > > > Yes it does. I'm uploading these files now. Sorry for taking so long, > > > I was not following this thread at all since I know absolutely nothing > > > of windows. > > > > > > If anyone that knows about it, can write a README file, something like > > > the one for 3.2.4. This file is the one that would go ono the > > > directory that has the different files and explains why there's one > > > pkgs and another without, and what to do with the libreadline file. > > > > > > Carn? > > > > > > > > > > > > From carandraug+dev at gmail.com Thu Dec 8 19:52:17 2011 From: carandraug+dev at gmail.com (=?ISO-8859-1?Q?Carn=EB_Draug?=) Date: Fri, 9 Dec 2011 01:52:17 +0000 Subject: K means. In-Reply-To: <1323374491.1905.15.camel@hauberg-laptop> References: <1323327883.1905.9.camel@hauberg-laptop> <03F523B9-0C87-41A9-AC44-0FECE2FC5146@mac.com> <1323374491.1905.15.camel@hauberg-laptop> Message-ID: On 8 December 2011 20:01, S?ren Hauberg wrote: > tor, 08 12 2011 kl. 14:35 -0500, skrev Ben Abbott: >> On Dec 8, 2011, at 2:04 AM, S?ren Hauberg wrote: >> >> > ons, 07 12 2011 kl. 22:37 -0500, skrev Jordi Guti?rrez Hermoso: >> >> On 7 December 2011 19:52, Prachi Jain wrote: >> >>> I was wondering is there any command by which we can find K means. >> >> >> >> We don't have such a function in Octave yet, but there are several >> >> implementations on the web. Would you like to help us get this >> >> function into Octave? >> > >> > Attached is an implementation I did some years ago; it's missing >> > documentation, but otherwise is in a reasonable state. >> > >> > S?ren >> >> Soren, >> >> Is your implementation compatible with Matlab's? >> >> ? ? ? http://www.mathworks.com/help/toolbox/stats/kmeans.html > > Not quite, it seems. > > My implementation requires an explicit initialisation, whereas Matlab > finds an initial set of clusters by sampling k random points. This > shouldn't be much work to implement, though. > > The Matlab version also has a bunch of options that my version does not > have. I don't think it's much work to implement these options, but I > don't have the time right now. > > S?ren Should we add it to the statistics package anyway? Other users can work on top of it if it is made available first. What do you think? Carn? From jordigh at octave.org Thu Dec 8 20:00:10 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Thu, 8 Dec 2011 21:00:10 -0500 Subject: K means. In-Reply-To: References: <1323327883.1905.9.camel@hauberg-laptop> <03F523B9-0C87-41A9-AC44-0FECE2FC5146@mac.com> <1323374491.1905.15.camel@hauberg-laptop> Message-ID: On 8 December 2011 20:52, Carn? Draug wrote: > On 8 December 2011 20:01, S?ren Hauberg wrote: >>> > ons, 07 12 2011 kl. 22:37 -0500, skrev Jordi Guti?rrez Hermoso: >>> >> On 7 December 2011 19:52, Prachi Jain wrote: >>> >>> I was wondering is there any command by which we can find K means. >>> >> >>> >> We don't have such a function in Octave yet, but there are several >>> >> implementations on the web. Would you like to help us get this >>> >> function into Octave? >>> > >>> > Attached is an implementation I did some years ago; it's missing >>> > documentation, but otherwise is in a reasonable state. [snip] > Should we add it to the statistics package anyway? Other users can > work on top of it if it is made available first. What do you think? Can you do something like development and stable branches with svn, so that you can upload half-assed implementations without affecting the release cycle? - Jordi G. H. From soren at hauberg.org Fri Dec 9 01:00:17 2011 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Fri, 09 Dec 2011 08:00:17 +0100 Subject: K means. In-Reply-To: References: <1323327883.1905.9.camel@hauberg-laptop> <03F523B9-0C87-41A9-AC44-0FECE2FC5146@mac.com> <1323374491.1905.15.camel@hauberg-laptop> Message-ID: <1323414017.1905.22.camel@hauberg-laptop> fre, 09 12 2011 kl. 01:52 +0000, skrev Carn? Draug: > On 8 December 2011 20:01, S?ren Hauberg wrote: > > tor, 08 12 2011 kl. 14:35 -0500, skrev Ben Abbott: > >> On Dec 8, 2011, at 2:04 AM, S?ren Hauberg wrote: > >> > >> > ons, 07 12 2011 kl. 22:37 -0500, skrev Jordi Guti?rrez Hermoso: > >> >> On 7 December 2011 19:52, Prachi Jain wrote: > >> >>> I was wondering is there any command by which we can find K means. > >> >> > >> >> We don't have such a function in Octave yet, but there are several > >> >> implementations on the web. Would you like to help us get this > >> >> function into Octave? > >> > > >> > Attached is an implementation I did some years ago; it's missing > >> > documentation, but otherwise is in a reasonable state. > >> > > >> > S?ren > >> > >> Soren, > >> > >> Is your implementation compatible with Matlab's? > >> > >> http://www.mathworks.com/help/toolbox/stats/kmeans.html > > > > Not quite, it seems. > > > > My implementation requires an explicit initialisation, whereas Matlab > > finds an initial set of clusters by sampling k random points. This > > shouldn't be much work to implement, though. > > > > The Matlab version also has a bunch of options that my version does not > > have. I don't think it's much work to implement these options, but I > > don't have the time right now. > > > > S?ren > > Should we add it to the statistics package anyway? Other users can > work on top of it if it is made available first. What do you think? My current version works like clusters = kmeans (data, initial_clusters); whereas Matlab's work like clusters = kmeans (data, number_of_clusters); I think we should at least match this before putting it into the statistics package. But otherwise, I see no problems with not having all the options available that Matlab has. S?ren From nitnit at gmail.com Fri Dec 9 01:26:51 2011 From: nitnit at gmail.com (nitnit) Date: Thu, 8 Dec 2011 23:26:51 -0800 (PST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <1323389674.8576.YahooMailNeo@web112005.mail.gq1.yahoo.com> References: <1323189387.37727.YahooMailNeo@web112014.mail.gq1.yahoo.com> <41111.71165.qm@web100319.mail.kks.yahoo.co.jp> <3AFFF054-3231-4AD0-991B-B0AE94ED5B52@gmail.com> <300730.98685.qm@web100301.mail.kks.yahoo.co.jp> <1323367174.20654.YahooMailNeo@web112014.mail.gq1.yahoo.com> <609896.75394.qm@web100319.mail.kks.yahoo.co.jp> <1323389674.8576.YahooMailNeo@web112005.mail.gq1.yahoo.com> Message-ID: <1323415611143-4175702.post@n4.nabble.com> Mircea Toma wrote > > Thaks for help. Now I get "undefined reference to `WinMain at 16'". > Regards, > Mircea > > > GNU Octave, version 3.4.3 > ............................. > octave:1> cd "C:/oct-test/helloworld" > octave:2> mkoctfile helloworld.cpp --link-stand-alone > c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../libmingw32.a(main.o): In > function `main': > C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference to > `WinMain at 16' > collect2: ld returned 1 exit status > octave:3> > > It seems that your mkoctfile uses mingw32 with gcc-4.6.1 (you have probably installed recent mingw32 on your system). The installed octave environment vars which are set in octaverc (supplied by the 7z archives) refer to mingw32 in your octave tree which consists of gcc-4.5.2, so I beleive that the problems you are facing are because you are now using a mixed mingw32 environment. I have not tried to compile octave with gcc-4.6.1 yet and I have not tried mkoctfile with recent mingw tools (gcc-4.6.1). You can either: a. Uninstall your recently installed mingw tools or at least remove it from the search path of your system (that works for the helloworld examples) or (if you must use gcc-4.6.1 for your application) b. Edit and change your octaverc file such that all environment vars will refer to your recent mingw installation and not to mingw32 subtree of your octave installation tree. Be aware that I have not tested that yet. Regards Nitzan -- View this message in context: http://octave.1599824.n4.nabble.com/how-to-instal-or-upgrade-the-latest-octave-version-on-windows-7-tp4165440p4175702.html Sent from the Octave - General mailing list archive at Nabble.com. From nitnit at gmail.com Fri Dec 9 01:33:10 2011 From: nitnit at gmail.com (nitnit) Date: Thu, 8 Dec 2011 23:33:10 -0800 (PST) Subject: Octave 3.4.3 for Mingw; IMRead In-Reply-To: <1323394354372-4175118.post@n4.nabble.com> References: <1323394354372-4175118.post@n4.nabble.com> Message-ID: <1323415990426-4175710.post@n4.nabble.com> ijourneaux wrote > > I downloaded and installed the latest version of Octave 3.4.3 and all of > the packages. Installation seem to go fine but when I try to run the > scripts I have running under Octave 3.2.4 I encounter errors with imread > > error: imread: invalid image file: invalid conversion from string to real > N-d array > error: called from: > error: > C:\Octave343\Octave3.4.3_gcc4.5.2\share\octave\3.4.3\m\image\imread.m at > line 74, column 7 > error: C:/HelioDotSkip/Scripts\helio2.m at line 94, column 10 > \ > Do I need to install GraphicsMagik separately? > Can you send an example image file for which you get this error ? -- View this message in context: http://octave.1599824.n4.nabble.com/Octave-3-4-3-for-Mingw-IMRead-tp4175118p4175710.html Sent from the Octave - General mailing list archive at Nabble.com. From fagung at gmail.com Fri Dec 9 01:44:26 2011 From: fagung at gmail.com (Fa-Gung Fan) Date: Fri, 9 Dec 2011 02:44:26 -0500 Subject: Add to PATH on Windows Message-ID: Hi, On Windows, I would like to add this directory C:\Program Files\gs\gs9.02\bin to PATH environmental variable. I entered addpath ("C:\\Program Files\\gs\\gs9.02\\bin") After that, I used getenv ("PATH") to check the new PATH, but I don't see the directory got added to the PATH. Any suggestion? Thanks. Fan -------------- next part -------------- An HTML attachment was scrubbed... URL: From lukshuntim at gmail.com Fri Dec 9 01:59:24 2011 From: lukshuntim at gmail.com (lukshuntim at gmail.com) Date: Fri, 09 Dec 2011 15:59:24 +0800 Subject: Add to PATH on Windows In-Reply-To: References: Message-ID: <4EE1BFDC.7020009@gmail.com> On 12/09/2011 03:44 PM, Fa-Gung Fan wrote: > Hi, > > On Windows, I would like to add this directory C:\Program > Files\gs\gs9.02\bin to PATH environmental variable. I entered > addpath ("C:\\Program Files\\gs\\gs9.02\\bin") > After that, I used > getenv ("PATH") > to check the new PATH, but I don't see the directory got added to the > PATH. Any suggestion? Thanks. > > Fan Try the path command. Regards, ST -- From soren at hauberg.org Fri Dec 9 02:26:10 2011 From: soren at hauberg.org (=?ISO-8859-1?Q?S=F8ren?= Hauberg) Date: Fri, 09 Dec 2011 09:26:10 +0100 Subject: K means. In-Reply-To: <1323414017.1905.22.camel@hauberg-laptop> References: <1323327883.1905.9.camel@hauberg-laptop> <03F523B9-0C87-41A9-AC44-0FECE2FC5146@mac.com> <1323374491.1905.15.camel@hauberg-laptop> <1323414017.1905.22.camel@hauberg-laptop> Message-ID: <1323419170.1905.23.camel@hauberg-laptop> fre, 09 12 2011 kl. 08:00 +0100, skrev S?ren Hauberg: > My current version works like > > clusters = kmeans (data, initial_clusters); > > whereas Matlab's work like > > clusters = kmeans (data, number_of_clusters); > > I think we should at least match this before putting it into the > statistics package. But otherwise, I see no problems with not having all > the options available that Matlab has. The attached version has a more compatible API. It's not perfect, but it seems to work fairly well. S?ren -------------- next part -------------- A non-text attachment was scrubbed... Name: kmeans.m Type: text/x-objcsrc Size: 2383 bytes Desc: not available URL: From andybuckle at gmail.com Fri Dec 9 02:32:01 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Fri, 9 Dec 2011 08:32:01 +0000 Subject: Add to PATH on Windows In-Reply-To: References: Message-ID: On 9 December 2011 07:44, Fa-Gung Fan wrote: > Hi, > > On Windows, I would like to add this directory C:\Program > Files\gs\gs9.02\bin to PATH environmental variable.? I entered > addpath ("C:\\Program Files\\gs\\gs9.02\\bin") > After that, I used > getenv ("PATH") > to check the new PATH, but I don't see the directory got added to the PATH. > Any suggestion?? Thanks. > > ? Fan getenv("PATH") returns the OS path. The octave function path() will return Octave's path. Also note that you could write addpath ('C:\Program Files\gs\gs9.02\bin') With the single quotes, the backslash is not interpreted as an escape character. -- /* andy buckle */ From kasozi5 at yahoo.com Fri Dec 9 03:04:54 2011 From: kasozi5 at yahoo.com (Taza) Date: Fri, 9 Dec 2011 01:04:54 -0800 (PST) Subject: Parse error? In-Reply-To: References: <1281608593797-2322504.post@n4.nabble.com> Message-ID: <1323421494184-4175847.post@n4.nabble.com> http://octave.1599824.n4.nabble.com/file/n4175847/Asset_Paths_Simulation_errors.jpg HI Am trying to use octave to simulate an asset paths, however when i wrote my code and saved it in the script as an m-file, on running it at the octave prompt, it indicates parse error line 18 of file /home/user/AssetPaths.m, and more other parse & syntax errors as shown in the inserted image , to make it even more problem, when i try to access the editor via command prompt (edit AssetPaths.m) to start trying to correct errors, its not possible since it still indicates the parse error and syntax error issues. how can i go about to solve this problem to run my code successfully. this is the script. % Script to price an Asian put option using a Monte-Carlo approach. S0 =50; % Price of underlying today X = 55; % Strike at expiry mu = 0.04; % expected return sig = 0.1; % expected vol. r = 0.03; % Risk free rate dt = 1/365; % time steps etime = 50; % days to expiry T = dt*etime; % years to expiry nruns = 1000; % Number of simulated paths % Generate potential future asset paths S = AssetPaths(S0,mu,sig,dt,etime,nruns); % Plot the asset paths time = etime:-1:0; plot(time,S,'Linewidth',2); set(gca,'XDir','Reverse','FontWeight','bold','Fontsize',24); xlabel('Time to Expiry','FontWeight','bold','Fontsize',24); ylabel('Asset Price','FontWeight','bold','Fontsize',24); title('Simulated Asset Paths','FontWeight','bold','Fontsize',24); grid on set(gcf,'Color','w'); -- View this message in context: http://octave.1599824.n4.nabble.com/Parse-error-tp2322504p4175847.html Sent from the Octave - General mailing list archive at Nabble.com. From syberraith at yahoo.com Fri Dec 9 03:57:34 2011 From: syberraith at yahoo.com (syberraith) Date: Fri, 9 Dec 2011 01:57:34 -0800 (PST) Subject: Numerical Differentiation and Integration of Array Data In-Reply-To: References: <1322946897881-4154879.post@n4.nabble.com> <6730C8CF-E8D6-4139-AEEB-A7F265589C99@gmail.com> <1323126662552-4162565.post@n4.nabble.com> <6698FC62-A9E6-4220-9B5D-1816CC39831C@gmail.com> <1323227072770-4167474.post@n4.nabble.com> <1323229108295-4167564.post@n4.nabble.com> <4EDF722C.6050809@nist.gov> <1323295887367-4170730.post@n4.nabble.com> Message-ID: <1323424654575-4175944.post@n4.nabble.com> Got it. Thanks -- View this message in context: http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4175944.html Sent from the Octave - General mailing list archive at Nabble.com. From carbajal at ifi.uzh.ch Fri Dec 9 05:45:05 2011 From: carbajal at ifi.uzh.ch (Juan Pablo Carbajal) Date: Fri, 9 Dec 2011 12:45:05 +0100 Subject: K means. In-Reply-To: <1323419170.1905.23.camel@hauberg-laptop> References: <1323327883.1905.9.camel@hauberg-laptop> <03F523B9-0C87-41A9-AC44-0FECE2FC5146@mac.com> <1323374491.1905.15.camel@hauberg-laptop> <1323414017.1905.22.camel@hauberg-laptop> <1323419170.1905.23.camel@hauberg-laptop> Message-ID: On Fri, Dec 9, 2011 at 9:26 AM, S?ren Hauberg wrote: > fre, 09 12 2011 kl. 08:00 +0100, skrev S?ren Hauberg: >> My current version works like >> >> ? clusters = kmeans (data, initial_clusters); >> >> whereas Matlab's work like >> >> ? clusters = kmeans (data, number_of_clusters); >> >> I think we should at least match this before putting it into the >> statistics package. But otherwise, I see no problems with not having all >> the options available that Matlab has. > > The attached version has a more compatible API. It's not perfect, but it > seems to work fairly well. > > S?ren > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > Hi all, We could use the feature request forum for working functions requiring a little review (like missing help, etc...). Once they are acceptable we can put them in the package. Of course this doesn't make them visible to user (which are potential curators of the function), but if the fixing required is small (as seem to be the case here) the forum may work well. http://sourceforge.net/tracker/?func=browse&group_id=2888&atid=352888 -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Z?rich http://ailab.ifi.uzh.ch/carbajal/ From gaikwadpreeti at gmail.com Fri Dec 9 05:53:38 2011 From: gaikwadpreeti at gmail.com (Preeti Gaikwad) Date: Fri, 9 Dec 2011 12:53:38 +0100 Subject: How to read the pixel from the image Message-ID: Hello, I want to read the pixel from the gray scale image....does anybody have the code for reading the pixel ? thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From andybuckle at gmail.com Fri Dec 9 05:57:48 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Fri, 9 Dec 2011 11:57:48 +0000 Subject: How to read the pixel from the image In-Reply-To: References: Message-ID: On 9 December 2011 11:53, Preeti Gaikwad wrote: > Hello, > ??????? I want to read the pixel from the gray scale image....does anybody > have the code for reading the pixel ? thanks in advance Greyscale images are usually simply matrices. So you index them like a matrix. image(y,x) We might need more info to help you. -- /* andy buckle */ From carbajal at ifi.uzh.ch Fri Dec 9 07:17:36 2011 From: carbajal at ifi.uzh.ch (Juan Pablo Carbajal) Date: Fri, 9 Dec 2011 14:17:36 +0100 Subject: adminstration of multipackage Message-ID: Hi, I took the freedom to call mutlipackage to Octave-Forge packages that have the following strcuture package/inst/subpkg1 package/inst/subpkg2 package/inst/subpkg3 and for each subpackage: 1. All mfiles to be installed are in package/inst/subpkg 2. Private files are in package/inst/subpkg/private 3. All files to be compiled are in package/inst/subpkg/src So far it is working for main/geometry and main/mechanics using modified versions of the installing ad removing scripts of /extra/ocs (pointed out by C. deFalco). The only difficulty I am facing now is to correctly handle the multiple Makefiles that can be found in src. The solution I foresee is to provide a Makefile in the main folder package/ that just links to the other Makefiles. a. Should this Makefile be modiefied by pre_install.m to add the subpackages with src folder or shall we leave it to the pakage maintainer? (I prefer the first option) b. Where should the compiled files be placed? Should all they be placed in the architecture dependent folder created at installation time? Thanks -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Z?rich http://ailab.ifi.uzh.ch/carbajal/ From gaikwadpreeti at gmail.com Fri Dec 9 07:48:02 2011 From: gaikwadpreeti at gmail.com (Preeti Gaikwad) Date: Fri, 9 Dec 2011 14:48:02 +0100 Subject: How to read the pixel from the image In-Reply-To: References: Message-ID: THANKS I got it it was already in matrix form..... could you please let me know if I have value on gray scale like 0 to 255 then the value 255 represent the white color? or black ? On 9 December 2011 12:57, Andy Buckle wrote: > On 9 December 2011 11:53, Preeti Gaikwad wrote: > > Hello, > > I want to read the pixel from the gray scale image....does > anybody > > have the code for reading the pixel ? thanks in advance > > Greyscale images are usually simply matrices. So you index them like a > matrix. > > image(y,x) > > We might need more info to help you. > > -- > /* andy buckle */ > -- preeti gaikwad -------------- next part -------------- An HTML attachment was scrubbed... URL: From andybuckle at gmail.com Fri Dec 9 08:38:18 2011 From: andybuckle at gmail.com (Andy Buckle) Date: Fri, 9 Dec 2011 14:38:18 +0000 Subject: How to read the pixel from the image In-Reply-To: References: Message-ID: >> On 9 December 2011 11:53, Preeti Gaikwad wrote: >> > Hello, >> > ??????? I want to read the pixel from the gray scale image....does >> > anybody >> > have the code for reading the pixel ? thanks in advance >> >> Greyscale images are usually simply matrices. So you index them like a >> matrix. >> >> image(y,x) >> >> We might need more info to help you. >> -- >> /* andy buckle */ On 9 December 2011 13:48, Preeti Gaikwad wrote: > THANKS I got it it was already in matrix form..... > could you please let me know if I have value on gray scale like 0 to 255 > then the value 255 represent the white color? or black ? > -- > preeti gaikwad You can have any colour map you choose. For example >img=repmat(linspace(0,255,5),5,1); >imagesc(img) >cm=repmat(linspace(0,1,5)',3); >colormap(cm) (please don't top post: I have re-ordered this thread above). -- /* andy buckle */ From przemek.klosowski at nist.gov Fri Dec 9 10:01:34 2011 From: przemek.klosowski at nist.gov (Przemek Klosowski) Date: Fri, 09 Dec 2011 11:01:34 -0500 Subject: Octave's EDITOR variable In-Reply-To: <1323421494184-4175847.post@n4.nabble.com> References: <1281608593797-2322504.post@n4.nabble.com> <1323421494184-4175847.post@n4.nabble.com> Message-ID: <4EE230DE.9000606@nist.gov> On 12/09/2011 04:04 AM, Taza wrote: > http://octave.1599824.n4.nabble.com/file/n4175847/Asset_Paths_Simulation_errors.jpg > HI > > Am trying to use octave to simulate an asset paths, however when i wrote my > code and saved it in the script as an m-file, on running it at the octave > prompt, it indicates parse error line 18 of file /home/user/AssetPaths.m, > and more other parse& syntax errors as shown in the inserted image , to > make it even more problem, when i try to access the editor via command > prompt (edit AssetPaths.m) to start trying to correct errors, its not > possible since it still indicates the parse error and syntax error issues. > how can i go about to solve this problem to run my code successfully. The 'edit()' function calls the editor defined by the Octave variable EDITOR, and your error messages look like you have it empty or set to the shell or octave itself. Try running Octave with EDITOR environment variable pre-defined to your favorite editor: EDITOR=nedit octave and type the 'edit AssetPaths.m' on the Octave command line. In principle, it should work to set the EDITOR within Octave, but when I do: EDITOR('vi') edit AssetPaths.m Octave still runs the original editor, not 'vi' even though Octave's EDITOR variable is correctly changed to 'vi'. By the way, you write that your script contains this line: > plot(time,S,'Linewidth',2); but the error message reports error in the line reported as plot(time,S,); % a graph of asset price S against time so the file /home/user/AssetPaths.m does not contain what you think it contains. From homerun4711 at googlemail.com Fri Dec 9 10:04:07 2011 From: homerun4711 at googlemail.com (Walter White) Date: Fri, 9 Dec 2011 17:04:07 +0100 Subject: Problem with griddata and contourplot Message-ID: Hello, I came across a problem and hope that you can help me. I was trying to produce a contour plot of scattered x,y,z data, therefore I was using griddata. So far everything works fine, but when my mesh is too fine the following error message appears and the script quits: gnuplot (as of v4.2) only supports 3D filled triangular patches Since the data is from a FEM software I have to plot it using a fine mesh to see the details. Does someone know a solution or a workaround to that? Kind regards, Walter -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpabbott at mac.com Fri Dec 9 10:06:49 2011 From: bpabbott at mac.com (Ben Abbott) Date: Fri, 09 Dec 2011 11:06:49 -0500 Subject: Problem with griddata and contourplot In-Reply-To: References: Message-ID: <8210E7A4-C8A7-45ED-BE11-D92E130A021A@mac.com> On Dec 9, 2011, at 11:04 AM, Walter White wrote: > Hello, > > I came across a problem and hope that you can help me. > > I was trying to produce a contour plot of scattered x,y,z data, > therefore I was using griddata. So far everything works fine, > but when my mesh is too fine the following error message > appears and the script quits: > > gnuplot (as of v4.2) only supports 3D filled triangular patches > > Since the data is from a FEM software I have to plot it > using a fine mesh to see the details. > Does someone know a solution or a workaround to that? > > Kind regards, > Walter Can you tell us what commands you used? And, if possible, provide a simple example for us to try ourselves? Ben From ian.journeaux at newpagecorp.com Fri Dec 9 10:54:20 2011 From: ian.journeaux at newpagecorp.com (ijourneaux) Date: Fri, 9 Dec 2011 08:54:20 -0800 (PST) Subject: Warnings Running 3.4.3 Mingw Message-ID: <1323449660941-4177380.post@n4.nabble.com> I am trying to upgrade to Octave version 3.4.3 from version 3.2.4. Not sure how critical these are but thought I would let people know I get the following warnings when starting Octave warning: C:\Octave343\Octave3.4.3_gcc4.5.2\share\octave\packages\integration-1.0.7\PKG_ADD: possible Matlab-style short-circuit operator at line 9, column 32 io PKG_ADD: run chk_spreadsheet_support([],3) to view io support warning: gmsh does not seem to be present some functionalities will be disabled warning: dx does not seem to be present some functionalities will be disabled warning: function C:\Octave343\Octave3.4.3_gcc4.5.2\share\octave\packages\statistics-1.0.10\fstat.m shadows a core library function When I try yo run the scripts I have created I get a bunch of warnings that seem to be associated with the "|" operator warning: C:/HelioDotSkip/Scripts\helio2.m: possible Matlab-style short-circuit operator at line 305, column 29 Line 305 is if std2(AIgl1)maxvalstd; -- View this message in context: http://octave.1599824.n4.nabble.com/Warnings-Running-3-4-3-Mingw-tp4177380p4177380.html Sent from the Octave - General mailing list archive at Nabble.com. From ian.journeaux at newpagecorp.com Fri Dec 9 11:00:55 2011 From: ian.journeaux at newpagecorp.com (ijourneaux) Date: Fri, 9 Dec 2011 09:00:55 -0800 (PST) Subject: Octave 3.4.3 for Mingw; IMRead In-Reply-To: <1323415990426-4175710.post@n4.nabble.com> References: <1323394354372-4175118.post@n4.nabble.com> <1323415990426-4175710.post@n4.nabble.com> Message-ID: <1323450055634-4177412.post@n4.nabble.com> Here is a link to an image (8Mb) http://www.mediafire.com/i/?1ecp8vr6ge5ixgh -- View this message in context: http://octave.1599824.n4.nabble.com/Octave-3-4-3-for-Mingw-IMRead-tp4175118p4177412.html Sent from the Octave - General mailing list archive at Nabble.com. From jordigh at octave.org Fri Dec 9 11:02:53 2011 From: jordigh at octave.org (=?UTF-8?Q?Jordi_Guti=C3=A9rrez_Hermoso?=) Date: Fri, 9 Dec 2011 12:02:53 -0500 Subject: Warnings Running 3.4.3 Mingw In-Reply-To: <1323449660941-4177380.post@n4.nabble.com> References: <1323449660941-4177380.post@n4.nabble.com> Message-ID: On 9 December 2011 11:54, ijourneaux wrote: > When I try yo run the scripts I have created I get a bunch of warnings that > seem to be associated with the "|" operator > > warning: C:/HelioDotSkip/Scripts\helio2.m: possible Matlab-style > short-circuit operator at line 305, column 29 http://octave.org/wiki/index.php?title=FAQ#Short-circuit_.26_and_.7C_operators HTH, - Jordi G. H. From carlo.defalco at gmail.com Fri Dec 9 11:18:35 2011 From: carlo.defalco at gmail.com (c.) Date: Fri, 9 Dec 2011 18:18:35 +0100 Subject: Octave's EDITOR variable In-Reply-To: <4EE230DE.9000606@nist.gov> References: <1281608593797-2322504.post@n4.nabble.com> <1323421494184-4175847.post@n4.nabble.com> <4EE230DE.9000606@nist.gov> Message-ID: On 9 Dec 2011, at 17:01, Przemek Klosowski wrote: > EDITOR('vi') > edit AssetPaths.m in recent versions of Octave the correct command to change the default editor is edit editor vi I would not recommend this though at it would not allow to use the editor in background, if you like vi, you might want to use something like edit mode async edit editor "xterm -e vi %s" instead. c. From carlo.defalco at gmail.com Fri Dec 9 11:20:17 2011 From: carlo.defalco at gmail.com (c.) Date: Fri, 9 Dec 2011 18:20:17 +0100 Subject: Problem with griddata and contourplot In-Reply-To: References: Message-ID: On 9 Dec 2011, at 17:04, Walter White wrote: > > I came across a problem and hope that you can help me. > > I was trying to produce a contour plot of scattered x,y,z data, > therefore I was using griddata. So far everything works fine, > but when my mesh is too fine the following error message > appears and the script quits: > > gnuplot (as of v4.2) only supports 3D filled triangular patches > > Since the data is from a FEM software I have to plot it > using a fine mesh to see the details. > Does someone know a solution or a workaround to that? if your data is defined on a triangular or tetrahedral mesh, you might want to use the 'fpl' package to export it to vtk format and then view it with paraview. > Kind regards, > Walter > _______ c. From carlo.defalco at gmail.com Fri Dec 9 11:24:36 2011 From: carlo.defalco at gmail.com (c.) Date: Fri, 9 Dec 2011 18:24:36 +0100 Subject: Warnings Running 3.4.3 Mingw In-Reply-To: <1323449660941-4177380.post@n4.nabble.com> References: <1323449660941-4177380.post@n4.nabble.com> Message-ID: On 9 Dec 2011, at 17:54, ijourneaux wrote: > warning: gmsh does not seem to be present some functionalities will be > disabled This warning comes from the msh package, it tells you the command 'gmsh' was not found in your path at installation. You can still use msh without gmsh or install gmsh at a later time if you need it > warning: dx does not seem to be present some functionalities will be > disabled This warning is from the package 'fpl' it is telling you that the command 'dx' was not found in your path at installation, you can still use 'fpl' without dx or install it at a later time if you need it. HTH, c. From carbajal at ifi.uzh.ch Fri Dec 9 12:01:45 2011 From: carbajal at ifi.uzh.ch (Juan Pablo Carbajal) Date: Fri, 9 Dec 2011 19:01:45 +0100 Subject: cellfun Message-ID: Hi, I want to index a given vector with a cell with logical arrays, the loop is for i=1:numel (celltf) indexedT{i} = T(celltf{i}) end where T is a column vector of length nT and each element in the cell celltf is a logical column vector of length nT. I wanted to replace that with indexedT = cellfun (@(ind_) T(ind_), celltf, 'UniformOutput', false) For example a = repmat ((1:10)',1,2); c = {rand(10,1)>0.5, rand(10,1)>0.7}; cellfun ( @(x_)a(x_) , c,'UniformOutput', false); but I get the error error: can't perform indexing operations for matrix type. Where am I making the wrong step? Thanks -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Z?rich http://ailab.ifi.uzh.ch/carbajal/ From nitnit at gmail.com Fri Dec 9 13:53:09 2011 From: nitnit at gmail.com (nitnit) Date: Fri, 9 Dec 2011 11:53:09 -0800 (PST) Subject: Octave 3.4.3 for Mingw; IMRead In-Reply-To: <1323450055634-4177412.post@n4.nabble.com> References: <1323394354372-4175118.post@n4.nabble.com> <1323415990426-4175710.post@n4.nabble.com> <1323450055634-4177412.post@n4.nabble.com> Message-ID: <1323460389911-4178004.post@n4.nabble.com> I could imread this file simply by I=imread('test7+Helio+Felt+1.jpg'); I couldn't imshow the full image (octave crashes probably because of memory problems for this 1500 by 10200 pixels image) but I could imshow portions of the pictures such as imshow(I(1:500,:)) imshow(I(501:1000,:)) imshow(I(1001:1500,:)) and I could verify that the image has been read correctly. I am running octave-3.4.3 on win7-x64 with 4Gbytes of memory. So I can not reproduce the problem that you are facing on my system. It might be that there some dlls on your systems path that are loaded in advance to your octave install tree dlls. You can try and check this and by modifying \share\octave\site\m\startup\octaverc to set the octave installation tree prior to the rest of your system path. Change the 4 lines which set the system path env. var when octave is invoked from: setenv('path',[getenv('path'),';',prefix,'\mingw32\bin;',prefix,'\msys\bin']); setenv('path',[getenv('path'),';',prefix,'\gs\gs9.02\bin']); setenv('path',[getenv('path'),';',prefix,'\pstoedit']); setenv('path',[getenv('path'),';',prefix,'\fig2dev']); to: setenv('path',[prefix,'\mingw32\bin;',prefix,'\msys\bin;',getenv('path')]); setenv('path',[prefix,'\gs\gs9.02\bin;',getenv('path')]); setenv('path',[prefix,'\pstoedit;',getenv('path')]); setenv('path',[prefix,'\fig2dev;',getenv('path')]); and see if that helps. Nitzan -- View this message in context: http://octave.1599824.n4.nabble.com/Octave-3-4-3-for-Mingw-IMRead-tp4175118p4178004.html Sent from the Octave - General mailing list archive at Nabble.com. From ian.journeaux at newpagecorp.com Fri Dec 9 14:19:32 2011 From: ian.journeaux at newpagecorp.com (ijourneaux) Date: Fri, 9 Dec 2011 12:19:32 -0800 (PST) Subject: Octave 3.4.3 for Mingw; IMRead In-Reply-To: <1323460389911-4178004.post@n4.nabble.com> References: <1323394354372-4175118.post@n4.nabble.com> <1323415990426-4175710.post@n4.nabble.com> <1323450055634-4177412.post@n4.nabble.com> <1323460389911-4178004.post@n4.nabble.com> Message-ID: <1323461972481-4178112.post@n4.nabble.com> Under 3.2.4 I was using I=imread('test7+Helio+Felt+1.jpg', 'jpg'); which matches the MatLab syntax. Under 3.4.3, caling imread this way produces an the unobvious error listed above. I had to remove the fmt paramater from the call to imread for the script to work correctly. Thanks for the help narrowing the problem down. With this change the rest of my script works correctly. -- View this message in context: http://octave.1599824.n4.nabble.com/Octave-3-4-3-for-Mingw-IMRead-tp4175118p4178112.html Sent from the Octave - General mailing list archive at Nabble.com. From mmt200575 at yahoo.com Fri Dec 9 19:38:45 2011 From: mmt200575 at yahoo.com (Mircea Toma) Date: Fri, 9 Dec 2011 17:38:45 -0800 (PST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <208805.62279.qm@web100314.mail.kks.yahoo.co.jp> References: <1323389674.8576.YahooMailNeo@web112005.mail.gq1.yahoo.com> <208805.62279.qm@web100314.mail.kks.yahoo.co.jp> Message-ID: <1323481125.64923.YahooMailNeo@web112015.mail.gq1.yahoo.com> Thanks. I tried the same HelloWorld.cc and it worked well for me too. The one that gave me the error is: #include DEFUN_DLD (helloworld, args, nargout, "Hello World Help String") { int nargin = args.length (); octave_stdout << "Hello World has " << nargin << " input arguments and " << nargout << " output arguments.\n"; return octave_value_list (); } from: http://www.gnu.org/software/octave/doc/interpreter/Getting-Started-with-Oct_002dFiles.html I am not sure what DEFUN_OLD is suppose to be. And I am not sure if this is suppose to work as it. thanks again. Mircea ________________________________ From: Tatsuro MATSUOKA To: c. ; Carn? Draug ; Mircea Toma Cc: "help-octave at octave.org" ; nitnit Sent: Thursday, December 8, 2011 7:50 PM Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 Hello I have used the following source in the octave manual. //HelloWorld.cc #include #include ? ? ? ? int ? ? main (void) ? ? { ? ? ? std::cout << "Hello Octave world!\n"; ? ? ? int n = 2; ? ? ? Matrix a_matrix = Matrix (n, n); ? ? ? for (octave_idx_type i = 0; i < n; i++) ? ? ? ? { ? ? ? ? ? for (octave_idx_type j = 0; j < n; j++) ? ? ? ? ? ? { ? ? ? ? ? ? ? a_matrix (i, j) = (i + 1) * 10 + (j + 1); ? ? ? ? ? ? } ? ? ? ? } ? ? ? std::cout << a_matrix; ? ? ? return 0; ? ? } // End of HelloWorld.cc octave:5> mkoctfile --link-stand-alone HelloWorld.cc -o HelloWorld octave:6> system ('HelloWorld') Hello Octave world! 11 12 21 22 ans = 0 Worked as expected Regards Tatsuro --- On Fri, 2011/12/9, Mircea Toma? wrote: > > > Thaks for help. Now I get "undefined reference to `WinMain at 16'". > Regards, > Mircea > > > > GNU Octave, version 3.4.3 > ............................. > octave:1> cd "C:/oct-test/helloworld" > octave:2> mkoctfile helloworld.cpp --link-stand-alone > c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../libmingw32.a(main.o): In function `main': > C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference to `WinMain at 16' > collect2: ld returned 1 exit status > octave:3> > > >? >? >? >? From: Tatsuro MATSUOKA >? To: c. ; Carn? Draug ; Mircea Toma > Cc: "help-octave at octave.org" ; nitnit >? Sent: Thursday, December 8, 2011 3:14 PM >? Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 >? > Hello > > > I downloaded libreadline.dll.a.7z and uncompressed it. I don't think that libreadline.dll.a is a name for a windows dll. It is just the name (extension)?? > > You wrote > octave:2> mkoctfile helloworld.cpp --link-stand-alone > c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lreadline > collect2: ld returned 1 exit status > > libreadline.dll.a is a library against dynamic link library for readline.dll. > readline.dll already exists in Octave3.4.3_gcc4.5.2\bin > Please place libreadline.dll.a in Octave3.4.3_gcc4.5.2\lib > *.dll.a files are used in linking for MinGW platform. > > Regards > > Tatsuro > > --- On Fri, 2011/12/9, Mircea Toma wrote: > > > > > > > > Regards, > > mircea > > > >?? > >? > >?? > >?? From: Tatsuro MATSUOKA > >? To: c. ; Carn? Draug > > Cc: "help-octave at octave.org" ; Mircea Toma ; nitnit > >? Sent: Thursday, December 8, 2011 11:49 AM > >? Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 > >?? > > Hello > > > > I think that Nitzan Arazi is the most proper person to write the Readme because he made the packages.? When uploading the binary to Octave-forge site, please ask that Nitzan correct the missing libreadline.dll.a. > > > > Regards > > > > Tatsuro > > > > > > --- On Thu, 2011/12/8, Carn? Draug? wrote: > > > > > On 7 December 2011 07:52, c. wrote: > > > > On 6 Dec 2011, at 19:02, Tatsuro MATSUOKA wrote: > > > > > > > >> Hello > > > >> > > > >> Please see > > > >> > > > >> http://wiki.octave.org/wiki.pl?OctaveForWindows > > > >> > > > >> 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > > >> > > > >> Please care that this distribution does not have automated installer. > > > >> You have to install it according the instruction on the page. > > > >> > > > >> Regards > > > >> > > > >> Tatsuro > > > > > > > > > > > > Carn?, > > > > do you think it would make sense to host this on Octave-Forge? > > > > > > Yes it does. I'm uploading these files now. Sorry for taking so long, > > > I was not following this thread at all since I know absolutely nothing > > > of windows. > > > > > > If anyone that knows about it, can write a README file, something like > > > the one for 3.2.4. This file is the one that would go ono the > > > directory that has the different files and explains why there's one > > > pkgs and another without, and what to do with the libreadline file. > > > > > > Carn? > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmacchant at yahoo.co.jp Fri Dec 9 21:40:26 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Sat, 10 Dec 2011 12:40:26 +0900 (JST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <1323481125.64923.YahooMailNeo@web112015.mail.gq1.yahoo.com> Message-ID: <560527.70474.qm@web100305.mail.kks.yahoo.co.jp> Hello DEFUN_DLD is used for building the .oct file. Please read carefully the octave manual. http://www.gnu.org/software/octave/doc/interpreter/ Appendix A Dynamically Linked Functions A.1 Oct-Files In building oct file, you should not add --link-stand-alone option. The option is prepared for standalone program but not oct file. Regards Tatsuro --- On Sat, 2011/12/10, Mircea Toma wrote: > > > Thanks. > I tried the same HelloWorld.cc and it worked well for me too. The one that gave me the error is: #include DEFUN_DLD (helloworld, args, nargout, "Hello World Help String") { int nargin = args.length (); octave_stdout << "Hello World has " << nargin << " input arguments and " << nargout << " output arguments.\n"; return octave_value_list (); } > > from: > http://www.gnu.org/software/octave/doc/interpreter/Getting-Started-with-Oct_002dFiles.html > > I am not sure what DEFUN_OLD is suppose to be. And I am not sure if this is suppose to work as it. > thanks again. > Mircea > > > > > > From: Tatsuro MATSUOKA > To: c. ; Carn? Draug ; Mircea Toma > Cc: "help-octave at octave.org" ; nitnit > Sent: Thursday, December 8, 2011 7:50 PM > Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 > > Hello > > I have used the following source in the octave manual. > > //HelloWorld.cc > #include > #include > ? ? > ? ? int > ? ? main (void) > ? ? { > ? ? ? std::cout << "Hello Octave world!\n"; > ? ? ? int n = 2; > ? ? ? Matrix a_matrix = Matrix (n, n); > ? ? ? for (octave_idx_type i = 0; i < n; i++) > ? ? ? ? { > ? ? ? ? ? for (octave_idx_type j = 0; j < n; j++) > ? ? ? ? ? ? { > ? ? ? ? ? ? ? a_matrix (i, j) = (i + 1) * 10 + (j + 1); > ? ? ? ? ? ? } > ? ? ? ? } > ? ? ? std::cout << a_matrix; > ? ? ? return 0; > ? ? } > // End of HelloWorld.cc > > > octave:5> mkoctfile --link-stand-alone HelloWorld.cc -o HelloWorld > octave:6> system ('HelloWorld') > Hello Octave world! > 11 12 > 21 22 > ans = 0 > > Worked as expected > > Regards > > Tatsuro > > > --- On Fri, 2011/12/9, Mircea Toma? wrote: > > > > > > > Thaks for help. Now I get "undefined reference to `WinMain at 16'". > > Regards, > > Mircea > > > > > > > > GNU Octave, version 3.4.3 > > ............................. > > octave:1> cd "C:/oct-test/helloworld" > > octave:2> mkoctfile helloworld.cpp --link-stand-alone > > c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../libmingw32.a(main.o): In function `main': > > C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference to `WinMain at 16' > > collect2: ld returned 1 exit status > > octave:3> > > > > > >? > >? > >? > >? From: Tatsuro MATSUOKA > >? To: c. ; Carn? Draug ; Mircea Toma > > Cc: "help-octave at octave.org" ; nitnit > >? Sent: Thursday, December 8, 2011 3:14 PM > >? Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 > >? > > Hello > > > > > I downloaded libreadline.dll.a.7z and uncompressed it. I don't think that libreadline.dll.a is a name for a windows dll. It is just the name (extension)?? > > > > You wrote > > octave:2> mkoctfile helloworld.cpp --link-stand-alone > > c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lreadline > > collect2: ld returned 1 exit status > > > > libreadline.dll.a is a library against dynamic link library for readline.dll. > > readline.dll already exists in Octave3.4.3_gcc4.5.2\bin > > Please place libreadline.dll.a in Octave3.4.3_gcc4.5.2\lib > > *.dll.a files are used in linking for MinGW platform. > > > > Regards > > > > Tatsuro > > > > --- On Fri, 2011/12/9, Mircea Toma wrote: > > > > > > > > > > > > > Regards, > > > mircea > > > > > >?? > > >? > > >?? > > >?? From: Tatsuro MATSUOKA > > >? To: c. ; Carn? Draug > > > Cc: "help-octave at octave.org" ; Mircea Toma ; nitnit > > >? Sent: Thursday, December 8, 2011 11:49 AM > > >? Subject: Re: how to instal, or upgrade, the latest octave version on windows 7 > > >?? > > > Hello > > > > > > I think that Nitzan Arazi is the most proper person to write the Readme because he made the packages.? When uploading the binary to Octave-forge site, please ask that Nitzan correct the missing libreadline.dll.a. > > > > > > Regards > > > > > > Tatsuro > > > > > > > > > --- On Thu, 2011/12/8, Carn? Draug? wrote: > > > > > > > On 7 December 2011 07:52, c. wrote: > > > > > On 6 Dec 2011, at 19:02, Tatsuro MATSUOKA wrote: > > > > > > > > > >> Hello > > > > >> > > > > >> Please see > > > > >> > > > > >> http://wiki.octave.org/wiki.pl?OctaveForWindows > > > > >> > > > > >> 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > > > >> > > > > >> Please care that this distribution does not have automated installer. > > > > >> You have to install it according the instruction on the page. > > > > >> > > > > >> Regards > > > > >> > > > > >> Tatsuro > > > > > > > > > > > > > > > Carn?, > > > > > do you think it would make sense to host this on Octave-Forge? > > > > > > > > Yes it does. I'm uploading these files now. Sorry for taking so long, > > > > I was not following this thread at all since I know absolutely nothing > > > > of windows. > > > > > > > > If anyone that knows about it, can write a README file, something like > > > > the one for 3.2.4. This file is the one that would go ono the > > > > directory that has the different files and explains why there's one > > > > pkgs and another without, and what to do with the libreadline file. > > > > > > > > Carn? > > > > > > > > > > > > > > > > > > > > > > From wnyrodeo at yahoo.com Sat Dec 10 00:40:40 2011 From: wnyrodeo at yahoo.com (Imam Toufique) Date: Fri, 9 Dec 2011 22:40:40 -0800 (PST) Subject: Octave 3.4.3 build crashes in gl-render.cc In-Reply-To: <20111206082058.GA16426@laura.suse.cz> References: <1323127042.79961.YahooMailNeo@web31706.mail.mud.yahoo.com> <20111206082058.GA16426@laura.suse.cz> Message-ID: <1323499240.14295.YahooMailNeo@web31704.mail.mud.yahoo.com> Hi, ? I am trying to build octave 3.4.3 with Intel C compiler, OS is SuSE Linux ent. server 10 64-bit.? The build crashes here in: ../liboctave/oct-inttypes.h(148): remark #981: operands are evaluated in unspecified order ??? REGISTER_OCTAVE_CMP_OP (eq, ==); ??? ^ ????????? detected during: ??????????? instantiation of "bool octave_int_cmp_op::uiop::op(query_integer_type::type, query_integer_type::type) [with xop=octave_int_cmp_op::eq, size=4]" at line 161 ??????????? instantiation of "bool octave_int_cmp_op::op(T1, T2) [with xop=octave_int_cmp_op::eq, T1=gl_uint8_t={unsigned char}, T2=gl_uint8_t={unsigned char}]" at line 896 ??????????? instantiation of "bool operator==(const octave_int &, const octave_int &) [with T1=gl_uint8_t={unsigned char}, T2=gl_uint8_t={unsigned char}]" at line 1420 of "gl-render.cc" compilation aborted for gl-render.cc (code 2) gmake[3]: *** [liboctinterp_la-gl-render.lo] Error 1 gmake[3]: Leaving directory `/tmp/itoufiqu/octave-build/octave-3.4.3/src' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/tmp/itoufiqu/octave-build/octave-3.4.3/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/tmp/itoufiqu/octave-build/octave-3.4.3' gmake: *** [all] Error 2 I did a grep on all the errors related to gl-render.cc and graphics.h: graphics.h(2041): error: identifier "__myhandle__" is undefined graphics.h(2069): error: identifier "is___modified__" is undefined graphics.h(2073): error: identifier "children" is undefined graphics.h(2079): error: identifier "children" is undefined graphics.h(2098): error: identifier "tag" is undefined graphics.h(2104): error: identifier "children" is undefined graphics.h(2109): error: identifier "children" is undefined graphics.h(2114): error: identifier "children" is undefined graphics.h(2119): error: identifier "__modified__" is undefined graphics.h(2121): error: identifier "parent" is undefined graphics.h(2133): error: identifier "children" is undefined graphics.h(2157): error: identifier "handlevisibility" is undefined graphics.h(2341): error: class "base_properties" has no member "get_parent" graphics.h(2352): error: class "base_properties" has no member "get___myhandle__" graphics.h(3133): error: identifier "__myhandle__" is undefined graphics.h(3135): error: identifier "__graphics_toolkit__" is undefined graphics.h(3300): error: identifier "colormap" is undefined graphics.h(3301): error: identifier "alphamap" is undefined graphics.h(3302): error: identifier "paperposition" is undefined graphics.h(3303): error: identifier "pointershapecdata" is undefined graphics.h(3304): error: identifier "pointershapehotspot" is undefined graphics.h(3305): error: identifier "position" is undefined graphics.h(6659): error: class "text::properties" has no member "set_clipping" gl-render.cc(603): error: class "figure::properties" has no member "get_color_rgb" gl-render.cc(804): error: class "axes::properties" has no member "is_visible" gl-render.cc(852): error: class "axes::properties" has no member "get_tag" gl-render.cc(859): error: class "axes::properties" has no member "is_visible" gl-render.cc(957): error: class "axes::properties" has no member "is_visible" gl-render.cc(1064): error: class "axes::properties" has no member "is_visible" gl-render.cc(1161): error: class "axes::properties" has no member "is_visible" gl-render.cc(1305): error: class "base_properties" has no member "is_visible" gl-render.cc(1325): error: class "base_properties" has no member "is_clipping" gl-render.cc(1342): error: class "base_properties" has no member "is_clipping" gl-render.cc(1393): error: class "line::properties" has no member "is_clipping" gl-render.cc(1503): error: class "line::properties" has no member "is_clipping" gl-render.cc(2506): error: class "image::properties" has no member "is_clipping" I am not sure what's causing this, so, please give me a hand here, as I need to get this up and going. thanks a bunch. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kasozi5 at yahoo.com Sat Dec 10 01:24:09 2011 From: kasozi5 at yahoo.com (Taza) Date: Fri, 9 Dec 2011 23:24:09 -0800 (PST) Subject: Octave's EDITOR variable In-Reply-To: <4EE230DE.9000606@nist.gov> References: <1281608593797-2322504.post@n4.nabble.com> <1323421494184-4175847.post@n4.nabble.com> <4EE230DE.9000606@nist.gov> Message-ID: <1323501849295-4179520.post@n4.nabble.com> Hi thanks, i was able to call the editor using edit function as EDITOR(vim), and then i tried to compile the following code and when i get errors, i would type edit AssetPathstwo and go back to the code script and make the neccessary corrections. however till when i got the last error as S undefined, so i tried to have S equated to an equation below: S = S = S0*[ones(1,nruns) cumprod(exp(nu*dt+sig*sqrt(dt)*randn(etime,nruns)),1)]; and the moment i added this line in my code script, it gave me a parse error near line 18 of file /home/user/AssetPathstwo.m when i try to edit AssetPathstwo.m, i cant even access the code script to start editing it for corrections. this part is confusing. they could be something missing, whats the problem with my script? http://octave.1599824.n4.nabble.com/file/n4179520/Part_1.jpg then this is the parse error after adding the new line code http://octave.1599824.n4.nabble.com/file/n4179520/Parse_Error_in_part_1.jpg -- View this message in context: http://octave.1599824.n4.nabble.com/Parse-error-tp2322504p4179520.html Sent from the Octave - General mailing list archive at Nabble.com. From wnyrodeo at yahoo.com Sat Dec 10 01:49:19 2011 From: wnyrodeo at yahoo.com (Imam Toufique) Date: Fri, 9 Dec 2011 23:49:19 -0800 (PST) Subject: Octave 3.4.3 build crashes in gl-render.cc In-Reply-To: <1323499240.14295.YahooMailNeo@web31704.mail.mud.yahoo.com> References: <1323127042.79961.YahooMailNeo@web31706.mail.mud.yahoo.com> <20111206082058.GA16426@laura.suse.cz> <1323499240.14295.YahooMailNeo@web31704.mail.mud.yahoo.com> Message-ID: <1323503359.33684.YahooMailNeo@web31703.mail.mud.yahoo.com> Hi, ? I am trying to build octave 3.4.3 with Intel C compiler, OS is SuSE Linux ent. server 10 64-bit.? The build crashes here in: ../liboctave/oct-inttypes.h(148): remark #981: operands are evaluated in unspecified order ??? REGISTER_OCTAVE_CMP_OP (eq, ==); ??? ^ ????????? detected during: ??????????? instantiation of "bool octave_int_cmp_op::uiop::op(query_integer_type::type, query_integer_type::type) [with xop=octave_int_cmp_op::eq, size=4]" at line 161 ??????????? instantiation of "bool octave_int_cmp_op::op(T1, T2) [with xop=octave_int_cmp_op::eq, T1=gl_uint8_t={unsigned char}, T2=gl_uint8_t={unsigned char}]" at line 896 ??????????? instantiation of "bool operator==(const octave_int &, const octave_int &) [with T1=gl_uint8_t={unsigned char}, T2=gl_uint8_t={unsigned char}]" at line 1420 of "gl-render.cc" compilation aborted for gl-render.cc (code 2) gmake[3]: *** [liboctinterp_la-gl-render.lo] Error 1 gmake[3]: Leaving directory `/tmp/itoufiqu/octave-build/octave-3.4.3/src' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/tmp/itoufiqu/octave-build/octave-3.4.3/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/tmp/itoufiqu/octave-build/octave-3.4.3' gmake: *** [all] Error 2 I did a grep on all the errors related to gl-render.cc and graphics.h: graphics.h(2041): error: identifier "__myhandle__" is undefined graphics.h(2069): error: identifier "is___modified__" is undefined graphics.h(2073): error: identifier "children" is undefined graphics.h(2079): error: identifier "children" is undefined graphics.h(2098): error: identifier "tag" is undefined graphics.h(2104): error: identifier "children" is undefined graphics.h(2109): error: identifier "children" is undefined graphics.h(2114): error: identifier "children" is undefined graphics.h(2119): error: identifier "__modified__" is undefined graphics.h(2121): error: identifier "parent" is undefined graphics.h(2133): error: identifier "children" is undefined graphics.h(2157): error: identifier "handlevisibility" is undefined graphics.h(2341): error: class "base_properties" has no member "get_parent" graphics.h(2352): error: class "base_properties" has no member "get___myhandle__" graphics.h(3133): error: identifier "__myhandle__" is undefined graphics.h(3135): error: identifier "__graphics_toolkit__" is undefined graphics.h(3300): error: identifier "colormap" is undefined graphics.h(3301): error: identifier "alphamap" is undefined graphics.h(3302): error: identifier "paperposition" is undefined graphics.h(3303): error: identifier "pointershapecdata" is undefined graphics.h(3304): error: identifier "pointershapehotspot" is undefined graphics.h(3305): error: identifier "position" is undefined graphics.h(6659): error: class "text::properties" has no member "set_clipping" gl-render.cc(603): error: class "figure::properties" has no member "get_color_rgb" gl-render.cc(804): error: class "axes::properties" has no member "is_visible" gl-render.cc(852): error: class "axes::properties" has no member "get_tag" gl-render.cc(859): error: class "axes::properties" has no member "is_visible" gl-render.cc(957): error: class "axes::properties" has no member "is_visible" gl-render.cc(1064): error: class "axes::properties" has no member "is_visible" gl-render.cc(1161): error: class "axes::properties" has no member "is_visible" gl-render.cc(1305): error: class "base_properties" has no member "is_visible" gl-render.cc(1325): error: class "base_properties" has no member "is_clipping" gl-render.cc(1342): error: class "base_properties" has no member "is_clipping" gl-render.cc(1393): error: class "line::properties" has no member "is_clipping" gl-render.cc(1503): error: class "line::properties" has no member "is_clipping" gl-render.cc(2506): error: class "image::properties" has no member "is_clipping" I am not sure what's causing this, so, please give me a hand here, as I need to get this up and going. thanks a bunch. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmacchant at yahoo.co.jp Sat Dec 10 16:14:56 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Sun, 11 Dec 2011 07:14:56 +0900 (JST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <560527.70474.qm@web100305.mail.kks.yahoo.co.jp> Message-ID: <41406.94630.qm@web100317.mail.kks.yahoo.co.jp> Hello Tatsuro wrote: #********************************************** Hello Mechanical Mon I have temporarily mirrored the archive files. http://www.tatsuromatsuoka.com/octave/Eng/Win/ Octave3.4.3_gcc4.5.2_20111025.7z, 140,259,588 bytes Octave3.4.3_gcc4.5.2_pkgs_20111026.7z, 44,798,571 bytes Can you access the files ? Regards Tatsuro #************************************************** I have deleted the above files because they are now available from https://sourceforge.net/projects/octave/files/Octave_Windows%20-%20MinGW/Octave%203.4.3%20for%20Windows%20MinGW%20Installer/ Regards Tatsuro From carandraug+dev at gmail.com Sat Dec 10 16:34:20 2011 From: carandraug+dev at gmail.com (=?ISO-8859-1?Q?Carn=EB_Draug?=) Date: Sat, 10 Dec 2011 22:34:20 +0000 Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: <90073.77349.qm@web100314.mail.kks.yahoo.co.jp> References: <90073.77349.qm@web100314.mail.kks.yahoo.co.jp> Message-ID: On 10 December 2011 22:28, Tatsuro MATSUOKA wrote: > Hello > > I have updated the page > http://wiki.octave.org/wiki.pl?OctaveForWindows > 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > I have added the Octave-Forge address uploaded by Carn? Draug. > > ********************************************************** > The above archive files are now able to be downloaded from > https://sourceforge.net/projects/octave/files/Octave_Windows%20-%20MinGW/Octave%203.4.3%20for%20Windows%20MinGW%20Installer/ > ********************************************************** > > Regards > > Tatsuro I just noticed now that the link people have been throwing around is for the old wiki. The new wiki is here http://octave.org/wiki/index.php?title=Octave_for_Windows Could someone update that page inestead please? Carn? From tmacchant at yahoo.co.jp Sat Dec 10 16:28:00 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Sun, 11 Dec 2011 07:28:00 +0900 (JST) Subject: how to instal, or upgrade, the latest octave version on windows 7 Message-ID: <90073.77349.qm@web100314.mail.kks.yahoo.co.jp> Hello I have updated the page http://wiki.octave.org/wiki.pl?OctaveForWindows 1.3. Octave-3.4.3-mingw + octaveforge pkgs I have added the Octave-Forge address uploaded by Carn? Draug. ********************************************************** The above archive files are now able to be downloaded from https://sourceforge.net/projects/octave/files/Octave_Windows%20-%20MinGW/Octave%203.4.3%20for%20Windows%20MinGW%20Installer/ ********************************************************** Regards Tatsuro From tmacchant at yahoo.co.jp Sat Dec 10 18:36:23 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Sun, 11 Dec 2011 09:36:23 +0900 (JST) Subject: how to instal, or upgrade, the latest octave version on windows 7 In-Reply-To: Message-ID: <736032.75537.qm@web100317.mail.kks.yahoo.co.jp> Hello --- On Sun, 2011/12/11, Carn? Draug wrote: > On 10 December 2011 22:28, Tatsuro MATSUOKA wrote: > > Hello > > > > I have updated the page > > http://wiki.octave.org/wiki.pl?OctaveForWindows > > 1.3. Octave-3.4.3-mingw + octaveforge pkgs > > > > I have added the Octave-Forge address uploaded by Carn? Draug. > > > > ********************************************************** > > The above archive files are now able to be downloaded from > > https://sourceforge.net/projects/octave/files/Octave_Windows%20-%20MinGW/Octave%203.4.3%20for%20Windows%20MinGW%20Installer/ > > ********************************************************** > > > > Regards > > > > Tatsuro > > I just noticed now that the link people have been throwing around is > for the old wiki. The new wiki is here > http://octave.org/wiki/index.php?title=Octave_for_Windows > > Could someone update that page inestead please? done Tatsuro From homerun4711 at googlemail.com Sun Dec 11 01:16:52 2011 From: homerun4711 at googlemail.com (Walter White) Date: Sun, 11 Dec 2011 08:16:52 +0100 Subject: Problem with griddata and contourplot In-Reply-To: References: Message-ID: No, the data is scattered 3d points, that are results of a FEM calculation but are no longer in triangular form. Do yo know what causes the error, is there some sort of limit in gnuplot, as the triangulation using griddata runs fine and my program quits during contourf... 2011/12/9 c. > > On 9 Dec 2011, at 17:04, Walter White wrote: > > > > > I came across a problem and hope that you can help me. > > > > I was trying to produce a contour plot of scattered x,y,z data, > > therefore I was using griddata. So far everything works fine, > > but when my mesh is too fine the following error message > > appears and the script quits: > > > > gnuplot (as of v4.2) only supports 3D filled triangular patches > > > > Since the data is from a FEM software I have to plot it > > using a fine mesh to see the details. > > Does someone know a solution or a workaround to that? > > if your data is defined on a triangular or tetrahedral mesh, > you might want to use the 'fpl' package to export it to vtk format > and then view it with paraview. > > > Kind regards, > > Walter > > _______ > c. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From macy at BasicISP.net Sun Dec 11 07:41:06 2011 From: macy at BasicISP.net (Macy) Date: Sun, 11 Dec 2011 05:41:06 -0800 Subject: Image analysis Message-ID: <20111211054106.2DFC04C@m0005299.ppops.net> Assuming you converted the .jpg to Test3.bmp, which is about 3.9MB file If you do the following you should be able to read in a sample image: myfile=fopen("Test3.bmp","r","ieee-le"); x=fread(myfile); fclose(myfile); n=1280*1040; y=x(end-3*n+1:end); r=y(1:3:end-2); rr=reshape(r,1280,1040); % I use octave 2.1.50. which uses the old gnuplot and this shows the whole image % gsplot rr(1:10:end,1:10:end); I got the matrix showing the whole image, and the scale at the bottom. a little bit of effort and you can automatically find the scale in terms of indices. PS: this was all done by inspecting the .bmp image, there is nothing automated about capturing the size, etc, even the fact that the image is saved using 3 bytes in a row, caught me off guard. I thought the whole image field per color was captured, but it appears that the data is R, G, B per pixel, so be careful if you apply to other images, look at them first with a hex editor. The above script worked on the sample image you sent. Regards, Robert --- gaikwadpreeti at gmail.com wrote: From: Preeti Gaikwad To: Macy , help-octave at octave.org Subject: Re: Image analysis Date: Wed, 7 Dec 2011 17:53:57 +0100 Thanks a lot for the interest I would like to measure this the diameter of the big and small pore(it look like broken eggs :-)) I think there is intensity variation in color like gray and black even if i change in rgb I can see roughly the color variation. scale is also mention on the image like 10um for 35.5-2.03 and 1um for 60-4-RN.03. Yes the problem is quite complicated I know I did it manually but in python they are explaining nice examples as I am not familiar with the same I stick on octave..... I donot understand much the given example but got ur point...since you can put the round and define the size of the same and can get the center and all for me i hv circles not very nice round and border is gray and center is black so want to know there size....i m not demanding for precise measurements...would like to send a simple file to start up...It is attached with the mail....one test2 file I can measure the pore diameter and size is displayed now in test 3 I want to do the same exercise for counting the pore using ocave......could you please let me know how we can put our scale on the image to get this size.....since I am trying this first time I dont know how to proceed for the same......thanks for ur help in advance On 7 December 2011 17:26, Macy wrote: > Wow! > > What EXACTLY are you attempting to measure? In the image labeled, > 35.5-2.03.tif, there appears to be 'broken' egg shells. Are you measuring > the holes in those shells, the size of those shells, what? Plus, > everything appears to be overlapping! > > Not a 'simple' analysis at all, but you knew that already, right? > > In the image labeled, 60-4-RN.03.tif, there appears to be 'ruffles', with > no discernibale edges. Again, what are you attempting to measure? Closer > examination the image shows a finer rendition of the first, coarser images. > However, there appear to be collapsed larger openings? For example, near > the writing at the bottom are some very large areas that looked like they > once were large, round, but now are collapsed by the morass of finer sized > 'eggshells' > > Just not clear on how you define "success" for counting here. > > But, again, very complicated by the overlapping nature of the 3D > structures. > > My approach would be to take a SMALL piece of the image. Decide how, and > what, it means to measure; and write some sample code? > > I have done a bit of similar, but much simpler image processing: > I wrote octave code that takes a 'round' image, finds its center, maps > 'average circles extending out from that center, then subtracts that > average from the original to display disruption. I've attached images of > those results. > > I may be wrong, but I think you will have to 'custom' write your octave > software, but writing it, you will be much more satisfied with the results, > plus you can control parameters much better, plus you will UNDERSTAND and > KNOW exactly what your results mean. > > Regards, > Robert Macy, PE > > AJM International Electronics > [formerly in Silicon Valley] > P O Box 74241 > 46007 N 38th Ave, Suite 100 > New River, AZ 85087 > tel: 480 466 0895 > fax: 623 465 2974 > Macy at BasicISP.net > > > > = = = > From: Preeti Gaikwad > To: Macy , help-octave at octave.org > Subject: Re: Image analysis > Date: Tue 12/06/11 02:59 PM > > THanks a lot to take an interest here i m sending two example > image.....thanks in advance for ur help... > > Attachments 35.5-2.03.tif 60-4-RN.03.tif > -- preeti gaikwad From george_goldberger at yahoo.com Sun Dec 11 09:48:53 2011 From: george_goldberger at yahoo.com (George Goldberger) Date: Sun, 11 Dec 2011 07:48:53 -0800 (PST) Subject: libglib-2.0-0.dll not found Message-ID: <1323618533.98494.YahooMailClassic@web161805.mail.bf1.yahoo.com> Running Octave on a Toshiba laptop.? Win XP, SP3. ?When running SetupPsychtoolbox.m in Octave, I get a dialog with an error ?This application failed to start because libglib-2.0-0.dll was not found. Re-installing the application may fix this problem.??? Seems to me to be based on an Octave error.? I couldn?t find ?libglib-2.0-0.dll? in Octave.? But, I could find ?libglib-2.0.dll.a?. ?I installed it 3X.? Once on a Toshiba laptop & 2X on a Dell Desktop.? Same error. Any help would be appreciated. ? Thanks. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpabbott at mac.com Sun Dec 11 12:40:58 2011 From: bpabbott at mac.com (Ben Abbott) Date: Sun, 11 Dec 2011 13:40:58 -0500 Subject: Problem with griddata and contourplot In-Reply-To: References: <8210E7A4-C8A7-45ED-BE11-D92E130A021A@mac.com> Message-ID: <5851ECAE-7508-41AD-A74F-021AB02739DD@mac.com> On Dec 9, 2011, at 11:53 AM, Walter White wrote: > 2011/12/9 Ben Abbott > >> On Dec 9, 2011, at 11:04 AM, Walter White wrote: >> >> > Hello, >> > >> > I came across a problem and hope that you can help me. >> > >> > I was trying to produce a contour plot of scattered x,y,z data, >> > therefore I was using griddata. So far everything works fine, >> > but when my mesh is too fine the following error message >> > appears and the script quits: >> > >> > gnuplot (as of v4.2) only supports 3D filled triangular patches >> > >> > Since the data is from a FEM software I have to plot it >> > using a fine mesh to see the details. >> > Does someone know a solution or a workaround to that? >> > >> > Kind regards, >> > Walter >> >> Can you tell us what commands you used? >> >> And, if possible, provide a simple example for us to try ourselves? >> >> Ben >> >> > > Thanks for the quick reply! > > I used > > ---------- > FEM_matrix = load('./my_FEM_matrix.dat'); > stepwidth = 0.03 %in m > x_density = min(FEM_matrix(:,1)) : stepwidth : max(FEM_matrix(:,1)); > y_density = minFEM_matrix(:,2)) : stepwidth : max(FEM_matrix(:,2)); > > [XI,YI] = meshgrid(x_density,y_density); > > x = FEM_matrix(:,1); > y = FEM_matrix(:,2); > z = FEM_matrix(:,3); > > ZI = griddata(x,y,z,XI,YI); > > contourf(XI,YI,ZI,50) > > ylabel('y-axis [m]') > xlabel('x-axis [m])') > > title('FEM matrix') > > axis([min(FEM_matrix(:,1)) , max(FEM_matrix(:,1)) , min(FEM_matrix(:,2)) , max(FEM_matrix(:,2)) ]); > > caxis([0 5]) > hd = colorbar; > set(get(hd,'title'),'String','[ radian ]'); > > print('some_file_name.png', '-dpng','-S1024,768') > -------------------- > > I also tried to disable the call to axis(...), but this does not change a thing. > The function crashes with the error message at about stepwidth = 0.02. > > --------- > error: gnuplot (as of v4.2) only supports 3D filled triangular patches > error: called from: > error: /usr/share/octave/3.2.4/m/plot/__go_draw_axes__.m at line 567, column 6 > error: /usr/share/octave/3.2.4/m/plot/__go_draw_figure__.m at line 92, column 3 > error: /usr/share/octave/3.2.4/m/plot/gnuplot_drawnow.m at line 99, column 5 > error: /usr/share/octave/3.2.4/m/plot/print.m at line 707, column 7 > ------- > > Another strange thing are the white areas on the plots that appear > is a finer mesh is used. I attached some pictures. > > Kind regards, > Walter There were some syntax problems with the script. In case anyone else would like to take a look, I've corrected them (see below). I've verified that Octave and Matlab produce the same ZI and that both gnuplot and fltk produce similar results (different than matlab). The comparative plots and the corrected script can be found at the link below. http://files.me.com/bpabbott/rd3bjp The link will expire in 30 days. I also compared the plots when contourf() is replaced by contour(). The non-filled contour plots look essentially the same for gnuplot, fltk and Matlab. It appears that this is a bug in Octave's construction of the filled contour. I've filed a bug report. https://savannah.gnu.org/bugs/index.php?35033 Ben From nitnit at gmail.com Sun Dec 11 13:06:58 2011 From: nitnit at gmail.com (nitnit) Date: Sun, 11 Dec 2011 11:06:58 -0800 (PST) Subject: libglib-2.0-0.dll not found In-Reply-To: <1323618533.98494.YahooMailClassic@web161805.mail.bf1.yahoo.com> References: <1323618533.98494.YahooMailClassic@web161805.mail.bf1.yahoo.com> Message-ID: <1323630418852-4183588.post@n4.nabble.com> You are also do not mention which version of octave have been installed. I don't know what libglib-2.0-0.dll is used for and I am not familiar with the psychtoolbox. However, libglib-2.0.dll.a is a library to be linked with and it has been provided by Tatsuro gplibs.zip. gplibs.zip - are gnuplot library files for octave and it can be downloaded from http://www.tatsuromatsuoka.com/octave/Eng/Win/ You can find libglib-2.0-0.dll in the bin subdir of gplibs.zip and you can copy it to the bin subdir of your octave installation, and try and check if it will work for you. Nitzan -- View this message in context: http://octave.1599824.n4.nabble.com/re-libglib-2-0-0-dll-not-found-tp4183301p4183588.html Sent from the Octave - General mailing list archive at Nabble.com. From mmt200575 at yahoo.com Sun Dec 11 12:17:01 2011 From: mmt200575 at yahoo.com (Mircea Toma) Date: Sun, 11 Dec 2011 10:17:01 -0800 (PST) Subject: how can I know if my windows installation is OK? Message-ID: <1323627421.13490.YahooMailNeo@web112013.mail.gq1.yahoo.com> I am not sure if my windows octave installation is OK. Below is what I get every time when I start Octave. It's my fault and there is something that I can do to fix the problem? I have to reinstall? Thanks for any help. Mircea ============================== GNU Octave, version 3.4.3 Copyright (C) 2011 John W. Eaton and others. .................. For information about changes from previous versions, type `news'. warning: C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\integration-1.0.7\PKG_ADD: possible Matlab-style short-circuit operator at line 9, column 32 io PKG_ADD: java classes has been found and added in C:\Octave\3.4.3_gcc-4.5.2\bin io PKG_ADD: run chk_spreadsheet_support([],3) to view io support warning: gmsh does not seem to be present some functionalities will be disabled warning: dx does not seem to be present some functionalities will be disabled warning: function C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\statistics-1.0.10\fstat.m shadows a core library funct ion octave:1> ============================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpabbott at mac.com Sun Dec 11 13:22:11 2011 From: bpabbott at mac.com (Ben Abbott) Date: Sun, 11 Dec 2011 14:22:11 -0500 Subject: Problem with griddata and contourplot In-Reply-To: <5851ECAE-7508-41AD-A74F-021AB02739DD@mac.com> References: <8210E7A4-C8A7-45ED-BE11-D92E130A021A@mac.com> <5851ECAE-7508-41AD-A74F-021AB02739DD@mac.com> Message-ID: <49517C1D-C7CE-4CA2-AD0B-BD91EECA6843@mac.com> On Dec 11, 2011, at 1:40 PM, Ben Abbott wrote: > On Dec 9, 2011, at 11:53 AM, Walter White wrote: > >> 2011/12/9 Ben Abbott >> >>> On Dec 9, 2011, at 11:04 AM, Walter White wrote: >>> >>>> Hello, >>>> >>>> I came across a problem and hope that you can help me. >>>> >>>> I was trying to produce a contour plot of scattered x,y,z data, >>>> therefore I was using griddata. So far everything works fine, >>>> but when my mesh is too fine the following error message >>>> appears and the script quits: >>>> >>>> gnuplot (as of v4.2) only supports 3D filled triangular patches >>>> >>>> Since the data is from a FEM software I have to plot it >>>> using a fine mesh to see the details. >>>> Does someone know a solution or a workaround to that? >>>> >>>> Kind regards, >>>> Walter >>> >>> Can you tell us what commands you used? >>> >>> And, if possible, provide a simple example for us to try ourselves? >>> >>> Ben >>> >>> >> >> Thanks for the quick reply! >> >> I used >> >> ---------- >> FEM_matrix = load('./my_FEM_matrix.dat'); >> stepwidth = 0.03 %in m >> x_density = min(FEM_matrix(:,1)) : stepwidth : max(FEM_matrix(:,1)); >> y_density = minFEM_matrix(:,2)) : stepwidth : max(FEM_matrix(:,2)); >> >> [XI,YI] = meshgrid(x_density,y_density); >> >> x = FEM_matrix(:,1); >> y = FEM_matrix(:,2); >> z = FEM_matrix(:,3); >> >> ZI = griddata(x,y,z,XI,YI); >> >> contourf(XI,YI,ZI,50) >> >> ylabel('y-axis [m]') >> xlabel('x-axis [m])') >> >> title('FEM matrix') >> >> axis([min(FEM_matrix(:,1)) , max(FEM_matrix(:,1)) , min(FEM_matrix(:,2)) , max(FEM_matrix(:,2)) ]); >> >> caxis([0 5]) >> hd = colorbar; >> set(get(hd,'title'),'String','[ radian ]'); >> >> print('some_file_name.png', '-dpng','-S1024,768') >> -------------------- >> >> I also tried to disable the call to axis(...), but this does not change a thing. >> The function crashes with the error message at about stepwidth = 0.02. >> >> --------- >> error: gnuplot (as of v4.2) only supports 3D filled triangular patches >> error: called from: >> error: /usr/share/octave/3.2.4/m/plot/__go_draw_axes__.m at line 567, column 6 >> error: /usr/share/octave/3.2.4/m/plot/__go_draw_figure__.m at line 92, column 3 >> error: /usr/share/octave/3.2.4/m/plot/gnuplot_drawnow.m at line 99, column 5 >> error: /usr/share/octave/3.2.4/m/plot/print.m at line 707, column 7 >> ------- >> >> Another strange thing are the white areas on the plots that appear >> is a finer mesh is used. I attached some pictures. >> >> Kind regards, >> Walter > > There were some syntax problems with the script. In case anyone else would like to take a look, I've corrected them (see below). > > I've verified that Octave and Matlab produce the same ZI and that both gnuplot and fltk produce similar results (different than matlab). The comparative plots and the corrected script can be found at the link below. > > http://files.me.com/bpabbott/rd3bjp > > The link will expire in 30 days. > > I also compared the plots when contourf() is replaced by contour(). The non-filled contour plots look essentially the same for gnuplot, fltk and Matlab. > > It appears that this is a bug in Octave's construction of the filled contour. > > I've filed a bug report. > > https://savannah.gnu.org/bugs/index.php?35033 > > Ben Walter, As a work around, you can try imagesc(). Replace the call to contourf() with ... imagesc (XI, YI, ZI) If you only want 50 levels, you can do something like ... Zmax = max (ZI(:)); imagesc (XI, YI, Zmax*0.02*round(50*ZI/Zmax)) Ben From tmacchant at yahoo.co.jp Sun Dec 11 14:01:34 2011 From: tmacchant at yahoo.co.jp (Tatsuro MATSUOKA) Date: Mon, 12 Dec 2011 05:01:34 +0900 (JST) Subject: how can I know if my windows installation is OK? In-Reply-To: <1323627421.13490.YahooMailNeo@web112013.mail.gq1.yahoo.com> Message-ID: <619273.45131.qm@web100305.mail.kks.yahoo.co.jp> Hello The warning that you described is appeared after octave-forge package also in my case. Those message perhaps comes from package loading system of octave being not complete. At this moment please ignore the message. For octave-forge package install check, please type pkg list from octave command prompt. You can check how octave-forge package is installed. Regards Tatsuro --- On Mon, 2011/12/12, Mircea Toma wrote: > > > I am not sure if my windows octave installation is OK. > Below is what I get every time when I start Octave. > It's my fault and there is something that I can do to fix the problem? > I have to reinstall? > > Thanks for any help. > Mircea > > > ============================== > GNU Octave, version 3.4.3 > Copyright (C) 2011 John W. Eaton and others. > .................. > > For information about changes from previous versions, type `news'. > > warning: C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\integration-1.0.7\PKG_ADD: possible Matlab-style short-circuit > operator at line 9, column 32 > io PKG_ADD: java classes has been found and added in C:\Octave\3.4.3_gcc-4.5.2\bin > io PKG_ADD: run chk_spreadsheet_support([],3) to view io support > warning: gmsh does not seem to be present some functionalities will be disabled > warning: dx does not seem to be present some functionalities will be disabled > warning: function C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\statistics-1.0.10\fstat.m shadows a core library funct > ion > octave:1> > > ============================== From hellyj at ucsd.edu Sun Dec 11 15:52:56 2011 From: hellyj at ucsd.edu (John Helly) Date: Sun, 11 Dec 2011 11:52:56 -1000 Subject: How to prevent Aquaterm plotting from command-line processing? In-Reply-To: <1323499240.14295.YahooMailNeo@web31704.mail.mud.yahoo.com> References: <1323127042.79961.YahooMailNeo@web31706.mail.mud.yahoo.com> <20111206082058.GA16426@laura.suse.cz> <1323499240.14295.YahooMailNeo@web31704.mail.mud.yahoo.com> Message-ID: <93416886-ECE6-4B64-8632-98C597EC1012@ucsd.edu> Hi. This is a puzzle. I'm running a script I've run many time without this happening but now I am getting Aquaterm plots to the console while running a bash script that invokes octave. The plot syntax I'm using is like this: figure; hold on; xlabel('Easting (m) [UTM11N]'); ylabel('Northing (m) [UTM11N]'); plot(X_START,Y_START,'*','color','blue') plot(X_START,Y_START,'color','blue') text(X_START+300,Y_START,TRANSECT); plot(MOP_Easting, MOP_Northing,'color','red') text(MOP_Easting(1)+300, MOP_Northing(1),INPUT_MOP_STATION,'color','red'); hold off; FIGURE=strcat(OUTPUT_HOME,'/Profile_Map/',INPUT_MOP_STATION,'.ModelBeachProfileLocation.pdf'); print('-dpdf',FIGURE) Since I'm writing to a file (*.pdf), I don't understand why octave is suddenly using aquaterm to plot to the terminal. It produces hundreds of plots so this is a real problem for me. Thanks. Cheers. -------------- John Helly, University of California, San Diego / San Diego Supercomputer Center / Scripps Institution of Oceanography / 760 840 8660 mobile / stonesteps (Skype) / stonesteps7 (iChat) / http://www.sdsc.edu/~hellyj -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpabbott at mac.com Sun Dec 11 17:48:19 2011 From: bpabbott at mac.com (Ben Abbott) Date: Sun, 11 Dec 2011 18:48:19 -0500 Subject: How to prevent Aquaterm plotting from command-line processing? In-Reply-To: <93416886-ECE6-4B64-8632-98C597EC1012@ucsd.edu> References: <1323127042.79961.YahooMailNeo@web31706.mail.mud.yahoo.com> <20111206082058.GA16426@laura.suse.cz> <1323499240.14295.YahooMailNeo@web31704.mail.mud.yahoo.com> <93416886-ECE6-4B64-8632-98C597EC1012@ucsd.edu> Message-ID: <4D16FB84-FAAD-4AAA-BF58-F36CF36A26D3@mac.com> On Dec 11, 2011, at 4:52 PM, John Helly wrote: > Hi. > > This is a puzzle. I'm running a script I've run many time without this happening but now I am getting Aquaterm plots to the console while running a bash script that invokes octave. The plot syntax I'm using is like this: > > figure; > hold on; > xlabel('Easting (m) [UTM11N]'); > ylabel('Northing (m) [UTM11N]'); > plot(X_START,Y_START,'*','color','blue') > plot(X_START,Y_START,'color','blue') > text(X_START+300,Y_START,TRANSECT); > plot(MOP_Easting, MOP_Northing,'color','red') > text(MOP_Easting(1)+300, MOP_Northing(1),INPUT_MOP_STATION,'color','red'); > hold off; > FIGURE=strcat(OUTPUT_HOME,'/Profile_Map/',INPUT_MOP_STATION,'.ModelBeachProfileLocation.pdf'); > print('-dpdf',FIGURE) > > Since I'm writing to a file (*.pdf), I don't understand why octave is suddenly using aquaterm to plot to the terminal. It produces hundreds of plots so this is a real problem for me. > > Thanks. > > Cheers. I've not encountered this before. Can you create a simple example that others can try? Ben From mmt200575 at yahoo.com Sun Dec 11 18:01:28 2011 From: mmt200575 at yahoo.com (Mircea Toma) Date: Sun, 11 Dec 2011 16:01:28 -0800 (PST) Subject: how can I know if my windows installation is OK? In-Reply-To: <619273.45131.qm@web100305.mail.kks.yahoo.co.jp> References: <1323627421.13490.YahooMailNeo@web112013.mail.gq1.yahoo.com> <619273.45131.qm@web100305.mail.kks.yahoo.co.jp> Message-ID: <1323648088.86918.YahooMailNeo@web112010.mail.gq1.yahoo.com> Thanks. I reinstalled Octave from octave-forge. After the installation I got the same warnings. Mircea ________________________________ From: Tatsuro MATSUOKA To: "help-octave at octave.org" ; Mircea Toma Sent: Sunday, December 11, 2011 2:01 PM Subject: Re: how can I know if my windows installation is OK? Hello The warning that you described is appeared after octave-forge package also in my case. Those message perhaps comes from package loading system of octave being not complete. At this moment please ignore the message. For octave-forge package install check, please type pkg list from octave command prompt. You can check how octave-forge package is installed. Regards Tatsuro --- On Mon, 2011/12/12, Mircea Toma? wrote: > > > I am not sure if my windows octave installation is OK. > Below is what I get every time when I start Octave. > It's my fault and there is something that I can do to fix the problem? > I have to reinstall? > > Thanks for any help. > Mircea > > > ============================== > GNU Octave, version 3.4.3 > Copyright (C) 2011 John W. Eaton and others. > .................. > > For information about changes from previous versions, type `news'. > > warning: C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\integration-1.0.7\PKG_ADD: possible Matlab-style short-circuit > operator at line 9, column 32 > io PKG_ADD: java classes has been found and added in C:\Octave\3.4.3_gcc-4.5.2\bin > io PKG_ADD: run chk_spreadsheet_support([],3) to view io support > warning: gmsh does not seem to be present some functionalities will be disabled > warning: dx does not seem to be present some functionalities will be disabled > warning: function C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\statistics-1.0.10\fstat.m shadows a core library funct > ion > octave:1> > > ============================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From nitnit at gmail.com Mon Dec 12 01:03:24 2011 From: nitnit at gmail.com (nitnit) Date: Sun, 11 Dec 2011 23:03:24 -0800 (PST) Subject: how can I know if my windows installation is OK? In-Reply-To: <1323627421.13490.YahooMailNeo@web112013.mail.gq1.yahoo.com> References: <1323627421.13490.YahooMailNeo@web112013.mail.gq1.yahoo.com> Message-ID: <1323673404823-4184987.post@n4.nabble.com> You can ignore all these messages. Here is a short explanation: warning: C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\integration-1.0.7\PKG_ADD: possible Matlab-style short-circuit operator at line 9, column 32 This is a warning about interpretation of logical operators (on scalars) in octave which is slightly different than matlab's interpretation. io PKG_ADD: java classes has been found and added in C:\Octave\3.4.3_gcc-4.5.2\bin io PKG_ADD: run chk_spreadsheet_support([],3) to view io support These are messages from java package about loading of java classes that have been found and how to manually run a statement which will display its capabilities. warning: gmsh does not seem to be present some functionalities will be disabled warning: dx does not seem to be present some functionalities will be disabled These messages are about missing external tools which may reduce some of the functions of some packages. These external tools are not provided by the 7z archives in sourceforge. warning: function C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\statistics-1.0.10\fstat.m shadows a core library function This is a message about fstat function of the statistics package that overloads the old (to be deprecated) fstat function of octave-3.4.3 Nitzan -- View this message in context: http://octave.1599824.n4.nabble.com/how-can-I-know-if-my-windows-installation-is-OK-tp4183605p4184987.html Sent from the Octave - General mailing list archive at Nabble.com. From kris.f.thielemans at gmail.com Mon Dec 12 03:46:21 2011 From: kris.f.thielemans at gmail.com (Kris Thielemans) Date: Mon, 12 Dec 2011 09:46:21 -0000 Subject: 2 small suggestions related to save() Message-ID: <00d801ccb8b2$e88d8520$b9a88f60$@gmail.com> Hi I was confused by the usage of default_save_options. I assigned a value to the variable, as opposed to calling the function. This is of course clearly documented ("help default_save_options" tells you), but nevertheless I only found out when trying to assign a value to save_header_format_string. Doing that generates a clear warning about function vs variable. I wonder therefore if it wouldn't be helpful to issue the same warning for default_save_options. This would be easy to do (just add it to former_built_in_variables in pt-assign.cc). Another minor suggestion is to mention save_header_format_string in the documentation of save() (e.g. as "see also"). I only found out about it by checking the code. Many thanks Kris From carbajal at ifi.uzh.ch Mon Dec 12 04:36:18 2011 From: carbajal at ifi.uzh.ch (Juan Pablo Carbajal) Date: Mon, 12 Dec 2011 11:36:18 +0100 Subject: 2 small suggestions related to save() In-Reply-To: <00d801ccb8b2$e88d8520$b9a88f60$@gmail.com> References: <00d801ccb8b2$e88d8520$b9a88f60$@gmail.com> Message-ID: On Mon, Dec 12, 2011 at 10:46 AM, Kris Thielemans wrote: > Hi > > I was confused by the usage of default_save_options. I assigned a value to > the variable, as opposed to calling the function. This is of course clearly > documented ("help default_save_options" tells you), but nevertheless I only > found out when trying to assign a value to save_header_format_string. Doing > that generates a clear warning about function vs variable. I wonder > therefore if it wouldn't be helpful to issue the same warning for > default_save_options. This would be easy to do (just add it to > former_built_in_variables in pt-assign.cc). > > Another minor suggestion is to mention save_header_format_string in the > documentation of save() (e.g. as "see also"). I only found out about it by > checking the code. > > Many thanks > > Kris > > > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave Hi Kris, Maybe you want to do it yourself and send a changeset to the maintainer list? Devs are very busy preparing for 3.6 release and hey may not take care of this soon. If you can't do it, then please do fill a bug report (if this is a minor bug in documentation and warning) so the issue is not forgotten. https://savannah.gnu.org/bugs/?group=octave Thanks -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Z?rich http://ailab.ifi.uzh.ch/carbajal/ From balteo at gmail.com Mon Dec 12 06:57:55 2011 From: balteo at gmail.com (Julien Martin) Date: Mon, 12 Dec 2011 13:57:55 +0100 Subject: Advice needed with integrals and octave Message-ID: Hello, I am trying to transpose the following into octave: =-1.2816 =-1.0364 Can anyone please advise? Julien. -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.dastew at gmail.com Mon Dec 12 07:52:12 2011 From: doug.dastew at gmail.com (Doug Stewart) Date: Mon, 12 Dec 2011 08:52:12 -0500 Subject: Advice needed with integrals and octave In-Reply-To: References: Message-ID: On Mon, Dec 12, 2011 at 7:57 AM, Julien Martin wrote: > Hello, > I am trying to transpose the following into octave: > > =-1.2816 > =-1.0364 > > > Can anyone please advise? > > Julien. > > _______________________________________________ > Help-octave mailing list > Help-octave at octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > > Your images did not show up. You must give us more information. -- DAS https://linuxcounter.net/user/206392.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From carsanalo at hotmail.com Mon Dec 12 02:56:06 2011 From: carsanalo at hotmail.com (CARMEN SANCHEZ) Date: Mon, 12 Dec 2011 09:56:06 +0100 Subject: HELP FOR A FUNCTION Message-ID: Good morning:I want to built and calculate the integrate of this function y=x*sin(x) with the command quadv, but always I have the same type of error: 1 clear all; 2 x=linspace(0,3*pi,100); 3 function y=f(x) 4 y=(x).*sin(x); 5 endfunction 6 title('Representacion Funcion y=x*sen(x)'); 7 q=quadv('f',0,3*pi); 8 plot(x,y,'r*') and always the same: >>> cd 'C:/Octave/3.2.4_gcc-4.4.0/bin/funciones' source ("pruebasimp.m") >>>error: `y' undefined near line 8 column 8 error: evaluating argument list element number 2 error: evaluating argument list element number 1 error: called from: error: pruebasimp.m at line 8, column 1May you help me? Thanks a lot, I am waiting for your answer, Best eregards, Javier Marco (from Spain) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Allen.Windhorn at emerson.com Mon Dec 12 09:37:15 2011 From: Allen.Windhorn at emerson.com (Allen.Windhorn at emerson.com) Date: Mon, 12 Dec 2011 09:37:15 -0600 Subject: HELP FOR A FUNCTION In-Reply-To: References: Message-ID: <9364AF34D87CEB4C86A574178FD2A2C4B97688@mkts24.na.ls.ia.priv> From: help-octave-bounces at octave.org [mailto:help-octave-bounces at octave.org] On Behalf Of CARMEN SANCHEZ > I want to built and calculate?the integrate of this function > y=x*sin(x) with the command quadv, but always I have the same > type of error: > ... > 8 plot(x,y,'r*') Try: "plot(x, f(x), 'r*')" instead. Or "y=f(x)" before. Regards, Allen From carlo.defalco at gmail.com Mon Dec 12 09:37:09 2011 From: carlo.defalco at gmail.com (c.) Date: Mon, 12 Dec 2011 16:37:09 +0100 Subject: HELP FOR A FUNCTION In-Reply-To: References: Message-ID: <678C8B31-3FFB-4CAE-91DA-D4085D9EFF58@gmail.com> On 12 Dec 2011, at 09:56, CARMEN SANCHEZ wrote: > Good morning: > I want to built and calculate the integrate of this function y=x*sin(x) with the command quadv, but always I have the same type of error: <...> your error has nothing to do with computing the integral, but it's due to the attempt tu plot your function > plot(x,y,'r*') you never defined a vector named 'y' in the outmost scope so you get the error: > error: `y' undefined near line 8 column 8 you can fix that by defining y before plotting: y = f(x); plot(x,y,'r*') or even just do plot(x,f(x),'r*') this is some really basic octave syntax, which is very well documented in the Octave manual: http://www.gnu.org/software/octave/doc/interpreter/ c. From kasozi5 at yahoo.com Mon Dec 12 21:52:00 2011 From: kasozi5 at yahoo.com (Taza) Date: Mon, 12 Dec 2011 19:52:00 -0800 (PST) Subject: error: can't perform indexing operations for type In-Reply-To: <18032.60812.46174.819193@segfault.lan> References: <5237aecd0706140010y297a8402nbea137825f500832@mail.gmail.com> <18032.60812.46174.819193@segfault.lan> Message-ID: <1323748320810-4188667.post@n4.nabble.com> Hi John Am trying to apply the concept of using cumulative product in my octave script code, am trying to simulate the Asset Paths which is a perquisite for me before I can use the octave to perform a montecarlo simulation for option pricing. So I use the necessary input arguments to evaluate the following standard model equation for Evolution of equity prices given by weiner process : http://octave.1599824.n4.nabble.com/file/n4188667/Weine_Brenner_equation.jpg I started by evaluating the exponent section of the equation using the following octave scripts : http://octave.1599824.n4.nabble.com/file/n4188667/Exponent_code_2.jpg on running the script to see the results i got a matrix of many values from column 1 to 15. however the run ends with an error: Matrix Cannot be indexed with and a warning: some elements in list of return values are undefined. however my greatest concern is on the issue of matrix cannot be indexed with. then next on trying to get the cumulative product of the matrix, it does not seem to work, the following script equation for the model is in matlab, % matlab script to generate assetpaths S = S0*[ones(1,nsims); ... cumprod(exp(nu*dt+sig*sqrt(dt)*randn(steps,nsims)),1)]; am trying to apply the same concept in octave but it seems that iam having a problem with my cumulative product use in octave, its really confusing me since its not applied directly as it appears in matlab. so how should i handle this script issue. -- View this message in context: http://octave.1599824.n4.nabble.com/error-can-t-perform-indexing-operations-for-unknown-type-type-tp1625546p4188667.html Sent from the Octave - General mailing list archive at Nabble.com. From carlo.defalco at gmail.com Mon Dec 12 23:18:12 2011 From: carlo.defalco at gmail.com (c.) Date: Tue, 13 Dec 2011 06:18:12 +0100 Subject: error: can't perform indexing operations for type In-Reply-To: <1323748320810-4188667.post@n4.nabble.com> References: <5237aecd0706140010y297a8402nbea137825f500832@mail.gmail.com> <18032.60812.46174.819193@segfault.lan> <1323748320810-4188667.post@n4.nabble.com> Message-ID: On 13 Dec 2011, at 04:52, Taza wrote: > the following script equation for the model is in matlab, > % matlab script to generate assetpaths > S = S0*[ones(1,nsims); ... > cumprod(exp(nu*dt+sig*sqrt(dt)*randn(steps,nsims)),1)]; > am trying to apply the same concept in octave but it seems that iam having > a problem with my cumulative product use in octave why didn't you use exactly the same code in Octave? that seems to work for me: S0 = 50; mu = 0.04; sig = .1; dt = 1/365; steps = 50; nsims = 15; nu = mu - (sig^2/2); S = S0*[ones(1,nsims); cumprod(exp(nu*dt+sig*sqrt(dt)*randn(steps,nsims)),1)]; size(S) ans = 51 15 you'll have to provide more info if you want someone to understand what's going wrong for you. Please don't send your code as images as images as it make it impossible to cut and paste to test. c. From nukeymusic at gmail.com Tue Dec 13 02:51:53 2011 From: nukeymusic at gmail.com (BVBA NuKey Music) Date: Tue, 13 Dec 2011 09:51:53 +0100 Subject: problem reading file with time-stamps Message-ID: I'm trying to read a file with four columns which has timestamps in the first column: The data is available in the file in the following format: Dec-13-09:46:45 21.4 +4.76442190E-01 8.135530E-06 1.553691E+00 Dec-13-09:47:12 21.4 +4.76439120E-01 8.135839E-06 1.553726E+00 Dec-13-09:47:39 21.4 +4.76427260E-01 8.136261E-06 1.553853E+00 first field is a timestamp then a space followed by a temperature then a space ... As you can see here below, octave doesn't accept the file because of the timestamps, can anyone here help me solve this problem? octave:1> y=load('x7r0.7vac0vdc.dat'); error: load: failed to read matrix from file `x7r0.7vac0vdc.dat' error: evaluating assignment expression near line 1, column 2 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nukeymusic at gmail.com Tue Dec 13 02:55:16 2011 From: nukeymusic at gmail.com (BVBA NuKey Music) Date: Tue, 13 Dec 2011 09:55:16 +0100 Subject: accelerator Message-ID: In matlab 6.5 an accelerator was introduced to make low-level code run faster, 1. does Octave also use such an accelerator? 2. is it possible to switch off the accelerator (just curious to see how effective it is) regards, nukey -------------- next part -------------- An HTML attachment was scrubbed... URL: