From antoine.elias at scilab-enterprises.com Wed Aug 1 00:24:28 2018 From: antoine.elias at scilab-enterprises.com (Antoine ELIAS) Date: Wed, 1 Aug 2018 00:24:28 +0200 Subject: [Scilab-users] == and : relative priorities, as in 0==-1:1 In-Reply-To: References: <73815ac4-d76c-0cbf-fd44-2a2a2beac6f9@free.fr> <01373c47-682d-4727-a33b-f6ca720e19bc@free.fr> Message-ID: Haha, I was referring to Matlab. It was a private joke with Bruno. Sorry about for misunderstanding. Antoine Le 31/07/2018 ? 22:20, Rafael Guerra a ?crit?: > > Le 31/07/2018 ? 21:51, Samuel Gougeon a ?crit?: > > It is somewhat reported here > (in 2011..), but i > don't understand > the conclusion of the report...: ?It seems that "he who must not be > named" has different priorities on operators.? > > Is Voldemort working in the Scilab team? > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu Aug 2 09:08:22 2018 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 2 Aug 2018 07:08:22 +0000 Subject: [Scilab-users] {EXT} == and : relative priorities, as in 0==-1:1 In-Reply-To: <73815ac4-d76c-0cbf-fd44-2a2a2beac6f9@free.fr> References: <73815ac4-d76c-0cbf-fd44-2a2a2beac6f9@free.fr> Message-ID: Hello, > De : De la part de Samuel Gougeon > Envoy? : mardi 31 juillet 2018 21:52 > > --> p = 0; p==-1:1 > [?] > the expression is parsed (p==-1):1. > [?] > what about inverting the comparisons > and ":" relative priorities, in order to parse p==(-1:1) ? I do agree with this. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From stephane.mottelet at utc.fr Thu Aug 2 12:30:42 2018 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Thu, 2 Aug 2018 12:30:42 +0200 Subject: [Scilab-users] {EXT} == and : relative priorities, as in 0==-1:1 In-Reply-To: References: <73815ac4-d76c-0cbf-fd44-2a2a2beac6f9@free.fr> Message-ID: > Le 2 ao?t 2018 ? 09:08, Dang Ngoc Chan, Christophe a ?crit : > > Hello, > >> De : De la part de Samuel Gougeon >> Envoy? : mardi 31 juillet 2018 21:52 >> >> --> p = 0; p==-1:1 >> [?] >> the expression is parsed (p==-1):1. >> [?] >> what about inverting the comparisons >> and ":" relative priorities, in order to parse p==(-1:1) ? > > I do agree with this. +1 S. > > Regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Thu Aug 2 12:48:42 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 2 Aug 2018 12:48:42 +0200 Subject: [Scilab-users] xmltopdf() broken : workaround ? Message-ID: <3331504c-c1e3-64d5-9544-1930b83b3564@free.fr> Hello, xmltopdf() aims to build a PDF version of help pages of a module. The PDF is browsable (internal links between pages), and the rendering is similar as for the embedded pages. Getting such a PDF is very convenient for instance to put it on the ATOMS page of the module, to provide a way to easily see help pages before installing a module (to see if the module is suitable to a need). Unfortunately, xmltopdf() is broken for 4 years now. Does anyone know an external (free) tool to convert a set of inter-hyperlinked HTML pages into a browsable PDF? At first glance, i have not found any relevant tool. Many tools are able to convert pages, but without internal links. Such a passive PDF can be built also by converting each page independently, and then merge them into a single PDF (in the right order ;). Thanks for any hints and references Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Aug 2 12:58:00 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 2 Aug 2018 12:58:00 +0200 Subject: [Scilab-users] xmltopdf() broken : workaround ? In-Reply-To: <3331504c-c1e3-64d5-9544-1930b83b3564@free.fr> References: <3331504c-c1e3-64d5-9544-1930b83b3564@free.fr> Message-ID: <2c27f8d9-fc36-291e-06e2-206b1a710e49@free.fr> An external tool converting the jar help file into a PDF version would also be convenient. Each jar file generated by Scilab's documentation compiler for each language version of the help already includes all useful components (CSS styles, .toc = structure of the chapter, etc). Samuel Le 02/08/2018 ? 12:48, Samuel Gougeon a ?crit : > > Hello, > > xmltopdf() aims to build a PDF version of help pages of a module. > The PDF is browsable (internal links between pages), and the rendering > is similar as for the embedded pages. > > Getting such a PDF is very convenient for instance to put it on the > ATOMS page of the module, to provide a way to easily see help pages > before installing a module (to see if the module is suitable to a need). > > Unfortunately, xmltopdf() is broken > for 4 years now. > > Does anyone know an external (free) tool to convert a set of > inter-hyperlinked HTML pages into a browsable PDF? > > At first glance, i have not found any relevant tool. > Many tools are able to convert pages, but without internal links. Such > a passive PDF can be built also by converting each page independently, > and then merge them into a single PDF (in the right order ;). > > Thanks for any hints and references > > Samuel > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu Aug 2 13:12:08 2018 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 2 Aug 2018 11:12:08 +0000 Subject: [Scilab-users] xmltopdf() broken : workaround ? Message-ID: Hello, > De : Samuel Gougeon > Envoy? : jeudi 2 ao?t 2018 12:49 > > Does anyone know an external (free) tool to convert a set of inter-hyperlinked HTML pages into a browsable PDF? You might try HTML to LaTeX http://www.slac.stanford.edu/comp/unix/package/tex/guides/wp-conv/html2tex/htmltools.html then TeX4ht www.tug.org/tex4ht hopping the double-translation won't give the same result as : https://www.youtube.com/playlist?list=PLGnYtw5ezZI-BnVCUhMOcBqi9KggS1fhD -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From jrafaelbguerra at hotmail.com Thu Aug 2 15:45:54 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 2 Aug 2018 13:45:54 +0000 Subject: [Scilab-users] xmltopdf() broken : workaround ? In-Reply-To: <3331504c-c1e3-64d5-9544-1930b83b3564@free.fr> References: <3331504c-c1e3-64d5-9544-1930b83b3564@free.fr> Message-ID: Have you tried opening the HTML in MS Word and saving as PDF? From: users On Behalf Of Samuel Gougeon Sent: Thursday, August 02, 2018 12:49 PM To: International users mailing list for Scilab. Subject: [Scilab-users] xmltopdf() broken : workaround ? Does anyone know an external (free) tool to convert a set of inter-hyperlinked HTML pages into a browsable PDF? From sgougeon at free.fr Thu Aug 2 15:54:50 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 2 Aug 2018 15:54:50 +0200 Subject: [Scilab-users] xmltopdf() broken : workaround ? In-Reply-To: References: <3331504c-c1e3-64d5-9544-1930b83b3564@free.fr> Message-ID: <5f6cf0d6-ba0f-3dfb-fc2b-aa46233d77a0@free.fr> Le 02/08/2018 ? 15:45, Rafael Guerra a ?crit : > Have you tried opening the HTML in MS Word and saving as PDF? The issue is not to convert some independent pages, but to convert a whole tree with its internal links (i mean: links pointing to other members of the tree). From jrafaelbguerra at hotmail.com Thu Aug 2 16:17:33 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 2 Aug 2018 14:17:33 +0000 Subject: [Scilab-users] xmltopdf() broken : workaround ? In-Reply-To: <5f6cf0d6-ba0f-3dfb-fc2b-aa46233d77a0@free.fr> References: <3331504c-c1e3-64d5-9544-1930b83b3564@free.fr> <5f6cf0d6-ba0f-3dfb-fc2b-aa46233d77a0@free.fr> Message-ID: Ok, it seems that Calibre does that: https://manual.calibre-ebook.com/conversion.html https://calibre-ebook.com/about Regards, Rafael -----Original Message----- From: users On Behalf Of Samuel Gougeon Sent: Thursday, August 02, 2018 3:55 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] xmltopdf() broken : workaround ? Le 02/08/2018 ? 15:45, Rafael Guerra a ?crit : > Have you tried opening the HTML in MS Word and saving as PDF? The issue is not to convert some independent pages, but to convert a whole tree with its internal links (i mean: links pointing to other members of the tree). _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Thu Aug 2 16:30:24 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 2 Aug 2018 16:30:24 +0200 Subject: [Scilab-users] xmltopdf() broken : workaround ? In-Reply-To: References: <3331504c-c1e3-64d5-9544-1930b83b3564@free.fr> <5f6cf0d6-ba0f-3dfb-fc2b-aa46233d77a0@free.fr> Message-ID: Le 02/08/2018 ? 16:17, Rafael Guerra a ?crit : > Ok, it seems that Calibre does that: > https://manual.calibre-ebook.com/conversion.html > https://calibre-ebook.com/about It looks very interesting, and smart. I will try it. Thanks! From sgougeon at free.fr Thu Aug 2 17:09:18 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 2 Aug 2018 17:09:18 +0200 Subject: [Scilab-users] ATOMS error (Scilab 6.0.1) In-Reply-To: <9ffccd3a5e5d157255dd2a9d17e920e1085735f3.camel@esi-group.com> References: <1532166620279-0.post@n3.nabble.com> <3120e400-3301-06f0-8479-8f70576cfb87@scilab-enterprises.com> <1532249357640-0.post@n3.nabble.com> <9ffccd3a5e5d157255dd2a9d17e920e1085735f3.camel@esi-group.com> Message-ID: Le 23/07/2018 ? 12:00, Cl?ment David a ?crit : > Hello, > > A server-side workaround have been implemented by using CRLF for the TOOLBOXES.gz windows files, > avoiding the mgetl() buggy behavior in 6.0.1 The bug still occurs (not always fixed) (for the 6.0.x-branch, build of yesterday evening): The ATOMS manager can no longer be used. In addition, some recent changes have broken the ATOMS archive for Scilab 5.5.2 (apparently on the server side), as reported by Grzegorz and in Bugzilla. Regards Samuel From arctica1963 at gmail.com Thu Aug 2 17:24:38 2018 From: arctica1963 at gmail.com (arctica1963) Date: Thu, 2 Aug 2018 08:24:38 -0700 (MST) Subject: [Scilab-users] Padding and clipping a grid In-Reply-To: References: <1532863098914-0.post@n3.nabble.com> <348f4809-20ea-e83e-a804-37f66409f65f@free.fr> <398bdaf3-5fe2-02db-ba81-82f9c4ec47c0@free.fr> <94e49b7e-7d10-3398-f9d3-6b40a3348511@free.fr> Message-ID: <1533223478980-0.post@n3.nabble.com> Hi Rafael, I reviewed the methodology applied in GMT (grdfft) and they use tapering from the grid edges to zero. The documentation page details more: GMT_grdfft The padding method that has been discussed previously is the similar to that of grdfft edge-point symmetry, but without the tapering to zero. It would be handy to have this padding and tapering better defined in Scilab for 2D grids. Lester -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Thu Aug 2 18:50:49 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 2 Aug 2018 16:50:49 +0000 Subject: [Scilab-users] Padding and clipping a grid In-Reply-To: <1533223478980-0.post@n3.nabble.com> References: <1532863098914-0.post@n3.nabble.com> <348f4809-20ea-e83e-a804-37f66409f65f@free.fr> <398bdaf3-5fe2-02db-ba81-82f9c4ec47c0@free.fr> <94e49b7e-7d10-3398-f9d3-6b40a3348511@free.fr> <1533223478980-0.post@n3.nabble.com> Message-ID: Hi Lester, Thanks for the pointer to the GMT (grdfft) documentation. An additional standard pre-processing step is detrending (removing the best-fitting linear trend). Regards, Rafael From sgougeon at free.fr Thu Aug 2 23:28:18 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 2 Aug 2018 23:28:18 +0200 Subject: [Scilab-users] xmltopdf() broken : workaround ? In-Reply-To: References: <3331504c-c1e3-64d5-9544-1930b83b3564@free.fr> <5f6cf0d6-ba0f-3dfb-fc2b-aa46233d77a0@free.fr> Message-ID: <0ea9c66f-26f9-11d8-189c-4c121cf329b4@free.fr> Le 02/08/2018 ? 16:17, Rafael Guerra a ?crit : > Ok, it seems that Calibre does that: > https://manual.calibre-ebook.com/conversion.html > https://calibre-ebook.com/about I confirm that it does the job! But it must be helped ;) In addition to entering into the software and its configuration, then putting the pages in the right order needs a bit some hacking. But finally (after ~3 hours, for the first time, vs 1 mn when xmltopdf() worked), it works. Here is the output: https://atoms.scilab.org/toolboxes/DD_QD/1.0/files/DD_QD_MuPAT_1.0_user_guide.pdf Thanks again for this excellent reference. Samuel From jrafaelbguerra at hotmail.com Thu Aug 2 23:39:26 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 2 Aug 2018 21:39:26 +0000 Subject: [Scilab-users] xmltopdf() broken : workaround ? In-Reply-To: <0ea9c66f-26f9-11d8-189c-4c121cf329b4@free.fr> References: <3331504c-c1e3-64d5-9544-1930b83b3564@free.fr> <5f6cf0d6-ba0f-3dfb-fc2b-aa46233d77a0@free.fr> <0ea9c66f-26f9-11d8-189c-4c121cf329b4@free.fr> Message-ID: Glad to hear and the result looks quite good with all hyperlinks working fine. Maybe you could add some footer info (ex: page number, document name, Scilab version, etc.) PS: This was a "high-Calibre" reference :) -----Original Message----- From: users On Behalf Of Samuel Gougeon Sent: Thursday, August 02, 2018 11:28 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] xmltopdf() broken : workaround ? Le 02/08/2018 ? 16:17, Rafael Guerra a ?crit : > Ok, it seems that Calibre does that: > https://manual.calibre-ebook.com/conversion.html > https://calibre-ebook.com/about I confirm that it does the job! But it must be helped ;) In addition to entering into the software and its configuration, then putting the pages in the right order needs a bit some hacking. But finally (after ~3 hours, for the first time, vs 1 mn when xmltopdf() worked), it works. Here is the output: https://atoms.scilab.org/toolboxes/DD_QD/1.0/files/DD_QD_MuPAT_1.0_user_guide.pdf Thanks again for this excellent reference. Samuel From ekinakoglu at tutanota.com Fri Aug 3 10:27:51 2018 From: ekinakoglu at tutanota.com (Ekin Akoglu) Date: Fri, 3 Aug 2018 10:27:51 +0200 (CEST) Subject: [Scilab-users] Getting netCDF files into Scilab 6.0.1 In-Reply-To: <1532250705858-0.post@n3.nabble.com> References: <1532250705858-0.post@n3.nabble.com> Message-ID: Why don't you use ATOMS package scinetcdf (https://atoms.scilab.org/toolboxes/scinetcdf/1.2 )? It is precompiled for version 5.X, however, you just need to compile it in Scilab 6.0 to be able to use it. I am using it flawlessly in Scilab 6.0.1. Best, Ekin -- Securely sent with Tutanota. Claim your encrypted mailbox today! https://tutanota.com 22. Jul 2018 12:11 by arctica1963 at gmail.com : > Hello, > > I am looking to use netCDF files generated from the GMT software in Scilab > 6.0.1, but there is no easy way to work the problem other than exporting the > data out from the binary grids to either XYZ or ESRI Ascii raster. The > latter is a more compact form with the basic structure of a header > describing the data limits and structure: > > ncols 1200 > nrows 1200 > xllcorner -10 Lower-left X (Long-Lat limits -10/10/-10/10 > yllcorner -10 Lower-Left Y > cellsize 0.0166666666667 - increment = 1 arc minute > nodata_value -9999 > 451.343170166 436.005554199 443.061035156 443.665924072 465.607574463 > 492.191741943 476.50994873 452.265014648 451.439880371 461.659393311 ...... > ... > ... all of the Z-values > ... > > -4323.2890625 -4315.12451172 -4307.19384766 -4305.27490234 -4311.49902344 > -4317.90771484 -4324.23046875 -4320.47070313 -4308.60107422 -4292.62011719 > -4280.39697266 > > This is a moderately large file ~20 mB or so. Is there a way to reliably > read this structure and vectorise X, Y, and Z? The data I am looking at is a > grid so want to work on the whole grid as eith DEM data or gravity etc. > > As a test, I converted the grid to xyz, and tried csvRead, having replaced > the spaces (which were not a constant number of spaces between values) with > commas. The file was in excess of 50 mb, so not that huge really, but > csvRead always failed to read all the file and drop out at one specific line > (~7608) with a message of inconsistent column numbers, i.e. it though there > were only 2 columns when in reality the whole thing was 3 (checked in the > program Surfer). When one looks at the line specified, it is clearly 3 > columns. > > Does csvRead have a limit to what it can load, if so what is a workaround? I > suppose one could chop it down into chunks and concatanate the arrays, but > that is a lot more work. > > Any suggestions? > > Thanks > Lester > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Fri Aug 3 13:08:57 2018 From: arctica1963 at gmail.com (arctica1963) Date: Fri, 3 Aug 2018 04:08:57 -0700 (MST) Subject: [Scilab-users] Getting netCDF files into Scilab 6.0.1 In-Reply-To: References: <1532250705858-0.post@n3.nabble.com> Message-ID: <1533294537155-0.post@n3.nabble.com> Hello Ekin, The scinetcdf package is not available compiled for Windows v6.0.1 (yet). It does work for 5.5.x to install. Reading and writing the ascii raster is a workaround until it is avialable (and working) under 6.x. Thanks for the info Lester -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From arctica1963 at gmail.com Fri Aug 3 13:12:54 2018 From: arctica1963 at gmail.com (arctica1963) Date: Fri, 3 Aug 2018 04:12:54 -0700 (MST) Subject: [Scilab-users] Padding and clipping a grid In-Reply-To: References: <1532863098914-0.post@n3.nabble.com> <348f4809-20ea-e83e-a804-37f66409f65f@free.fr> <398bdaf3-5fe2-02db-ba81-82f9c4ec47c0@free.fr> <94e49b7e-7d10-3398-f9d3-6b40a3348511@free.fr> <1533223478980-0.post@n3.nabble.com> Message-ID: <1533294774009-0.post@n3.nabble.com> Hi Rafael, Forgot to say, the source code is available for all of the GMT modules, as log as you understand C++ I just found reference to detrending prior to fft, thanks for confirming that process! Lester -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Fri Aug 3 15:51:53 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 3 Aug 2018 13:51:53 +0000 Subject: [Scilab-users] Need solution In-Reply-To: <539809268.3371915.1531476547695@mail.yahoo.com> References: <539809268.3371915.1531476547695.ref@mail.yahoo.com> <539809268.3371915.1531476547695@mail.yahoo.com> Message-ID: This is requires subject matter expertise, not Scilab?s. You may check out the following thesis, it provides Matlab code: http://etd.dtu.dk/thesis/210403/M_Sc_thesis_Jan_Slunsky.pdf From: users On Behalf Of onyebuchy benard Sent: Friday, July 13, 2018 12:09 PM To: Users Mailing List for Scilab Subject: [Scilab-users] Need solution I having difficulty solving this orthogonal cutting problem. I need help. See the attachment. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Fri Aug 3 17:34:00 2018 From: arctica1963 at gmail.com (arctica1963) Date: Fri, 3 Aug 2018 08:34:00 -0700 (MST) Subject: [Scilab-users] Moving window over 2D grid Message-ID: <1533310440354-0.post@n3.nabble.com> Hello all, I know this topic has been touched on before: Efficient calculation for a moving window I am looking at running a moving window over a grid, incrementally shifting along rows and columns, to allow processing within a window, with output appended to a file (e.g. some mathematical function) Can the code below be adapted for such processing: // START OF CODE n = 100; m = 20; // moving window size function y=f(x) // function f can be anything but must operate on columns of input x y = mean(x,'c'); endfunction // Initial loop solution: y = rand(1,n); y1 = zeros(1,n-m+1); for i=1:n-m+1 y1(i)=f(y(i:i-1+m)); end // Optimized solution with vectorization: [X,Y] = meshgrid(1:m,1:n-m+1); y2 = f(matrix(y(X+Y-1),n-m+1,m)); printf("difference = %g\n",norm(y1-y2')) // END OF CODE I have a grid with has nx_cols=120 and ny_rows=120, and I want to run say a 10x10 window, shifting 5 units (rows and columns for overlaps) over the whole grid and calculate within each window. I am assuming that one has to do this via indexing rows and columns respectively. Hopefully this can be clarified. Sorry if this is a very basic query! Thanks Lester -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Fri Aug 3 17:49:20 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 3 Aug 2018 15:49:20 +0000 Subject: [Scilab-users] Moving window over 2D grid In-Reply-To: <1533310440354-0.post@n3.nabble.com> References: <1533310440354-0.post@n3.nabble.com> Message-ID: What type of function you need to evaluate at each patch? How long does it take to run with the simplest double-loop implementation? Your problem seems to have only 24 x 24 = 576 iterations ... From arctica1963 at gmail.com Fri Aug 3 18:14:40 2018 From: arctica1963 at gmail.com (arctica1963) Date: Fri, 3 Aug 2018 09:14:40 -0700 (MST) Subject: [Scilab-users] Moving window over 2D grid In-Reply-To: References: <1533310440354-0.post@n3.nabble.com> Message-ID: <1533312880326-0.post@n3.nabble.com> Hi Rafael, At the moment I am just looking to get a general methodology/script to test. The real data grid is more like 1500x1500 or more. The function could be anything really (e.g. z=f(x,y)), but ultimately I am looking to run a radial averaged PSD from which one can extract depth to magnetic sources (that's another story as they say!). Not sure if that is any clearer. As I say, just looking for a general structure to test, before jumping ahead. I'm guessing it needs a nested for loop for rows and columns? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Fri Aug 3 20:33:37 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 3 Aug 2018 18:33:37 +0000 Subject: [Scilab-users] Moving window over 2D grid In-Reply-To: <1533312880326-0.post@n3.nabble.com> References: <1533310440354-0.post@n3.nabble.com> <1533312880326-0.post@n3.nabble.com> Message-ID: Hi Lester, Without further information, the simplest approach would be to write two nested loops. Now, regarding the computation of radially averaged PSDs, you may want to take a look in the web for published code. For example, look at the function raPsd2d, written by Ruzanski (2009) for Matlab. Regards, Rafael From arctica1963 at gmail.com Fri Aug 3 23:01:43 2018 From: arctica1963 at gmail.com (Lester Anderson) Date: Fri, 3 Aug 2018 22:01:43 +0100 Subject: [Scilab-users] Moving window over 2D grid In-Reply-To: References: <1533310440354-0.post@n3.nabble.com> <1533312880326-0.post@n3.nabble.com> Message-ID: Hi Rafael, Thanks for the pointers, will look into the code further. With reference to the moving Window, I was thinking looping over rows and then the columns, not sure how Scilab works with a scan-line method, but will investigate. Good to learn by trying! Cheers, Lester On 19:34, Fri, 3 Aug 2018 Rafael Guerra, wrote: > Hi Lester, > > Without further information, the simplest approach would be to write two > nested loops. > > Now, regarding the computation of radially averaged PSDs, you may want to > take a look in the web for published code. > For example, look at the function raPsd2d, written by Ruzanski (2009) for > Matlab. > > Regards, > Rafael > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Sat Aug 4 15:18:32 2018 From: arctica1963 at gmail.com (arctica1963) Date: Sat, 4 Aug 2018 06:18:32 -0700 (MST) Subject: [Scilab-users] Getting netCDF files into Scilab 6.0.1 In-Reply-To: <1533294537155-0.post@n3.nabble.com> References: <1532250705858-0.post@n3.nabble.com> <1533294537155-0.post@n3.nabble.com> Message-ID: <1533388712997-0.post@n3.nabble.com> As a general point, anyone know when the SciNetCdf package will be updated for 6.0.1 ? It fails to run/install on 6.0.1 because it references an older library (for use in 5.5.2). -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Sat Aug 4 19:35:38 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 4 Aug 2018 19:35:38 +0200 Subject: [Scilab-users] Bioinformatics for Scilab 6 Message-ID: <00f79407-edf2-b920-7d06-15482b442337@free.fr> Hello, The Bioinformatics toolbox from DCB is now ported to Scilab 6: ATOMS: https://atoms.scilab.org/toolboxes/BTD/1.1 User manual: https://atoms.scilab.org/toolboxes/BTD/1.1/files/Bioinformatics_BTD_1.1_user_manual.pdf Regards Samuel From cfuttrup at gmail.com Sat Aug 4 21:54:17 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 4 Aug 2018 21:54:17 +0200 Subject: [Scilab-users] Toolbox for Scilab 6 Message-ID: <8a976ed1-5b45-0cf6-b5d3-bd10883e2c52@gmail.com> Hi there Is there anyone who could help me with the CMA-ES optimization toolbox for Scilab 6? I wasn't successful in creating a functioning toolbox for Scilab 5 in the first place. Best regards, Claus --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From sgougeon at free.fr Sun Aug 5 00:05:52 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 5 Aug 2018 00:05:52 +0200 Subject: [Scilab-users] Toolbox for Scilab 6 In-Reply-To: <8a976ed1-5b45-0cf6-b5d3-bd10883e2c52@gmail.com> References: <8a976ed1-5b45-0cf6-b5d3-bd10883e2c52@gmail.com> Message-ID: Le 04/08/2018 ? 21:54, Claus Futtrup a ?crit : > Hi there > > Is there anyone who could help me with the CMA-ES optimization toolbox > for Scilab 6? > > I wasn't successful in creating a functioning toolbox for Scilab 5 in > the first place. Yet, you have published some binaries... What are the problems? Since there is no unit test, we could expect that examples work. But they don't. And they can't. Examples: * cma_ask, cma_new: the examples include o a call to cma_stop(), but there is no page for it. => Please document it, or remove it from the example.. o some calls to undefined fitfun()... * cma_optim: o the first line uses getf(), that was removed from Scilab 5.3.0 (2010-12-16..) << 5.5 o again, fitfun is called without being defined. Now we understand its meaning. * cma_tell: o y(i) = costf(X(i)); // costf needs to be defined ==> ?? If there are no unit tests, not a single complete runnable example, no code up-to-date with at least Scilab 5.4 (for which the first release was published), your question is not just about getting help to port the module from Scilab 5.4 to 5.5 and 6.0... About the macros: some advices to make the code usable on Scilab 6.0 (and 5): Most of functions are defined in a single file: cma.sci. In Scilab 6, only the first function of the file (or the one having the name of the file) is public. Other ones are private, and can be called only by the public one. So, in pratical, * split the file cma.sci in as many files .sci as needed. internal functions (not documented) that are shared by several separate (public or internal) functions must also be defined separately. Cheers Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From aleksandar.ribic at gmail.com Mon Aug 6 13:26:11 2018 From: aleksandar.ribic at gmail.com (aribic) Date: Mon, 6 Aug 2018 04:26:11 -0700 (MST) Subject: [Scilab-users] superblock mask editing problem Message-ID: <1533554771115-0.post@n3.nabble.com> I don't now how to edit super block mask in scilab-6.0.1 xcos. Insert button is always disabled. What is the point? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Mon Aug 6 18:12:27 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 6 Aug 2018 18:12:27 +0200 Subject: [Scilab-users] Counter of pointers to an XML object, and clear destructor In-Reply-To: <8923c98b-444f-e9ca-79c0-a9c347e07932@scilab-enterprises.com> References: <33674333-6211-e3ef-4a3f-94410691f7ac@free.fr> <8923c98b-444f-e9ca-79c0-a9c347e07932@scilab-enterprises.com> Message-ID: <3d2b1887-113b-8763-3b0a-9b0d0e45e327@free.fr> Hello Antoine, Thanks for your answer. I am afraid that, from a user point of view -- that's mine--, it is hard to understand in pratical the way it works, and why it works like this: Le 30/07/2018 ? 00:55, Antoine ELIAS a ?crit : > Hello Samuel, > > In XMLObject there is two levels of reference, > - one on MList (managed by reference counter) > - one on internal XMLObject (internally manager like handle, an > integer that link to a C++ object) > > xmlDelete destroy internal XMLObject > clear destroy (unreference and destroy if ref <= 1 ) MList object. How is it possible to illustrate all this with Scilab instructions and tests? In what you describe, i don't see any difference between Scilab 5 and Scilab 6, contrarily to Calixte's announcement, noticeably about the way clear() works. > > So in your case, after a xmlDelete, the internal XMLObject was > destroyed but not the MList. > And after a clear doc, the MList was destroyed but the internal > XMLObject not. Yes, i understand all that. > Current XMLObject is based on simple MList with the id of the doc ( > store as double ). > If we want to correctly destroy the internal XMLObject with the clear > command. > We must change the implementation to use types::UserType instead of > types::Double and uses destructor of UserType to free XMLObject. So, is this the new possible feature of Scilab 6 vs Scilab 5? In this way, i am not sure that this would be the most interesting evolution. Even if an open document has no local handle, it is still possible to retrieve an access to open ones, and from everywhere, with xmlGetOpenDocs(). That's nice. > > Deleting an object should clear all its pointers. For instance, with > the XML example > > hereabove, deleting the document should clear doc and doc2. > I am not agree with that, I cannot delete an user variable indirectly. > ( xmlDelete(doc) that will delete doc ) > Only clear command can do that. For me it will be a bad practice. Why?! This is the key point. It holds in the same way for graphic handles. I would like very much to read and understand rationales about this point. From a user point of view, i don't see a single reason or interest in keeping "invalid handles" or "invalid XML documents", that's to say, clearly, keeping some pending pointers! These are dead and completely useless objects, since there is no way to recover the deleted target. So, what's the interest in using is_handle_valid(h) instead of simply isdef("h")?? What's the interest of using xmlIsValidObject(doc) instead of isdef("doc")? With such a current implementation, if we have created many alias of an handle, then there are as many obsolete aliases that are pending pointers. If you have in mind a single situation for which this implementation has an interest (compared to an automatical clearing of invalid handles) it would be great to share it. Usually, leaving pending pointers is the bad practice, not removing them. Isn't it? Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Mon Aug 6 18:48:34 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Mon, 6 Aug 2018 18:48:34 +0200 Subject: [Scilab-users] Toolbox for Scilab 6 In-Reply-To: References: <8a976ed1-5b45-0cf6-b5d3-bd10883e2c52@gmail.com> Message-ID: <0bf93bed-476a-0bc3-2dce-94dd1237a962@gmail.com> Hi Samuel Thank you very much for reaching out and providing constructive feedback. It is what I need. Best regards, Claus On 05.08.2018 00:05, Samuel Gougeon wrote: > Le 04/08/2018 ? 21:54, Claus Futtrup a ?crit?: >> Hi there >> >> Is there anyone who could help me with the CMA-ES optimization >> toolbox for Scilab 6? >> >> I wasn't successful in creating a functioning toolbox for Scilab 5 in >> the first place. > > Yet, you have published some binaries... > > What are the problems? > Since there is no unit test, we could expect that examples work. But > they don't. > And they can't. Examples: > > * cma_ask, cma_new: the examples include > o a call to cma_stop(), but there is no page for it. => Please > document it, or remove it from the example.. > o some calls to undefined fitfun()... > * cma_optim: > o the first line uses getf(), that was removed from Scilab 5.3.0 > (2010-12-16..) << 5.5 > o again, fitfun is called without being defined. Now we > understand its meaning. > * cma_tell: > o y(i) = costf(X(i)); // costf needs to be defined?? ==> ?? > > If there are no unit tests, not a single complete runnable example, no > code up-to-date with at least Scilab 5.4 (for which the first release > was published), your question is not just about getting help to port > the module from Scilab 5.4 to 5.5 and 6.0... > > About the macros: some advices to make the code usable on Scilab 6.0 > (and 5): > Most of functions are defined in a single file: cma.sci. In Scilab 6, > only the first function of the file (or the one having the name of the > file) is public. Other ones are private, and can be called only by the > public one. > So, in pratical, > > * split the file cma.sci in as many files .sci as needed. internal > functions (not documented) that are shared by several separate > (public or internal) functions must also be defined separately. > > Cheers > Samuel > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Wed Aug 8 12:01:45 2018 From: arctica1963 at gmail.com (arctica1963) Date: Wed, 8 Aug 2018 03:01:45 -0700 (MST) Subject: [Scilab-users] SciNetCDF for Scilab 6.x Message-ID: <1533722505898-0.post@n3.nabble.com> Hello, Just a quick query. Are there plans to get scinetcdf to work on Scilab 6.x? The existing version (1.2) is not compatible, but does work under 5.5.2 More a question to Simon Marchetto (package maintainer). Not sure if there is a way to manually get it working in Scilab 6.0.1 Lester -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From ekinakoglu at tutanota.com Fri Aug 10 15:17:48 2018 From: ekinakoglu at tutanota.com (Ekin Akoglu) Date: Fri, 10 Aug 2018 15:17:48 +0200 (CEST) Subject: [Scilab-users] SciNetCDF for Scilab 6.x In-Reply-To: <1533722505898-0.post@n3.nabble.com> References: <1533722505898-0.post@n3.nabble.com> Message-ID: Hi, You can build it under Scilab 6.0.1. I have been successfully using it for months. If you wish to give it a try, download? the source code at with GIT as: git clone git://git.forge.scilab.org/netcdf4.git Then build it via Scilab. If you are not familiar with the build process, I can provide step by step instructions. Best, Ekin -- Securely sent with Tutanota. Claim your encrypted mailbox today! https://tutanota.com 8. Aug 2018 13:01 by arctica1963 at gmail.com : > Hello, > > Just a quick query. Are there plans to get scinetcdf to work on Scilab 6.x? > The existing version (1.2) is not compatible, but does work under 5.5.2 > > More a question to Simon Marchetto (package maintainer). > > Not sure if there is a way to manually get it working in Scilab 6.0.1 > > Lester > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ekinakoglu at tutanota.com Fri Aug 10 15:58:43 2018 From: ekinakoglu at tutanota.com (Ekin Akoglu) Date: Fri, 10 Aug 2018 15:58:43 +0200 (CEST) Subject: [Scilab-users] SciNetCDF for Scilab 6.x In-Reply-To: References: <1533722505898-0.post@n3.nabble.com> <<1533722505898-0.post@n3.nabble.com>> Message-ID: Hi Lester, I realized that the command I provided no longer works. Hence, it is a good opportunity to provide step-by-step guide with the updated link. Here is the way to go: 1. Go to page https://forge.scilab.org/index.php/p/netcdf4/source/tree/master 2. Towards to the bottom right of the page, there is a link that says "Download this version", click it to download the toolbox (version 1.2) as a? zip archive. Then unzip it and change to that directory, which I suppose is named as "netcdf4-master" 3. Under that directory, open scilab-cli (the command line Scilab interface), or alternatively open scilab-cli and navigate to that directory so that it is your working directory. 4. Then run "exec builder.sce". Once the build successfully finishes, you will see that some new "*.sce" files are created under the working directory. One of them is called "loader.sce". It is the file that you need. 5. Whenever you need to load scinetcdf and use the functionality within, do this: "exec loader.sce" under Scilab. I hope it helps. Best, Ekin -- Securely sent with Tutanota. Claim your encrypted mailbox today! https://tutanota.com 10. Aug 2018 16:17 by ekinakoglu at tutanota.com : > Hi, > You can build it under Scilab 6.0.1. I have been successfully using it for months. If you wish to give it a try, download? the source code at with GIT as: > > git clone git://git.forge.scilab.org/netcdf4.git > > Then build it via Scilab. If you are not familiar with the build process, I can provide step by step instructions. > > Best, > > Ekin > -- > Securely sent with Tutanota. Claim your encrypted mailbox today! > https://tutanota.com > > 8. Aug 2018 13:01 by > arctica1963 at gmail.com > : > > >> Hello, >> >> Just a quick query. Are there plans to get scinetcdf to work on Scilab 6.x? >> The existing version (1.2) is not compatible, but does work under 5.5.2 >> >> More a question to Simon Marchetto (package maintainer). >> >> Not sure if there is a way to manually get it working in Scilab 6.0.1 >> >> Lester >> >> >> >> -- >> Sent from: >> http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Fri Aug 10 16:34:59 2018 From: arctica1963 at gmail.com (arctica1963) Date: Fri, 10 Aug 2018 07:34:59 -0700 (MST) Subject: [Scilab-users] SciNetCDF for Scilab 6.x In-Reply-To: References: <1533722505898-0.post@n3.nabble.com> Message-ID: <1533911699491-0.post@n3.nabble.com> Thanks Ekin! Will have a go at this and see how I get on. Cheers -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From arctica1963 at gmail.com Fri Aug 10 17:02:24 2018 From: arctica1963 at gmail.com (arctica1963) Date: Fri, 10 Aug 2018 08:02:24 -0700 (MST) Subject: [Scilab-users] SciNetCDF for Scilab 6.x In-Reply-To: References: <1533722505898-0.post@n3.nabble.com> Message-ID: <1533913344849-0.post@n3.nabble.com> Quick update. Tried the build, but it needs a C or Fortran compiler: --> exec builder.sce --> // Copyright (C) 2008 - INRIA --> // Copyright (C) 2009-2011 - DIGITEO --> // This file is released under the 3-clause BSD license. See COPYING-BSD. --> mode(-1); Building macros... -- Creation of [scinetcdflib] (Macros) -- genlib: Processing file: array2mat.sci genlib: Processing file: deleteArray.sci genlib: Processing file: getArrayTypeName.sci genlib: Processing file: getSciNetCDFPath.sci genlib: Processing file: mat2array.sci genlib: Processing file: ncdisp.sci genlib: Processing file: ncgen.sci genlib: Processing file: newArray.sci at line 27 of function tbx_builder_src ( C:\Program Files\scilab-6.0.1\modules\modules_manager\macros tbx_builder_src.sci line 44 ) at line 29 of function main_builder ( D:\Geophysics\Scilab\netcdf4-master\netcdf4-master\builder.sce line 37 ) at line 50 of executed file D:\Geophysics\Scilab\netcdf4-master\netcdf4-master\builder.sce tbx_builder_src: This module requires a C or Fortran compiler and it has not been found. --> Any suggestions would be great. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From arctica1963 at gmail.com Fri Aug 10 18:34:37 2018 From: arctica1963 at gmail.com (arctica1963) Date: Fri, 10 Aug 2018 09:34:37 -0700 (MST) Subject: [Scilab-users] SciNetCDF for Scilab 6.x In-Reply-To: <1533913344849-0.post@n3.nabble.com> References: <1533722505898-0.post@n3.nabble.com> <1533913344849-0.post@n3.nabble.com> Message-ID: <1533918877277-0.post@n3.nabble.com> Got a gcc compiler installed (MingW) and checked that Scilab sees it The compiler failed after a load of messages: !Makelib:127: recipe for target 'libscinetcdf_hl.dll' failed ! ! ! !make: *** [libscinetcdf_hl.dll] Error 1 ! at line 25 of function dlwCompile ( C:\Users\xxxxx\AppData\Roaming\ Scilab\SCILAB~1.1\atoms\x64\mingw\010~1.5\macros\windows\dlwCompile.sci line 34 ) at line 70 of function ilib_compile ( C:\Program Files\scilab-6.0.1\m odules\dynamic_link\macros\ilib_compile.sci line 86 ) at line 104 of function ilib_for_link ( C:\Program Files\scilab-6.0.1\m odules\dynamic_link\macros\ilib_for_link.sci line 118 ) at line 29 of function tbx_build_src ( C:\Program Files\scilab-6.0.1\m odules\modules_manager\macros\tbx_build_src.sci line 44 ) at line 35 of function builder_c ( D:\Geophysics\Scilab\netcdf4-ma ster\netcdf4-master\src\c\builder_c.sce line 35 ) at line 34 of executed file D:\Geophysics\Scilab\netcdf4-master\netcdf4-maste r\src\c\builder_c.sce at line 13 of function tbx_builder ( C:\Program Files\scilab-6.0.1\m odules\modules_manager\macros\tbx_builder.sci line 26 ) at line 60 of function tbx_builder_src_lang ( C:\Program Files\scilab-6.0.1\m odules\modules_manager\macros\tbx_builder_src_lang.sci line 75 ) at line 4 of function builder_src ( D:\Geophysics\Scilab\netcdf4-ma ster\netcdf4-master\src\builder_src.sce line 6 ) at line -4 of executed file D:\Geophysics\Scilab\netcdf4-master\netcdf4-maste r\src\builder_src.sce at line 13 of function tbx_builder ( C:\Program Files\scilab-6.0.1\m odules\modules_manager\macros\tbx_builder.sci line 26 ) at line 44 of function tbx_builder_src ( C:\Program Files\scilab-6.0.1\m odules\modules_manager\macros\tbx_builder_src.sci line 61 ) at line 29 of function main_builder ( D:\Geophysics\Scilab\netcdf4-ma ster\netcdf4-master\builder.sce line 37 ) at line 50 of executed file D:\Geophysics\Scilab\netcdf4-master\netcdf4-maste r\builder.sce ilib_compile: Error while executing Makelib. Not an expert on C++ so not sure what needs tweaking? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From j.s.strom at hslmg.de Fri Aug 10 20:08:12 2018 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Fri, 10 Aug 2018 20:08:12 +0200 Subject: [Scilab-users] ode with algebraic constraint Message-ID: <5B6DD48C.9030605@hslmg.de> *Hallo,** **To solve the equation of motion for a mass point m in a constant force field f=[fx; fy; fz] one can use ode(...) with the function** ** **function dz=EoM(t, z, m,f)//z=[x; y; z; vx; vy; vz] (6 x 1)** ** dz(1:3)=z(4:6)** ** dz(4:6)=f/m** **endfunction** ** **If the motion shall be constrained to a sphere of constant radius R - is there a way to implement this constraint into the function. ** ** **Of course spherical coordinates may be a better choice, however I am looking for a cartesion solution.** ** **Kind regards ** **Jens** * -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sat Aug 11 02:24:25 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 11 Aug 2018 00:24:25 +0000 Subject: [Scilab-users] ode with algebraic constraint In-Reply-To: <5B6DD48C.9030605@hslmg.de> References: <5B6DD48C.9030605@hslmg.de> Message-ID: Hi Jens, I have got the particle moving on the sphere by writing the total acceleration as a sum of a centripetal component and a tangential component: // START OF CODE // Particle motion on a sphere using cartesian coordinates function dz=EoM(t, z, m, f)//z=[x; y; z; vx; vy; vz] (6 x 1) dz(1:3)= z(4:6); nz = norm(z(1:3)); u = z(1:3)/nz; fc= m*norm(z(4:6))^2/nz; // centripetal force Ft= f - (f'*u)*u; // tangential force dz(4:6)= -fc*u/m + Ft/m; endfunction R=2; // sphere radius r0 = [0; 0; R]; // initial position v0 = [-1; 3; 0]; // must be tangent to the sphere at r0 z0=[r0;v0]; t0=0; dt=0.05; tmax = 50; t=dt:dt:tmax; m = 1; // mass f= [-1;1;0.5]; // external force z = ode(z0,t0,t,EoM) clf; scatter3(z(1,:),z(2,:),z(3,:)) gca().axes_reverse = ["on", "off", "off"]; isoview on // END OF CODE Let me know if you see any flaw in the physics. Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From ekinakoglu at tutanota.com Sat Aug 11 16:52:21 2018 From: ekinakoglu at tutanota.com (Ekin Akoglu) Date: Sat, 11 Aug 2018 16:52:21 +0200 (CEST) Subject: [Scilab-users] SciNetCDF for Scilab 6.x In-Reply-To: <1533918877277-0.post@n3.nabble.com> References: <1533722505898-0.post@n3.nabble.com> <<1533722505898-0.post@n3.nabble.com>> <> <1533913344849-0.post@n3.nabble.com> <<1533913344849-0.post@n3.nabble.com>> <1533918877277-0.post@n3.nabble.com> Message-ID: >From the error, I could not infer much. I use a Linux box so let me try on a Windows machine, check and then I'll let you know. Best, Ekin -- Securely sent with Tutanota. Get your own encrypted, ad-free mailbox: https://tutanota.com 10 Aug 2018, 19:34 by arctica1963 at gmail.com: > Got a gcc compiler installed (MingW) and checked that Scilab sees it > > The compiler failed after a load of messages: > > !Makelib:127: recipe for target 'libscinetcdf_hl.dll' failed ! > ! ! > !make: *** [libscinetcdf_hl.dll] Error 1 ! > at line 25 of function dlwCompile ( > C:\Users\xxxxx\AppData\Roaming\ > Scilab\SCILAB~1.1\atoms\x64\mingw\010~1.5\macros\windows\dlwCompile.sci line > 34 > ) > at line 70 of function ilib_compile ( C:\Program > Files\scilab-6.0.1\m > odules\dynamic_link\macros\ilib_compile.sci line 86 ) > at line 104 of function ilib_for_link ( C:\Program > Files\scilab-6.0.1\m > odules\dynamic_link\macros\ilib_for_link.sci line 118 ) > at line 29 of function tbx_build_src ( C:\Program > Files\scilab-6.0.1\m > odules\modules_manager\macros\tbx_build_src.sci line 44 ) > at line 35 of function builder_c ( > D:\Geophysics\Scilab\netcdf4-ma > ster\netcdf4-master\src\c\builder_c.sce line 35 ) > at line 34 of executed file > D:\Geophysics\Scilab\netcdf4-master\netcdf4-maste > r\src\c\builder_c.sce > at line 13 of function tbx_builder ( C:\Program > Files\scilab-6.0.1\m > odules\modules_manager\macros\tbx_builder.sci line 26 ) > at line 60 of function tbx_builder_src_lang ( C:\Program > Files\scilab-6.0.1\m > odules\modules_manager\macros\tbx_builder_src_lang.sci line 75 ) > at line 4 of function builder_src ( > D:\Geophysics\Scilab\netcdf4-ma > ster\netcdf4-master\src\builder_src.sce line 6 ) > at line -4 of executed file > D:\Geophysics\Scilab\netcdf4-master\netcdf4-maste > r\src\builder_src.sce > at line 13 of function tbx_builder ( C:\Program > Files\scilab-6.0.1\m > odules\modules_manager\macros\tbx_builder.sci line 26 ) > at line 44 of function tbx_builder_src ( C:\Program > Files\scilab-6.0.1\m > odules\modules_manager\macros\tbx_builder_src.sci line 61 ) > at line 29 of function main_builder ( > D:\Geophysics\Scilab\netcdf4-ma > ster\netcdf4-master\builder.sce line 37 ) > at line 50 of executed file > D:\Geophysics\Scilab\netcdf4-master\netcdf4-maste > r\builder.sce > > ilib_compile: Error while executing Makelib. > > Not an expert on C++ so not sure what needs tweaking? > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From arctica1963 at gmail.com Sat Aug 11 18:22:04 2018 From: arctica1963 at gmail.com (arctica1963) Date: Sat, 11 Aug 2018 09:22:04 -0700 (MST) Subject: [Scilab-users] SciNetCDF for Scilab 6.x In-Reply-To: References: <1533722505898-0.post@n3.nabble.com> <1533913344849-0.post@n3.nabble.com> <1533918877277-0.post@n3.nabble.com> Message-ID: <1534004524631-0.post@n3.nabble.com> Thanks for looking in to this, sorry can't be more help. As I understand, Scilab does support the gcc compiler and it clearly recognises it as present. At least I have a way of using GMT grids via a function to read ESR Ascii raster for now. Not convenient for large data files! Cheers Lester -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From heinznabielek at me.com Sun Aug 12 00:47:53 2018 From: heinznabielek at me.com (Heinz Nabielek) Date: Sun, 12 Aug 2018 00:47:53 +0200 Subject: [Scilab-users] Scilab does not work in macOS 10.14 ! In-Reply-To: <1534004524631-0.post@n3.nabble.com> References: <1533722505898-0.post@n3.nabble.com> <1533913344849-0.post@n3.nabble.com> <1533918877277-0.post@n3.nabble.com> <1534004524631-0.post@n3.nabble.com> Message-ID: <29DC7AE7-E4D9-4162-B9D4-243C4DB416B4@me.com> BIG SHOCK: Scilab does not work in System Version: macOS 10.14 (18A353d) What to do? Heinz From jrafaelbguerra at hotmail.com Mon Aug 13 13:45:13 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 13 Aug 2018 11:45:13 +0000 Subject: [Scilab-users] ode with algebraic constraint In-Reply-To: References: <5B6DD48C.9030605@hslmg.de> Message-ID: Bitte -------------- next part -------------- An HTML attachment was scrubbed... URL: From ekinakoglu at tutanota.com Mon Aug 13 20:04:10 2018 From: ekinakoglu at tutanota.com (Ekin Akoglu) Date: Mon, 13 Aug 2018 20:04:10 +0200 (CEST) Subject: [Scilab-users] SciNetCDF for Scilab 6.x In-Reply-To: <1534004524631-0.post@n3.nabble.com> References: <1533722505898-0.post@n3.nabble.com> <<1533722505898-0.post@n3.nabble.com>> <> <1533913344849-0.post@n3.nabble.com> <<1533913344849-0.post@n3.nabble.com>> <1533918877277-0.post@n3.nabble.com> <> <1534004524631-0.post@n3.nabble.com> Message-ID: Dear Lester, Yes, Scilab does support GCC but only on Unix-like systems. On Windows systems, you will need Microsoft Visual Studio to compile ATOMS modules (please see https://www.scilab.org/download/requirements ). Luckily, you can obtain Visual Studio Community Edition for free from Microsoft (https://visualstudio.microsoft.com/vs ). Please make sure that you select the C++ components to be installed while installing VS because you will need them to be able to compile ATOMS modules with Scilab and they are not installed by default with a standard VS installation. On my Windows 10 VM I could successfully compile scinetcdf using Visual Studio 2015 Community Edition following the 5 steps I outlined in one of my previous e-mails. Best, Ekin -- Securely sent with Tutanota. Claim your encrypted mailbox today! https://tutanota.com 11. Aug 2018 19:22 by arctica1963 at gmail.com : > Thanks for looking in to this, sorry can't be more help. As I understand, > Scilab does support the gcc compiler and it clearly recognises it as > present. > > At least I have a way of using GMT grids via a function to read ESR Ascii > raster for now. Not convenient for large data files! > > Cheers > Lester > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Mon Aug 13 21:39:13 2018 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 13 Aug 2018 20:39:13 +0100 Subject: [Scilab-users] SciNetCDF for Scilab 6.x In-Reply-To: References: <1533722505898-0.post@n3.nabble.com> <1533913344849-0.post@n3.nabble.com> <1533918877277-0.post@n3.nabble.com> <1534004524631-0.post@n3.nabble.com> Message-ID: Hi Ekin, Thanks for the update. I will look into the MS visual studio route. Good to know about gcc, at least that can be used for something else. Will let you know how I get on. Cheers Lester On 19:04, Mon, 13 Aug 2018 Ekin Akoglu, wrote: > Dear Lester, > > Yes, Scilab does support GCC but only on Unix-like systems. On Windows > systems, you will need Microsoft Visual Studio to compile ATOMS modules > (please see https://www.scilab.org/download/requirements). > > Luckily, you can obtain Visual Studio Community Edition for free from > Microsoft (https://visualstudio.microsoft.com/vs). Please make sure that > you select the C++ components to be installed while installing VS because > you will need them to be able to compile ATOMS modules with Scilab and they > are not installed by default with a standard VS installation. On my Windows > 10 VM I could successfully compile scinetcdf using Visual Studio 2015 > Community Edition following the 5 steps I outlined in one of my previous > e-mails. > > Best, > > Ekin > > -- > Securely sent with Tutanota. Claim your encrypted mailbox today! > https://tutanota.com > > 11. Aug 2018 19:22 by arctica1963 at gmail.com: > > Thanks for looking in to this, sorry can't be more help. As I understand, > Scilab does support the gcc compiler and it clearly recognises it as > present. > > At least I have a way of using GMT grids via a function to read ESR Ascii > raster for now. Not convenient for large data files! > > Cheers > Lester > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Tue Aug 14 11:45:33 2018 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Tue, 14 Aug 2018 11:45:33 +0200 Subject: [Scilab-users] ode with algebraic constraint In-Reply-To: References: <5B6DD48C.9030605@hslmg.de> Message-ID: <5B72A4BD.3050607@hslmg.de> Hallo Rafael, Sorry for my delayed answer! Your mail and your next one ("Bitte") accidently have gone into my recycle bin - I still have to find out why because in the case of your mail this false allocation is really annoying. Your approach seems to be correct. I have done a couple of simulations with results that do not arouse suspicion anythng could be wrong. From the point of kinetics I find "-fc*u/*m* + Ft/*m*;" plausible. Probably your simulation model is appropriate and cannot be falsified. Looking for sources I only find Lagrangian and Hamiltonian approaches in sperical coordinates - the results of which often cause numerical problems. Did you find the cartesian model anywhere in literature or web or did it just come from your inspiration and command on the subject of classical mechanics? And thank you very much for your response again and sorry for the delay too. Best regards Jens ---------------------------------------------------------------- Am 11.08.2018 02:24, schrieb Rafael Guerra: > > Hi Jens, > > I have got the particle moving on the sphere by writing the total > acceleration as a sum of a centripetal component and a tangential > component: > > /// START OF CODE/ > /// Particle motion on a sphere using cartesian coordinates/ > > function *dz*=_EoM_(*t*,*z*,*m*,*f*)///z=[x; y; z; vx;vy;vz] (6 x 1)/ > *dz*(1:3)= *z*(4:6); > nz = norm(*z*(1:3)); > u = *z*(1:3)/nz; > fc= *m**norm(*z*(4:6))^2/nz; /// centripetal force/ > Ft= *f* - (*f*'*u)*u; ///tangential force/ > *dz*(4:6)= -fc*u/*m* + Ft/*m*; > endfunction > > R=2; /// sphere radius/ > r0 = [0; 0; R]; /// initial position/ > v0 = [-1; 3; 0]; /// must be tangent to the sphere at r0/ > z0=[r0;v0]; > t0=0; > dt=0.05; > tmax = 50; > t=dt:dt:tmax; > m = 1; /// mass/ > f= [-1;1;0.5]; ///external force/ > z = ode(z0,t0,t,_EoM_) > clf; > scatter3(z(1,:),z(2,:),z(3,:)) > gca().axes_reverse = ["on", "off", "off"]; > isoview on > /// END OF CODE/ > > Let me know if you see any flaw in the physics. > > Regards, > > Rafael > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Tue Aug 14 11:55:24 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 14 Aug 2018 09:55:24 +0000 Subject: [Scilab-users] ode with algebraic constraint In-Reply-To: <5B72A4BD.3050607@hslmg.de> References: <5B6DD48C.9030605@hslmg.de> <5B72A4BD.3050607@hslmg.de> Message-ID: Hallo Jens, Glad to hear. No, I could not find any "ready-solution" in cartesian coordinates. But I have reviewed the topic (https://en.wikipedia.org/wiki/Circular_motion) PS: Physics was my biggest passion at school and I think a little flame is still burning... Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Tue Aug 14 12:35:35 2018 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Tue, 14 Aug 2018 12:35:35 +0200 Subject: [Scilab-users] ode with algebraic constraint In-Reply-To: References: <5B6DD48C.9030605@hslmg.de> <5B72A4BD.3050607@hslmg.de> Message-ID: <5B72B077.5000800@hslmg.de> Hallo Rafael, This mail arrived properly! To my taste the equation of motion of a spherical pendulum (which we are actually treating here) is much easier to understand in the way you presented it than the one in spherical coordinates filling the textbooks. Perhaps Lagrange and Hamilton are so fascinating that outhors miss the simple route and prefer to play with advanced methods. I prefer not to use a numerical controlled milling machine when a simple fad can do it too. Best regards Jens ----------------------------------------------------------------------------- Am 14.08.2018 11:55, schrieb Rafael Guerra: > > Hallo Jens, > > Glad to hear. > > No, I could not find any "ready-solution" in cartesian coordinates. > > But I have reviewed the topic > (https://en.wikipedia.org/wiki/Circular_motion) > > PS: > > Physics was my biggest passion at school and I think a little flame is > still burning... > > Regards, > > Rafael > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From iwoj at il.pw.edu.pl Thu Aug 16 16:55:56 2018 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Thu, 16 Aug 2018 16:55:56 +0200 Subject: [Scilab-users] Removing elements of one vector from another vector Message-ID: <6c147f042f4bc4ee6127d305e93c45f6@il.pw.edu.pl> Hello, Is there any simple way to remove from one vector elements which are in another vector. For example: a=[1 2 3 4 5 6 7 8] b=[1 3 5] resulting vector: c=[2 4 6 7 8]. I wonder if this can be done without a "for" loop. Thanks in advance, Iza From Christophe.Dang at sidel.com Thu Aug 16 17:01:39 2018 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 16 Aug 2018 15:01:39 +0000 Subject: [Scilab-users] {EXT} Removing elements of one vector from another vector In-Reply-To: <6c147f042f4bc4ee6127d305e93c45f6@il.pw.edu.pl> References: <6c147f042f4bc4ee6127d305e93c45f6@il.pw.edu.pl> Message-ID: Hello, > De : Izabela W?jcik-Grzaba > Envoy? : jeudi 16 ao?t 2018 16:56 > > Is there any simple way to remove from one vector elements > which are in another vector. For example: > a=[1 2 3 4 5 6 7 8] > b=[1 3 5] > resulting vector: c=[2 4 6 7 8]. You can try: // ********** [nb, loc] = members(b, a) a(loc) = [] // ********** regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From cfuttrup at gmail.com Thu Aug 16 19:23:12 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 16 Aug 2018 19:23:12 +0200 Subject: [Scilab-users] Removing elements of one vector from another vector In-Reply-To: <6c147f042f4bc4ee6127d305e93c45f6@il.pw.edu.pl> References: <6c147f042f4bc4ee6127d305e93c45f6@il.pw.edu.pl> Message-ID: <7618ccd5-44f0-2263-c3a8-b0f887978eb0@gmail.com> Hi Iza Yes, as Dang says ... I think what you're doing is one of several "set-operations" you can do in Scilab. Others may also come in handy for you: https://help.scilab.org/doc/5.5.2/en_US/section_b26c1facefdb399710752631e1bfb765.html /Claus On 16.08.2018 16:55, Izabela W?jcik-Grz?ba wrote: > Hello, > > Is there any simple way to remove from one vector elements which are > in another vector. For example: > a=[1 2 3 4 5 6 7 8] > b=[1 3 5] > resulting vector: c=[2 4 6 7 8]. > I wonder if this can be done without a "for" loop. > > Thanks in advance, > Iza > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From iwoj at il.pw.edu.pl Fri Aug 17 12:08:38 2018 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Fri, 17 Aug 2018 12:08:38 +0200 Subject: [Scilab-users] Removing elements of one vector from another vector In-Reply-To: <7618ccd5-44f0-2263-c3a8-b0f887978eb0@gmail.com> References: <6c147f042f4bc4ee6127d305e93c45f6@il.pw.edu.pl> <7618ccd5-44f0-2263-c3a8-b0f887978eb0@gmail.com> Message-ID: Thank you Dang and Claus, I know some of these "matrix functions" but "members" is a new one for me although I thought that something like that must exist :-) Now I have slightly different problem. I will show this on a simple example: A=[0 0 0 0 0]' is the initial form of matrix B=[10 15]' is the matrix of values C=[2 4]' is the matrix of positions of the values from B in A, so the resulting matrix A would look like: A=[0 10 0 15 0]' Maybe there is also a smart function for that? Thanks, Iza From Christophe.Dang at sidel.com Fri Aug 17 13:01:20 2018 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 17 Aug 2018 11:01:20 +0000 Subject: [Scilab-users] {EXT} Re: Removing elements of one vector from another vector In-Reply-To: References: <6c147f042f4bc4ee6127d305e93c45f6@il.pw.edu.pl> <7618ccd5-44f0-2263-c3a8-b0f887978eb0@gmail.com> Message-ID: Hello, > De Izabela W?jcik-Grzaba > Envoy? : vendredi 17 ao?t 2018 12:09 > > A=[0 0 0 0 0]' is the initial form of matrix > B=[10 15]' is the matrix of values > C=[2 4]' is the matrix of positions of the values from B in A, so the resulting matrix A would look like: > A=[0 10 0 15 0]' This works well: // ********** A(C) = B // ********** Please have a look at: https://help.scilab.org/docs/6.0.1/en_US/extraction.html Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From iwoj at il.pw.edu.pl Fri Aug 17 13:06:07 2018 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Fri, 17 Aug 2018 13:06:07 +0200 Subject: [Scilab-users] {EXT} Re: Removing elements of one vector from another vector In-Reply-To: References: <6c147f042f4bc4ee6127d305e93c45f6@il.pw.edu.pl> <7618ccd5-44f0-2263-c3a8-b0f887978eb0@gmail.com> Message-ID: Thank you very much. I haven't tried it this way but I was really close. Regards, Iza W dniu 17.08.2018 13:01, Dang Ngoc Chan, Christophe napisa?(a): > Hello, > >> De Izabela W?jcik-Grzaba >> Envoy? : vendredi 17 ao?t 2018 12:09 >> >> A=[0 0 0 0 0]' is the initial form of matrix >> B=[10 15]' is the matrix of values >> C=[2 4]' is the matrix of positions of the values from B in A, so the >> resulting matrix A would look like: >> A=[0 10 0 15 0]' > > This works well: > > // ********** > > A(C) = B > > // ********** > > Please have a look at: > > https://help.scilab.org/docs/6.0.1/en_US/extraction.html > > Regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > This e-mail may contain confidential and/or privileged information. If > you are not the intended recipient (or have received this e-mail in > error), please notify the sender immediately and destroy this e-mail. > Any unauthorized copying, disclosure or distribution of the material > in this e-mail is strictly forbidden. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From vincent.simoes.ens at gmail.com Fri Aug 17 15:32:53 2018 From: vincent.simoes.ens at gmail.com (DrVS) Date: Fri, 17 Aug 2018 06:32:53 -0700 (MST) Subject: [Scilab-users] ATOMS error Scilab 5.5.2 Message-ID: <1534512773274-0.post@n3.nabble.com> Hi everyone, I try to install modules with Atoms, but i have the folowing error : "No ATOMS module is available. Please, check your Internet connection or make sure that your OS is compatible with ATOMS." I've check and try everything that i've found in the forum (proxy, offline, delete temp files etc), but nothing work. When i try with scilab 6.0.1, it works well and directly. But i need the SIMM module which are not on 6.0.1. *Maybe there is a problem with the servor or Atoms is down ?* When i try to connect to add : https://atoms.scilab.org/5.5/ I have this message : /-->atomsRepositoryAdd("http://atoms.scilab.org/5.5") !--error 999 mopen: Cannot open file C:\PROGRA~2\scilab-5.5.2\.atoms\packages. at line 3 of function listvarFunction called by : at line 29 of function listvarinfile called by : at line 949 of function %_sodload called by : at line 94 of function atomsDESCRIPTIONget called by : at line 142 of function atomsRepositoryAdd called by : atomsRepositoryAdd("http://atoms.scilab.org/5.5")/ I hope someone can help me or inform me. Thank you a lot for your help. -- Vincent -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Sat Aug 18 18:21:22 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 18 Aug 2018 18:21:22 +0200 Subject: [Scilab-users] Removing elements of one vector from another vector In-Reply-To: <6c147f042f4bc4ee6127d305e93c45f6@il.pw.edu.pl> References: <6c147f042f4bc4ee6127d305e93c45f6@il.pw.edu.pl> Message-ID: <42c3a318-3550-fb4a-026b-2c52c8ad20d8@free.fr> Hello, Le 16/08/2018 ? 16:55, Izabela W?jcik-Grz?ba a ?crit : > Hello, > > Is there any simple way to remove from one vector elements which are > in another vector. For example: > a=[1 2 3 4 5 6 7 8] > b=[1 3 5] > resulting vector: c=[2 4 6 7 8]. > I wonder if this can be done without a "for" loop. Yes. For the simplest query: --> setdiff(a,b) ans = 2. 4. 6. 7. 8. If "a" has duplicates and you want to remove b values value-per-value : Example: a = [1 2 3 3 4 5 5 5 6 ] b=[1 3 5] and you expect [2 3 4 5 5 6] => things are different Samuel From jrafaelbguerra at hotmail.com Sun Aug 19 13:06:19 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 19 Aug 2018 11:06:19 +0000 Subject: [Scilab-users] Removing elements of one vector from another vector In-Reply-To: <42c3a318-3550-fb4a-026b-2c52c8ad20d8@free.fr> References: <6c147f042f4bc4ee6127d305e93c45f6@il.pw.edu.pl> <42c3a318-3550-fb4a-026b-2c52c8ad20d8@free.fr> Message-ID: Hi, An alternative to remove all occurrences of 'b' in 'a' is to do: a(~members(a,b)) Regards, Rafael From mjmccann at ieee.org Mon Aug 20 13:29:32 2018 From: mjmccann at ieee.org (Michael J. McCann) Date: Mon, 20 Aug 2018 11:29:32 +0000 Subject: [Scilab-users] Win10.Scilab601.IPCV2.Not Loading Message-ID: <63f6b98c-d32c-5f0f-dd8d-c8aafe7a4efe@ieee.org> I have Scilab6.01 on a Windows 10 machine. I have recently installed "IPCV" via Atoms. That went in OK but when I restart Scilab, the loading process only gets as far as reporting, in the console,?? ' load gateways'??? and nothing more. The IPCV functions don't work.?? I can see that? [" IPCV,"2.0"] is installed. I have IPCV working on a different Windows10machine with Scilab6.01 BUT I suspect it is an earlier version of IPCV Is this a bug with IPCV2 or have I missed something? MikeMcC. -- Note: Email address is now 'mjmccann at ieee.org' not 'iee.org' -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Mon Aug 20 17:27:31 2018 From: rouxph.22 at gmail.com (philippe) Date: Mon, 20 Aug 2018 17:27:31 +0200 Subject: [Scilab-users] bug in degree and polynomials comparison ? Message-ID: Hi, while upgrading one of my toolboxes I discovered a strange error in polynomial comparisons. The error appeared during automatic unit tests, a " assert_checkequal(P1,P2)" was expected to be True and was in fact False. After some investigations It looks like there is an error in degree so that P1==P2 can be False while P1-P2==0. Can someone confirm the bug in scilab-6.0.1 before I fill in a report on bugzilla. Run the following commands : X=poly(0,'x') A=(X-1)^3 B=(X+1)^2 R=20 +12*X Q=(A-R*X^3)/B; Q=Q.num A,(B*Q+R*X^3) // equal A-(B*Q+R*X^3) //=0 A==(B*Q+R*X^3) // %F !!!! coeff((B*Q+R*X^3)) coeff(A) degree((B*Q+R*X^3)) // =4 !! degree(A) // = 3 and compare with the expected result thereafter Sincerly yours, Philippe --> A,B,Q,R A = 2 3 -1 +3x -3x +x B = 2 1 +2x +x Q = 2 -1 +5x -12x R = 20 +12x --> A,(B*Q+R*X^3) A = 2 3 -1 +3x -3x +x ans = 2 3 -1 +3x -3x +x --> A-(B*Q+R*X^3) ans = 0 --> A==(B*Q+R*X^3) ans = F --> coeff((B*Q+R*X^3)) ans = -1. 3. -3. 1. 0. --> coeff(A) ans = -1. 3. -3. 1. --> degree((B*Q+R*X^3)) ans = 4. --> degree(A) ans = 3. From sgougeon at free.fr Mon Aug 20 17:50:45 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 20 Aug 2018 17:50:45 +0200 Subject: [Scilab-users] bug in degree and polynomials comparison ? In-Reply-To: References: Message-ID: Hello Philippe, This is fixed in Scilab 6.0.2-. Please see mainly http://bugzilla.scilab.org/14701 http://bugzilla.scilab.org/14708 Regards Samuel Le 20/08/2018 ? 17:27, philippe a ?crit : > Hi, > > while upgrading one of my toolboxes I discovered a strange error in > polynomial comparisons. The error appeared during automatic unit tests, > a " assert_checkequal(P1,P2)" was expected to be True and was in fact > False. After some investigations It looks like there is an error in > degree so that P1==P2 can be False while P1-P2==0. > > Can someone confirm the bug in scilab-6.0.1 before I fill in a report > on bugzilla. Run the following commands : > > X=poly(0,'x') > A=(X-1)^3 > B=(X+1)^2 > R=20 +12*X > Q=(A-R*X^3)/B; > Q=Q.num > > A,(B*Q+R*X^3) // equal > A-(B*Q+R*X^3) //=0 > A==(B*Q+R*X^3) // %F !!!! > coeff((B*Q+R*X^3)) > coeff(A) > degree((B*Q+R*X^3)) // =4 !! > degree(A) // = 3 > > and compare with the expected result thereafter > > Sincerly yours, > > Philippe > > --> A,B,Q,R > A = > > 2 3 > -1 +3x -3x +x > > B = > > 2 > 1 +2x +x > > Q = > > 2 > -1 +5x -12x > > R = > > > 20 +12x > > > --> A,(B*Q+R*X^3) > A = > > 2 3 > -1 +3x -3x +x > > ans = > > 2 3 > -1 +3x -3x +x > > > --> A-(B*Q+R*X^3) > ans = > > > 0 > > > --> A==(B*Q+R*X^3) > ans = > > F > > > --> coeff((B*Q+R*X^3)) > ans = > > -1. 3. -3. 1. 0. > > > --> coeff(A) > ans = > > -1. 3. -3. 1. > > > --> degree((B*Q+R*X^3)) > ans = > > 4. > > > --> degree(A) > ans = > > 3. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From rouxph.22 at gmail.com Mon Aug 20 18:15:26 2018 From: rouxph.22 at gmail.com (philippe) Date: Mon, 20 Aug 2018 18:15:26 +0200 Subject: [Scilab-users] bug in degree and polynomials comparison ? In-Reply-To: References: Message-ID: Le 20/08/2018 ? 17:50, Samuel Gougeon a ?crit?: > Hello Philippe, > > This is fixed in Scilab 6.0.2-. Please see mainly > http://bugzilla.scilab.org/14701 > http://bugzilla.scilab.org/14708 thanks Samuel, I missed those reports on bugzilla Best regards, Philippe From matiasb at gmail.com Mon Aug 20 19:53:23 2018 From: matiasb at gmail.com (Matiasb) Date: Mon, 20 Aug 2018 10:53:23 -0700 (MST) Subject: [Scilab-users] Generate a Scilab file from C++ Message-ID: <1534787603992-0.post@n3.nabble.com> Hi, I am trying to generate a SOD file from within my c++ application. This way it would be possible to generate data from my application that scilab can read. I am particularly interested in storing structures, so not so keen on csv files. Does any know a C++ library to write SOD files? I have been searching the documentation but every thing points to call_scilab, which brings the complete engine and it is to complicated to make it work. I also found the save format specification (https://help.scilab.org/doc/5.5.2/en_US/save_format.html) which is a starting point, but I would like to avoid coding it from scratch. Thanks in advance Matias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From chinluh at tritytech.com Tue Aug 21 04:10:54 2018 From: chinluh at tritytech.com (Tan Chin Luh) Date: Tue, 21 Aug 2018 10:10:54 +0800 Subject: [Scilab-users] Win10.Scilab601.IPCV2.Not Loading In-Reply-To: <63f6b98c-d32c-5f0f-dd8d-c8aafe7a4efe@ieee.org> References: <63f6b98c-d32c-5f0f-dd8d-c8aafe7a4efe@ieee.org> Message-ID: <8b3c6812-01d4-954d-7aea-2d21f0849400@tritytech.com> Did you try to run the scilab with admin right? Do this by right-click on the scilab, run as administrator. On 20/8/2018 7:29 PM, Michael J. McCann wrote: > I have Scilab6.01 on a Windows 10 machine. I have recently installed > "IPCV" via Atoms. That went in OK but when I restart Scilab, the > loading process only gets as far as reporting, in the console,?? ' > load gateways'??? and nothing more. > The IPCV functions don't work.?? I can see that? [" IPCV,"2.0"] is > installed. > > I have IPCV working on a different Windows10machine with Scilab6.01 > BUT I suspect it is an earlier version of IPCV > > Is this a bug with IPCV2 or have I missed something? > MikeMcC. > -- > Note: Email address is now 'mjmccann at ieee.org' not 'iee.org' > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfredodiego41 at gmail.com Tue Aug 21 06:33:19 2018 From: alfredodiego41 at gmail.com (Diego Alfredo) Date: Mon, 20 Aug 2018 22:33:19 -0600 Subject: [Scilab-users] is the vercion 4.1.2 still available? Message-ID: I just found Scilabs introduction from back 2010 and i was trying it. one of the exercises says to compare the instalations so i wanted to see this version. only that thanks for the time. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Aug 21 10:48:16 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 21 Aug 2018 10:48:16 +0200 Subject: [Scilab-users] is the vercion 4.1.2 still available? In-Reply-To: References: Message-ID: Hello, You may either fill the form here http://www.scilab.org/en/download/Previous-Scilab-Versions, or if Scilab 4.1.0 for Windows is suitable to your purpose, you may download it from there https://atoms.scilab.org/toolboxes/AdaptiveOptics/4.0#files Regards Samuel Le 21/08/2018 ? 06:33, Diego Alfredo a ?crit : > I just found Scilabs introduction from back 2010 and i was trying it. > one of the exercises says to compare the instalations so i wanted to > see this version. only that thanks for the time. From mjmccann at ieee.org Tue Aug 21 16:09:42 2018 From: mjmccann at ieee.org (Michael J. McCann) Date: Tue, 21 Aug 2018 14:09:42 +0000 Subject: [Scilab-users] Win10.Scilab601.IPCV2.Not Loading In-Reply-To: <8b3c6812-01d4-954d-7aea-2d21f0849400@tritytech.com> References: <63f6b98c-d32c-5f0f-dd8d-c8aafe7a4efe@ieee.org> <8b3c6812-01d4-954d-7aea-2d21f0849400@tritytech.com> Message-ID: <0c3d3b9f-7bdc-925b-8105-c77e7cad9ece@ieee.org> TanChin, Thank you. As the only person who ever uses this personal computer I never thought of using a program ' as administrator'? BUT did find the option to do that (I never tried rt-click on a shortcut before!). My impression was that Scilab couldn't find the pathways/gateways(?) which it needed to load the installed module. However, I removed the IPCV2.0 and installed IPCV1.2 but only after discovering that atomsInstall(["IPCV" "1.2"])? did not work BUT atomsInstall(["IPCV", "1.2"]) worked fine. I added the comma after something flagged that it was looking for a string as the first variable. So now I have a version working as used on the other machine and have also been able to share the work. Thank you for the advice and the IPCV work you do. Mike. ================= On 21/08/2018 02:10, Tan Chin Luh wrote: > Did you try to run the scilab with admin right? Do this by right-click > on the scilab, run as administrator. > > > On 20/8/2018 7:29 PM, Michael J. McCann wrote: >> I have Scilab6.01 on a Windows 10 machine. I have recently installed >> "IPCV" via Atoms. That went in OK but when I restart Scilab, the >> loading process only gets as far as? reporting, in the console,?? ' >> load gateways'??? and nothing more. >> The IPCV functions don't work.?? I can see that? [" IPCV,"2.0"] is >> installed. >> >> I have IPCV working on a different Windows10machine with Scilab6.01 >> BUT I suspect it is an earlier version of IPCV >> >> Is this a bug with IPCV2 or have I missed something? >> MikeMcC. >> -- >> Note: Email address is now 'mjmccann at ieee.org' not 'iee.org' >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Note: Email address is now 'mjmccann at ieee.org' not 'iee.org' -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Tue Aug 21 17:11:12 2018 From: rouxph.22 at gmail.com (philippe) Date: Tue, 21 Aug 2018 17:11:12 +0200 Subject: [Scilab-users] How to overload "double" function ? Message-ID: Hi, I want to overload some usual scilab functions, I made it for abs and sign but strangely it doesn't work for double ! Let's take an example , I want to extend sign and double for polynomials : --> X=poly(0,"x"); // a polynomial --> sign(X) dans la fonction native sign Fonction non d?finie pour les types fournis. v?rifier les arguments ou d?finir la fonction %p_sign pour la surcharge. --> double(X) double : Types erron?s des arguments d'entr?e : entiers, bool?ens ou r?els attendus. so I define overloading for the two functions and "p" type : function y=%p_sign(x) y="OK" endfunction function y=%p_double(x) y="OK" endfunction Now I can call sign on a polynomial, but this doesn't work for double --> sign(X) ans = OK --> double(X) double : Types erron?s des arguments d'entr?e : entiers, bool?ens ou r?els attendus. How can I do this for double ? If not why this doesn't work ? Both sign and double are "fptr" type , I thought that scilab-6 doesn't make difference between function and fptr any more . Philippe From rouxph.22 at gmail.com Wed Aug 22 10:26:07 2018 From: rouxph.22 at gmail.com (philippe) Date: Wed, 22 Aug 2018 10:26:07 +0200 Subject: [Scilab-users] int(x) bug for x>2^62 Message-ID: Hi, I find a strange behavior in "int" with scilab-6.0.1 today : --> 2^63 ans = 9.2233720368548D+18 --> int(2^63) // negative result !!! ans = -9.2233720368548D+18 --> int(2^62) ans = 4.6116860184274D+18 --> 2^62 ans = 4.6116860184274D+18 the problem doesn't appear with floor/ceil/round. I search on bugzilla but found nothing related to int. Best regards, Philippe From sgougeon at free.fr Wed Aug 22 11:12:46 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 22 Aug 2018 11:12:46 +0200 Subject: [Scilab-users] How to overload "double" function ? In-Reply-To: References: Message-ID: <71acc1c9-7f0d-be2f-6444-a300443c5a45@free.fr> Hello Philippe, The overloading mechanism is not systematic. It is implemented (or not) function per function. It is currently proposed for some of them, but not all of them. If you need it for double(), you shall post a wish on Bugzilla. Best regards Samuel PS: for instance, iconvert(p,0) makes the same as double(), and is overloadable: --> iconvert(%z,0) in builtin iconvert Function not defined for given argument type(s), check arguments or define function %p_iconvert for overloading. Le 21/08/2018 ? 17:11, philippe a ?crit : > Hi, > > I want to overload some usual scilab functions, I made it for abs and > sign but strangely it doesn't work for double ! Let's take an example , > I want to extend sign and double for polynomials : > > --> X=poly(0,"x"); // a polynomial > > --> sign(X) > dans la fonction native sign > > Fonction non d?finie pour les types fournis. > v?rifier les arguments ou d?finir la fonction %p_sign pour la surcharge. > > --> double(X) > > double : Types erron?s des arguments d'entr?e : entiers, bool?ens ou > r?els attendus. > > > so I define overloading for the two functions and "p" type : > > function y=%p_sign(x) > y="OK" > endfunction > > function y=%p_double(x) > y="OK" > endfunction > > Now I can call sign on a polynomial, but this doesn't work for double > > --> sign(X) > ans = > > OK > > > --> double(X) > > double : Types erron?s des arguments d'entr?e : entiers, bool?ens ou > r?els attendus. > > How can I do this for double ? If not why this doesn't work ? Both sign > and double are "fptr" type , I thought that scilab-6 doesn't make > difference between function and fptr any more . > > Philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Aug 22 11:14:13 2018 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Wed, 22 Aug 2018 11:14:13 +0200 Subject: [Scilab-users] int(x) bug for x>2^62 In-Reply-To: References: Message-ID: <923E2849-C848-4D5D-B9EC-1E7C23DC78ED@utc.fr> Hello This bug has been recently fixed, see http://bugzilla.scilab.org/show_bug.cgi?id=15629 S. > Le 22 ao?t 2018 ? 10:26, philippe a ?crit : > > Hi, > > I find a strange behavior in "int" with scilab-6.0.1 today : > > --> 2^63 > ans = > > 9.2233720368548D+18 > > --> int(2^63) // negative result !!! > ans = > > -9.2233720368548D+18 > > > --> int(2^62) > ans = > > 4.6116860184274D+18 > > --> 2^62 > ans = > > 4.6116860184274D+18 > > > > the problem doesn't appear with floor/ceil/round. I search on bugzilla > but found nothing related to int. > > Best regards, > > Philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Aug 22 11:21:37 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 22 Aug 2018 11:21:37 +0200 Subject: [Scilab-users] int(x) bug for x>2^62 In-Reply-To: References: Message-ID: <6d4dc233-1a8e-7004-ee9f-bd307596101b@free.fr> Hello Philippe, This bug is fixed in Scilab 6.0.2-: https://build.scilab.org/view/Scilab%206.0/ Regards Samuel Le 22/08/2018 ? 10:26, philippe a ?crit : > Hi, > > I find a strange behavior in "int" with scilab-6.0.1 today : > > --> 2^63 > ans = > > 9.2233720368548D+18 > > --> int(2^63) // negative result !!! > ans = > > -9.2233720368548D+18 > > > --> int(2^62) > ans = > > 4.6116860184274D+18 > > --> 2^62 > ans = > > 4.6116860184274D+18 > > > > the problem doesn't appear with floor/ceil/round. I search on bugzilla > but found nothing related to int. > > Best regards, > > Philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From rouxph.22 at gmail.com Wed Aug 22 12:44:49 2018 From: rouxph.22 at gmail.com (philippe) Date: Wed, 22 Aug 2018 12:44:49 +0200 Subject: [Scilab-users] How to overload "double" function ? In-Reply-To: <71acc1c9-7f0d-be2f-6444-a300443c5a45@free.fr> References: <71acc1c9-7f0d-be2f-6444-a300443c5a45@free.fr> Message-ID: Hi Samuel, Le 22/08/2018 ? 11:12, Samuel Gougeon a ?crit?: > > The overloading mechanism is not systematic. It is implemented (or not) > function per function. > It is currently proposed for some of them, but not all of them. > If you need it for double(), you shall post a wish on Bugzilla. Thanks Samuel! In fact, I've already overloaded iconvert but I did not remembered it! Since the error message refers to "double" it is not easy to remember the correct way for overloading. > > PS: for instance, iconvert(p,0) makes the same as double(), and is > overloadable: That's the problem : it was true in scilab-5 but iconvert seems no longer overload double in scilab-6. See below : --> function y=%p_iconvert(x,itype) > y="OK" > endfunction --> X=poly(0,"x") X = x --> double(X) double : Types erron?s des arguments d'entr?e : entiers, bool?ens ou r?els attendus. --> iconvert(X,0) ans = OK Sincerely yours, Philippe From vincent.simoes.ens at gmail.com Wed Aug 22 12:57:51 2018 From: vincent.simoes.ens at gmail.com (DrVS) Date: Wed, 22 Aug 2018 03:57:51 -0700 (MST) Subject: [Scilab-users] ATOMS error Scilab 5.5.2 In-Reply-To: <1534512773274-0.post@n3.nabble.com> References: <1534512773274-0.post@n3.nabble.com> Message-ID: <1534935471315-0.post@n3.nabble.com> Hi. I have still the same problem. "No ATOMS module is available. Please, check your Internet connection or make sure that your OS is compatible with ATOMS." Maybe there is someone in the community who can try to use ATOMS on scilab 5.5.2 ? I need to know if it's a temporary problem (for everyone) or if it's a problem on my computer. Thank you for your help ! -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From antoine.monmayrant at laas.fr Wed Aug 22 15:19:13 2018 From: antoine.monmayrant at laas.fr (antoine.monmayrant at laas.fr) Date: Wed, 22 Aug 2018 15:19:13 +0200 Subject: [Scilab-users] xs2svg and complex grayplot: room for improvements? Message-ID: Hi all, xs2svg is not working well with big grayplots: the resulting svg file is too big and contains too many elements to be usable. Worse, for really big grayplots, the export fails (not enought memory). As an example, the following code: ??? grayplot() ??? h=gcf(); ??? xs2svg(h,'grayplot.svg'); results in a 3.7MB svg file with 93784 elements that cannot be edited with Inkscape. The issue is that xs2svg renders each patch of the grayplot using two svg filled triangles. In "he who must not be named"?, the svg export is using a more pragmatic approach: everything is rendered as svg path/text/whatever, except from the intensity maps (grayplots, surf, ...) that are rendered as bmp and included in the svg file. This way, the svg file is really light, can be tweaked with any svg compliant software (inkscape) and the result is really good. In practice, to get publication-quality grayplots, I tend to do the following: -hide the grayplot, keep all the rest, export to svg, -hide everything but the grayplot, export to png, -use inkscape to include the png of the grayplot and hand-place it in the svg. Could xs2svg be modified to implement this approach automatically (maybe using an optional parameter)? Could this be the basis for a SEP? Thanks for you feedback, Antoine ? Matlab -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Aug 22 18:36:50 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 22 Aug 2018 18:36:50 +0200 Subject: [Scilab-users] How to overload "double" function ? In-Reply-To: References: <71acc1c9-7f0d-be2f-6444-a300443c5a45@free.fr> Message-ID: <6ab191e6-a4ab-4844-6f0f-0e05028c8e92@free.fr> Le 22/08/2018 ? 12:44, philippe a ?crit : > .../... > PS: for instance, iconvert(p,0) makes the same as double(), and is >> overloadable: > That's the problem : it was true in scilab-5 but iconvert seems no > longer overload double in scilab-6. See below : I did not catch your answer, but trying with 5.5.2, i get: -->*double*(%z) !--error 246 Function not defined for given argument type(s), check arguments or define function %p_*iconvert* for overloading. So, OK, now i understand it. IMO, the 5.5.2 code factorization was welcome. I did not go to the code of 6.0. Anyway, you may report the issue. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Aug 22 18:46:55 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 22 Aug 2018 18:46:55 +0200 Subject: [Scilab-users] ATOMS error Scilab 5.5.2 In-Reply-To: <1534935471315-0.post@n3.nabble.com> References: <1534512773274-0.post@n3.nabble.com> <1534935471315-0.post@n3.nabble.com> Message-ID: Hello, It's a problem for everyone (not only for you), already reported here and a bit earlier. To bypass the Server issue, you may do the following: * download by hand the zipped binary file of your choice * then use the local installation syntax: atomsInstall(zipfile) Regards Samuel PS at ESI: IMO leaving this situation will less invite users to upgrade to 6.0 than to quit Scilab for other solutions: When external modules are not available for Scilab 6.0 (and 75% of them are still so), using Scilab 6.0 is useless. Le 22/08/2018 ? 12:57, DrVS a ?crit : > Hi. > > I have still the same problem. > > "No ATOMS module is available. Please, check your Internet connection or > make sure that your OS is compatible with ATOMS." > > Maybe there is someone in the community who can try to use ATOMS on scilab > 5.5.2 ? > I need to know if it's a temporary problem (for everyone) or if it's a > problem on my computer. > > Thank you for your help ! > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Aug 22 18:53:44 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 22 Aug 2018 18:53:44 +0200 Subject: [Scilab-users] xs2svg and complex grayplot: room for improvements? In-Reply-To: References: Message-ID: Hello Antoine, Le 22/08/2018 ? 15:19, antoine.monmayrant at laas.fr a ?crit : > > Hi all, > > xs2svg is not working well with big grayplots: the resulting svg file > is too big and contains too many elements to be usable. Worse, for > really big grayplots, the export fails (not enought memory). > > As an example, the following code: > grayplot() > h=gcf(); > xs2svg(h,'grayplot.svg'); > results in a 3.7MB svg file with 93784 elements that cannot be edited > with Inkscape. > > The issue is that xs2svg renders each patch of the grayplot using two > svg filled triangles. > In "he who must not be named"?, the svg export is using a more > pragmatic approach: everything is rendered as svg path/text/whatever, > except from the intensity maps (grayplots, surf, ...) that are > rendered as bmp and included in the svg file. > This way, the svg file is really light, can be tweaked with any svg > compliant software (inkscape) and the result is really good. > In practice, to get publication-quality grayplots, I tend to do the > following: > -hide the grayplot, keep all the rest, export to svg, > -hide everything but the grayplot, export to png, > -use inkscape to include the png of the grayplot and hand-place it in > the svg. > Do you remember Calixte's answer to you about this topic in 2012?: http://bugzilla.scilab.org/show_bug.cgi?id=11195#c1 Cheers Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Aug 22 19:32:36 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 22 Aug 2018 19:32:36 +0200 Subject: [Scilab-users] ATOMS error Scilab 5.5.2 In-Reply-To: References: <1534512773274-0.post@n3.nabble.com> <1534935471315-0.post@n3.nabble.com> Message-ID: <83fae86b-8217-fd03-5096-4b88be7472e2@free.fr> Le 22/08/2018 ? 18:46, Samuel Gougeon a ?crit : > Hello, > > It's a problem for everyone (not only for you), already reported here > > and a bit earlier. > To bypass the Server issue, you may do the following: > > * download by hand the zipped binary file of your choice > I meant: browsing from https://atoms.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Thu Aug 23 05:11:04 2018 From: chinluh at tritytech.com (Tan Chin Luh) Date: Thu, 23 Aug 2018 11:11:04 +0800 Subject: [Scilab-users] Win10.Scilab601.IPCV2.Not Loading In-Reply-To: <0c3d3b9f-7bdc-925b-8105-c77e7cad9ece@ieee.org> References: <63f6b98c-d32c-5f0f-dd8d-c8aafe7a4efe@ieee.org> <8b3c6812-01d4-954d-7aea-2d21f0849400@tritytech.com> <0c3d3b9f-7bdc-925b-8105-c77e7cad9ece@ieee.org> Message-ID: Hi Mike, Can u try to load the 3rd party lib and the gateway manually and check the output? 1. Try to link the ipcv dll, the file is either located in your SCI or SCIHOME folder: SCIHOME + '\atoms\x64\IPCV\2.0\sci_gateway\cpp\' or SCI + '\contrib\IPCV\2.0\sci_gateway\cpp\' change in to the folder which contains the dll and exec following command in the console. *--> link gw_ipcv.dll* 2. Similar to the 3rd party opencv lib: SCIHOME + '\atoms\x64\IPCV\2.0\thirdparty\opencv\windows\x64\bin\' or SCI + '\contrib\IPCV\2.0\thirdparty\opencv\windows\x64\bin\' change in to the folder which contains the dll and exec following command in the console. *--> link opencv_world341.dll* let me know the output in the console. rgds, CL On 21/8/2018 10:09 PM, Michael J. McCann wrote: > TanChin, > Thank you. As the only person who ever uses this personal computer I > never thought of using a program ' as administrator' BUT did find the > option to do that (I never tried rt-click on a shortcut before!). My > impression was that Scilab couldn't find the pathways/gateways(?) > which it needed to load the installed module. > > However, I removed the IPCV2.0 and installed IPCV1.2 but only after > discovering that > atomsInstall(["IPCV" "1.2"])? did not work BUT > atomsInstall(["IPCV", "1.2"]) worked fine. > I added the comma after something flagged that it was looking for a > string as the first variable. So now I have a version working? as used > on the other machine and have also been able to share the work. > Thank you for the advice and the IPCV work you do. > Mike. > ================= > > On 21/08/2018 02:10, Tan Chin Luh wrote: >> Did you try to run the scilab with admin right? Do this by >> right-click on the scilab, run as administrator. >> >> >> On 20/8/2018 7:29 PM, Michael J. McCann wrote: >>> I have Scilab6.01 on a Windows 10 machine. I have recently installed >>> "IPCV" via Atoms. That went in OK but when I restart Scilab, the >>> loading process only gets as far as? reporting, in the console,?? ' >>> load gateways'??? and nothing more. >>> The IPCV functions don't work.?? I can see that? [" IPCV,"2.0"] is >>> installed. >>> >>> I have IPCV working on a different Windows10machine with Scilab6.01 >>> BUT I suspect it is an earlier version of IPCV >>> >>> Is this a bug with IPCV2 or have I missed something? >>> MikeMcC. >>> -- >>> Note: Email address is now 'mjmccann at ieee.org' not 'iee.org' >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -- > Note: Email address is now 'mjmccann at ieee.org' not 'iee.org' > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu Aug 23 09:09:36 2018 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 23 Aug 2018 07:09:36 +0000 Subject: [Scilab-users] {EXT} xs2svg and complex grayplot: room for improvements? In-Reply-To: References: Message-ID: Hello, > De : antoine.monmayrant at laas.fr > Envoy? : mercredi 22 ao?t 2018 15:19 > > In "he who must not be named"?, the svg export is using a more pragmatic approach: > everything is rendered as svg path/text/whatever, > except from the intensity maps (grayplots, surf, ...) > that are rendered as bmp and included in the svg file. In addition to Samuel's answer, I wonder why using the SVG format to handle a bitmap. It seems to me that the SVG format is just not adapted to the case. -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From antoine.monmayrant at laas.fr Thu Aug 23 09:35:23 2018 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 23 Aug 2018 09:35:23 +0200 Subject: [Scilab-users] {EXT} xs2svg and complex grayplot: room for improvements? In-Reply-To: References: Message-ID: Le 23/08/2018 ? 09:09, Dang Ngoc Chan, Christophe a ?crit?: > Hello, > >> De : antoine.monmayrant at laas.fr >> Envoy? : mercredi 22 ao?t 2018 15:19 >> >> In "he who must not be named"?, the svg export is using a more pragmatic approach: >> everything is rendered as svg path/text/whatever, >> except from the intensity maps (grayplots, surf, ...) >> that are rendered as bmp and included in the svg file. > In addition to Samuel's answer, > I wonder why using the SVG format to handle a bitmap. Well, because that's a required step in the right direction (pdf) to get publication-quality graphics that are relatively good at various scales. The idea is to keep the vectorial format for scales, lines, text and get a bitmap for what is essentially a bitmap! You get the best of both world. Antoine > > It seems to me that the SVG format is just not adapted to the case. > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From amonmayr at laas.fr Thu Aug 23 09:44:32 2018 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Thu, 23 Aug 2018 09:44:32 +0200 Subject: [Scilab-users] xs2svg and complex grayplot: room for improvements? In-Reply-To: References: Message-ID: <78925a58-3e81-d078-c313-d3fb9ad9bed3@laas.fr> Le 22/08/2018 ? 18:53, Samuel Gougeon a ?crit?: > Hello Antoine, > > Le 22/08/2018 ? 15:19, antoine.monmayrant at laas.fr a ?crit?: >> >> Hi all, >> >> xs2svg is not working well with big grayplots: the resulting svg file >> is too big and contains too many elements to be usable. Worse, for >> really big grayplots, the export fails (not enought memory). >> >> As an example, the following code: >> ??? grayplot() >> ??? h=gcf(); >> ??? xs2svg(h,'grayplot.svg'); >> results in a 3.7MB svg file with 93784 elements that cannot be edited >> with Inkscape. >> >> The issue is that xs2svg renders each patch of the grayplot using two >> svg filled triangles. >> In "he who must not be named"?, the svg export is using a more >> pragmatic approach: everything is rendered as svg path/text/whatever, >> except from the intensity maps (grayplots, surf, ...) that are >> rendered as bmp and included in the svg file. >> This way, the svg file is really light, can be tweaked with any svg >> compliant software (inkscape) and the result is really good. >> In practice, to get publication-quality grayplots, I tend to do the >> following: >> -hide the grayplot, keep all the rest, export to svg, >> -hide everything but the grayplot, export to png, >> -use inkscape to include the png of the grayplot and hand-place it in >> the svg. >> > > Do you remember Calixte's answer to you about this topic in 2012?: > http://bugzilla.scilab.org/show_bug.cgi?id=11195#c1 Her, to be honest, no, I dit not remember. But Matplot() and Matplot1() are not decent solutions, just workarounds as they are way more limited than surf(), Sgrayplot(), contourf()... In particular, you cannot specify x-axis and y-axis scales using vectors, which is essential for experimental dataset that are not always regularly spaced in x- and y-. Thanks for refreshing my memory. But it means the solution exists: can't we use the same approach for other "intensity maps"? Antoine > > Cheers > Samuel > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.simoes.ens at gmail.com Thu Aug 23 12:53:07 2018 From: vincent.simoes.ens at gmail.com (DrVS) Date: Thu, 23 Aug 2018 03:53:07 -0700 (MST) Subject: [Scilab-users] ATOMS error Scilab 5.5.2 In-Reply-To: <83fae86b-8217-fd03-5096-4b88be7472e2@free.fr> References: <1534512773274-0.post@n3.nabble.com> <1534935471315-0.post@n3.nabble.com> <83fae86b-8217-fd03-5096-4b88be7472e2@free.fr> Message-ID: <1535021587683-0.post@n3.nabble.com> Hello Samuel, Thank you for your answer. I've already try to install manually, but without success. I have this kind of message (error 10000) : /-->atomsInstall("C:\Users\vince\Downloads\coselica-0.6.6.zip") !--error 10000 atomsDESCRIPTIONread: The file "C:\PROGRA~2\scilab-5.5.2\.atoms\tmp_1535021295\coselica-0.6.6\DESCRIPTION" does not exist. at line 46 of function atomsDESCRIPTIONread called by : at line 160 of function atomsInstall called by : atomsInstall("C:\Users\vince\Downloads\coselica-0.6.6.zip")/ I have also this kind of message for an other module : /!--error 10000 atomsDESCRIPTIONread: The file "C:\Users\vince\AppData\Local\Temp\SCI_TMP_19856_\.atoms\1_TOOLBOXES" is empty./ So, i don't know what to do... -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Thu Aug 23 14:34:32 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 23 Aug 2018 14:34:32 +0200 Subject: [Scilab-users] ATOMS error Scilab 5.5.2 In-Reply-To: <1535021587683-0.post@n3.nabble.com> References: <1534512773274-0.post@n3.nabble.com> <1534935471315-0.post@n3.nabble.com> <83fae86b-8217-fd03-5096-4b88be7472e2@free.fr> <1535021587683-0.post@n3.nabble.com> Message-ID: Le 23/08/2018 ? 12:53, DrVS a ?crit : > Hello Samuel, > > Thank you for your answer. > > I've already try to install manually, but without > success. > > I have this kind of message (error 10000) : > /-->atomsInstall("C:\Users\vince\Downloads\coselica-0.6.6.zip") You have downloaded the sources archive instead of the binary. The binary in named "coselica_0.6.6.zip " (with an undercore instead of an hyphen: OK, this naming is really misleading) Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Aug 23 14:38:54 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 23 Aug 2018 14:38:54 +0200 Subject: [Scilab-users] ATOMS error Scilab 5.5.2 In-Reply-To: <1535021587683-0.post@n3.nabble.com> References: <1534512773274-0.post@n3.nabble.com> <1534935471315-0.post@n3.nabble.com> <83fae86b-8217-fd03-5096-4b88be7472e2@free.fr> <1535021587683-0.post@n3.nabble.com> Message-ID: Le 23/08/2018 ? 12:53, DrVS a ?crit : > Hello Samuel, > > Thank you for your answer. > > I've already try to install manually, but without > success. > > I have this kind of message (error 10000) : > /-->atomsInstall("C:\Users\vince\Downloads\coselica-0.6.6.zip") By the way, this is a file for Scilab 6, while your problem was to install something for Scilab 5.5.2. So please target the right version and file! From rouxph.22 at gmail.com Thu Aug 23 14:39:24 2018 From: rouxph.22 at gmail.com (philippe) Date: Thu, 23 Aug 2018 14:39:24 +0200 Subject: [Scilab-users] How to overload "double" function ? In-Reply-To: <6ab191e6-a4ab-4844-6f0f-0e05028c8e92@free.fr> References: <71acc1c9-7f0d-be2f-6444-a300443c5a45@free.fr> <6ab191e6-a4ab-4844-6f0f-0e05028c8e92@free.fr> Message-ID: Le 22/08/2018 ? 18:36, Samuel Gougeon a ?crit?: > > So, OK, now i understand it. > IMO, the 5.5.2 code factorization was welcome. I did not go to the code > of 6.0. > Anyway, you may report the issue. done : http://bugzilla.scilab.org/show_bug.cgi?id=15722 Philippe From chinluh at tritytech.com Fri Aug 24 09:16:16 2018 From: chinluh at tritytech.com (Tan Chin Luh) Date: Fri, 24 Aug 2018 15:16:16 +0800 Subject: [Scilab-users] Win10.Scilab601.IPCV2.Not Loading In-Reply-To: <57cbea1e-3b29-687f-6c3b-421bbe2731d8@ieee.org> References: <63f6b98c-d32c-5f0f-dd8d-c8aafe7a4efe@ieee.org> <8b3c6812-01d4-954d-7aea-2d21f0849400@tritytech.com> <0c3d3b9f-7bdc-925b-8105-c77e7cad9ece@ieee.org> <57cbea1e-3b29-687f-6c3b-421bbe2731d8@ieee.org> Message-ID: <01bb99f9-c9bd-891e-ac88-0d807290de20@tritytech.com> Hi Mike, sorry for the details, just want to make sure the root of the issue. the problem is most likely due to some prerequisites not installed, if you would like to try it again, try to install Microsoft Visual C++ Redistributable for Visual Studio 2015 from following link, and it should be able to load the lib smoothly. https://www.microsoft.com/en-US/download/details.aspx?id=48145 hope this helps. rgds, CL On 23/8/2018 7:51 PM, Michael J. McCann wrote: > Re: [Scilab-users] Win10.Scilab601.IPCV2.Not Loading CL, > Thank you for going to all this trouble. I think this is beyond my > skills. I do mathematical engineering and business modelling and rely > on the tools like Matlab and Scilab. If they don't come as working > software, I'm a bit out of my depth.? I still have trouble with > Scilab?? when getting functions, which? I've written,? to be > recognized in scripts so you can see I'm not understanding the > interior working of these tools. I haven't tried to set up 'paths' > since I last used DOS. > > Indeed your first suggestion: > "Can u try to load the 3rd party lib and the gateway manually and > check the output?" > poses questions: What is '3rd party lib" ? What are the commands for > loading these things? > I have trouble understanding the other ideas because of my ignorance > of modern compilers etc. > > ?So? since I have a working version of IPCV1.2 with Scilab6.0.1, which > meets my needs so far, I'm going to stick with it and maybe try again > with later versions? if necessary? and I'll save your suggestions for > reference and study if then needed. > Thank you for all your efforts, > Mike. > www.mccannscience.com > ============================== > > On 23/08/2018 03:11, Tan Chin Luh wrote: >> Hi Mike, >> >> >> >> 1. Try to link the ipcv dll, the file is either located in your SCI >> or SCIHOME folder: >> >> SCIHOME + '\atoms\x64\IPCV\2.0\sci_gateway\cpp\' >> or >> SCI + '\contrib\IPCV\2.0\sci_gateway\cpp\' >> change in to the folder which contains the dll and exec following >> command in the console. >> *--> link gw_ipcv.dll* >> >> 2. Similar to the 3rd party opencv lib: >> >> SCIHOME + '\atoms\x64\IPCV\2.0\thirdparty\opencv\windows\x64\bin\' >> or >> SCI + '\contrib\IPCV\2.0\thirdparty\opencv\windows\x64\bin\' >> >> change in to the folder which contains the dll and exec following >> command in the console. >> *--> link opencv_world341.dll* >> >> let me know the output in the console. >> >> rgds, >> CL >> >> >> >> On 21/8/2018 10:09 PM, Michael J. McCann wrote: >>> TanChin, >>> Thank you. As the only person who ever uses this personal computer I >>> never thought of using a program ' as administrator'? BUT did find >>> the option to do that (I never tried rt-click on a shortcut >>> before!). My impression was that Scilab couldn't find the >>> pathways/gateways(?) which it needed to load the installed module. >>> >>> However, I removed the IPCV2.0 and installed IPCV1.2 but only after >>> discovering that >>> atomsInstall(["IPCV" "1.2"])? did not work BUT >>> atomsInstall(["IPCV", "1.2"]) worked fine. >>> I added the comma after something flagged that it was looking for a >>> string as the first variable. So now I have a version working? as >>> used on the other machine and have also been able to share the work. >>> Thank you for the advice and the IPCV work you do. >>> Mike. >>> ================= >>> >>> On 21/08/2018 02:10, Tan Chin Luh wrote: >>>> Did you try to run the scilab with admin right? Do this by >>>> right-click on the scilab, run as administrator. >>>> >>>> >>>> On 20/8/2018 7:29 PM, Michael J. McCann wrote: >>>>> I have Scilab6.01 on a Windows 10 machine. I have recently >>>>> installed "IPCV" via Atoms. That went in OK but when I restart >>>>> Scilab, the loading process only gets as far as? reporting, in the >>>>> console,?? ' load gateways'??? and nothing more. >>>>> The IPCV functions don't work.?? I can see that? [" IPCV,"2.0"] is >>>>> installed. >>>>> >>>>> I have IPCV working on a different Windows10machine with >>>>> Scilab6.01 BUT I suspect it is an earlier version of IPCV >>>>> >>>>> Is this a bug with IPCV2 or have I missed something? >>>>> MikeMcC. >>>>> -- >>>>> Note: Email address is now 'mjmccann at ieee.org' not 'iee.org' >>>>> >>>>> >>>>> _______________________________________________ >>>>> users mailing list >>>>> users at lists.scilab.org >>>>> http://lists.scilab.org/mailman/listinfo/users >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/mailman/listinfo/users >>> >>> -- >>> Note: Email address is now 'mjmccann at ieee.org' not 'iee.org' >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -- > Note: Email address is now 'mjmccann at ieee.org' not 'iee.org' -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Mon Aug 27 10:51:30 2018 From: rouxph.22 at gmail.com (philippe) Date: Mon, 27 Aug 2018 10:51:30 +0200 Subject: [Scilab-users] save and *.sod broken in scilab6 ? Message-ID: Hi, Running the example of man page for "save" to create an *.sod file yields an error in scilab-6.0.1 and ubuntu 18.04 (see below) . It looks like there is no report for this bug on bugzilla ? Best regards, Philippe. -> a=eye(2,2);b=ones(a); --> save("val.sod", "a", "b"); save : Impossible d'exporter la variable 'a' dans le fichier 'val.sod'. --> clear a --> clear b --> load("val.sod", "a", "b"); load : Impossible d'ouvrir le fichier 'val.sod'. Version de Scilab : 6.0.1.1518683525 Syst?me d'exploitation : Linux 4.15.0-33-generic Version Java : 1.8.0_181 Informations sur l'environnement d'ex?cution Java : OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-0ubuntu0.18.04.1-b13) Informations sur la machine virtuelle Java : OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode) Sp?cifications du fabricant : Oracle Corporation From sgougeon at free.fr Mon Aug 27 12:24:55 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 27 Aug 2018 12:24:55 +0200 Subject: [Scilab-users] save and *.sod broken in scilab6 ? In-Reply-To: References: Message-ID: Hello Philippe, No problem for me. You may have used listvarinfile() at a moment during your trials or work. listvarinfile()left the file locked . This was very likely the cause of the forthcoming save() error. This listvarinfile() bug was fixed 2 weeks ago. Best regards Samuel Le 27/08/2018 ? 10:51, philippe a ?crit : > Hi, > > Running the example of man page for "save" to create an *.sod file > yields an error in scilab-6.0.1 and ubuntu 18.04 (see below) . > It looks like there is no report for this bug on bugzilla ? > > Best regards, > Philippe. > > -> a=eye(2,2);b=ones(a); > > --> save("val.sod", "a", "b"); > > save : Impossible d'exporter la variable 'a' dans le fichier 'val.sod'. > > --> clear a > > --> clear b > > --> load("val.sod", "a", "b"); > > load : Impossible d'ouvrir le fichier 'val.sod'. > > > > Version de Scilab : 6.0.1.1518683525 > Syst?me d'exploitation : Linux 4.15.0-33-generic > Version Java : 1.8.0_181 > Informations sur l'environnement d'ex?cution Java : OpenJDK Runtime > Environment (build 1.8.0_181-8u181-b13-0ubuntu0.18.04.1-b13) > Informations sur la machine virtuelle Java : OpenJDK 64-Bit Server VM > (build 25.181-b13, mixed mode) > Sp?cifications du fabricant : Oracle Corporation > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Mon Aug 27 15:31:31 2018 From: rouxph.22 at gmail.com (philippe) Date: Mon, 27 Aug 2018 15:31:31 +0200 Subject: [Scilab-users] save and *.sod broken in scilab6 ? In-Reply-To: References: Message-ID: Le 27/08/2018 ? 12:24, Samuel Gougeon a ?crit?: > Hello Philippe, > > No problem for me. > You may have used listvarinfile() at a moment during your trials or work. no Samuel, the file val.sod doesn't exists in the directory, save don't create the file due to the error. Perhaps the bug could depend on operating system ? Best regards, Philippe From amonmayr at laas.fr Mon Aug 27 15:38:35 2018 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Mon, 27 Aug 2018 15:38:35 +0200 Subject: [Scilab-users] save and *.sod broken in scilab6 ? In-Reply-To: References: Message-ID: <7cf9c109-7a09-99d3-fa5a-82c087088a4b@laas.fr> Hello Philippe, I just tried it at Le 27/08/2018 ? 10:51, philippe a ?crit?: > Hi, > > Running the example of man page for "save" to create an *.sod file > yields an error in scilab-6.0.1 and ubuntu 18.04 (see below) . > It looks like there is no report for this bug on bugzilla ? > > Best regards, > Philippe. > > -> a=eye(2,2);b=ones(a); > > --> save("val.sod", "a", "b"); > > save : Impossible d'exporter la variable 'a' dans le fichier 'val.sod'. > > --> clear a > > --> clear b > > --> load("val.sod", "a", "b"); > > load : Impossible d'ouvrir le fichier 'val.sod'. > > > > Version de Scilab : 6.0.1.1518683525 > Syst?me d'exploitation : Linux 4.15.0-33-generic > Version Java : 1.8.0_181 > Informations sur l'environnement d'ex?cution Java : OpenJDK Runtime > Environment (build 1.8.0_181-8u181-b13-0ubuntu0.18.04.1-b13) > Informations sur la machine virtuelle Java : OpenJDK 64-Bit Server VM > (build 25.181-b13, mixed mode) > Sp?cifications du fabricant : Oracle Corporation > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From sgougeon at free.fr Mon Aug 27 15:39:30 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 27 Aug 2018 15:39:30 +0200 Subject: [Scilab-users] save and *.sod broken in scilab6 ? In-Reply-To: References: Message-ID: Le 27/08/2018 ? 15:31, philippe a ?crit : > Le 27/08/2018 ? 12:24, Samuel Gougeon a ?crit : >> Hello Philippe, >> >> No problem for me. >> You may have used listvarinfile() at a moment during your trials or work. > no Samuel, the file val.sod doesn't exists in the directory, save don't > create the file due to the error. > > Perhaps the bug could depend on operating system ? Have you tried a=eye(2,2);b=ones(a); save(TMPDIR+"/val.sod", "a", "b"); ? From amonmayr at laas.fr Mon Aug 27 15:41:43 2018 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Mon, 27 Aug 2018 15:41:43 +0200 Subject: [Scilab-users] save and *.sod broken in scilab6 ? In-Reply-To: References: Message-ID: <9ffa1141-8707-5460-30d0-ddbe9935285b@laas.fr> Hello Philippe, (Sorry for the previous email, I send it by accident) I just tried it under 16.04: no issue, but I confirm the bug under 18.04. I have exactly the same issue than you. So it seems related to Ubuntu 18.04. Antoine Le 27/08/2018 ? 15:31, philippe a ?crit?: > Le 27/08/2018 ? 12:24, Samuel Gougeon a ?crit?: >> Hello Philippe, >> >> No problem for me. >> You may have used listvarinfile() at a moment during your trials or work. > no Samuel, the file val.sod doesn't exists in the directory, save don't > create the file due to the error. > > Perhaps the bug could depend on operating system ? > > Best regards, > Philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From antoine.monmayrant at laas.fr Mon Aug 27 15:47:55 2018 From: antoine.monmayrant at laas.fr (antoine monmayrant) Date: Mon, 27 Aug 2018 15:47:55 +0200 Subject: [Scilab-users] save and *.sod broken in scilab6 ? In-Reply-To: References: Message-ID: Le 27/08/2018 ? 15:39, Samuel Gougeon a ?crit?: > Le 27/08/2018 ? 15:31, philippe a ?crit : >> Le 27/08/2018 ? 12:24, Samuel Gougeon a ?crit : >>> Hello Philippe, >>> >>> No problem for me. >>> You may have used listvarinfile() at a moment during your trials or >>> work. >> no Samuel, the file val.sod doesn't exists in the directory, save don't >> create the file due to the error. >> >> Perhaps the bug could depend on operating system ? > > Have you tried > > a=eye(2,2);b=ones(a); > save(TMPDIR+"/val.sod", "a", "b"); I tried it and the problem is still present. It's an HDF5 problem. Here is my script: a=1;save(TMPDIR+"val.sod","a") Here is the error in the console: save : Impossible d'exporter la variable 'a' dans le fichier '/tmp/SCI_TMP_3234_HqbriAval.sod'. and here is the error message in the terminal: HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139709281875840: ? #000: ../../../src/H5G.c line 553 in H5Gget_info(): invalid argument ??? major: Invalid arguments to routine ??? minor: Bad value HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139709281875840: ? #000: ../../../src/H5D.c line 121 in H5Dcreate2(): not a location ID ??? major: Invalid arguments to routine ??? minor: Inappropriate type ? #001: ../../../src/H5Gloc.c line 253 in H5G_loc(): invalid object ID ??? major: Invalid arguments to routine ??? minor: Bad value HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139709281875840: ? #000: ../../../src/H5F.c line 749 in H5Fclose(): not a file ID ??? major: Invalid arguments to routine ??? minor: Inappropriate type failed to close file It seems to me that something is broken with hdf5 for 6.0.1 under 18.04. Philippe, could you report a bug? Cheers, Antoine > > ? > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Mon Aug 27 16:20:18 2018 From: antoine.monmayrant at laas.fr (antoine monmayrant) Date: Mon, 27 Aug 2018 16:20:18 +0200 Subject: [Scilab-users] save and *.sod broken in scilab6 ? In-Reply-To: References: Message-ID: <66a4d1fc-f6d7-f203-a086-fd165c474421@laas.fr> OK, here is what I did: - in scilab-master-1534776009: OK ??? a=1; save("val.sod", "a");listvarinfile("val.sod");clear a;load("val.sod");disp(a); - in scilab 6.0.1 : NOK ??? a=1; save("val.sod", "a");listvarinfile("val.sod");clear a;load("val.sod");disp(a); ??? save : Impossible d'exporter la variable 'a' dans le fichier 'val.sod'. HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 140037156050816: ? #000: ../../../src/H5G.c line 553 in H5Gget_info(): invalid argument ??? major: Invalid arguments to routine ??? minor: Bad value HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 140037156050816: ? #000: ../../../src/H5D.c line 121 in H5Dcreate2(): not a location ID ??? major: Invalid arguments to routine ??? minor: Inappropriate type ? #001: ../../../src/H5Gloc.c line 253 in H5G_loc(): invalid object ID ??? major: Invalid arguments to routine ??? minor: Bad value HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 140037156050816: ? #000: ../../../src/H5F.c line 749 in H5Fclose(): not a file ID ??? major: Invalid arguments to routine ??? minor: Inappropriate type failed to close file - in scilab 6.0.0 : NOK (other bug): ./scilab-6.0.0/bin/scilab Cannot find this look and feel: [GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this platform Segmentation fault (core dumped) Le 27/08/2018 ? 15:47, antoine monmayrant a ?crit?: > > > Le 27/08/2018 ? 15:39, Samuel Gougeon a ?crit?: >> Le 27/08/2018 ? 15:31, philippe a ?crit : >>> Le 27/08/2018 ? 12:24, Samuel Gougeon a ?crit : >>>> Hello Philippe, >>>> >>>> No problem for me. >>>> You may have used listvarinfile() at a moment during your trials or >>>> work. >>> no Samuel, the file val.sod doesn't exists in the directory, save don't >>> create the file due to the error. >>> >>> Perhaps the bug could depend on operating system ? >> >> Have you tried >> >> a=eye(2,2);b=ones(a); >> save(TMPDIR+"/val.sod", "a", "b"); > I tried it and the problem is still present. It's an HDF5 problem. > Here is my script: > > ?? a=1;save(TMPDIR+"val.sod","a") > > > Here is the error in the console: > > ?? save : Impossible d'exporter la variable 'a' dans le fichier > ?? '/tmp/SCI_TMP_3234_HqbriAval.sod'. > > > and here is the error message in the terminal: > > ?? HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread > ?? 139709281875840: > ??? ? #000: ../../../src/H5G.c line 553 in H5Gget_info(): invalid > argument > ??? ??? major: Invalid arguments to routine > ??? ??? minor: Bad value > ?? HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread > ?? 139709281875840: > ??? ? #000: ../../../src/H5D.c line 121 in H5Dcreate2(): not a > location ID > ??? ??? major: Invalid arguments to routine > ??? ??? minor: Inappropriate type > ??? ? #001: ../../../src/H5Gloc.c line 253 in H5G_loc(): invalid > object ID > ??? ??? major: Invalid arguments to routine > ??? ??? minor: Bad value > ?? HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread > ?? 139709281875840: > ??? ? #000: ../../../src/H5F.c line 749 in H5Fclose(): not a file ID > ??? ??? major: Invalid arguments to routine > ??? ??? minor: Inappropriate type > ?? failed to close file > > It seems to me that something is broken with hdf5 for 6.0.1 under 18.04. > Philippe, could you report a bug? > > Cheers, > > Antoine > > >> >> ? >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Mon Aug 27 16:24:34 2018 From: antoine.monmayrant at laas.fr (antoine monmayrant) Date: Mon, 27 Aug 2018 16:24:34 +0200 Subject: [Scilab-users] save and *.sod broken in scilab6 ? In-Reply-To: <66a4d1fc-f6d7-f203-a086-fd165c474421@laas.fr> References: <66a4d1fc-f6d7-f203-a086-fd165c474421@laas.fr> Message-ID: Hello again, It seems to be corrected in the nightly build of the 6.0 branch : no problem with scilab-branch-6.0-1534494461 Antoine From rouxph.22 at gmail.com Mon Aug 27 18:29:31 2018 From: rouxph.22 at gmail.com (philippe) Date: Mon, 27 Aug 2018 18:29:31 +0200 Subject: [Scilab-users] save and *.sod broken in scilab6 ? In-Reply-To: References: Message-ID: Le 27/08/2018 ? 15:47, antoine monmayrant a ?crit?: > > > > and here is the error message in the terminal: > > HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread > 139709281875840: > ? #000: ../../../src/H5G.c line 553 in H5Gget_info(): invalid argument > ??? major: Invalid arguments to routine > ??? minor: Bad value I've the same messages about hdf5 problems. > > It seems to me that something is broken with hdf5 for 6.0.1 under 18.04. > Philippe, could you report a bug? it's done : http://bugzilla.scilab.org/show_bug.cgi?id=15738 Best regards, Philippe From vincent.simoes.ens at gmail.com Mon Aug 27 18:47:31 2018 From: vincent.simoes.ens at gmail.com (DrVS) Date: Mon, 27 Aug 2018 09:47:31 -0700 (MST) Subject: [Scilab-users] ATOMS error Scilab 5.5.2 In-Reply-To: References: <1534512773274-0.post@n3.nabble.com> <1534935471315-0.post@n3.nabble.com> <83fae86b-8217-fd03-5096-4b88be7472e2@free.fr> <1535021587683-0.post@n3.nabble.com> Message-ID: <1535388451532-0.post@n3.nabble.com> Hello Samuel, Thank you for your answer. After your suggestion, i've try again (with lot of hope) with the right version and file. For example, this one : https://atoms.scilab.org/toolboxes/CPGE/1.6.1 But, i still have an error 1000... /-->atomsInstall("C:\Users\vince\Downloads\CPGE_1.6.1_5.5-1.bin.zip") Scanning repository http://atoms.scilab.org/5.5 ... Done !--error 10000 atomsDESCRIPTIONread: The file "C:\Users\vince\AppData\Local\Temp\SCI_TMP_16512_\.atoms\1_TOOLBOXES" is empty. at line 56 of function atomsDESCRIPTIONread called by : at line 227 of function atomsDESCRIPTIONget called by : at line 227 of function atomsInstall called by : atomsInstall("C:\Users\vince\Downloads\CPGE_1.6.1_5.5-1.bin.zip")/ I've tried with other module like SIMM or Coselica, but also without success. Maybe there is something to do with "temp" file ? Thank you for your help ! -- VS -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Mon Aug 27 20:20:39 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 27 Aug 2018 20:20:39 +0200 Subject: [Scilab-users] ATOMS error Scilab 5.5.2 In-Reply-To: <1535388451532-0.post@n3.nabble.com> References: <1534512773274-0.post@n3.nabble.com> <1534935471315-0.post@n3.nabble.com> <83fae86b-8217-fd03-5096-4b88be7472e2@free.fr> <1535021587683-0.post@n3.nabble.com> <1535388451532-0.post@n3.nabble.com> Message-ID: <09328849-e0ee-bd8d-d20f-ae492730f882@free.fr> Le 27/08/2018 ? 18:47, DrVS a ?crit : > Hello Samuel, > > Thank you for your answer. > > After your suggestion, i've try again (with lot of hope) with the right > version and file. > For example, this one : https://atoms.scilab.org/toolboxes/CPGE/1.6.1 > > But, i still have an error 1000... > > /-->atomsInstall("C:\Users\vince\Downloads\CPGE_1.6.1_5.5-1.bin.zip") > Scanning repository http://atoms.scilab.org/5.5 ... Done OK, i am also very surprised by this behavior. It is due to the fact that ATOMS must be set in offline mode first. To me, this should be the default mode when a file is provided. But when actually trying with CPGE, i understand why it is not the case. Let's do it with Coselica. It is simpler, because it has no dependency. To set ATOMS in offline mode we do: --> atomsSetConfig offline True Then we download the right Coselica zipped binary file, and we install it: --> atomsInstall coselica_0.6.4-0.bin.zip I have tried it: It fails !! The ATOMS client tries to download something on the web, in *an infinite loop*! When trying, it comes that this module is badly packaged. Noticeably, it has no loader.sce file! So, even if its installation was easy, it could not be loaded. So, the last old solution is the following: * Uncompress yourself coselica_0.6.4-0.bin.zip * Put the coselica_0.6.4 directory in the SCI/contrib one. * In the coselica_0.6.4, add a file loader.sce with the following content: // This file is released under the 3-clause BSD license. See COPYING-BSD. // Generated by builder.sce: Please, do not edit this file try getversion("scilab"); catch error("Scilab 5.0 or more is required."); end; exec(get_absolute_file_path("loader.sce")+"etc/"+"coselica.start"); * exit Scilab and restart a Scilab 5.5.2 session * Then, you will see "Coselica_6.0.4" in the Console's Toolboxes menu. Selects it * This loads Coselica. At last! Unfortunately, * The package does not load properly : an error occurs while loading: !--error 10000 xcosPalAddBlock: Wrong type for input argument "block": function as string or Block type or full path string expected. So, i guess that the 36329 downloads of this version were 36329 failures... To me, not providing a loader.sce means that this package must NOT be used... The 0.6.6 version looks well-packaged, for Scilab 6. At least, it has a loader. ---------- For CPGE: This module depends on the "iodelay" module (this is indicated in its online description). This means that you must install iodelay first. Otherwise, ATOMS with see that you don't have it, and will try to find it *online*, *even in offline mode*. Finally, it display an error message in the console about the fact that iodelay is missing. This is also the ATOMS client behavior in Scilab 6.0. In my opinion, it is not correct: A warning message should be displayed in the console, and the installation stopped, without error. offline means offline. So, try it: install iodelay. And then instal CPGE, and try to load it. It should be OK. It has a right loader.sce, that calls it .start file. HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Aug 27 21:09:39 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 27 Aug 2018 21:09:39 +0200 Subject: [Scilab-users] ATOMS error Scilab 5.5.2 In-Reply-To: <09328849-e0ee-bd8d-d20f-ae492730f882@free.fr> References: <1534512773274-0.post@n3.nabble.com> <1534935471315-0.post@n3.nabble.com> <83fae86b-8217-fd03-5096-4b88be7472e2@free.fr> <1535021587683-0.post@n3.nabble.com> <1535388451532-0.post@n3.nabble.com> <09328849-e0ee-bd8d-d20f-ae492730f882@free.fr> Message-ID: Le 27/08/2018 ? 20:20, Samuel Gougeon a ?crit : > ../... > ---------- > > For CPGE: This module depends on the "iodelay" module (this is > indicated in its online description). > This means that you must install iodelay first. Otherwise, ATOMS with > see that you don't have it, and will try to find it *online*, *even in > offline mode*. Finally, it display an error message in the console > about the fact that iodelay is missing. > This is also the ATOMS client behavior in Scilab 6.0. In my opinion, > it is not correct: A warning message should be displayed in the > console, and the installation stopped, without error. offline means > offline. > > So, try it: install iodelay. And then instal CPGE, and try to load it. > It should be OK. It has a right loader.sce, that calls it .start file. A way to do it more easily is to put the iodelay AND the CPGE zip files together in SCI/contrib/archives. Then, do as usual, in offline mode --> atomsInstall CPGE and hope that atoms won't try to get anything online... When requiring iodelay, it should automatically probe the archives directory to find its zip file. If you don't have any administration rights to write in the SCI directory, you might put zips in the SCIHOME/contrib/archives directory instead (unchecked). -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.simoes.ens at gmail.com Mon Aug 27 21:23:10 2018 From: vincent.simoes.ens at gmail.com (DrVS) Date: Mon, 27 Aug 2018 12:23:10 -0700 (MST) Subject: [Scilab-users] ATOMS error Scilab 5.5.2 In-Reply-To: <09328849-e0ee-bd8d-d20f-ae492730f882@free.fr> References: <1534512773274-0.post@n3.nabble.com> <1534935471315-0.post@n3.nabble.com> <83fae86b-8217-fd03-5096-4b88be7472e2@free.fr> <1535021587683-0.post@n3.nabble.com> <1535388451532-0.post@n3.nabble.com> <09328849-e0ee-bd8d-d20f-ae492730f882@free.fr> Message-ID: <1535397790007-0.post@n3.nabble.com> Samuel, thank you a lot for all your investigation. I've succeed to install all the modules that I wanted. *And everything works well.* Yes ! It was more easy that i expected : i dind't have to create a loader file or uncompressed some file. I've just have to put in offline mode as you say and i also launch Scilab with "administrator mode". So, i've succeed to instal (in order) : iodelay coselica SIMM CPGE Thank you again for all your help. -- VS -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From rouxph.22 at gmail.com Thu Aug 30 09:32:36 2018 From: rouxph.22 at gmail.com (philippe) Date: Thu, 30 Aug 2018 09:32:36 +0200 Subject: [Scilab-users] slash (/) help page confusing ? Message-ID: Hi before scilab6 there was some ambiguity between 1/B=1./B=(1.)/B since 1. = 1 for floating point real numbers. We can see that this problem is solved now : --> B=1:3 B = 1. 2. 3. --> 1./B ans = 1. 0.5 0.3333333 --> 1/B ans = 0.0714286 0.1428571 0.2142857 but in the help page it is written that "X=A/B is the solution of X*B=A" this false for A=1 and B=1:3 as you can see : --> B*(1/B) // =1 !!!! ans = 1. --> (1/B)*B // should be 1 ? ans = 0.0714286 0.1428571 0.2142857 0.1428571 0.2857143 0.4285714 0.2142857 0.4285714 0.6428571 but this is true for general matrix --> A=[1 2 ; 3 4] A = 1. 2. 3. 4. --> B=[4 5 ; 6 7] B = 4. 5. 6. 7. --> B*(A/B) // sould be A ? ans = 17.5 -8.5 25.5 -12.5 --> (A/B)*B // =A ans = 1. 2. 3. 4. this looks confusing ? Best regards, Philippe From stephane.mottelet at utc.fr Thu Aug 30 09:42:03 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 30 Aug 2018 09:42:03 +0200 Subject: [Scilab-users] slash (/) help page confusing ? In-Reply-To: References: Message-ID: <14f7f993-9939-cd27-d53b-674ad0048c42@utc.fr> Le 30/08/2018 ? 09:32, philippe a ?crit?: > Hi > > before scilab6 there was some ambiguity between 1/B=1./B=(1.)/B since > 1. = 1 for floating point real numbers. We can see that this problem is > solved now : > > > --> B=1:3 > B = > > 1. 2. 3. > > > --> 1./B > ans = > > 1. 0.5 0.3333333 > > > --> 1/B > ans = > > 0.0714286 > 0.1428571 > 0.2142857 > > but in the help page it is written that "X=A/B is the solution of X*B=A" > this false for A=1 and B=1:3 as you can see : > > > --> B*(1/B) // =1 !!!! > ans = > > 1. > > > --> (1/B)*B // should be 1 ? > ans = > > 0.0714286 0.1428571 0.2142857 > 0.1428571 0.2857143 0.4285714 > 0.2142857 0.4285714 0.6428571 > > but this is true for general matrix > > --> A=[1 2 ; 3 4] > A = > > 1. 2. > 3. 4. > > > --> B=[4 5 ; 6 7] > B = > > 4. 5. > 6. 7. > > > --> B*(A/B) // sould be A ? > ans = > > 17.5 -8.5 > 25.5 -12.5 > > > --> (A/B)*B // =A > ans = > > 1. 2. > 3. 4. > > > this looks confusing ? No. For square A, B, invertible B, "A/B" means "A*inv(B)", hence B*(A/B)=B*A*inv(B) cannot be equal to A (matrix product is not commutative) S. > > Best regards, > Philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From rouxph.22 at gmail.com Thu Aug 30 10:03:37 2018 From: rouxph.22 at gmail.com (philippe) Date: Thu, 30 Aug 2018 10:03:37 +0200 Subject: [Scilab-users] slash (/) help page confusing ? In-Reply-To: <14f7f993-9939-cd27-d53b-674ad0048c42@utc.fr> References: <14f7f993-9939-cd27-d53b-674ad0048c42@utc.fr> Message-ID: Le 30/08/2018 ? 09:42, St?phane Mottelet a ?crit?: > Le 30/08/2018 ? 09:32, philippe a ?crit?: >> >> [...] >> but in the help page it is written that "X=A/B is the solution of X*B=A" > > > For square A, B, invertible B, "A/B" means "A*inv(B)", hence > B*(A/B)=B*A*inv(B) cannot be equal to A (matrix product is not commutative) I know this but for non-square matrices scilab use the opposite convention, IMHO it's confusing, and the case of a scalar in the help page doesn't mention this change. the help page should be updated. Best regards, Philippe From stephane.mottelet at utc.fr Thu Aug 30 10:22:39 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 30 Aug 2018 10:22:39 +0200 Subject: [Scilab-users] slash (/) help page confusing ? In-Reply-To: References: <14f7f993-9939-cd27-d53b-674ad0048c42@utc.fr> Message-ID: <04c93592-64e8-4e7f-a0f8-30f27a03d13b@utc.fr> Le 30/08/2018 ? 10:03, philippe a ?crit?: > Le 30/08/2018 ? 09:42, St?phane Mottelet a ?crit?: >> Le 30/08/2018 ? 09:32, philippe a ?crit?: >>> >>> [...] >>> but in the help page it is written that "X=A/B is the solution of X*B=A" >> >> For square A, B, invertible B, "A/B" means "A*inv(B)", hence >> B*(A/B)=B*A*inv(B) cannot be equal to A (matrix product is not commutative) > I know this but for non-square matrices scilab use the opposite > convention, OK. To me, the / operator does not correctly check the compatibility of respective dimensions of A and B. The statements: A=1; B=[1 2 3]; X=A/B should raise an error because A and B must have the same number of columns if the equality X*B=A has to make sense. With the following statements A=1; B=[1 2 3]'; X=A/B X*B we get a coherent result: --> X=A/B ?X? = ?? 0.?? 0.?? 0.3333333 --> X*B ?ans? = ?? 1. S. > IMHO it's confusing, and the case of a scalar in the help > page doesn't mention this change. the help page should be updated. > > Best regards, > > Philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From stephane.mottelet at utc.fr Thu Aug 30 10:34:08 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 30 Aug 2018 10:34:08 +0200 Subject: [Scilab-users] slash (/) help page confusing ? In-Reply-To: <04c93592-64e8-4e7f-a0f8-30f27a03d13b@utc.fr> References: <14f7f993-9939-cd27-d53b-674ad0048c42@utc.fr> <04c93592-64e8-4e7f-a0f8-30f27a03d13b@utc.fr> Message-ID: Le 30/08/2018 ? 10:22, St?phane Mottelet a ?crit?: > Le 30/08/2018 ? 10:03, philippe a ?crit?: >> Le 30/08/2018 ? 09:42, St?phane Mottelet a ?crit?: >>> Le 30/08/2018 ? 09:32, philippe a ?crit?: >>>> ? [...] >>>> but in the help page it is written that "X=A/B is the solution of >>>> X*B=A" >>> >>> For square A, B, invertible B, "A/B" means "A*inv(B)", hence >>> B*(A/B)=B*A*inv(B) cannot be equal to A (matrix product is not >>> commutative) >> I know this but for non-square matrices scilab use the opposite >> convention, > OK. To me, the / operator does not correctly check the compatibility > of respective dimensions of A and B. The statements: > > A=1; > B=[1 2 3]; > X=A/B > > should raise an error because A and B must have the same number of > columns if the equality X*B=A has to make sense. > > With the following statements > > A=1; > B=[1 2 3]'; > X=A/B > X*B > > we get a coherent result: > > --> X=A/B > ?X? = > > ?? 0.?? 0.?? 0.3333333 > > --> X*B > ?ans? = > > ?? 1. > > S. in Matlab, dimensions are correctly checked: >> 1/[1 2 3] Error using? / Matrix dimensions must agree. Bug created @ http://bugzilla.scilab.org/show_bug.cgi?id=15746 S. >> IMHO it's confusing, and the case of a scalar in the help >> page doesn't mention this change. the help page should be updated. >> >> Best regards, >> >> Philippe >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >> > > -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From rouxph.22 at gmail.com Thu Aug 30 10:57:05 2018 From: rouxph.22 at gmail.com (philippe) Date: Thu, 30 Aug 2018 10:57:05 +0200 Subject: [Scilab-users] slash (/) help page confusing ? In-Reply-To: References: <14f7f993-9939-cd27-d53b-674ad0048c42@utc.fr> <04c93592-64e8-4e7f-a0f8-30f27a03d13b@utc.fr> Message-ID: Le 30/08/2018 ? 10:34, St?phane Mottelet a ?crit?: > in Matlab, dimensions are correctly checked: > >>> 1/[1 2 3] > Error using? / > Matrix dimensions must agree. > > Bug created @ http://bugzilla.scilab.org/show_bug.cgi?id=15746 this looks more coherent ! For a column vector A the behavior of 1/A 1./A is now coherent. Philippe From heinznabielek at me.com Thu Aug 30 17:51:25 2018 From: heinznabielek at me.com (Heinz Nabielek) Date: Thu, 30 Aug 2018 17:51:25 +0200 Subject: [Scilab-users] Any chance SciLab 6 operational again under macOS 10.14? In-Reply-To: References: <14f7f993-9939-cd27-d53b-674ad0048c42@utc.fr> <04c93592-64e8-4e7f-a0f8-30f27a03d13b@utc.fr> Message-ID: <3035817F-D4D6-45AA-8BF7-E360852C7707@me.com> System Version: macOS 10.14 (18A377a) Kernel Version: Darwin 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:59:21 PDT 2018; root:xnu-4903.201.2~4/RELEASE_X86_64 x86_64 Apple LLVM version 9.1.0 (clang-902.0.39.2) Target: x86_64-apple-darwin18.0.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin Any chance SciLab 6 operational again under macOS 10.14? Heinz From stephane.mottelet at utc.fr Thu Aug 30 21:40:02 2018 From: stephane.mottelet at utc.fr (stephane.mottelet at utc.fr) Date: Thu, 30 Aug 2018 21:40:02 +0200 Subject: [Scilab-users] Any chance SciLab 6 operational again under macOS 10.14? In-Reply-To: <3035817F-D4D6-45AA-8BF7-E360852C7707@me.com> References: <14f7f993-9939-cd27-d53b-674ad0048c42@utc.fr> <04c93592-64e8-4e7f-a0f8-30f27a03d13b@utc.fr> <3035817F-D4D6-45AA-8BF7-E360852C7707@me.com> Message-ID: <20180830214002.Horde.p5a9pBKdwqV9JQjzUxWLfMi@webmail.utc.fr> Heinz Nabielek a ?crit?: > System Version:? ? ? ? macOS 10.14 (18A377a) > Kernel Version:? ? ? ? Darwin 18.0.0 > Darwin Kernel Version 18.0.0: Wed Aug 22 20:59:21 PDT 2018; > root:xnu-4903.201.2~4/RELEASE_X86_64 x86_64 > Apple LLVM version 9.1.0 (clang-902.0.39.2) > Target: x86_64-apple-darwin18.0.0 > Thread model: posix > InstalledDir: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin[1] > > Any chance SciLab 6 operational again under macOS 10.14? > Heinz > _______________________________________________ > users mailing list > users at lists.scilab.orghttps://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users Hello, Tonight I installed the latest Mojave beta on a second partition of my Mac Book disk and were able to run Scilab. Here is how I proceeded: 1-The OS has been installed on a new partition without any old data import 2-I installed the command line tools (open a Terminal the type "make" to trigger the download/install) 3-Downloaded the official 6.0.1 for OSX from scilab.org and move the app in /Applications 4-Deleted some libraries bundled by Scilab: $ ?rm /Applications/scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib $ ?rm /Applications/scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libz.* 5-Commented out the line??774 in /Applications/scilab-6.0.1.app/Contents/MacOS/bin/scilab ? ? ? ? ? ? ? ? ? ? ? #fail_macosx_version 6-Launched Scilab from its icon. At first run, you will be asked to install Java 1.6 See the attached screenshot. S. Liens: ------ [1] http://Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture d??cran 2018-08-30 ? 21.19.04.jpg Type: image/jpeg Size: 71609 bytes Desc: not available URL: From stephane.mottelet at utc.fr Thu Aug 30 21:48:07 2018 From: stephane.mottelet at utc.fr (stephane.mottelet at utc.fr) Date: Thu, 30 Aug 2018 21:48:07 +0200 Subject: [Scilab-users] Any chance SciLab 6 operational again under macOS 10.14? In-Reply-To: <20180830214002.Horde.p5a9pBKdwqV9JQjzUxWLfMi@webmail.utc.fr> References: <14f7f993-9939-cd27-d53b-674ad0048c42@utc.fr> <04c93592-64e8-4e7f-a0f8-30f27a03d13b@utc.fr> <3035817F-D4D6-45AA-8BF7-E360852C7707@me.com> <20180830214002.Horde.p5a9pBKdwqV9JQjzUxWLfMi@webmail.utc.fr> Message-ID: <20180830214807.Horde.10r87qzhcw9xW9_qdKHfFAJ@webmail.utc.fr> stephane.mottelet at utc.fr a ?crit?: > Heinz Nabielek a ?crit?: > >> System Version:? ? ? ? macOS 10.14 (18A377a) >> Kernel Version:? ? ? ? Darwin 18.0.0 >> Darwin Kernel Version 18.0.0: Wed Aug 22 20:59:21 PDT 2018; >> root:xnu-4903.201.2~4/RELEASE_X86_64 x86_64 >> Apple LLVM version 9.1.0 (clang-902.0.39.2) >> Target: x86_64-apple-darwin18.0.0 >> Thread model: posix >> InstalledDir: >> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin[1] >> >> Any chance SciLab 6 operational again under macOS 10.14? >> Heinz >> _______________________________________________ >> users mailing list >> users at lists.scilab.orghttps://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > > Hello, > > Tonight I installed the latest Mojave beta on a second partition of > my Mac Book disk and were able to run Scilab. Here is how I proceeded: > > 1-The OS has been installed on a new partition without any old data import > 2-I installed the command line tools (open a Terminal the type > "make" to trigger the download/install) > 3-Downloaded the official 6.0.1 for OSX from scilab.org and move the > app in /Applications > 4-Deleted some libraries bundled by Scilab: > > $ ?rm > /Applications/scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib > $ ?rm /Applications/scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libz.* > > 5-Commented out the line??774 in > /Applications/scilab-6.0.1.app/Contents/MacOS/bin/scilab > ? > > ? ? ? ? ? ? ? ? ? ? #fail_macosx_version > ? > 6-Launched Scilab from its icon. At first run, you will be asked > to install Java 1.6 > > See the attached screenshot. > > S. > > ? I forgot to say something in step 5. Change Line 803 as follows (add 14, the OSX minor version number) ? ? ? ? ? ? ? ? 10|11|12|13|14) S. Liens: ------ [1] https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Fri Aug 31 00:23:44 2018 From: heinznabielek at me.com (Heinz Nabielek) Date: Fri, 31 Aug 2018 00:23:44 +0200 Subject: [Scilab-users] Any chance SciLab 6 operational again under macOS 10.14? In-Reply-To: <20180830214807.Horde.10r87qzhcw9xW9_qdKHfFAJ@webmail.utc.fr> References: <14f7f993-9939-cd27-d53b-674ad0048c42@utc.fr> <04c93592-64e8-4e7f-a0f8-30f27a03d13b@utc.fr> <3035817F-D4D6-45AA-8BF7-E360852C7707@me.com> <20180830214002.Horde.p5a9pBKdwqV9JQjzUxWLfMi@webmail.utc.fr> <20180830214807.Horde.10r87qzhcw9xW9_qdKHfFAJ@webmail.utc.fr> Message-ID: <3809BAE2-75E2-4691-8829-75B3E406DCD9@me.com> I have the Scilab 6.0.1 icon in the dock, but still does not startup. Java 1.6 also a problem, because "newer version is already installed". From the command line, I get the messages as below... /Applications/scilab-6.0.1.app/Contents/MacOS/bin/scilab -nw dyld: Symbol not found: _double_general_add Referenced from: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib Expected in: /libBLAS.dylib in /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib /Applications/scilab-6.0.1.app/Contents/MacOS/bin/scilab: line 972: 1137 Abort trap: 6 "$SCILABBIN" "$@" > On 30.08.2018, at 21:48, Stephane.Mottelet at utc.fr wrote: > > stephane.mottelet at utc.fr a ?crit : > >> Heinz Nabielek a ?crit : >> >>> System Version: macOS 10.14 (18A377a) >>> Kernel Version: Darwin 18.0.0 >>> Darwin Kernel Version 18.0.0: Wed Aug 22 20:59:21 PDT 2018; root:xnu-4903.201.2~4/RELEASE_X86_64 x86_64 >>> Apple LLVM version 9.1.0 (clang-902.0.39.2) >>> Target: x86_64-apple-darwin18.0.0 >>> Thread model: posix >>> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin >>> >>> Any chance SciLab 6 operational again under macOS 10.14? >>> Heinz >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.orghttps://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >>> >> >> Hello, >> >> Tonight I installed the latest Mojave beta on a second partition of my Mac Book disk and were able to run Scilab. Here is how I proceeded: >> >> 1-The OS has been installed on a new partition without any old data import >> 2-I installed the command line tools (open a Terminal the type "make" to trigger the download/install) >> 3-Downloaded the official 6.0.1 for OSX from scilab.org and move the app in /Applications >> 4-Deleted some libraries bundled by Scilab: >> >> $ rm /Applications/scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib >> $ rm /Applications/scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libz.* >> >> 5-Commented out the line 774 in /Applications/scilab-6.0.1.app/Contents/MacOS/bin/scilab >> >> >> #fail_macosx_version >> >> >> 6-Launched Scilab from its icon. At first run, you will be asked to install Java 1.6 >> >> See the attached screenshot. >> >> S. >> > > I forgot to say something in step 5. Change Line 803 as follows (add 14, the OSX minor version number) > > 10|11|12|13|14) > > S. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From stephane.mottelet at utc.fr Fri Aug 31 08:23:00 2018 From: stephane.mottelet at utc.fr (stephane.mottelet at utc.fr) Date: Fri, 31 Aug 2018 08:23:00 +0200 Subject: [Scilab-users] Any chance SciLab 6 operational again under macOS 10.14? In-Reply-To: <3809BAE2-75E2-4691-8829-75B3E406DCD9@me.com> References: <14f7f993-9939-cd27-d53b-674ad0048c42@utc.fr> <04c93592-64e8-4e7f-a0f8-30f27a03d13b@utc.fr> <3035817F-D4D6-45AA-8BF7-E360852C7707@me.com> <20180830214002.Horde.p5a9pBKdwqV9JQjzUxWLfMi@webmail.utc.fr> <20180830214807.Horde.10r87qzhcw9xW9_qdKHfFAJ@webmail.utc.fr> <3809BAE2-75E2-4691-8829-75B3E406DCD9@me.com> Message-ID: <20180831082300.Horde.p8bL2lA3c5LFTepstLhfALo@webmail.utc.fr> Hello, It seems that you still have a?libBLAS.dylib file in / Please confirm that with a $ ls -l / If confirmed, delete this file. S. Heinz Nabielek a ?crit?: > I have the Scilab 6.0.1 icon in the dock, but still does not > startup. Java 1.6 also a problem, because "newer version is already > installed". > > From the command line, I get the messages as below... > > /Applications/scilab-6.0.1.app/Contents/MacOS/bin/scilab[1] -nw > > dyld: Symbol not found: _double_general_add > Referenced from: > /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib > Expected in: /libBLAS.dylib > in > /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib > /Applications/scilab-6.0.1.app/Contents/MacOS/bin/scilab[1]: line > 972:? 1137 Abort trap: 6? ? ? ? ? ?"$SCILABBIN" "$@" > >> On 30.08.2018, at 21:48, Stephane.Mottelet at utc.fr wrote: >> >> stephane.mottelet at utc.fr a ?crit : >> >>> Heinz Nabielek a ?crit : >>> >>>> System Version:? ? ? ? macOS 10.14 (18A377a) >>>> Kernel Version:? ? ? ? Darwin 18.0.0 >>>> Darwin Kernel Version 18.0.0: Wed Aug 22 20:59:21 PDT 2018; >>>> root:xnu-4903.201.2~4/RELEASE_X86_64 x86_64 >>>> Apple LLVM version 9.1.0 (clang-902.0.39.2) >>>> Target: x86_64-apple-darwin18.0.0 >>>> Thread model: posix >>>> InstalledDir: >>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin[2] >>>> >>>> Any chance SciLab 6 operational again under macOS 10.14? >>>> Heinz >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.orghttps://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >>> >>> Hello, >>> >>> Tonight I installed the latest Mojave beta on a second partition >>> of my Mac Book disk and were able to run Scilab. Here is how I >>> proceeded: >>> >>> 1-The OS has been installed on a new partition without any old data import >>> 2-I installed the command line tools (open a Terminal the type >>> "make" to trigger the download/install) >>> 3-Downloaded the official 6.0.1 for OSX from scilab.org and move >>> the app in /Applications >>> 4-Deleted some libraries bundled by Scilab: >>> >>> $? rm >>> /Applications/scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib[3] >>> $? rm >>> /Applications/scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libz.*[4] >>> >>> 5-Commented out the line? 774 in >>> /Applications/scilab-6.0.1.app/Contents/MacOS/bin/scilab[1] >>> >>> ? ? ? ? ? ? ? ? ? ? #fail_macosx_version >>> >>> 6-Launched Scilab from its icon. At first run, you will be asked >>> to install Java 1.6 >>> >>> See the attached screenshot. >>> >>> S. >> >> I forgot to say something in step 5. Change Line 803 as follows >> (add 14, the OSX minor version number) >> >> ? ? ? ? ? ? ? ? 10|11|12|13|14) >> >> S. >> _______________________________________________ >> users mailing list >> users at lists.scilab.orghttps://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > ? Liens: ------ [1] http://scilab-6.0.1.app/Contents/MacOS/bin/scilab [2] http://Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin [3] http://scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib [4] http://scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libz.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Fri Aug 31 12:25:32 2018 From: heinznabielek at me.com (Heinz Nabielek) Date: Fri, 31 Aug 2018 12:25:32 +0200 Subject: [Scilab-users] Any chance SciLab 6 operational again under macOS 10.14? In-Reply-To: <20180831082300.Horde.p8bL2lA3c5LFTepstLhfALo@webmail.utc.fr> References: <14f7f993-9939-cd27-d53b-674ad0048c42@utc.fr> <04c93592-64e8-4e7f-a0f8-30f27a03d13b@utc.fr> <3035817F-D4D6-45AA-8BF7-E360852C7707@me.com> <20180830214002.Horde.p5a9pBKdwqV9JQjzUxWLfMi@webmail.utc.fr> <20180830214807.Horde.10r87qzhcw9xW9_qdKHfFAJ@webmail.utc.fr> <3809BAE2-75E2-4691-8829-75B3E406DCD9@me.com> <20180831082300.Horde.p8bL2lA3c5LFTepstLhfALo@webmail.utc.fr> Message-ID: <3421CFCC-72BC-407D-97B5-89DD6A09BF03@me.com> Grandiose St?phane: everything working and sorry for being clumsy for a while.....Heinz --> [version, opts] = getversion() opts = !GCC x64 modelicac release Feb 15 2018 15:42:45 ! version = scilab-6.0.1 > On 31.08.2018, at 08:23, stephane.mottelet at utc.fr wrote: > > Hello, > > It seems that you still have a libBLAS.dylib file in / > > Please confirm that with a > > $ ls -l / > > If confirmed, delete this file. > > S. > > > Heinz Nabielek a ?crit : > >> I have the Scilab 6.0.1 icon in the dock, but still does not startup. Java 1.6 also a problem, because "newer version is already installed". >> >> From the command line, I get the messages as below... >> >> /Applications/scilab-6.0.1.app/Contents/MacOS/bin/scilab -nw >> >> dyld: Symbol not found: _double_general_add >> Referenced from: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib >> Expected in: /libBLAS.dylib >> in /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib >> /Applications/scilab-6.0.1.app/Contents/MacOS/bin/scilab: line 972: 1137 Abort trap: 6 "$SCILABBIN" "$@" >> >>> On 30.08.2018, at 21:48, Stephane.Mottelet at utc.fr wrote: >>> >>> stephane.mottelet at utc.fr a ?crit : >>> >>>> Heinz Nabielek a ?crit : >>>> >>>>> System Version: macOS 10.14 (18A377a) >>>>> Kernel Version: Darwin 18.0.0 >>>>> Darwin Kernel Version 18.0.0: Wed Aug 22 20:59:21 PDT 2018; root:xnu-4903.201.2~4/RELEASE_X86_64 x86_64 >>>>> Apple LLVM version 9.1.0 (clang-902.0.39.2) >>>>> Target: x86_64-apple-darwin18.0.0 >>>>> Thread model: posix >>>>> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin >>>>> >>>>> Any chance SciLab 6 operational again under macOS 10.14? >>>>> Heinz >>>>> _______________________________________________ >>>>> users mailing list >>>>> users at lists.scilab.orghttps://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >>>>> >>>> Hello, >>>> >>>> Tonight I installed the latest Mojave beta on a second partition of my Mac Book disk and were able to run Scilab. Here is how I proceeded: >>>> >>>> 1-The OS has been installed on a new partition without any old data import >>>> 2-I installed the command line tools (open a Terminal the type "make" to trigger the download/install) >>>> 3-Downloaded the official 6.0.1 for OSX from scilab.org and move the app in /Applications >>>> 4-Deleted some libraries bundled by Scilab: >>>> >>>> $ rm /Applications/scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib >>>> $ rm /Applications/scilab-6.0.1.app/Contents/MacOS/lib/thirdparty/libz.* >>>> >>>> 5-Commented out the line 774 in /Applications/scilab-6.0.1.app/Contents/MacOS/bin/scilab >>>> >>>> >>>> #fail_macosx_version >>>> >>>> >>>> 6-Launched Scilab from its icon. At first run, you will be asked to install Java 1.6 >>>> >>>> See the attached screenshot. >>>> >>>> S. >>> I forgot to say something in step 5. Change Line 803 as follows (add 14, the OSX minor version number) >>> >>> 10|11|12|13|14) >>> >>> S. >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.orghttps://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users