Re: [Scilab-users] Fetching the script path
Hi Samuel Thank you. It works ... (of course :-) ). Best regards, Claus On 30.09.2018 22:03, Samuel Gougeon wrote: Le 30/09/2018 à 20:59, Claus Futtrup a écrit : Hi Scilabers I have almost always included a neat piece of code in my Scilab scripts, so that I can later dump the plots into e.g. SVG or PNG files (script path is not write-protected). The code doesn't work anymore: // Extract the filename and path of this script: [units,typs,nams]=file(); // nams(1) = script file name incl. path fpathname=strsplit(nams(1), [filesep()]); // disp(b($-1)); scriptpath = get_absolute_file_path(fpathname($)); chdir(scriptpath); The above code returns an empty string in scriptpath. I'm using Scilab 6.0.1 (Windows 10) and I wonder what I should do instead? The following should work. In Scilab 6, file() additionally lists stderr as unit #0. Samuel [units,typs, nams]= file(); nams(find(units==0 | units==5 | units==6)) = []; scriptpath = fileparts(nams($),"path"); chdir(scriptpath); ___ users mailing list users@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 ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Punch a hole into a facet
Thanks Samuel, %nan works with surf, not with plot3d. The latter is attractive because it can handle polygons - but unfortunately not those with embayments: Facet coloring exeeds the contour (Vers. 5.5.2) I have to assemble my facet with several windos from partially overlapping rectangles Cheers Jens -- Am 01.10.2018 08:28, schrieb Samuel Gougeon: Hello Jens, %nan are often used to do so: As soon as at least one coordinate of a vertex is equal to %nan, the vertex and all lines and facets going through it are skipped/not rendered. HTH Samuel Le 30/09/2018 à 23:35, Jens Simon Strom a écrit : Hallo Scilab friends, Is there a way to punch a*peak through* hole into a rectangle? The result below looks like a hole but it is just white intransparent color. xdel(); xf=[1;-1;-1;1]; yf=[1;1;-1;-1]; zf=[0;0;0;0]; plot3d(xf,yf,list(zf,5))//Facet ce=gce(); ce.hiddencolor = 5; xf=0.5*[1;-1;-1;1]; yf=0.5*[1;1;-1;-1]; zf=[0;0;0;0]; plot3d(xf,yf,list(zf,8))//Hole ce=gce(); ce.hiddencolor = 8; Cheers Jens ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] export to Excel with several sheets
Hello, Under Matlab a contrib has interfaced poi java library, which has Apache license: https://fr.mathworks.com/matlabcentral/fileexchange/38591-xlwrite-generate-xls-x-files-without-excel-on-mac-linux-win This is just a matter of interfacing a Java class, which Scilab should be capable of. I have tried a little bit but did no managed to produce something that really works... S. Le 01/10/2018 à 12:27, Clément DAVID a écrit : Dear Paul, XLS_link [1] could be used to interact with Excel. This basically offer you the Excel OLE Automation API inside Scilab [2] and let you drive an Excel runtime using Scilab functions. Drawbacks : it requires an Excel licence and is Windows only. [1] : https://atoms.scilab.org/toolboxes/xls_link/ [2] https://support.microsoft.com/en-us/help/219151/how-to-automate-microsoft-excel-from-visual-basic Thanks, -- Clément *From:*users *On Behalf Of *Carrico, Paul *Sent:* Monday, October 1, 2018 11:20 AM *To:* International users mailing list for Scilab. (users@lists.scilab.org) *Subject:* [Scilab-users] export to Excel with several sheets Dear All I’m wondering if we can export matrixes from Scilab into Excel, in a single file but with several sheets? Obviously the csv format cannot be used here. Not sure that the (quite old now) XLL project answers to it (I’ve not seen any doc) Thanks Paul */EXPORT CONTROL : /**Cet email ne contient pas de données techniques This email does not contain technical data* ___ users mailing list users@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 ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] export to Excel with several sheets
Dear Paul, XLS_link [1] could be used to interact with Excel. This basically offer you the Excel OLE Automation API inside Scilab [2] and let you drive an Excel runtime using Scilab functions. Drawbacks : it requires an Excel licence and is Windows only. [1] : https://atoms.scilab.org/toolboxes/xls_link/ [2] https://support.microsoft.com/en-us/help/219151/how-to-automate-microsoft-excel-from-visual-basic Thanks, -- Clément From: users On Behalf Of Carrico, Paul Sent: Monday, October 1, 2018 11:20 AM To: International users mailing list for Scilab. (users@lists.scilab.org) Subject: [Scilab-users] export to Excel with several sheets Dear All I'm wondering if we can export matrixes from Scilab into Excel, in a single file but with several sheets? Obviously the csv format cannot be used here. Not sure that the (quite old now) XLL project answers to it (I've not seen any doc) Thanks Paul EXPORT CONTROL : Cet email ne contient pas de données techniques This email does not contain technical data ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
[Scilab-users] export to Excel with several sheets
Dear All I'm wondering if we can export matrixes from Scilab into Excel, in a single file but with several sheets? Obviously the csv format cannot be used here. Not sure that the (quite old now) XLL project answers to it (I've not seen any doc) Thanks Paul EXPORT CONTROL : Cet email ne contient pas de données techniques This email does not contain technical data ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Scilab 6.0.1 extremely slow on new (high-end) laptop
Hello, >From my knowledge, windows builds should be faster in the general case as the >MKL shipped with it has better optimizations (especially on Intel processors) >for numerical computing[1]. However, depending on your script there might be a >difference. For example, `host()` (process spawning) might be slower as it is >related to the way the OS work. [1]: https://wiki.scilab.org/Linalg%20performances Thanks, -- Clément -Original Message- From: users On Behalf Of Orbeaman Sent: Saturday, September 29, 2018 11:54 AM To: users@lists.scilab.org Subject: [Scilab-users] Scilab 6.0.1 extremely slow on new (high-end) laptop Hello, I received my new laptop a few days ago and found out that Scilab 6.0.1 is extremely slow. I would say that it takes about twice the time in comparison to my previous laptop - New laptop (available since since June 2018) I9-8950HK GTX 1080 with 1 x 16GB RAM SSD RAID 0 Windows 10 Home Version 1803 - Old laptop (purcharsed in 2009) I7-720QM GT 240M with 2 x 2GB RAM Linux 19.1 Mint Basically, I would expect my new laptop to run Scilab much faster (it is also almost 4 times more expensive).. I'm really disappointed!! Is it possible that Scilab is not optimised for I9 CPU or Windows 10? Does anyone encounter similar issues? Many thanks -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users