From chinluh at tritytech.com Fri Dec 1 05:34:37 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Fri, 1 Dec 2017 12:34:37 +0800 Subject: [Scilab-users] guibuilder 4.1/4.0.1 reload problem In-Reply-To: <1512076071869-0.post@n3.nabble.com> References: <1511987960186-0.post@n3.nabble.com> <1512076071869-0.post@n3.nabble.com> Message-ID: hi, could you try to look into the guibuilder module folder, and check the following: 1. the subfolder of the guibuilder, is it 4.0.1 or 4.1? 2. going into the folder, and click on the readme.txt, check whether it looks like following: ************* GUI Builder is a Graphic User Interface Builder? under Scilab. The program allows you to build your GUI quickly, and the code for the gui would be generated automatically. *Version 4.1 (5 May 2017) by Tan CL* 1. Bug Fix : Fix the issue of error during reloading the generated GUI Version 4.0.1 (21 Feb 2017) by Tan CL 1. Bug Fix : Fix the issue of axes not shown on generated GUI 2. Bug Fix : Changes on folder version name and some descriptions updates ************* Thanks. rgds, Chin Luh (Tan CL) On 1/12/2017 5:07 AM, Blaise wrote: > The warning occurs no matter what gui file i try to open. I can create a new > gui, I can save it, I can run it, but I cannot open it to add changes. > >> It is hard to reproduce and help debugging without the actual GUI's file. > This is an example of a gui file I created with my guibuilder: > https://drive.google.com/open?id=1c8OoHmNSgC8-lNkBkkITUnC99EPj44hV > There should be only a button called "Test" which displays in the console a > message 'test'. > > > > -- > 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 herozigle at gmail.com Fri Dec 1 09:59:11 2017 From: herozigle at gmail.com (Hermes) Date: Fri, 1 Dec 2017 01:59:11 -0700 (MST) Subject: [Scilab-users] numderivative Heart function In-Reply-To: References: <1506930115440-0.post@n3.nabble.com> <1512058414789-0.post@n3.nabble.com> Message-ID: <1512118751025-0.post@n3.nabble.com> Help me, why the same function with different procedures to determine the critical points; these differ in the results. What am I not doing correctly or interpreted? * function val = Heart(x1, x2) val=(1.25*x2-sqrt(abs(x1))).^2+x1.^2-1; endfunction; function y = heart_up(x1) y = 4/5 * (sqrt(abs(x1))+sqrt(1-x1.^2)) endfunction function y = heart_down(x1) y = 4/5 * (sqrt(abs(x1))-sqrt(1-x1.^2)) endfunction function y = du_heart(x1) y = numderivative(heart_up, x1); endfunction function y = dd_heart(x1) y = numderivative(heart_down, x1); endfunction x1 = fsolve(-0.6, du_heart); y1 = heart_up(x1);disp(y1,"y1",x1,"x1"); x2 = fsolve( 0.6, du_heart); y2 = heart_up(x2);disp(y2,"y2",x2,"x2"); x3 = fsolve( 0.0, du_heart); y3 = heart_up(x3);disp(y3,"y3",x3,"x3"); x4 = fsolve( 0.0, dd_heart); y4 = heart_down(x4);disp(y4,"y4",x4,"x4"); x = -1:0.01:1; contour2d(x, 2*x, Heart, [0 0]); plot([x1 x2],[y1 y2],'gd'); plot([x3 x4],[y3 y4],'rx'); replot([-1.415,-1,1.415,1.415]); * -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From kblaaz at gmail.com Fri Dec 1 12:32:22 2017 From: kblaaz at gmail.com (Blaise) Date: Fri, 1 Dec 2017 04:32:22 -0700 (MST) Subject: [Scilab-users] guibuilder 4.1/4.0.1 reload problem In-Reply-To: References: <1511987960186-0.post@n3.nabble.com> <1512076071869-0.post@n3.nabble.com> Message-ID: <1512127942944-0.post@n3.nabble.com> hello, > could you try to look into the guibuilder module folder, and check the > following: > 1. the subfolder of the guibuilder, is it 4.0.1 or 4.1? > 2. going into the folder, and click on the readme.txt, check whether it > looks like following: 1. 4.1. 2. It shows what you wrote. In the meantime I saw your new guibuilder 4.2 release, so I downloaded it and put it in the contrib folder manually due to the fact, that atomsInstall('guibuilder') installs the 4.1 version. The new guibuilder pallete window is named 4.2 now. When I try to open a gui file, the warnings actually do not show, but the loaded gui window either. Just the objects are loaded, but it was also happening on the 4.1 version. I do not suppose it is a problem with my computer, since I tried to reload a gui file on another one too (but on the 4.1 guibuilder version) and the result was the same. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From chinluh at tritytech.com Fri Dec 1 13:41:43 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Fri, 1 Dec 2017 20:41:43 +0800 Subject: [Scilab-users] guibuilder 4.1/4.0.1 reload problem In-Reply-To: <1512127942944-0.post@n3.nabble.com> References: <1511987960186-0.post@n3.nabble.com> <1512076071869-0.post@n3.nabble.com> <1512127942944-0.post@n3.nabble.com> Message-ID: <16e0d0ce-3afb-840a-bdd1-fffe3744eb93@tritytech.com> Hi, I tried your gui-test.sce by guibuilder('gui-test.sce'), and it seems to be alright. In fact the previous warning does not harm this as well. The 4.2 is just to update the version number shown and get rid of the annoying but un-harmful warning. It will be great if you could record the video on what is happening, then i should give me some clues on what is happening. Thanks. rgds, Chin Luh On 1/12/2017 7:32 PM, Blaise wrote: > hello, > >> could you try to look into the guibuilder module folder, and check the >> following: >> 1. the subfolder of the guibuilder, is it 4.0.1 or 4.1? >> 2. going into the folder, and click on the readme.txt, check whether it >> looks like following: > 1. 4.1. > 2. It shows what you wrote. > > In the meantime I saw your new guibuilder 4.2 release, so I downloaded it > and put it in the contrib folder manually due to the fact, that > atomsInstall('guibuilder') installs the 4.1 version. > The new guibuilder pallete window is named 4.2 now. > When I try to open a gui file, the warnings actually do not show, but the > loaded gui window either. Just the objects are loaded, but it was also > happening on the 4.1 version. > > I do not suppose it is a problem with my computer, since I tried to reload a > gui file on another one too (but on the 4.1 guibuilder version) and the > result was the same. > > > > -- > 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 kblaaz at gmail.com Fri Dec 1 15:22:59 2017 From: kblaaz at gmail.com (Blaise) Date: Fri, 1 Dec 2017 07:22:59 -0700 (MST) Subject: [Scilab-users] guibuilder 4.1/4.0.1 reload problem In-Reply-To: <16e0d0ce-3afb-840a-bdd1-fffe3744eb93@tritytech.com> References: <1511987960186-0.post@n3.nabble.com> <1512076071869-0.post@n3.nabble.com> <1512127942944-0.post@n3.nabble.com> <16e0d0ce-3afb-840a-bdd1-fffe3744eb93@tritytech.com> Message-ID: <1512138179297-0.post@n3.nabble.com> Hello, > It will be great if you could record the video on what is happening, > then i should give me some clues on what is happening. This is the record of the issue: https://drive.google.com/open?id=14rL8UsC3pdSM7dBV1StkDVSRVwIW3qE3 Cheers -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From chinluh at tritytech.com Fri Dec 1 16:58:18 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Fri, 1 Dec 2017 23:58:18 +0800 Subject: [Scilab-users] guibuilder 4.1/4.0.1 reload problem In-Reply-To: <1512138179297-0.post@n3.nabble.com> References: <1511987960186-0.post@n3.nabble.com> <1512076071869-0.post@n3.nabble.com> <1512127942944-0.post@n3.nabble.com> <16e0d0ce-3afb-840a-bdd1-fffe3744eb93@tritytech.com> <1512138179297-0.post@n3.nabble.com> Message-ID: <36e86455-fe8e-9103-77fd-f32f3e889734@tritytech.com> please try the latest 4.2.1. thanks rgds, CL On 1/12/2017 10:22 PM, Blaise wrote: > Hello, > >> It will be great if you could record the video on what is happening, >> then i should give me some clues on what is happening. > This is the record of the issue: > https://drive.google.com/open?id=14rL8UsC3pdSM7dBV1StkDVSRVwIW3qE3 > > Cheers > > > > -- > 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 kblaaz at gmail.com Fri Dec 1 18:33:32 2017 From: kblaaz at gmail.com (Blaise) Date: Fri, 1 Dec 2017 10:33:32 -0700 (MST) Subject: [Scilab-users] guibuilder 4.1/4.0.1 reload problem In-Reply-To: <36e86455-fe8e-9103-77fd-f32f3e889734@tritytech.com> References: <1511987960186-0.post@n3.nabble.com> <1512076071869-0.post@n3.nabble.com> <1512127942944-0.post@n3.nabble.com> <16e0d0ce-3afb-840a-bdd1-fffe3744eb93@tritytech.com> <1512138179297-0.post@n3.nabble.com> <36e86455-fe8e-9103-77fd-f32f3e889734@tritytech.com> Message-ID: <1512149612662-0.post@n3.nabble.com> Yes! Now it works perfectly! Thank you for helping me guys. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Fri Dec 1 19:04:52 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 1 Dec 2017 18:04:52 +0000 Subject: [Scilab-users] numderivative Heart function In-Reply-To: <1512118751025-0.post@n3.nabble.com> References: <1506930115440-0.post@n3.nabble.com> <1512058414789-0.post@n3.nabble.com> <1512118751025-0.post@n3.nabble.com> Message-ID: Hi Hermes, I think you may have a Heart problem: [cid:image001.png at 01D36AD7.4286F4D0] The two Hearts do not seem to match. Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 14281 bytes Desc: image001.png URL: From jrafaelbguerra at hotmail.com Fri Dec 1 19:10:08 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 1 Dec 2017 18:10:08 +0000 Subject: [Scilab-users] Can't Find the Error In-Reply-To: <1512070541640-0.post@n3.nabble.com> References: <1512070541640-0.post@n3.nabble.com> Message-ID: Hi can you share a zip of input file? Rgds,Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of rentboi Sent: Thursday, November 30, 2017 8:36 PM To: users at lists.scilab.org Subject: [Scilab-users] Can't Find the Error Hey everyone I kept on trying to find out what the error is in the code below, but can't seem to find it. Even weirder is that among my colleagues I am the only one who gets a different output than the solution with the same code. temp=csvRead("the path to the file/meas0001.csv", ascii(9), '.','string',[',' ' ']); // to read the csv data temp(1,:)=[]; // to remove the first line temp($,:)=[]; // to remove the last line The output I get : ! 24-NOV-2017 13:22:27 9499019 ! ! ! ! 2.3171840E+02 Vac ! ! ! ! 2.3181050E+02 Vac ! ! ! ! 2.3202420E+02 Vac ! ! ! ! 2.3206130E+02 Vac ! ! ! ! 2.3207920E+02 Vac ! ! ! ! 2.3202870E+02 Vac ! ! ! ! 2.3194700E+02 Vac ! ! ! ! 2.3195150E+02 Vac ! ! ! ! 2.3192480E+02 Vac ! ! 24-NOV-2017 13:55:22 ! The "supposed to be like this" output is with only the same numbers, but without the "Vac", the dates and the times in the first and last row and the exclamation marks. I'd be flattered, if someone could help me out. -- 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 j-lan at online.no Sat Dec 2 08:59:01 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Sat, 2 Dec 2017 08:59:01 +0100 Subject: [Scilab-users] Can't Find the Error In-Reply-To: <1512070541640-0.post@n3.nabble.com> References: <1512070541640-0.post@n3.nabble.com> Message-ID: <0bf600fa-4afa-3490-da07-48b38668479a@online.no> On 30.11.2017 20:35, rentboi wrote: > Hey everyone > > > I kept on trying to find out what the error is in the code below, Apparently your data are not separated by ascii(9) - tab. Anyway, If you just want the numbers: temp2=strtod(csvRead("filename", ascii(13),'.','string',[',' ' '])(2:($-1))); Jan From chinluh at tritytech.com Sat Dec 2 14:03:48 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Sat, 2 Dec 2017 21:03:48 +0800 Subject: [Scilab-users] guibuilder 4.1/4.0.1 reload problem In-Reply-To: <1512149612662-0.post@n3.nabble.com> References: <1511987960186-0.post@n3.nabble.com> <1512076071869-0.post@n3.nabble.com> <1512127942944-0.post@n3.nabble.com> <16e0d0ce-3afb-840a-bdd1-fffe3744eb93@tritytech.com> <1512138179297-0.post@n3.nabble.com> <36e86455-fe8e-9103-77fd-f32f3e889734@tritytech.com> <1512149612662-0.post@n3.nabble.com> Message-ID: <3ad38062-04a5-c5bf-2d48-d9c5671be3e1@tritytech.com> Thanks for reporting the bug, and also thanks Samuel for helping in debugging this issue. rgds, CL On 2/12/2017 1:33 AM, Blaise wrote: > Yes! Now it works perfectly! > Thank you for helping me guys. > > > > > -- > 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 amonmayr at laas.fr Mon Dec 4 16:12:26 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Mon, 04 Dec 2017 16:12:26 +0100 Subject: [Scilab-users] =?utf-8?q?Both_scilab_5=2E5=2E2_=26_6=2E0_stopped_?= =?utf-8?q?working_=28java_issue_under_linux=29?= Message-ID: <1c68-5a256600-39-1d8dca20@131949825> Hi everyone, It seems that some automatic update have broken scilab on my linux station (16.04.3 64bits). Any java related feature is broken and only scilab-cli is working. As any of you any idea on how to investigate this issue? Thanks in advance, Antoine PS: Here is the crash log: $ scilab Could not create a Scilab main class. Error: Exception in thread "main" java.lang.InternalError: XXX0 profile[1]: GL3bc -> profileImpl GL4bc !!! not mapped at com.jogamp.opengl.GLProfile.computeProfileMap(GLProfile.java:2071) at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1954) at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1875) at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1842) at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80) at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230) at java.security.AccessController.doPrivileged(Native Method) at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216) at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2297) at com.jogamp.opengl.GLProfile.get(GLProfile.java:988) at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722) at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:733) at org.scilab.modules.gui.SwingView.(Unknown Source) at org.scilab.modules.gui.SwingView.registerSwingView(Unknown Source) at org.scilab.modules.core.Scilab.(Unknown Source) Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available). From amonmayr at laas.fr Mon Dec 4 16:38:44 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Mon, 04 Dec 2017 16:38:44 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBCb3RoIHNjaWxhYiA1LjUu?= =?utf-8?q?2_=26_6=2E0_stopped_working_=28java_issue_under_linux=29?= In-Reply-To: <1c68-5a256600-39-1d8dca20@131949825> Message-ID: Hi all, Answering my own post: it was a graphic driver issue, as usual. I switch to another driver and now scilab starts, but all the graphics windows are empty! Antoine On Monday, December 04, 2017 16:12 CET, "Antoine Monmayrant" wrote: > Hi everyone, > > It seems that some automatic update have broken scilab on my linux station (16.04.3 64bits). > Any java related feature is broken and only scilab-cli is working. > As any of you any idea on how to investigate this issue? > > Thanks in advance, > > Antoine > > PS: Here is the crash log: > > > $ scilab > Could not create a Scilab main class. Error: > Exception in thread "main" java.lang.InternalError: XXX0 profile[1]: GL3bc -> profileImpl GL4bc !!! not mapped > at com.jogamp.opengl.GLProfile.computeProfileMap(GLProfile.java:2071) > at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1954) > at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1875) > at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1842) > at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80) > at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230) > at java.security.AccessController.doPrivileged(Native Method) > at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216) > at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2297) > at com.jogamp.opengl.GLProfile.get(GLProfile.java:988) > at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722) > at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:733) > at org.scilab.modules.gui.SwingView.(Unknown Source) > at org.scilab.modules.gui.SwingView.registerSwingView(Unknown Source) > at org.scilab.modules.core.Scilab.(Unknown Source) > > Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available). > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From Clement.David at esi-group.com Mon Dec 4 17:05:11 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Mon, 4 Dec 2017 16:05:11 +0000 Subject: [Scilab-users] ?==?utf-8?q? Both scilab 5.5.2 & 6.0 stopped working (java issue under linux) In-Reply-To: References: Message-ID: <1512403509.17393.9.camel@esi-group.com> Hi all, Nice catch Antoine ! From my understanding of the crash and depending on your graphic card, you could switch the actual GL implementation to a well supported one rather than relying on the latest GL. For example, using mesa on my Intel i965 system, I can tweak the used Profile through MESA_GL_VERSION_OVERRIDE and MESA_EXTENSION_OVERRIDE [https://www.mesa3d.org/envvars.html]. Regards, -- Cl?ment Le lundi 04 d?cembre 2017 ? 16:38 +0100, Antoine Monmayrant a ?crit : > Hi all, > > Answering my own post: it was a graphic driver issue, as usual. > I switch to another driver and now scilab starts, but all the graphics windows are empty! > > Antoine > > > On Monday, December 04, 2017 16:12 CET, "Antoine Monmayrant" wrote: > > > Hi everyone, > > > > It seems that some automatic update have broken scilab on my linux station (16.04.3 64bits). > > Any java related feature is broken and only scilab-cli is working. > > As any of you any idea on how to investigate this issue? > > > > Thanks in advance, > > > > Antoine > > > > PS: Here is the crash log: > > > > > > $ scilab > > Could not create a Scilab main class. Error: > > Exception in thread "main" java.lang.InternalError: XXX0 profile[1]: GL3bc -> profileImpl GL4bc > > !!! not mapped > > at com.jogamp.opengl.GLProfile.computeProfileMap(GLProfile.java:2071) > > at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1954) > > at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1875) > > at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1842) > > at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80) > > at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230) > > at java.security.AccessController.doPrivileged(Native Method) > > at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216) > > at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2297) > > at com.jogamp.opengl.GLProfile.get(GLProfile.java:988) > > at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722) > > at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:733) > > at org.scilab.modules.gui.SwingView.(Unknown Source) > > at org.scilab.modules.gui.SwingView.registerSwingView(Unknown Source) > > at org.scilab.modules.core.Scilab.(Unknown Source) > > > > Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab > > class. Check if the Scilab and thirdparty packages are available). > > > > _______________________________________________ > > 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 From sdr at durietz.se Mon Dec 4 17:00:29 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 4 Dec 2017 17:00:29 +0100 Subject: [Scilab-users] ?==?utf-8?q? Both scilab 5.5.2 & 6.0 stopped working (java issue under linux) In-Reply-To: References: Message-ID: <10af96d3-48ac-124d-c67b-3fa1bdeae81f@durietz.se> Hello Antoine, I managed to fix this issue in Windows 7 (http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html) by reinstalling Scilab without Java. Regards Stefan On 2017-12-04 16:38, Antoine Monmayrant wrote: > Hi all, > > Answering my own post: it was a graphic driver issue, as usual. > I switch to another driver and now scilab starts, but all the graphics windows are empty! > > Antoine > > > On Monday, December 04, 2017 16:12 CET, "Antoine Monmayrant" wrote: > >> Hi everyone, >> >> It seems that some automatic update have broken scilab on my linux station (16.04.3 64bits). >> Any java related feature is broken and only scilab-cli is working. >> As any of you any idea on how to investigate this issue? >> >> Thanks in advance, >> >> Antoine >> >> PS: Here is the crash log: >> >> >> $ scilab >> Could not create a Scilab main class. Error: >> Exception in thread "main" java.lang.InternalError: XXX0 profile[1]: GL3bc -> profileImpl GL4bc !!! not mapped >> at com.jogamp.opengl.GLProfile.computeProfileMap(GLProfile.java:2071) >> at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1954) >> at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1875) >> at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1842) >> at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80) >> at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230) >> at java.security.AccessController.doPrivileged(Native Method) >> at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216) >> at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2297) >> at com.jogamp.opengl.GLProfile.get(GLProfile.java:988) >> at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722) >> at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:733) >> at org.scilab.modules.gui.SwingView.(Unknown Source) >> at org.scilab.modules.gui.SwingView.registerSwingView(Unknown Source) >> at org.scilab.modules.core.Scilab.(Unknown Source) >> >> Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available). >> >> _______________________________________________ >> 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 > From sdr at durietz.se Mon Dec 4 19:52:04 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 4 Dec 2017 19:52:04 +0100 Subject: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7 In-Reply-To: <4e65a046-2ab7-2811-60ef-602a97a4650c@durietz.se> References: <1440326479863-4032713.post@n3.nabble.com> <1498411303270-4036657.post@n3.nabble.com> <5012af39-429a-6ef3-5b6c-3ab518c158d2@durietz.se> <4496DE0B-0F3F-4EFD-A89F-40D9E0AA5615@gmail.com> <1504378688686-0.post@n3.nabble.com> <28f995c6-b009-1026-1acf-df6ae7bf4270@free.fr> <4e65a046-2ab7-2811-60ef-602a97a4650c@durietz.se> Message-ID: <925214a3-0191-4fd9-cabf-3daf359cb799@durietz.se> Hello, J managed to resolve it by reinstalling Scilab with "Select components" "Graphic User Interface" "Java Runtime (...)" deselected!! Probably the already installed Java Runtime interfered? Regards Stefan On 2017-09-03 10:08, Stefan Du Rietz wrote: > > > On 2017-09-02 21:39, Samuel Gougeon wrote: >> Le 02/09/2017 ? 20:58, rlandersen a ?crit : >>> I still have the problem. >>> >>> Anyone found a solution for this? >>> Please post. >> >> Does the console version run? It does not run the Java virtual Machine. >> This may make a difference in your case. >> If it does, then type >> --> SCIHOME // in the "safe" scilab session >> and delete the correponding directory (after closing the Scilab >> session). >> >> It is usually useless to uninstal/reinstal Scilab. Most of problems >> come >> from a corrupted file in the SCIHOME directory. Uninstalling Scilab >> does not remove its SCIHOME reated directory. >> >> HTH >> Samuel > > I also still have the problem with 32-bit Windows 7. Not even does the > console version run with a local installation of Scilab 5.5.2 ... > > And Scilab 5.4.1 has stopped running as well (just an invisible error > window)! > > In computers with Windows 10 or Ubuntu Linux all Scilab versions run. > > Regards > Stefan > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From richard.llom at gmail.com Tue Dec 5 09:16:33 2017 From: richard.llom at gmail.com (Richard llom) Date: Tue, 5 Dec 2017 01:16:33 -0700 (MST) Subject: [Scilab-users] Some errors and a question. In-Reply-To: References: Message-ID: <1512461793441-0.post@n3.nabble.com> PabloF wrote: > First of all, i cannot run scilab 6.0 in Ubuntu 17.10, gives > GTKLookAndFeel error that was adressed in the past, but not resolved. > I cannot reproduce on my linux machine, but I'm also not using Ubuntu. However the error is kinda strange, since Scilab doesn't use the Gimp Toolkit (GTK). So I suspect it is something wrong with your environment / desktop setting. > Second, in my Ubuntu 16.04 PC, scilab 6.0 gives seg fault when trying to > use bode function. > Can you provide a minimal code snippet to reproduce? > And last, is there a way to simulate a trasnfer function with delay using > csim? i'm using pade aproximation by hand right now... > Sorry no clue about that one. regards richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From herozigle at gmail.com Tue Dec 5 13:26:19 2017 From: herozigle at gmail.com (Hermes) Date: Tue, 5 Dec 2017 05:26:19 -0700 (MST) Subject: [Scilab-users] numderivative Heart function In-Reply-To: References: <1506930115440-0.post@n3.nabble.com> <1512058414789-0.post@n3.nabble.com> <1512118751025-0.post@n3.nabble.com> Message-ID: <1512476779028-0.post@n3.nabble.com> Hello;in this way we can find the extreme or critical points of the Heart function, in Maple: function val = Heart(x1, x2) val=(1.25*x2-sqrt(abs(x1))).^2+x1.^2-1;endfunction;First function resolved with respect to Y:function y = heart_up(x1) y = 4/5 * (sqrt(abs(x1))+sqrt(1-x1.^2))endfunctionfunction y = heart_down(x1) y = 4/5 * (sqrt(abs(x1))-sqrt(1-x1.^2))endfunctionI would like to arrive at the same solution by numerical method, Scilab! -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From Pablo_F_7 at hotmail.com Tue Dec 5 14:53:56 2017 From: Pablo_F_7 at hotmail.com (Pablo Fonovich) Date: Tue, 5 Dec 2017 13:53:56 +0000 Subject: [Scilab-users] Some errors and a question. In-Reply-To: <1512461793441-0.post@n3.nabble.com> References: , <1512461793441-0.post@n3.nabble.com> Message-ID: Hi, Thanks for your answer. > First of all, i cannot run scilab 6.0 in Ubuntu 17.10, gives > GTKLookAndFeel error that was adressed in the past, but not resolved. > I cannot reproduce on my linux machine, but I'm also not using Ubuntu. However the error is kinda strange, since Scilab doesn't use the Gimp Toolkit (GTK). So I suspect it is something wrong with your environment / desktop setting. Yes, it could be. Anyway i'm not the only getting this error on ubuntu. See this link: https://www.scivision.co/install-scilab-linux/ > Second, in my Ubuntu 16.04 PC, scilab 6.0 gives seg fault when trying to > use bode function. > Can you provide a minimal code snippet to reproduce? t1 = 1225; t2 = 3245; tau = 3/2 * ( t2 - t1 ) theta = t2 - tau s=poly(0,'s') G=syslin('c',1.72/(1+tau*s)*(2-s*theta)/(2+s*theta)) bode(G) In console, it gives: Segmentation fault (core dumped) (ubuntu 16.04, scilab 6) In scilab 5.5.2 works fine the same code. ________________________________ De: users en nombre de Richard llom Enviado: martes, 05 de diciembre de 2017 05:16 a.m. Para: users at lists.scilab.org Asunto: Re: [Scilab-users] Some errors and a question. PabloF wrote: > First of all, i cannot run scilab 6.0 in Ubuntu 17.10, gives > GTKLookAndFeel error that was adressed in the past, but not resolved. > I cannot reproduce on my linux machine, but I'm also not using Ubuntu. However the error is kinda strange, since Scilab doesn't use the Gimp Toolkit (GTK). So I suspect it is something wrong with your environment / desktop setting. > Second, in my Ubuntu 16.04 PC, scilab 6.0 gives seg fault when trying to > use bode function. > Can you provide a minimal code snippet to reproduce? > And last, is there a way to simulate a trasnfer function with delay using > csim? i'm using pade aproximation by hand right now... > Sorry no clue about that one. regards richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html Scilab users - Mailing Lists Archives mailinglists.scilab.org This forum is an archive for the mailing list users at lists.scilab.org (more options) Messages posted here will be sent to this mailing list. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users users Info Page - Scilab lists.scilab.org The place to ask (and answer) questions on using Scilab. To see the collection of prior postings to the list, visit the users archives. -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.llom at gmail.com Wed Dec 6 09:30:10 2017 From: richard.llom at gmail.com (Richard llom) Date: Wed, 6 Dec 2017 01:30:10 -0700 (MST) Subject: [Scilab-users] Some errors and a question. In-Reply-To: References: <1512461793441-0.post@n3.nabble.com> Message-ID: <1512549010398-0.post@n3.nabble.com> >> Can you provide a minimal code snippet to reproduce? > t1 = 1225; t2 = 3245; > tau = 3/2 * ( t2 - t1 ) > theta = t2 - tau > > s=poly(0,'s') > G=syslin('c',1.72/(1+tau*s)*(2-s*theta)/(2+s*theta)) > bode(G) > This code snippet runs fine for me on linux and win10. Judging from other linux problems discussed here on the ML it is most likely an issue with your graphics driver. So I would suggest looking into that (updating mesa, etc.). hth richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From herozigle at gmail.com Thu Dec 7 18:29:40 2017 From: herozigle at gmail.com (Hermes) Date: Thu, 7 Dec 2017 10:29:40 -0700 (MST) Subject: [Scilab-users] numderivative Heart function In-Reply-To: <1506930115440-0.post@n3.nabble.com> References: <1506930115440-0.post@n3.nabble.com> Message-ID: <1512667780719-0.post@n3.nabble.com> I wish in this case that x passes as a parameter: function val = Hxy(x,y) val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; // switched .^ to ^ to handle vectors endfunction; x=0.0; yint1=fsolve(1,list(Hxy,x))//// ---> (25/16)*y^2-1 disp(yint1) yint2=fsolve(-1,list(Hxy,x)) disp(yint2) the expected value is 4/5 and all the time I receive 0.68034 What incorrect logic am I assuming? Please, I would like to put an end to this ("Heart") !!!! Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Thu Dec 7 19:58:43 2017 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 7 Dec 2017 19:58:43 +0100 Subject: [Scilab-users] numderivative Heart function In-Reply-To: <1512667780719-0.post@n3.nabble.com> References: <1506930115440-0.post@n3.nabble.com> <1512667780719-0.post@n3.nabble.com> Message-ID: <9f03c595-a454-ca2d-0251-17c340418b12@utc.fr> Hello, As y is your unknown, you have interverted x and y in the arguments list of Hxy function (y is the unknown and x the parameter) : function val = Hxy(y,x) val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; // switched .^ to ^ to handle vectors endfunction; will dot it. S. Le 07/12/2017 ? 18:29, Hermes a ?crit : > function val = Hxy(x,y) > val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; // switched .^ to ^ to handle > vectors > endfunction; > > x=0.0; > yint1=fsolve(1,list(Hxy,x))//// ---> (25/16)*y^2-1 > disp(yint1) > yint2=fsolve(-1,list(Hxy,x)) > disp(yint2) -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Fri Dec 8 06:36:23 2017 From: herozigle at gmail.com (Hermes) Date: Thu, 7 Dec 2017 22:36:23 -0700 (MST) Subject: [Scilab-users] numderivative Heart function In-Reply-To: <9f03c595-a454-ca2d-0251-17c340418b12@utc.fr> References: <1506930115440-0.post@n3.nabble.com> <1512667780719-0.post@n3.nabble.com> <9f03c595-a454-ca2d-0251-17c340418b12@utc.fr> Message-ID: <1512711383839-0.post@n3.nabble.com> Hi, I have interverted x and y in the arguments list of Hxy function (y is the unknown and x the parameter) And I get the expected values. But the graph of the function rotates to the right 90 degrees. How to correct it? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Sat Dec 9 00:26:33 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 8 Dec 2017 23:26:33 +0000 Subject: [Scilab-users] numderivative Heart function In-Reply-To: <1512711383839-0.post@n3.nabble.com> References: <1506930115440-0.post@n3.nabble.com> <1512667780719-0.post@n3.nabble.com> <9f03c595-a454-ca2d-0251-17c340418b12@utc.fr> <1512711383839-0.post@n3.nabble.com> Message-ID: Hi Hermes, Very confusing problem formulation... To find solutions of Hxy(x,y) with fsolve along the x=0 slice, it might be easier to use a sliced function H0y as input: clear all; function val=Hxy(x, y) val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; endfunction; function z=H0y(y) // slice of Hxy along x=0 x=0; z= Hxy(x, y); endfunction; y1=fsolve(1,H0y); disp(y1) y2=fsolve(-1,H0y); disp(y2) 0.8 - 0.8 Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Sun Dec 10 08:52:00 2017 From: herozigle at gmail.com (Hermes) Date: Sun, 10 Dec 2017 00:52:00 -0700 (MST) Subject: [Scilab-users] numderivative Heart function In-Reply-To: References: <1506930115440-0.post@n3.nabble.com> <1512667780719-0.post@n3.nabble.com> <9f03c595-a454-ca2d-0251-17c340418b12@utc.fr> <1512711383839-0.post@n3.nabble.com> Message-ID: <1512892320743-0.post@n3.nabble.com> Thanks Rafael, with your solution the final script, it seems to me more elegant, and it is of the following form: * funcprot(0); function val = Hxy(x,y) val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; endfunction; x = -1:0.01:1; contour2d(x, 2*x, Hxy, [0 0]); replot([-1.415,-1,1.415,1.415]); function Jpx=dfx(v) //v:(x,y) Jpx=numderivative(Hxy,v); Jpx=Jpx(1); endfunction //Find the local maxima. function Z = flm(v)//v:(y,x) x=v(1);y=v(2); Z = [ Hxy(x,y) dfx(v) ] endfunction //v:(x,y) xlm1=fsolve([-0.4;1.4],flm) disp(xlm1) xlm2=fsolve([0.4;1.4],flm) disp(xlm2) plot([xlm1(1) xlm2(1)],[xlm1(2) xlm2(2)],'gx') //Find the y-intercepts. Hxy(x,y) //To find solutions of Hxy(x,y) with fsolve along the x=0 slice, it might be easier to use a sliced function H0y as input: function z=H0y(y) // slice of Hxy along x=0 x=0; z= Hxy(x,y); endfunction; yint1=fsolve(1,H0y)// --->Hxy(y,x)=>1.5625*y^2-1 disp(yint1) yint2=fsolve(-1,H0y)// ---> Hxy(y,x)=>1.5625*y^2-1 disp(yint2) x=0; plot([x x],[yint1 yint2],'rx') * Once again Thanks to you and all those who with their comments have initiated me in SCILAB. Before your solution I had written the following script, with the same results: * function val = Hxyg(x,y) val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; endfunction; x = -1:0.01:1; contour2d(x, 2*x, Hxyg, [0 0]); replot([-1.415,-1,1.415,1.415]); //We define the Hxy function with x as additional input argument( as a parameter) //Since y, will be our unknown, we have interposed x and y in the argument list of the Hxy function //(y it is the unknown and x is the parameter). //This will be necessary to determine the intersects on the Y axis function val = Hxy(y,x) val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; // switched .^ to ^ to handle vectors endfunction; function Jpx=dfx(v)//v:(y,x) Jpx=numderivative(Hxy,v); Jpx=Jpx(2); endfunction //Find the local maxima. function Z = flm(v)//v:(y,x) Z = [ HH(v) dfx(v) ] endfunction //v:(y,x) xlm1=fsolve([1.4;-0.4],flm) disp(xlm1) xlm2=fsolve([1.4;0.4],flm) disp(xlm2) plot([xlm1(2) xlm2(2)],[xlm1(1) xlm2(1)],'gx') //Find the y-intercepts. Hxy(y,x) //the Hxy function uses x as a parameters. //We define the Hxy function with x as additional input argument( as a parameter), //which is declared after the y unknown. Then we pass a list as the second input argument //of the fsolve function after initial value of Hxy function argument; in this situation only variable y. //The first element of the list is the Hxy function. The additional variable x is directly passed to the Hxy function. x=0.0; yint1=fsolve(1,list(Hxy,x))// --->Hxy(y,x)=>1.5625*y^2-1 disp(yint1) yint2=fsolve(-1,list(Hxy,x))// ---> Hxy(y,x)=>1.5625*y^2-1 disp(yint2) plot([x x],[yint1 yint2],'rx') * Note, I still can not put the codes the way you do. my email is in HTML format 10^6 Gracias!!! -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From paul.carrico at esterline.com Mon Dec 11 11:53:24 2017 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 11 Dec 2017 10:53:24 +0000 Subject: [Scilab-users] Numderivative and integrate Message-ID: <3A6B7233274DB449A2A0053A47684F953F8B0D8A@BGS-EX01.auxitrol.ad> Dear All, I'm wondering if there's a way to speed up the following code using both "numderivative" and "integrate" ? I tried to replace the loops by vectors, but it fails ... Of course this basic example has been put in place in order to test the code - I'm working with test results with more than 200 000 measurements. Thanks for any help and/or suggestions. Regards Paul ############################################################### mode(0) clear PATH = get_absolute_file_path("test_signal.sce"); // here we generate a sin signal just for testing Gamma_ampl = 10; // in [g] Frequency = 100; // in [Hz] Omega = 2 * %pi * Frequency; Number_of_periods = 10; t = [0 : (1/(20 * Frequency)) : (Number_of_periods / Frequency)]; Acceleration = Gamma_ampl *sin(Omega * t); Signal = [t ; Acceleration]; scf() plot(t,Acceleration,'g'); xtitle('Ref curve - accelerogram','t','$\gamma \mbox{[m/s$^{2}$]}$'); xs2png(gcf(),'Accelerogram.png'); // signal first derivation : y' = (Omega * Gamma_ampl)*cos(Omega * t) Acceleration_prime = (Omega * Gamma_ampl) * cos(Omega * t); // calculation of the jerk -> numerical derivative function y=Gamma_function(x) y = interpln(Signal,x) endfunction n = size(t,'*'); Numl_Gamma_derrivative = zeros(2,n); Numl_Gamma_derrivative(1,:) = t; tic(); for i = 1 : n Numl_Gamma_derrivative(2,i) = numderivative(Gamma_function, Numl_Gamma_derrivative(1,i),1e-3,order=4); end Numederivative_duration = toc(); scf() plot(Numl_Gamma_derrivative(1,:),Numl_Gamma_derrivative(2,:),'b') plot(t,Acceleration_prime,'ro') xtitle('Jerk - numerical derivation vs derivative formula','t','$\mbox{J [m/s}^{3}\mbox{]}$'); legend('Numerical','Reference',opt=1); xs2png(gcf(),'Jerk.png'); // calculation of the speed Speed_ref = (Gamma_ampl / Omega) * (1 - cos(Omega * t)); Speed_num_integration = zeros(2,n); Speed_num_integration(1,:) = t; tic(); Speed_num_integration(2,:) = integrate('Gamma_function','x',0,t); First_integrate_duration = toc(); scf() plot(Speed_num_integration(1,:),Speed_num_integration(2,:),'m') plot(t,Speed_ref,'cd') xtitle('Speed - numerical integration vs antiderivative formula','t','v [m/s]'); legend('Numerical','Reference',opt=1); xs2png(gcf(),'Speed.png'); // calculation of the displacement Displ_ref = (Gamma_ampl / Omega) * (t - (sin(Omega * t)/Omega)); function y=Speed_function(x) y = interpln(Speed_num_integration,x) endfunction Displ_num_integration = zeros(2,n); Displ_num_integration(1,:) = t; tic(); Displ_num_integration(2,:) = integrate('Speed_function','x',0,t); Second_integrate_duration = toc(); scf() plot(Displ_num_integration(1,:),Displ_num_integration(2,:),'r') plot(t,Displ_ref,'b>'); xtitle('Displacement - numerical integration vs antiderivative formula','t','$\delta \mbox{ [m]}$'); legend('Numerical','Reference',opt=4); xs2png(gcf(),'Displacements.png'); // information's printf("The duration for Numederivative = %g\n",Numederivative_duration); printf("The duration for 1rst integration = %g\n",First_integrate_duration); printf("The duration for 2nd integration = %g\n",Second_integrate_duration); EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data -------------- next part -------------- An HTML attachment was scrubbed... URL: From oleksiy.bond at gmail.com Tue Dec 12 05:16:52 2017 From: oleksiy.bond at gmail.com (ol.bond) Date: Mon, 11 Dec 2017 21:16:52 -0700 (MST) Subject: [Scilab-users] Numderivative and integrate In-Reply-To: <3A6B7233274DB449A2A0053A47684F953F8B0D8A@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953F8B0D8A@BGS-EX01.auxitrol.ad> Message-ID: <1513052212083-0.post@n3.nabble.com> Hi, As for differentiation, since you use the experimental data spaced at regular intervals, you can use the concept of differentiation matrix: function D =3D diff_matrix(t) k =3D size(t,'*'); dt =3D (t(2)-t(1)); m =3D matrix(ones(5,1)*[3:k-2],1,5*(k-4))'; n =3D matrix([1;2;3;4;5]*ones(1,(k-4))+ones(5,1)*[0:k-5],1,5*(k-4))'; d =3D ones((k-4),1)*[1 -8 0 8 -1]; sp =3D sparse([m,n],d'); sp([1 2],1:5) =3D [-25 48 -36 16 -3; -3 -10 18 -6 1]; sp([k-1 k],(k-4):k) =3D [-1 6 -18 10 3; 3 -16 36 -48 25]; D =3D 1/(12*dt)*sp; endfunction It is based on the classical five-point centred, fourth-order finite difference approximations. and then, the differential can be computed very fast as follows: n =3D size(t,'*'); Numl_Gamma_derrivative =3D zeros(n,2); Numl_Gamma_derrivative(:,1) =3D t'; D =3D diff_matrix(t); tic(); Numl_Gamma_derrivative(:,2) =3D D*Signal(2,:)';//num_diff(Signal(2,:)',t(2)-t(1),1)'; Numederivative_duration =3D toc(); scf(); plot(Numl_Gamma_derrivative(:,1),Numl_Gamma_derrivative(:,2),'b') plot(t,Acceleration_prime,'ro') xtitle('Jerk - numerical derivation vs derivative formula','t','$\mbox{J [m/s}^{3}\mbox{]}$'); legend('Numerical','Reference',opt=3D1); For the integration, you should probably also rewrite the routine to process in matrix form. Yours. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From simon.marchetto at scilab-enterprises.com Thu Dec 14 10:30:56 2017 From: simon.marchetto at scilab-enterprises.com (simon.marchetto at scilab-enterprises.com) Date: Thu, 14 Dec 2017 10:30:56 +0100 Subject: [Scilab-users] Atoms login In-Reply-To: <6392edd5998b556a10872b645b32ee76@scilab-enterprises.com> References: <04dc9350-1369-755e-6fd4-cc7ca60fd3ea@free.fr> <64253f89-c22f-358b-47f2-9bc0e61bc07c@free.fr> <6392edd5998b556a10872b645b32ee76@scilab-enterprises.com> Message-ID: <0611d2f647d063b2e8b3946b9083cbf0@scilab-enterprises.com> Hello, ATOMS email notifications are back (and sent from the new email address atoms.scilab at esi-group.com). Account creation is possible again. We hope eveything works as expected now (at least on ATOMS / Fileexchange), please report any remaining problem. Sorry for the inconvenience. Simon Marchetto Le 2017-11-17 11:22, simon.marchetto at scilab-enterprises.com a ?crit?: > Hello, > > The login issue has been fixed. There were two problems with LDAP > configuration (due to migration), and session management. > > There is still a problem about email sending, probably due to a bad > configuration on the new server, we are working on it. > But it does not prevent toolbox or file (fileexchange) updates. > > Sorry for the delay. > > Simon Marchetto > > Le 2017-11-14 20:53, Samuel Gougeon a ?crit?: >> Hello, >> >> Le 26/09/2017 ? 22:49, Samuel Gougeon a ?crit : >> >>> Le 25/09/2017 ? 23:07, Shamika Mohanan a ?crit : >>> >>>> Hello, >>>> >>>> Is anyone having trouble logging into their ATOMS account? I'm >>>> unable to log in or create a new account. >>> >>> Neither are we. Please have a look at >>> >> http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.html >>> [1] >> >> There are some slight changes on this side, despite it is still >> impossible to update existing modules and filesets and to create new >> ones: >> When login, we no longer get neither a blank page without actually >> being logged, nor -- more recently -- getting any red messages about >> internal errors (likely addressed to debuggers). >> >> But there is now a kind of status inversion: >> Let's logging. Then, we are directed back to the ATOMS portal with >> >> displayed on the top right corner, and still without any admin >> rights. The strange thing is that >> when we then click on "create an account" while we have already one >> and we just tried to logging, >> we get on the top right corner >> >> So, we have been actually acknowledged by the loggin process! >> Unfortunately, clicking on Preferences does not lead to the >> dedicated personal page. >> No actual page uses the user profile and the SESSION_ID. >> >> This stands also after having removed all old cookies, that could >> prevent a sane ATOMS session after the migration of the ATOMS server. >> >> Regards >> Samuel Gougeon >> >> >> >> Links: >> ------ >> [1] >> http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.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 From brantosaurus at hotmail.com Thu Dec 14 21:54:41 2017 From: brantosaurus at hotmail.com (David Brant) Date: Thu, 14 Dec 2017 20:54:41 +0000 Subject: [Scilab-users] =?utf-8?q?Floating-point_relative_accuracy_?= =?utf-8?b?4oCTIEhFTFA=?= Message-ID: Hello I'm not fully conversant with Matlab, but offered to help my daughter with a tutorial in Scilab ... and then Matlab! Basically Matlab gives the 'expected' tutorial answer (n=17), and scilab does not! Hopefully this is down to my lack of expertise, but i would very much like understand why. Does the problem require the use of floating-point relative accuracy feature (%eps)? Any help would be very much appreciated. *** scilab output ?n k S dif ??? 0.??? 1.??? 1.??? 1.718281828459045 ??? 1.??? 1.??? 2.??? 0.718281828459045 ??? 2.??? 2.??? 2.5??? 0.218281828459045 ??? 3.??? 6.??? 2.666666666666667??? 0.051615161792379 ??? 4.??? 24.??? 2.708333333333333??? 0.009948495125712 ??? 5.??? 120.??? 2.716666666666666??? 0.001615161792379 ??? 6.??? 720.??? 2.718055555555555??? 0.000226272903490 ??? 7.??? 5040.??? 2.718253968253968??? 0.000027860205077 ??? 8.??? 40320.??? 2.71827876984127??? 0.000003058617775 ??? 9.??? 362880.??? 2.718281525573192??? 0.000000302885853 ??? 10.??? 3628800.??? 2.718281801146385??? 0.000000027312661 ??? 11.??? 39916800.??? 2.718281826198493??? 0.000000002260552 ??? 12.??? 479001600.??? 2.718281828286169??? 0.000000000172876 ??? 13.??? 6227020800.??? 2.718281828446759??? 0.000000000012286 ??? 14.??? 87178291200.??? 2.71828182845823??? 0.000000000000815 ??? 15.??? 1307674368000.??? 2.718281828458995 0.000000000000050 ??? 16.??? 20922789888000.??? 2.718281828459043 0.000000000000002 ??? 17.??? 355687428096000.??? 2.718281828459046 4.44089209850D-16 ??? 18.??? 6402373705728000.??? 2.718281828459046 4.44089209850D-16 ??? 19.??? 1.21645100409D+17??? 2.718281828459046 4.44089209850D-16 ??? 20.??? 2.43290200818D+18??? 2.718281828459046 4.44089209850D-16 *** matlab output n k S dif 0?????????? 1?????????? 1????? 1.7183 1?????????? 1?????????? 2???? 0.71828 2?????????? 2???????? 2.5???? 0.21828 3?????????? 6????? 2.6667??? 0.051615 4?????????? 24????? 2.70833??? 0.0099485 5?????????? 120????? 2.716667?? 0.001615162 6?????????? 720????? 2.718056? 0.0002262729 7?????????? 5040?????? 2.718254? 2.7860205e-05 8?????????? 40320????? 2.71827877? 3.05861778e-06 9?????????? 362880????? 2.718281526? 3.028858533e-07 10?????????? 3628800????? 2.7182818011? 2.7312661022e-08 11?????????? 39916800?????? 2.7182818262? 2.26055263397e-09 12?????????? 479001600????? 2.718281828286? 1.728768239673e-10 13?????????? 6227020800????? 2.7182818284468? 1.2286172079712e-11 14?????????? 87178291200????? 2.71828182845823 8.15347789284715e-13 15????????? 1307674368000????? 2.718281828458995 5.062616992290714e-14 16???????? 20922789888000????? 2.718281828459043 2.664535259100376e-15 17??????? 355687428096000 2.718281828459046????????????????????? 0 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: m.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: q4.m Type: text/x-objcsrc Size: 409 bytes Desc: q4.m URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: q4.sce Type: application/x-scilab-sce Size: 486 bytes Desc: q4.sce URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: sce.txt URL: From sgougeon at free.fr Thu Dec 14 23:15:10 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 14 Dec 2017 23:15:10 +0100 Subject: [Scilab-users] =?utf-8?q?Floating-point_relative_accuracy_?= =?utf-8?b?4oCTIEhFTFA=?= In-Reply-To: References: Message-ID: <397f94ba-98db-0132-3eee-0824fbcb0aa8@free.fr> Hello, Le 14/12/2017 ? 21:54, David Brant a ?crit : > Hello > > I'm not fully conversant with Matlab, but offered to help my daughter > with a tutorial in Scilab ... and then Matlab! > > Basically Matlab gives the 'expected' tutorial answer (n=17), and scilab > does not! Hopefully this is down to my lack of expertise, but i would > very much like understand why. > > Does the problem require the use of floating-point relative accuracy > feature (%eps)? Yes. The stopping test is if dif/S <= %eps break end This stops at n=17 as well. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Fri Dec 15 09:15:17 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 15 Dec 2017 08:15:17 +0000 Subject: [Scilab-users] =?windows-1252?q?=7BEXT=7D_Re=3A__Floating-point_r?= =?windows-1252?q?elative_accuracy_=96_HELP?= In-Reply-To: <397f94ba-98db-0132-3eee-0824fbcb0aa8@free.fr> References: <397f94ba-98db-0132-3eee-0824fbcb0aa8@free.fr> Message-ID: Hello, > De : users [mailto:users-bounces at lists.scilab.org] De la part de Samuel Gougeon > Envoy? : jeudi 14 d?cembre 2017 23:15 > > > Le 14/12/2017 ? 21:54, David Brant a ?crit : > > > > Does the problem require the use of floating-point relative accuracy > > feature (%eps)? > Yes. The stopping test is > if dif/S <= %eps Additionally, you can use %e instead of exp(1). 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 brantosaurus at hotmail.com Fri Dec 15 11:31:17 2017 From: brantosaurus at hotmail.com (David Brant) Date: Fri, 15 Dec 2017 10:31:17 +0000 Subject: [Scilab-users] =?windows-1252?q?Floating-point_relative_accuracy_?= =?windows-1252?q?=96_HELP?= Message-ID: Excellent, many thanks Christophe. Much appreciated and relieved. Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Fri Dec 15 11:37:24 2017 From: herozigle at gmail.com (Hermes) Date: Fri, 15 Dec 2017 03:37:24 -0700 (MST) Subject: [Scilab-users] Numderivative and integrate In-Reply-To: <3A6B7233274DB449A2A0053A47684F953F8B0D8A@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953F8B0D8A@BGS-EX01.auxitrol.ad> Message-ID: <1513334244281-0.post@n3.nabble.com> He, here I put a solution for differentiation in your case we obtain The duration for Numederivative = 1.18248 and for this other: The duration for Numederivative = 0.00125101 the FourMatDiff function could be improved. Is there any function in Scilab to create band Matrices? //http://mailinglists.scilab.org/Scilab-users-Numderivative-and-integrate-td4037333.html mode(0) clear //PATH = get_absolute_file_path("test_signal.sce"); // here we generate a sin signal just for testing Gamma_ampl = 10; // in [g] Frequency = 100; // in [Hz] Omega = 2 * %pi * Frequency; Number_of_periods = 10; t = [0 : (1/(20 * Frequency)) : (Number_of_periods / Frequency)]; Acceleration = Gamma_ampl *sin(Omega * t); Signal = [t ; Acceleration]; scf() plot(t,Acceleration,'g'); xtitle('Ref curve - accelerogram','t','$\gamma \mbox{[m/s$^{2}$]}$'); xs2png(gcf(),'Accelerogram.png'); // signal first derivation : y' = (Omega * Gamma_ampl)*cos(Omega * t) Acceleration_prime = (Omega * Gamma_ampl) * cos(Omega * t); // calculation of the jerk -> numerical derivative function y=Gamma_function(x) y = interpln(Signal,x) endfunction n = size(t,'*'); Numl_Gamma_derrivative = zeros(2,n); Numl_Gamma_derrivative(1,:) = t; Y=Gamma_function(Numl_Gamma_derrivative(1,:)); // function M2=FourMatDiff2(n) for j=1:n for i=1:n //M(i,j) = 0; // main diagonal if pmodulo(i-j,n)==1 then M2(i,j)=-2/3 elseif pmodulo(i-j,n)==2 then M2(i,j)=1/12 elseif pmodulo(i-j,n)==n-1 then M2(i,j)=2/3 elseif pmodulo(i-j,n)==n-2 then M2(i,j)=-1/12 elseif i-j==0 then M2(i,j)=0 end end end //disp( full(M2) ); endfunction; N=n; block=8; sel=4; h= t(3)-t(2); X=0:h:N; MD=FourMatDiff2(block); tic(); //for i = 1 : n // Numl_Gamma_derrivative(2,i) = numderivative(Gamma_function, Numl_Gamma_derrivative(1,i),1e-3,order=4); //end for i=1:N-block+1 yd2($+1)=[MD/h*Y(i:i+block-1)'](sel); end Numederivative_duration = toc(); scf() plot(Numl_Gamma_derrivative(1,4:197)',yd2,'b'); plot(t,Acceleration_prime,'ro'); xtitle('Jerk - numerical derivation vs derivative formula','t','$\mbox{J [m/s}^{3}\mbox{]}$'); legend('Numerical','Reference',opt=1); xs2png(gcf(),'Jerk.png'); // information's printf("The duration for Numederivative = %g\n",Numederivative_duration); Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From bruno.pincon at univ-lorraine.fr Fri Dec 15 15:26:02 2017 From: bruno.pincon at univ-lorraine.fr (=?UTF-8?Q?Pin=c3=a7on_Bruno?=) Date: Fri, 15 Dec 2017 15:26:02 +0100 Subject: [Scilab-users] Numderivative and integrate In-Reply-To: <1513334244281-0.post@n3.nabble.com> References: <3A6B7233274DB449A2A0053A47684F953F8B0D8A@BGS-EX01.auxitrol.ad> <1513334244281-0.post@n3.nabble.com> Message-ID: Le 15/12/2017 ? 11:37, Hermes a ?crit?: > He, > here I put a solution for differentiation > in your case we obtain The duration for Numederivative = 1.18248 > and for this other: The duration for Numederivative = 0.00125101 > the FourMatDiff function could be improved. > Is there any function in Scilab to create band Matrices? ??? Hi, ? you could use sparse matrix. If (as it seems the case) your matrix ? can be defined by its diagonals maybe the following function could ? be useful for you. It lets you to build fastly a sparse matrix by given the ? different diagonals and if the diagonal is constant only the constant ? could be provided, for instance if you want to build the classical ? matrix with 2 on the diag and -1 on the first (upper and lower) diagonals ? n = 6;? // a really small example ? A = my_spdiags([n,n],0,2,-1,-1,1,-1) ? If one diagonal of the matrix is not a constant you should provide ? the entire vector of the diagonal values (instead of the constant). ? hth ?Bruno ?PS : I coded this function a long time ago it's possible that there is ?such an internal function in scilab now and I have not tested it on ?scilab-6.x =================================================== ? function A = my_spdiags(dims,varargin) ?? // a function to build easily a sparse matrix by filling some given ?? // diagonals. ?? // ?? // 1/ dims is a vector with matrix dimensions [number of rows, number of columns] ?? // 2/ the special varargin keyword stands for the other input ?? //??? arguments. Any number of (valid) diagonals is allowed and ?? //??? each diagonal is introduced with (first) its ?? //??? diagonal number then (second) by the vector of values of the diagonal. ?? //??? When the diagonal is to be filled by a same value it is allowed to ?? //??? replace the vector of values by the scalar. ?? //??? The diagonal number is defined (as usual) by k = j-i ?? // ?? // So the function usage is: ?? // A = my_spdiags([m,n], num_diag1, val_diag1, num_diag2,val_diag2,...) ?? // ?? // AUTHOR : Bruno Pin?on bruno.pincon at univ-lorraine.fr ?? if ~(typeof(dims) == "constant" & length(dims)==2 & and(floor(dims)==dims)... ??? & min(dims) >= 1 ) then ????? error("bad first argument") ?? end ?? m = dims(1); n = dims(2); ?? M = length(varargin) ?? if modulo(M,2) ~= 0 then, error("bad entries..."), end ?? nd = M/2; ?? ij = []; val = []; ?? for i = 1:2:M-1 ????? k = varargin(i); ????? values =? varargin(i+1); ????? if k < -(m-1) | k > (n-1) then ??? ?error(msprintf("argument %d is not a good diag number",i+1)) ????? end ????? if k >= 0 then ??? ?nbelem = min(m,n-k); ??? ?i = (1:nbelem)'; j = i+k; ????? else ??? ?nbelem = min(m+k,n); ??? ?j = (1:nbelem)'; i = j-k; ????? end ????? nv = length(values) ????? if nv==1 then?????? // a scalar was given, build the corresponding vector ??? ?values = values*ones(nbelem,1); ????? elseif nv == nbelem then ??? ?values = values(:) ????? else??????????????? // the vector has not the same length than the diagonal ??? ?error(msprintf("argument %d has not the good size",i+2)); ????? end ????? ij = [ij;[i,j]]; val = [val;values]; ?? end ?? A = sparse(ij,val,dims) endfunction From bruno.pincon at univ-lorraine.fr Fri Dec 15 15:52:28 2017 From: bruno.pincon at univ-lorraine.fr (=?UTF-8?Q?Pin=c3=a7on_Bruno?=) Date: Fri, 15 Dec 2017 15:52:28 +0100 Subject: [Scilab-users] Numderivative and integrate In-Reply-To: <1513334244281-0.post@n3.nabble.com> References: <3A6B7233274DB449A2A0053A47684F953F8B0D8A@BGS-EX01.auxitrol.ad> <1513334244281-0.post@n3.nabble.com> Message-ID: <8a0b357f-0525-a985-3189-db7c0a8fc60e@univ-lorraine.fr> ???? HI Paul, ? I have not looked deeply in your code but why not ?use a spline representation of the Signal and use the ?spline representation (see the splin and interp functions) ?to both differentiate and integrate. Differentiation is ?provided by the interp function so the remaining work ?should be to integrate a spline but it is not a big deal. ? Just my 2 cents... ?Bruno From jrafaelbguerra at hotmail.com Sun Dec 17 01:14:01 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 17 Dec 2017 00:14:01 +0000 Subject: [Scilab-users] Numderivative and integrate In-Reply-To: <1513334244281-0.post@n3.nabble.com> References: <3A6B7233274DB449A2A0053A47684F953F8B0D8A@BGS-EX01.auxitrol.ad> <1513334244281-0.post@n3.nabble.com> Message-ID: Hi Hermes, Regarding your question "the FourMatDiff function could be improved. Is there any function in Scilab to create band Matrices?", please note that following code: M = toeplitz([0 -2/3 1/12 zeros(1,n-5) -1/12 2/3]); M = tril(M) - triu(M); produces the same results for n >=5 as your function: FourMatDiff2(n) Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sun Dec 17 17:01:56 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 17 Dec 2017 16:01:56 +0000 Subject: [Scilab-users] Numderivative and integrate In-Reply-To: References: <3A6B7233274DB449A2A0053A47684F953F8B0D8A@BGS-EX01.auxitrol.ad> <1513334244281-0.post@n3.nabble.com> Message-ID: Hi Hermes, Regarding your question "the FourMatDiff function could be improved. Is there any function in Scilab to create band Matrices?", the simpler code: r = [0 -2/3 1/12 zeros(1,n-5) -1/12 2/3]; M = toeplitz(r,-r); produces the same results for n >=5 as your function FourMatDiff2(n) Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From baptiste.boillot at ge.com Wed Dec 20 16:50:48 2017 From: baptiste.boillot at ge.com (Boillot, Baptiste (GE Renewable Energy)) Date: Wed, 20 Dec 2017 15:50:48 +0000 Subject: [Scilab-users] Scrollbar in figures Message-ID: Hello, Is there a way in 6.0 to get a scrollbar in a figure when the axes_size is greater than the figure_size, the same way it used to be in 5.3.3 (auto_resize = "off"). Thank you Baptiste BOILLOT -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Dec 20 20:36:40 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 20 Dec 2017 20:36:40 +0100 Subject: [Scilab-users] Scrollbar in figures In-Reply-To: References: Message-ID: <48009346-fa5c-ece2-f17f-b5e3b83757c7@free.fr> Hello Baptiste, Le 20/12/2017 ? 16:50, Boillot, Baptiste (GE Renewable Energy) a ?crit : > > Hello, > > Is there a way in 6.0 to get a scrollbar in a figure when the > axes_size is greater than the figure_size, the same way it used to be > in 5.3.3 (auto_resize = ?off?). > On Windows_x64, we get them as expected: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gaojkfajgfjbbndm.png Type: image/png Size: 50611 bytes Desc: not available URL: From sgougeon at free.fr Wed Dec 20 21:10:02 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 20 Dec 2017 21:10:02 +0100 Subject: [Scilab-users] Numderivative and integrate In-Reply-To: <3A6B7233274DB449A2A0053A47684F953F8B0D8A@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953F8B0D8A@BGS-EX01.auxitrol.ad> Message-ID: <1e3d2cb2-8e33-4094-9fd5-74e858f9a14c@free.fr> Hello Paul, The loop Le 11/12/2017 ? 11:53, Carrico, Paul a ?crit : > ... > fori = 1 : n > > Numl_Gamma_derrivative(2,i) = _numderivative_(_Gamma_function_, > Numl_Gamma_derrivative(1,i),1e-3,order=4); > > end > could be avoided by vectorizing numderivative(). There was a previous recent thread about this, started by Hermes. If you deem that vectorizing numderivative() would be preferable, could you please report this wish on Bugzilla? Then, it could be implemented for Scilab 6.1, provided that there will be a 6.0.2 release for obsoleting the usage of the x input as a row: Please see http://bugzilla.scilab.org/show_bug.cgi?id=14440#c7 Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From baptiste.boillot at ge.com Thu Dec 21 10:07:46 2017 From: baptiste.boillot at ge.com (BBoillot) Date: Thu, 21 Dec 2017 02:07:46 -0700 (MST) Subject: [Scilab-users] Scrollbar in figures In-Reply-To: <48009346-fa5c-ece2-f17f-b5e3b83757c7@free.fr> References: <48009346-fa5c-ece2-f17f-b5e3b83757c7@free.fr> Message-ID: <1513847266812-0.post@n3.nabble.com> Hello Samuel, Would you have the code behind this figure please, to see what I'm doing wrong? Thank you very much. B. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From amonmayr at laas.fr Thu Dec 21 12:45:36 2017 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Thu, 21 Dec 2017 12:45:36 +0100 Subject: [Scilab-users] Scrollbar in figures In-Reply-To: <48009346-fa5c-ece2-f17f-b5e3b83757c7@free.fr> References: <48009346-fa5c-ece2-f17f-b5e3b83757c7@free.fr> Message-ID: <9d051b5d-02a2-0053-76f2-7919c9c5ae62@laas.fr> Well, I don't get this behaviour on linux, even with 5.5.2: h=scf(); plot() h.auto_resize="off"; //hand resizing of the figure to [100,100] // cf attached fig.png Antoine Le 20/12/2017 ? 20:36, Samuel Gougeon a ?crit?: > Hello Baptiste, > > Le 20/12/2017 ? 16:50, Boillot, Baptiste (GE Renewable Energy) a ?crit?: >> >> Hello, >> >> Is there a way in 6.0 to get a scrollbar in a figure when the >> axes_size is greater than the figure_size, the same way it used to be >> in 5.3.3 (auto_resize = ?off?). >> > > On Windows_x64, we get them as expected: > > > > > > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: gaojkfajgfjbbndm.png Type: image/png Size: 50611 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fig.png Type: image/png Size: 11819 bytes Desc: not available URL: From sgougeon at free.fr Thu Dec 21 14:08:25 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 21 Dec 2017 14:08:25 +0100 (CET) Subject: [Scilab-users] Scrollbar in figures In-Reply-To: <1513847266812-0.post@n3.nabble.com> Message-ID: <1313466164.38305759.1513861705843.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello Baptiste, Antoine, I have used exactly the code and protocole posted by Antoine afterwards. Are you using Scilab on Linux, like Antoine? In this case, it is clearly a bug specific on Linux. There are other bugs around .auto_resize (and .viewport), brought by Scilab 5.4.0 and still unfixed: http://bugzilla.scilab.org/14650 http://bugzilla.scilab.org/14693 Samuel From baptiste.boillot at ge.com Thu Dec 21 14:30:39 2017 From: baptiste.boillot at ge.com (BBoillot) Date: Thu, 21 Dec 2017 06:30:39 -0700 (MST) Subject: [Scilab-users] Scrollbar in figures In-Reply-To: <1313466164.38305759.1513861705843.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <48009346-fa5c-ece2-f17f-b5e3b83757c7@free.fr> <1513847266812-0.post@n3.nabble.com> <1313466164.38305759.1513861705843.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1513863039974-0.post@n3.nabble.com> Hi Antoine, and Samuel, I'm on Windows 7 and still having the same issue using the same code as you guys. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Thu Dec 21 15:29:47 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 21 Dec 2017 15:29:47 +0100 (CET) Subject: [Scilab-users] Scrollbar in figures In-Reply-To: <1513863039974-0.post@n3.nabble.com> Message-ID: <1263480609.38642383.1513866587229.JavaMail.root@zimbra75-e12.priv.proxad.net> Aa, i get it as well! Actually, it works as i reported it only for the first run from a fresh Scilab session. Then, forthcoming tests with exactly the same code and in a fresh figure shows the bug as you report it... Samuel From amonmayr at laas.fr Thu Dec 21 15:46:56 2017 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Thu, 21 Dec 2017 15:46:56 +0100 Subject: [Scilab-users] Scrollbar in figures In-Reply-To: <1263480609.38642383.1513866587229.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1263480609.38642383.1513866587229.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: Le 21/12/2017 ? 15:29, sgougeon at free.fr a ?crit?: > Aa, i get it as well! > > Actually, it works as i reported it only for the first run from a fresh Scilab session. > Then, forthcoming tests with exactly the same code and in a fresh figure shows the bug as you report it... Ah, OK, so bug report? Antoine > > 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 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From baptiste.boillot at ge.com Thu Dec 21 16:14:14 2017 From: baptiste.boillot at ge.com (BBoillot) Date: Thu, 21 Dec 2017 08:14:14 -0700 (MST) Subject: [Scilab-users] Scrollbar in figures In-Reply-To: References: <48009346-fa5c-ece2-f17f-b5e3b83757c7@free.fr> <1513847266812-0.post@n3.nabble.com> <1313466164.38305759.1513861705843.JavaMail.root@zimbra75-e12.priv.proxad.net> <1513863039974-0.post@n3.nabble.com> <1263480609.38642383.1513866587229.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1513869254153-0.post@n3.nabble.com> Yes that's it. Got it to work once. Are you filing the bug report Samuel or do you need me to do it? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Thu Dec 21 16:21:23 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 21 Dec 2017 16:21:23 +0100 (CET) Subject: [Scilab-users] Scrollbar in figures In-Reply-To: <1513869254153-0.post@n3.nabble.com> Message-ID: <1693841791.38836739.1513869683040.JavaMail.root@zimbra75-e12.priv.proxad.net> >Yes that's it. Got it to work once. Are you filing the bug report Samuel or >do you need me to do it? Yes please, i let you doing it, as you reported it here. Thanks From baptiste.boillot at ge.com Thu Dec 21 16:54:42 2017 From: baptiste.boillot at ge.com (BBoillot) Date: Thu, 21 Dec 2017 08:54:42 -0700 (MST) Subject: [Scilab-users] Scrollbar in figures In-Reply-To: <1693841791.38836739.1513869683040.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <48009346-fa5c-ece2-f17f-b5e3b83757c7@free.fr> <1513847266812-0.post@n3.nabble.com> <1313466164.38305759.1513861705843.JavaMail.root@zimbra75-e12.priv.proxad.net> <1513863039974-0.post@n3.nabble.com> <1263480609.38642383.1513866587229.JavaMail.root@zimbra75-e12.priv.proxad.net> <1513869254153-0.post@n3.nabble.com> <1693841791.38836739.1513869683040.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1513871682900-0.post@n3.nabble.com> I added a comment to http://bugzilla.scilab.org/show_bug.cgi?id=13657#c3 as it reports quite the same bug. Is it enough or do you think it would be better to file a new bug? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Sat Dec 23 19:06:29 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Dec 2017 19:06:29 +0100 Subject: [Scilab-users] circshift() : Scilab Enhancement Proposal Message-ID: <1b44e4b4-a924-06f2-b4ee-c1c416008947@free.fr> Dear co-scilabers, After the wish reported at http://bugzilla.scilab.org/7293 in 2010, some cshift() function was proposed on the FileExchange at http://fileexchange.scilab.org/toolboxes/161000 to provide a way to circularly shift the rows or columns of a matrix or an hypermatrix. In order to include this basic but non-trivial feature in Scilab 6.1, a Scilab Enhancement Proposal is posted on review at https://codereview.scilab.org/#/c/19625/ Proposed features are described in the help page in PDF format in attachment. Every comment is welcome. Best regards Samuel Gougeon -------------- next part -------------- A non-text attachment was scrubbed... Name: circshift.pdf Type: application/pdf Size: 48033 bytes Desc: not available URL: From jrafaelbguerra at hotmail.com Tue Dec 26 19:46:51 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 26 Dec 2017 18:46:51 +0000 Subject: [Scilab-users] Adjusting data bounds of semi-log plot with dual axes Message-ID: Dear Scilab'ers, Season greetings. Does anyone know if it is possible to adjust the data bounds for each y-axis in a semi-log plot with dual axes? The example here below has the non-working data bounding lines commented out (these work for linear plots though). This problem occurs in both Scilab 5.5.2 & 6.0.0 (Win7 64). // START OF CODE clear all; clf; xmin = 1; xmax = 1e3; x = 10^linspace(log10(xmin),log10(xmax),100); y1 = 2 + 100*log10(x).^0.5; y2 = 30 + 20*log10(x); a1 = newaxes(); //a1.data_bounds = [xmin,0;xmax,200]; // how to use data_bounds with log plots? a1.font_foreground = color('red'); plot2d(x,y1,logflag="ln"); p=gce(); p.children.foreground=5; // red a2 = newaxes(); //a2.data_bounds = [xmin,-100;xmax,100]; // how to use data_bounds with log plots? a2.filled = "off"; a2.axes_visible(1) = "off"; // 2nd x-axis hidden a2.y_location = "right"; a2.font_foreground = color('blue'); plot2d(x, y2,logflag="ln"); p=gce(); p.children.foreground=2; xgrid() // END OF CODE Thanks and regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Dec 26 20:11:06 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 26 Dec 2017 20:11:06 +0100 Subject: [Scilab-users] Adjusting data bounds of semi-log plot with dual axes In-Reply-To: References: Message-ID: <1f5615b4-c581-26d8-24a1-b1bb7275a2b0@free.fr> Hello Rafael, using /a1.data_bounds = [xmin,0;xmax,200];// how to use data_bounds with log plots?/ after plot2d(x,y1,logflag="ln"); works for me. For an unknown reason, setting .data_bounds /before/ plotting cancels the log mode. This is clearly a bug. Cheers Samuel Le 26/12/2017 ? 19:46, Rafael Guerra a ?crit : > > Dear Scilab?ers, > > Season greetings. > > Does anyone know if it is possible to adjust the data bounds for each > y-axis in a semi-log plot with dual axes? > > The example here below has the non-working data bounding lines > commented out (these work for linear plots though). > > This problem occurs in both Scilab 5.5.2 & 6.0.0 (Win7 64). > > /// START OF CODE/ > > clearall; > > _clf_; > > xmin= 1; xmax = 1e3; > > x= 10^_linspace_(log10(xmin),log10(xmax),100); > > y1= 2 + 100*log10(x).^0.5; > > y2= 30 + 20*log10(x); > > a1= newaxes(); > > ///a1.data_bounds = [xmin,0;xmax,200];// how to use data_bounds with > log plots?/ > > a1.font_foreground= color('red'); > > plot2d(x,y1,logflag="ln"); > > p=_gce_(); > > p.children.foreground=5;/// red/ > > a2= newaxes(); > > ///a2.data_bounds = [xmin,-100;xmax,100]; // how to use data_bounds > with log plots?/ > > a2.filled= "off"; > > a2.axes_visible(1)= "off"; /// 2nd x-axis hidden/ > > a2.y_location= "right"; > > a2.font_foreground= color('blue'); > > plot2d(x,y2,logflag="ln"); > > p=_gce_(); > > p.children.foreground=2; > > xgrid() > > /// END OF CODE/ > > Thanks and regards, > > Rafael > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Tue Dec 26 20:52:10 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 26 Dec 2017 19:52:10 +0000 Subject: [Scilab-users] Adjusting data bounds of semi-log plot with dual axes In-Reply-To: <1f5615b4-c581-26d8-24a1-b1bb7275a2b0@free.fr> References: <1f5615b4-c581-26d8-24a1-b1bb7275a2b0@free.fr> Message-ID: Hello Samuel, Thanks a lot for your help. This was a tricky bug and I am glad that there is a solution. Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Fri Dec 29 13:47:22 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Fri, 29 Dec 2017 20:47:22 +0800 Subject: [Scilab-users] Atoms login In-Reply-To: References: <04dc9350-1369-755e-6fd4-cc7ca60fd3ea@free.fr> <64253f89-c22f-358b-47f2-9bc0e61bc07c@free.fr> <6392edd5998b556a10872b645b32ee76@scilab-enterprises.com> Message-ID: Hi, I am facing the similar issue with Scilab IPCV 1.2 (https://atoms.scilab.org/toolboxes/IPCV/1.2), after uploading the module with binaries for quite some times, the atomsGUI still showing the older version, which is 1.1, and atomsInstall will then install the old version as well. atomsSystemUpdate() does not help as well. Any advice on what extra steps to make the updates available ? Thanks. Regards, Chin Luh On 18/11/2017 12:35 AM, Grzegorz Skiba wrote: > Dear Simon, > > it seems that there is still some problem with ATOMS, after uploading > new version of MicroDAQ toolbox isn't isn't visible in Module manage > in Scilab - the uploaded 1.2 version and previous versions are not > available. > > The 1.2v can be accessed via web: > > https://atoms.scilab.org/toolboxes/microdaq/1.2.0 > > but it is not possible to install it from Scilab with > atomsInstall("microdaq"); > > The toolbox should be available immediately?or server needs to do some > indexing etc and will be available?later? > > Regards Grzegorz > > 2017-11-17 11:22 GMT+01:00 >: > > Hello, > > The login issue has been fixed. There were two problems with LDAP > configuration (due to migration), and session management. > > There is still a problem about email sending, probably due to a > bad configuration on the new server, we are working on it. > But it does not prevent toolbox or file (fileexchange) updates. > > Sorry for the delay. > > Simon Marchetto > > Le 2017-11-14 20:53, Samuel Gougeon a ?crit?: > > Hello, > > ?Le 26/09/2017 ? 22:49, Samuel Gougeon a ?crit : > > Le 25/09/2017 ? 23:07, Shamika Mohanan a ?crit : > > Hello, > > Is anyone having trouble logging into their ATOMS > account? I'm > unable to log in or create a new account. > > > Neither are we. Please have a look at > > http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.html > > > [1] > > > ?There are some slight changes on this side, despite it is still > impossible to update existing modules and filesets and to > create new > ones: > ?When login, we no longer get neither a blank page without > actually > being logged, nor -- more recently -- getting any red messages > about > internal errors (likely addressed to debuggers). > > ?But there is now a kind of status inversion: > ?Let's logging. Then, we are directed back to the ATOMS portal > with > > ?displayed on the top right corner, and still without any admin > rights. The strange thing is that > ?when we then click on "create an account" while we have > already one > and we just tried to logging, > ?we get on the top right corner > > ?So, we have been actually acknowledged by the loggin process! > ?Unfortunately, clicking? on Preferences does not lead to the > dedicated personal page. > ?No actual page uses the user profile and the SESSION_ID. > > ?This stands also after having removed all old cookies, that could > prevent a sane ATOMS session after the migration of the ATOMS > server. > > ?Regards > ?Samuel Gougeon > > > > Links: > ------ > [1] > http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.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 > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: