From chinluh.tan at bytecode-asia.com Fri May 1 12:21:27 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Fri, 01 May 2020 18:21:27 +0800 Subject: [Scilab-users] Fwd: Re: Corona modelling In-Reply-To: <9fa01616-8119-0223-c6b6-ae3c933c0bb0@utc.fr> References: <61797769-8CEB-4391-8C95-A5C56438B43B@me.com> <171c6ae0832.cf74548679481.1373004697343489558@bytecode-asia.com> <171cbfa1738.dd223406246274.6201721570385894168@bytecode-asia.com> <9fa01616-8119-0223-c6b6-ae3c933c0bb0@utc.fr> Message-ID: <171cfc159f2.10941b246313297.4985637532656864124@bytecode-asia.com> Thanks Stephane for your sharing.? I agreed with you that the Initial population (susceptible individuals) is one of the unknown parameters, so there will be 3 parameters to tune in SIR model. As the parameters are somehow related to each other, and I read somewhere that the Gamma is rather fixed as the recovery days shall be somehow known by now.? So if we can set the Gamma to a smaller range, we would have only 2 to adjust to get some reasonable prediction?? One more parameter is the starting date, as the data started from 1/22/20, but I think each country shall be adjusted for their actual date where the virus start to spread.? Any ideas are welcome.? Thanks. Regards, Chin Luh ---- On Fri, 01 May 2020 01:12:12 +0800 St?phane Mottelet wrote ---- Hi, My experience with the SIR model (not SEIR) is that the estimated parameters are very sensitive to the initial condition of the Infected pool. Hence, this initial condition should be also considered as a parameter to be identified. However, the main problem (at least with France data) is that fitting Infected and Recovered (cured or dead people) together gives not satisfactory results. My two cents... S. Le 30/04/2020 ? 18:44, Chin Luh Tan a ?crit?: -- 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 at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users Just notice that this email was stuck due to the image attached was too large, and notice the new post by?Claus with the SEIR model from Matlab, perhaps Scilabers could make the model more realistic together. CL ============ Forwarded message ============ From: Chin Luh Tan To: "Users mailing list for Scilab" Date: Thu, 30 Apr 2020 00:03:46 +0800 Subject: Re: [Scilab-users] Corona modelling ============ Forwarded message ============ Hi,? I just modified Stephane's nice GUI to make it able to load the real world data from internet so that we could overlapped the data to the SIR model to study the effect of locked-down, and the meaning of the coefficients.? From some reading from the internet, the "Susceptible" population is kind of like difficult to determined, and some suggested to use "current cases" as "optimum model" assuming the condition is recovering. As or the "optional model", the "total population" is being used. While?"beta" is the transmission coefficient, "gamma" the recovery factor, can anyone explained more details, perhaps in layman term, how to relate these? parameters to one country condition, such as the relationship between gamma with the number of days (what days is it referring to), beta "actual meaning" in layman term, and perhaps link with some "technical term" the newspaper always seen on papers?? I attached the GUI, which will load 3 sets of data from?Johns Hopkins Github, (https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series) which could be download using following 3 lines directly from the Scilab: --> fn = getURL('https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_global.csv') --> fn = getURL('https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv') --> fn = getURL('https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_recovered_global.csv') and run the GUI as attached. rgds, CL ---- On Mon, 30 Mar 2020 14:13:40 +0800 St?phane Mottelet wrote ---- Hello Heinz, Here is an interactive version (made for my children last week...) : // Confinement COVID-19 ! // Stephane MOTTELET, UTC // Tue Mar 24 08:55:03 CET 2020 // function dydt=sir(t, y, bet, gam, N) dydt=[-bet/N*y(1)*y(2) bet/N*y(1)*y(2)-gam*y(2) gam*y(2)]; endfunction function draw(bet, gam) t=0:1:360; N=6e7; if exists("gcbo") && is_handle_valid(gcbo) sb = gcbo; if sb.tag=="beta" bet=sb.value; gam=findobj("gamma").value else gam=sb.value; bet=findobj("beta").value end y=ode('stiff',[N-1;1;0],0,t,list(sir,bet,gam,N)); curves = findobj("curves"); curves.children(1).data(:,2)=y(3,:); curves.children(2).data(:,2)=y(2,:); curves.children(3).data(:,2)=y(1,:); else y=ode('stiff',[N-1;1;0],0,t,list(sir,bet,gam,N)); scf(0) clf plot(t,y) gce().tag="curves"; gce().children.thickness=2; legend("Susceptible","Infected","Recovered",-1) sb1 = uicontrol("style","slider",... "units","normalized",... "Position", [0.85,0.2,0.05,0.48],... "BackgroundColor", [1,1,1],... "Callback_Type",12,... "sliderstep",[1/1000,1/10],... "min",0.15,"max",0.3,"value",bet,... "Callback","draw","tag","beta"); uicontrol("style","text",... "string","$\beta$",... "units","normalized",... "Position", [0.85,0.125,0.05,0.08],... "BackgroundColor", [1,1,1],... "HorizontalAlignment","center"); sb1 = uicontrol("style","slider",... "units","normalized",... "Position", [0.90,0.2,0.05,0.48],... "BackgroundColor", [1,1,1],... "Callback_Type",12,... "sliderstep",[1/1000,1/10],... "min",0,"max",1/15,"value",gam,... "Callback","draw","tag","gamma"); uicontrol("style","text",... "string","$\gamma$",... "units","normalized",... "Position", [0.9,0.125,0.05,0.08],... "BackgroundColor", [1,1,1],... "HorizontalAlignment","center"); end end clf draw(0.3,1/15) Le 30/03/2020 ? 02:14, Heinz Nabielek a ?crit?: Colleagues: is there an straightforward Scilab approach for solving the three coupled nonlinear differential equations of first order given by the Standard Model of Epidemics? S= number Susceptible: S'=-aSI I= number Infected: I'=aSI - bI R= number Recovered: R'=bI whereby 'a' is the transmission coefficient, 'b' the recovery factor (after Reed-Frost 1928). Initial values for S, I, R are available. Thank you Heinz _______________________________________________ users mailing list mailto: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 https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.utc.fr/~mottelet _______________________________________________ users mailing list mailto:users at lists.scilab.org https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list mailto: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: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1588328475924001_223343960.gif Type: image/gif Size: 17459 bytes Desc: not available URL: From fmiyara at fceia.unr.edu.ar Sun May 3 08:51:36 2020 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Sun, 3 May 2020 03:51:36 -0300 Subject: [Scilab-users] log and log1p Message-ID: <6c5bfac8-313f-306c-8253-4998ab2d062d@fceia.unr.edu.ar> Dear all, I was comparing the accuracy of FFT and two exact formulas for the FFT of a complex exponential and I was first surprised by a relative accuracy of only 10^-13 for N = 4096, but on second thought it may be related to arithmetic errors due to about N*log2(N) sums and products. But I was much more surprised to detect similar errors between different exact formulas. These formulas involve a few instances of exponentials so I conjectured that the problem may be related to the exponential accuracy. When trying to find some informationabout accuracyin the documentation I found none. The only mention in the elementary function set to accuracy appears in log1p(), a strange function equal to log(1+x), which is seemingly included to fix some accuracy problem of the natural logarithm very close to 1. Intuition suggests that near 1 the Taylor approximation for log(1+x) should work very well. I guess that is what log1p() does, so I wonder why a function such as log1p is really necessary. It seems more reasonable to internally detect the favorable situation and switch the algorithm to get the maximum attainable accuracy. So if one needs an accurate log(1+x) function, one wouldjusttype log(1+x)! But regardless of this discusion, I think it would very useful some hints about accuracy in the help pages of elementary and other functions. For instance, with format(25) --> exp(10) ?ans? = ?? 22026.4657948067_1_7894971 while the Windows calculator (which is generally accurate to the last shown digit) yields 22026.4657948067_1_6516957900645284 The underlined digits are the least significant ones common to both solutions. Scilab shows up to 25 digits, but only the first 16 of them are accurate. Regards, Federico Miyara -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Sun May 3 10:41:22 2020 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Sun, 3 May 2020 10:41:22 +0200 Subject: [Scilab-users] log and log1p In-Reply-To: <6c5bfac8-313f-306c-8253-4998ab2d062d@fceia.unr.edu.ar> References: <6c5bfac8-313f-306c-8253-4998ab2d062d@fceia.unr.edu.ar> Message-ID: <2F47E992-1350-4F24-9DE8-240B92817F5F@utc.fr> Hi Fredrico, See the discussion @ https://stackoverflow.com/questions/52736011/instruction-fyl2xp1 here is a relevant excerpt: The Taylor series for log(x) is usually done about x = 1. So every term will have x - 1. If you're trying to compute log(x + 1) for a very small x, a direct call as log(x + 1) will result in x + 1 - 1 which will drop all the low-order bits of x - thereby losing precision if x is really small. A built-in log(x+1)can then elide this x + 1 - 1 step and preserve the full precision > Le 3 mai 2020 ? 08:52, Federico Miyara a ?crit : > > ? > Dear all, > > I was comparing the accuracy of FFT and two exact formulas for the FFT of a complex exponential and I was first surprised by a relative accuracy of only 10^-13 for N = 4096, but on second thought it may be related to arithmetic errors due to about N*log2(N) sums and products. > > But I was much more surprised to detect similar errors between different exact formulas. These formulas involve a few instances of exponentials so I conjectured that the problem may be related to the exponential accuracy. When trying to find some information about accuracy in the documentation I found none. > > The only mention in the elementary function set to accuracy appears in log1p(), a strange function equal to log(1+x), which is seemingly included to fix some accuracy problem of the natural logarithm very close to 1. Intuition suggests that near 1 the Taylor approximation for log(1+x) should work very well. I guess that is what log1p() does, so I wonder why a function such as log1p is really necessary. It seems more reasonable to internally detect the favorable situation and switch the algorithm to get the maximum attainable accuracy. So if one needs an accurate log(1+x) function, one would just type log(1+x)! > > But regardless of this discusion, I think it would very useful some hints about accuracy in the help pages of elementary and other functions. > > For instance, with format(25) > > --> exp(10) > ans = > 22026.465794806717894971 > > while the Windows calculator (which is generally accurate to the last shown digit) yields > > 22026.465794806716516957900645284 > > The underlined digits are the least significant ones common to both solutions. Scilab shows up to 25 digits, but only the first 16 of them are accurate. > > Regards, > > Federico Miyara > > _______________________________________________ > 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 fmiyara at fceia.unr.edu.ar Mon May 4 05:21:54 2020 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Mon, 4 May 2020 00:21:54 -0300 Subject: [Scilab-users] log and log1p In-Reply-To: <2F47E992-1350-4F24-9DE8-240B92817F5F@utc.fr> References: <6c5bfac8-313f-306c-8253-4998ab2d062d@fceia.unr.edu.ar> <2F47E992-1350-4F24-9DE8-240B92817F5F@utc.fr> Message-ID: <6b4fabb1-b751-ac2b-2f6a-30842d058ee7@fceia.unr.edu.ar> St?phane, Thanks. I think I get the idea: log(1+x) allows values much closer to 1 than possible with log(x) because x could fall down way below %eps, since the full folating point range for small values would be available (about 1e-323). But then the same would be true for any function that happens to be 0 at some point, such as cos(x) at %pi/2, or besselj(x) at any of its zeros. Besides, for any value for which log1p() is relevant (in the sense that it would differ from an optimized log(x) that is accurate up to 1 + %eps or so) probably log1p(x) wouldn't differ from x, since the next digit, corresponding to the x^2 Taylor term cannot fit in the mantissa of a double different from x. For instance (as per Wolfram Alpha site --truncated), log(1 + 1e-16) = 9.99999999999999950000000000000003333333333333333083333333333333353333333333333331... ? 10^-17 Attempting to represent this with double, it yields 0.0000000000000001 No difference from 1e-16 since the next different digit would produce a difference below %eps. log1p() would make sense in case the result could be given with extended precision Regards, Federico Miyara On 03/05/2020 05:41, St?phane Mottelet wrote: > Hi Fredrico, > > See the discussion @ > > https://stackoverflow.com/questions/52736011/instruction-fyl2xp1 > > here is a relevant excerpt: > > The Taylor series for |log(x)|?is usually done about |x = 1|. So every > term will have |x - 1|. If you're trying to compute |log(x + 1)|?for a > very small |x|, a direct call as |log(x + 1)|?will result in |x + 1 - > 1|?which will drop all the low-order bits of |x|?- thereby losing > precision if |x|?is really small. A built-in |log(x+1)|can then elide > this |x + 1 - 1|?step and preserve the full precision > > >> Le 3 mai 2020 ? 08:52, Federico Miyara a >> ?crit?: >> >> ? >> Dear all, >> >> I was comparing the accuracy of FFT and two exact formulas for the >> FFT of a complex exponential and I was first surprised by a relative >> accuracy of only 10^-13 for N = 4096, but on second thought it may be >> related to arithmetic errors due to about N*log2(N) sums and products. >> >> But I was much more surprised to detect similar errors between >> different exact formulas. These formulas involve a few instances of >> exponentials so I conjectured that the problem may be related to the >> exponential accuracy. When trying to find some informationabout >> accuracyin the documentation I found none. >> >> The only mention in the elementary function set to accuracy appears >> in log1p(), a strange function equal to log(1+x), which is seemingly >> included to fix some accuracy problem of the natural logarithm very >> close to 1. Intuition suggests that near 1 the Taylor approximation >> for log(1+x) should work very well. I guess that is what log1p() >> does, so I wonder why a function such as log1p is really necessary. >> It seems more reasonable to internally detect the favorable situation >> and switch the algorithm to get the maximum attainable accuracy. So >> if one needs an accurate log(1+x) function, one wouldjusttype log(1+x)! >> >> But regardless of this discusion, I think it would very useful some >> hints about accuracy in the help pages of elementary and other functions. >> >> For instance, with format(25) >> >> --> exp(10) >> ?ans? = >> ?? 22026.4657948067_1_7894971 >> >> while the Windows calculator (which is generally accurate to the last >> shown digit) yields >> >> 22026.4657948067_1_6516957900645284 >> >> The underlined digits are the least significant ones common to both >> solutions. Scilab shows up to 25 digits, but only the first 16 of >> them are accurate. >> >> Regards, >> >> Federico Miyara >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/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 laytonjb at gmail.com Tue May 5 18:03:43 2020 From: laytonjb at gmail.com (Jeffrey Layton) Date: Tue, 5 May 2020 12:03:43 -0400 Subject: [Scilab-users] Problem starting scilab on Ubuntu 18.04 Message-ID: Good afternoon, I'm running Ubuntu 18.04 and I just installed scilab using $ sudo apt-get install scilab It looks to be version 6.0.1-7. I can run the CLI but when I try to run the GUI using $ scilab I get an error (show below). Any pointers? I tried Googling but didn't see anything related to this. Thanks! Jeff WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.scilab.modules.jvm.LibraryPath (file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) to field java.lang.ClassLoader.sys_paths WARNING: Please consider reporting this to the maintainers of org.scilab.modules.jvm.LibraryPath WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Could not access to the Main Scilab Class: Exception in thread "main" java.lang.ExceptionInInitializerError at org.scilab.modules.localization.Messages.gettext(Unknown Source) at org.scilab.modules.commons.xml.XConfiguration.(Unknown Source) at org.scilab.modules.core.Scilab.(Unknown Source) Caused by: java.lang.NullPointerException at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2646) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830) at java.base/java.lang.System.loadLibrary(System.java:1870) at org.scilab.modules.localization.MessagesJNI.(Unknown Source) ... 3 more 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). -------------- next part -------------- An HTML attachment was scrubbed... URL: From xristosp69 at gmail.com Wed May 6 10:19:53 2020 From: xristosp69 at gmail.com (xristosp69) Date: Wed, 6 May 2020 01:19:53 -0700 (MST) Subject: [Scilab-users] Cant start Scilab on linux (pop_os) 20.04 Message-ID: <1588753193233-0.post@n3.nabble.com> Hello, yesterday i downloaded scilab and 3 apps popped up, scilab, scilab advanced and scilab cli. Scilab cli opens a terminal but the other 2 do nothing, but when i type "scilab" in a normal terminal i get this: https://pastebin.com/VTVYbrmt could anyone help me out with this? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From antoine.monmayrant at laas.fr Wed May 6 11:17:28 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 6 May 2020 11:17:28 +0200 Subject: [Scilab-users] Cant start Scilab on linux (pop_os) 20.04 In-Reply-To: <1588753193233-0.post@n3.nabble.com> References: <1588753193233-0.post@n3.nabble.com> Message-ID: <87c1174d-1bf0-934d-ab30-0d85f04d7c88@laas.fr> Hello, It seems to be the same issue than for ubuntu 18.04: the packaged version of scilab is just not working. You should download the last version of scilab ( https://www.scilab.org/download/6.1.0/scilab-6.1.0.bin.linux-x86_64.tar.gz ), untar it and launch it. Hope it helps, Antoine On 06/05/2020 10:19, xristosp69 wrote: > Hello, > yesterday i downloaded scilab and 3 apps popped up, scilab, scilab advanced > and scilab cli. > Scilab cli opens a terminal but the other 2 do nothing, but when i type > "scilab" in a normal terminal i get this: > https://pastebin.com/VTVYbrmt > could anyone help me out with this? > > > > -- > 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 xristosp69 at gmail.com Wed May 6 11:39:27 2020 From: xristosp69 at gmail.com (xristosp69) Date: Wed, 6 May 2020 02:39:27 -0700 (MST) Subject: [Scilab-users] Cant start Scilab on linux (pop_os) 20.04 In-Reply-To: <87c1174d-1bf0-934d-ab30-0d85f04d7c88@laas.fr> References: <1588753193233-0.post@n3.nabble.com> <87c1174d-1bf0-934d-ab30-0d85f04d7c88@laas.fr> Message-ID: <1588757967439-0.post@n3.nabble.com> ok i downloaded and extracted it, but im not sure how to run it, double clicking scilab in the bin folder only opens it in a text editor (sry im kinda new to linux) -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From antoine.monmayrant at laas.fr Wed May 6 12:02:43 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 6 May 2020 12:02:43 +0200 Subject: [Scilab-users] Cant start Scilab on linux (pop_os) 20.04 In-Reply-To: <87c1174d-1bf0-934d-ab30-0d85f04d7c88@laas.fr> References: <1588753193233-0.post@n3.nabble.com> <87c1174d-1bf0-934d-ab30-0d85f04d7c88@laas.fr> Message-ID: <558d1dca-b5fa-ed92-8f24-79b70eab0fa8@laas.fr> OK, I can confirm that the same bug is present in ubuntu 18.04 ubuntu 20.04 pop_os 20.04 Antoine On 06/05/2020 11:17, Antoine Monmayrant wrote: > Hello, > > It seems to be the same issue than for ubuntu 18.04: the packaged > version of scilab is just not working. > You should download the last version of scilab ( > https://www.scilab.org/download/6.1.0/scilab-6.1.0.bin.linux-x86_64.tar.gz > ), untar it and launch it. > > Hope it helps, > > Antoine > > > On 06/05/2020 10:19, xristosp69 wrote: >> Hello, >> yesterday i downloaded scilab and 3 apps popped up, scilab, scilab >> advanced >> and scilab cli. >> Scilab cli opens a terminal but the other 2 do nothing, but when i type >> "scilab" in a normal terminal i get this: >> https://pastebin.com/VTVYbrmt >> could anyone help me out with this? >> >> >> >> -- >> 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 > From xristosp69 at gmail.com Wed May 6 12:05:54 2020 From: xristosp69 at gmail.com (xristosp69) Date: Wed, 6 May 2020 03:05:54 -0700 (MST) Subject: [Scilab-users] Cant start Scilab on linux (pop_os) 20.04 In-Reply-To: <1588753193233-0.post@n3.nabble.com> References: <1588753193233-0.post@n3.nabble.com> Message-ID: <1588759554108-0.post@n3.nabble.com> ok i got it working, i had to do ./scilab on that folder, but i got the same error this guy had: https://bugzilla.scilab.org/show_bug.cgi?id=16418 so i used his workaround of installing libtinfo5, trying to run scilab-bin the same way gives me a libtinfo*6* error though, not sure how that works but i tried installing libtinfo6 the same way but nothing happened. Also, i see in another folder that there are some scilab.desktop files for scilab, do i have to put those somewhere in order for them to appear in my apps? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From laytonjb at gmail.com Wed May 6 12:09:32 2020 From: laytonjb at gmail.com (Jeffrey Layton) Date: Wed, 6 May 2020 10:09:32 +0000 Subject: [Scilab-users] Problem starting scilab on Ubuntu 18.04 In-Reply-To: <861f1767-d26d-5a5d-f510-5e56fdf50300@laas.fr> References: <861f1767-d26d-5a5d-f510-5e56fdf50300@laas.fr> Message-ID: Antoine, I added the Scilab list back to the thread in case anyone else has this problem. I agree with you. the Ubuntu packages do NOT work. I will try downloading from Scilab.org. Thank you for your suggestion! Jeff On Wed, May 6, 2020 at 6:12 AM Antoine Monmayrant < antoine.monmayrant at laas.fr> wrote: > Hello Jeff, > It seems I have the same problem (see below). > I just don't use the version provided by apt-get and install directly the > one available on scilab.org (6.1). > I assume this is a bug for the maintainer of the package for ubuntu, no? > Does anyone know how to report it? > > Antoine > > //// CRASH LOG //// > > /usr/bin/scilab > Picked up _JAVA_OPTIONS: > -Djava.class.path=/usr/share/java/flexdock.jar:/usr/share/java/skinlf.jar:/usr/share/java/looks.jar:/usr/share/java/commons-logging.jar:/usr/share/java/jhall.jar:/usr/share/java/lucene-core-4.10.4.jar:/usr/share/java/lucene-analyzers-common-4.10.4.jar:/usr/share/java/lucene-queryparser-4.10.4.jar:/usr/share/maven-repo/org/freehep/freehep-util/debian/freehep-util-debian.jar:/usr/share/maven-repo/org/freehep/freehep-io/debian/freehep-io-debian.jar:/usr/share/maven-repo/org/freehep/freehep-graphicsio/debian/freehep-graphicsio-debian.jar:/usr/share/java/freehep-graphicsio-emf-2.1.jar:/usr/share/java/freehep-graphics2d-2.1.1.jar:/usr/share/java/jrosetta-API.jar:/usr/share/java/jrosetta-engine-1.0.4.jar:/usr/share/java/jgraphx.jar:/usr/share/java/jogl2.jar:/usr/share/java/gluegen2-rt.jar:/usr/share/java/jeuclid-core.jar:/usr/share/java/jlatexmath-fop-1.0.7.jar:/usr/share/java/fop.jar:/usr/share/java/saxon.jar:/usr/share/java/batik.jar:/usr/share/java/xml-apis-ext.jar:/usr/share/java/commons-io.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/jlatexmath-1.0.7.jar:/usr/share/java/ecj.jar:/usr/share/java/javax.activation.jar:/usr/share/java/jaxb-runtime.jar:/usr/share/scilab/modules/action_binding/jar/org.scilab.modules.action_binding.jar:/usr/share/scilab/modules/helptools/jar/scilab_ru_RU_help.jar:/usr/share/scilab/modules/helptools/jar/org.scilab.modules.helptools.jar:/usr/share/scilab/modules/helptools/jar/scilab_en_US_help.jar:/usr/share/scilab/modules/helptools/jar/scilab_images.jar:/usr/share/scilab/modules/types/jar/org.scilab.modules.types.jar:/usr/share/scilab/modules/graphic_objects/jar/org.scilab.modules.graphic_objects.jar:/usr/share/scilab/modules/xcos/jar/org.scilab.modules.xcos.jar:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar:/usr/share/scilab/modules/ui_data/jar/org.scilab.modules.ui_data.jar:/usr/share/scilab/modules/javasci/jar/org.scilab.modules.javasci.jar:/usr/share/scilab/modules/renderer/jar/org.scilab.modules.renderer.jar:/usr/share/scilab/modules/history_browser/jar/org.scilab.modules.history_browser.jar:/usr/share/scilab/modules/external_objects_java/jar/org.scilab.modules.external_objects_java.jar:/usr/share/scilab/modules/scirenderer/jar/scirenderer.jar:/usr/share/scilab/modules/completion/jar/org.scilab.modules.completion.jar:/usr/share/scilab/modules/graph/jar/org.scilab.modules.graph.jar:/usr/share/scilab/modules/preferences/jar/org.scilab.modules.preferences.jar:/usr/share/scilab/modules/history_manager/jar/org.scilab.modules.history_manager.jar:/usr/share/scilab/modules/console/jar/org.scilab.modules.console.jar:/usr/share/scilab/modules/localization/jar/org.scilab.modules.localization.jar:/usr/share/scilab/modules/gui/jar/org.scilab.modules.gui.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:/usr/share/scilab/modules/graphic_export/jar/org.scilab.modules.graphic_export.jar:/usr/share/scilab/modules/scinotes/jar/org.scilab.modules.scinotes.jar:/usr/share/scilab/modules/commons/jar/org.scilab.modules.commons.jar: > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by org.scilab.modules.jvm.LibraryPath ( > file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) to > field java.lang.ClassLoader.sys_paths > WARNING: Please consider reporting this to the maintainers of > org.scilab.modules.jvm.LibraryPath > WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations > WARNING: All illegal access operations will be denied in a future release > Could not access to the Main Scilab Class: > Exception in thread "main" java.lang.ExceptionInInitializerError > at org.scilab.modules.localization.Messages.gettext(Unknown Source) > at org.scilab.modules.commons.xml.XConfiguration.(Unknown > Source) > at org.scilab.modules.core.Scilab.(Unknown Source) > Caused by: java.lang.NullPointerException > at > java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2646) > at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830) > at java.base/java.lang.System.loadLibrary(System.java:1870) > at org.scilab.modules.localization.MessagesJNI.(Unknown > Source) > ... 3 more > > 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). > > > On 05/05/2020 18:03, Jeffrey Layton wrote: > > Good afternoon, > > I'm running Ubuntu 18.04 and I just installed scilab using > > $ sudo apt-get install scilab > > It looks to be version 6.0.1-7. I can run the CLI but when I try to run > the GUI using > > $ scilab > > I get an error (show below). Any pointers? I tried Googling but didn't see > anything related to this. > > Thanks! > > Jeff > > > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by org.scilab.modules.jvm.LibraryPath ( > file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) to > field java.lang.ClassLoader.sys_paths > WARNING: Please consider reporting this to the maintainers of > org.scilab.modules.jvm.LibraryPath > WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations > WARNING: All illegal access operations will be denied in a future release > Could not access to the Main Scilab Class: > Exception in thread "main" java.lang.ExceptionInInitializerError > at org.scilab.modules.localization.Messages.gettext(Unknown Source) > at org.scilab.modules.commons.xml.XConfiguration.(Unknown Source) > at org.scilab.modules.core.Scilab.(Unknown Source) > Caused by: java.lang.NullPointerException > at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2646) > at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830) > at java.base/java.lang.System.loadLibrary(System.java:1870) > at org.scilab.modules.localization.MessagesJNI.(Unknown Source) > ... 3 more > > 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 listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Wed May 6 12:17:08 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 6 May 2020 12:17:08 +0200 Subject: [Scilab-users] Problem starting scilab on Ubuntu 18.04 In-Reply-To: References: <861f1767-d26d-5a5d-f510-5e56fdf50300@laas.fr> Message-ID: OK, Stay tuned as what xristosp69 is describing is the same issue. So all the workaround we will set up will apply to you. Antoine On 06/05/2020 12:09, Jeffrey Layton wrote: > Antoine, > > I added the Scilab list back to the thread in case anyone else has > this problem. > > I agree with you. the Ubuntu packages do NOT work. I will try > downloading from Scilab.org. > > Thank you for your suggestion! > > Jeff > > > On Wed, May 6, 2020 at 6:12 AM Antoine Monmayrant > > wrote: > > Hello Jeff, > > It seems I have the same problem (see below). > I just don't use the version provided by apt-get and install > directly the one available on scilab.org (6.1). > I assume this is a bug for the maintainer of the package for > ubuntu, no? > Does anyone know how to report it? > > Antoine > > //// CRASH LOG //// > > /usr/bin/scilab > Picked up _JAVA_OPTIONS: > -Djava.class.path=/usr/share/java/flexdock.jar:/usr/share/java/skinlf.jar:/usr/share/java/looks.jar:/usr/share/java/commons-logging.jar:/usr/share/java/jhall.jar:/usr/share/java/lucene-core-4.10.4.jar:/usr/share/java/lucene-analyzers-common-4.10.4.jar:/usr/share/java/lucene-queryparser-4.10.4.jar:/usr/share/maven-repo/org/freehep/freehep-util/debian/freehep-util-debian.jar:/usr/share/maven-repo/org/freehep/freehep-io/debian/freehep-io-debian.jar:/usr/share/maven-repo/org/freehep/freehep-graphicsio/debian/freehep-graphicsio-debian.jar:/usr/share/java/freehep-graphicsio-emf-2.1.jar:/usr/share/java/freehep-graphics2d-2.1.1.jar:/usr/share/java/jrosetta-API.jar:/usr/share/java/jrosetta-engine-1.0.4.jar:/usr/share/java/jgraphx.jar:/usr/share/java/jogl2.jar:/usr/share/java/gluegen2-rt.jar:/usr/share/java/jeuclid-core.jar:/usr/share/java/jlatexmath-fop-1.0.7.jar:/usr/share/java/fop.jar:/usr/share/java/saxon.jar:/usr/share/java/batik.jar:/usr/share/java/xml-apis-ext.jar:/usr/share/java/commons-io.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/jlatexmath-1.0.7.jar:/usr/share/java/ecj.jar:/usr/share/java/javax.activation.jar:/usr/share/java/jaxb-runtime.jar:/usr/share/scilab/modules/action_binding/jar/org.scilab.modules.action_binding.jar:/usr/share/scilab/modules/helptools/jar/scilab_ru_RU_help.jar:/usr/share/scilab/modules/helptools/jar/org.scilab.modules.helptools.jar:/usr/share/scilab/modules/helptools/jar/scilab_en_US_help.jar:/usr/share/scilab/modules/helptools/jar/scilab_images.jar:/usr/share/scilab/modules/types/jar/org.scilab.modules.types.jar:/usr/share/scilab/modules/graphic_objects/jar/org.scilab.modules.graphic_objects.jar:/usr/share/scilab/modules/xcos/jar/org.scilab.modules.xcos.jar:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar:/usr/share/scilab/modules/ui_data/jar/org.scilab.modules.ui_data.jar:/usr/share/scilab/modules/javasci/jar/org.scilab.modules.javasci.jar:/usr/share/scilab/modules/renderer/jar/org.scilab.modules.renderer.jar:/usr/share/scilab/modules/history_browser/jar/org.scilab.modules.history_browser.jar:/usr/share/scilab/modules/external_objects_java/jar/org.scilab.modules.external_objects_java.jar:/usr/share/scilab/modules/scirenderer/jar/scirenderer.jar:/usr/share/scilab/modules/completion/jar/org.scilab.modules.completion.jar:/usr/share/scilab/modules/graph/jar/org.scilab.modules.graph.jar:/usr/share/scilab/modules/preferences/jar/org.scilab.modules.preferences.jar:/usr/share/scilab/modules/history_manager/jar/org.scilab.modules.history_manager.jar:/usr/share/scilab/modules/console/jar/org.scilab.modules.console.jar:/usr/share/scilab/modules/localization/jar/org.scilab.modules.localization.jar:/usr/share/scilab/modules/gui/jar/org.scilab.modules.gui.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:/usr/share/scilab/modules/graphic_export/jar/org.scilab.modules.graphic_export.jar:/usr/share/scilab/modules/scinotes/jar/org.scilab.modules.scinotes.jar:/usr/share/scilab/modules/commons/jar/org.scilab.modules.commons.jar: > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > org.scilab.modules.jvm.LibraryPath > (file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) > to field java.lang.ClassLoader.sys_paths > WARNING: Please consider reporting this to the maintainers of > org.scilab.modules.jvm.LibraryPath > WARNING: Use --illegal-access=warn to enable warnings of further > illegal reflective access operations > WARNING: All illegal access operations will be denied in a future > release > Could not access to the Main Scilab Class: > Exception in thread "main" java.lang.ExceptionInInitializerError > ??????? at > org.scilab.modules.localization.Messages.gettext(Unknown Source) > ??????? at > org.scilab.modules.commons.xml.XConfiguration.(Unknown Source) > ??????? at org.scilab.modules.core.Scilab.(Unknown Source) > Caused by: java.lang.NullPointerException > ??????? at > java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2646) > ??????? at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830) > ??????? at java.base/java.lang.System.loadLibrary(System.java:1870) > ??????? at > org.scilab.modules.localization.MessagesJNI.(Unknown Source) > ??????? ... 3 more > > 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). > > > On 05/05/2020 18:03, Jeffrey Layton wrote: >> Good afternoon, >> >> I'm running Ubuntu 18.04 and I just installed scilab using >> >> $ sudo apt-get install scilab >> >> It looks to be version 6.0.1-7.? I can run the CLI but when I try >> to run the GUI using >> >> $ scilab >> >> I get an error (show below). Any pointers? I tried Googling but >> didn't see anything related to this. >> >> Thanks! >> >> Jeff >> >> >> WARNING: An illegal reflective access operation has occurred >> WARNING: Illegal reflective access by >> org.scilab.modules.jvm.LibraryPath >> (file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) >> to field java.lang.ClassLoader.sys_paths >> WARNING: Please consider reporting this to the maintainers of >> org.scilab.modules.jvm.LibraryPath >> WARNING: Use --illegal-access=warn to enable warnings of further >> illegal reflective access operations >> WARNING: All illegal access operations will be denied in a future >> release >> Could not access to the Main Scilab Class: >> Exception in thread "main" java.lang.ExceptionInInitializerError >> at org.scilab.modules.localization.Messages.gettext(Unknown Source) >> at org.scilab.modules.commons.xml.XConfiguration.(Unknown >> Source) >> at org.scilab.modules.core.Scilab.(Unknown Source) >> Caused by: java.lang.NullPointerException >> at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2646) >> at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830) >> at java.base/java.lang.System.loadLibrary(System.java:1870) >> at org.scilab.modules.localization.MessagesJNI.(Unknown >> Source) >> ... 3 more >> >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Wed May 6 18:45:23 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Thu, 07 May 2020 00:45:23 +0800 Subject: [Scilab-users] Issue on Scilab Compilation on Raspbery Pi Message-ID: <171eae0a7bc.ba8c7137216267.5300319171594597888@bytecode-asia.com> Hi,? I tried to compile scilab 6.1 under raspberry pi 4, and the compilation completed with scilab lauched with following messages: -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Wed May 6 18:51:07 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Thu, 07 May 2020 00:51:07 +0800 Subject: [Scilab-users] Issue on Scilab Compilation on Raspbery Pi In-Reply-To: <171eae0a7bc.ba8c7137216267.5300319171594597888@bytecode-asia.com> References: <171eae0a7bc.ba8c7137216267.5300319171594597888@bytecode-asia.com> Message-ID: <171eae5e749.12bf21ff9217261.1633782610911960284@bytecode-asia.com> sorry pls ignore the previous incomplete email which has been accidentally sent: I tried to compile scilab 6.1 under raspberry pi 4, and the compilation completed with scilab lauched with following messages: Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphicsDevice[type .egl, v1.4.0, connection :0.0, unitID 0, handle 0xffffffffa8b148f0, owner true, ResourceToolkitLock[obj 0xb29daf, isOwner true, <1fa6506, f15db4>[count 1, qsz 0, owner ]]] on thread main-SharedResourceRunner ??? [0]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:518) ??? [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353) ??? [2]: java.lang.Thread.run(Thread.java:748) Caused[0] by NoSuchMethodError: java.nio.IntBuffer.rewind()Ljava/nio/IntBuffer; on thread main-SharedResourceRunner ??? [0]: com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:146) ??? [1]: com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:150) ??? [2]: com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:154) ??? [3]: jogamp.opengl.egl.EGLGraphicsConfiguration.EGLConfig2Capabilities(EGLGraphicsConfiguration.java:221) ??? [4]: jogamp.opengl.egl.EGLGraphicsConfigurationFactory.eglConfigs2GLCaps(EGLGraphicsConfigurationFactory.java:481) ??? [5]: jogamp.opengl.egl.EGLDrawableFactory.getAvailableEGLConfigs(EGLDrawableFactory.java:962) ??? [6]: jogamp.opengl.egl.EGLDrawableFactory.access$800(EGLDrawableFactory.java:88) ??? [7]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.mapAvailableEGLESConfig(EGLDrawableFactory.java:679) ??? [8]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:613) ??? [9]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:516) ??? [10]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353) ??? [11]: java.lang.Thread.run(Thread.java:748) Caught handled GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x1f4f0f8, isOwner false, <1c08638, 40f0>[count 0, qsz 0, owner ]]] on thread main-SharedResourceRunner ??? [0]: jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:306) ??? [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353) ??? [2]: java.lang.Thread.run(Thread.java:748) while I am still able to launch the Scilab and perform most operation, however, when I tried to plot a figure, i get: java.lang.reflect.InvocationTargetException ??????? at java.awt.EventQueue.invokeAndWait(EventQueue.java:1349) ??????? at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324) ??????? at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1353) ??????? at org.scilab.modules.gui.SwingView.updateObject(Unknown Source) ??????? at org.scilab.modules.graphic_objects.graphicController.GraphicController$2.run(Unknown Source) ??????? at org.scilab.modules.graphic_objects.graphicController.GraphicController.objectUpdate(Unknown Source) ??????? at org.scilab.modules.graphic_objects.graphicController.GraphicController.setGraphicObjectRelationship(Unknown Source) ??????? at org.scilab.modules.graphic_objects.builder.Builder.cloneAxesModel(Unknown Source) ??????? at org.scilab.modules.graphic_objects.builder.Builder.createNewFigureWithAxes(Unknown Source) Caused by: com.jogamp.opengl.GLException: Profile GL_DEFAULT is not available on X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x1f4f0f8, isOwner false, <1c08638, 40f0>[count 0, qsz 0, owner ]]], but: [] ??????? at com.jogamp.opengl.GLProfile.get(GLProfile.java:991) ??????? at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722) ??????? at com.jogamp.opengl.awt.GLJPanel.(GLJPanel.java:363) ??????? at com.jogamp.opengl.awt.GLJPanel.(GLJPanel.java:337) ??????? at com.jogamp.opengl.awt.GLJPanel.(GLJPanel.java:325) ??????? at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.(Unknown Source) ??????? at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.(Unknown Source) ??????? at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl.createOpenGLComponent(Unknown Source) . Any suggestion what I need to change for the compilation? I compile scilab with: 1. gcc, g++, gfortran v 8, and also another try on v9 2. openjdk-8-jdk 3. Tried Raspbian, Ubuntu for Pi 18.04 , same issue.? 4. Applied jogl 2.3.2 patch. Thanks. Rgds, CL ---- On Thu, 07 May 2020 00:45:23 +0800 Chin Luh Tan wrote ---- Hi,? I tried to compile scilab 6.1 under raspberry pi 4, and the compilation completed with scilab lauched with following messages: _______________________________________________ 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 May 6 19:42:51 2020 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Wed, 6 May 2020 19:42:51 +0200 Subject: [Scilab-users] [Scilab-Dev] Issue on Scilab Compilation on Raspbery Pi In-Reply-To: <171eae5e749.12bf21ff9217261.1633782610911960284@bytecode-asia.com> References: <171eae5e749.12bf21ff9217261.1633782610911960284@bytecode-asia.com> Message-ID: <798E8A9D-7603-4C08-A160-62A3D1AD5AC5@utc.fr> If you apply the JoGL patch then third parties have to be updated as well. I think you did it. But since this patch is not needed for Linux, I would try to compile with previous version. S. > Le 6 mai 2020 ? 18:52, Chin Luh Tan a ?crit : > > ? > sorry pls ignore the previous incomplete email which has been accidentally sent: > > I tried to compile scilab 6.1 under raspberry pi 4, and the compilation completed with scilab lauched with following messages: > > > Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphicsDevice[type .egl, v1.4.0, connection :0.0, unitID 0, handle 0xffffffffa8b148f0, owner true, ResourceToolkitLock[obj 0xb29daf, isOwner true, <1fa6506, f15db4>[count 1, qsz 0, owner ]]] on thread main-SharedResourceRunner > [0]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:518) > [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353) > [2]: java.lang.Thread.run(Thread.java:748) > Caused[0] by NoSuchMethodError: java.nio.IntBuffer.rewind()Ljava/nio/IntBuffer; on thread main-SharedResourceRunner > [0]: com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:146) > [1]: com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:150) > [2]: com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:154) > [3]: jogamp.opengl.egl.EGLGraphicsConfiguration.EGLConfig2Capabilities(EGLGraphicsConfiguration.java:221) > [4]: jogamp.opengl.egl.EGLGraphicsConfigurationFactory.eglConfigs2GLCaps(EGLGraphicsConfigurationFactory.java:481) > [5]: jogamp.opengl.egl.EGLDrawableFactory.getAvailableEGLConfigs(EGLDrawableFactory.java:962) > [6]: jogamp.opengl.egl.EGLDrawableFactory.access$800(EGLDrawableFactory.java:88) > [7]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.mapAvailableEGLESConfig(EGLDrawableFactory.java:679) > [8]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:613) > [9]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:516) > [10]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353) > [11]: java.lang.Thread.run(Thread.java:748) > Caught handled GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x1f4f0f8, isOwner false, <1c08638, 40f0>[count 0, qsz 0, owner ]]] on thread main-SharedResourceRunner > [0]: jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:306) > [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353) > [2]: java.lang.Thread.run(Thread.java:748) > > while I am still able to launch the Scilab and perform most operation, however, when I tried to plot a figure, i get: > > > java.lang.reflect.InvocationTargetException > at java.awt.EventQueue.invokeAndWait(EventQueue.java:1349) > at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324) > at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1353) > at org.scilab.modules.gui.SwingView.updateObject(Unknown Source) > at org.scilab.modules.graphic_objects.graphicController.GraphicController$2.run(Unknown Source) > at org.scilab.modules.graphic_objects.graphicController.GraphicController.objectUpdate(Unknown Source) > at org.scilab.modules.graphic_objects.graphicController.GraphicController.setGraphicObjectRelationship(Unknown Source) > at org.scilab.modules.graphic_objects.builder.Builder.cloneAxesModel(Unknown Source) > at org.scilab.modules.graphic_objects.builder.Builder.createNewFigureWithAxes(Unknown Source) > Caused by: com.jogamp.opengl.GLException: Profile GL_DEFAULT is not available on X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x1f4f0f8, isOwner false, <1c08638, 40f0>[count 0, qsz 0, owner ]]], but: [] > at com.jogamp.opengl.GLProfile.get(GLProfile.java:991) > at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722) > at com.jogamp.opengl.awt.GLJPanel.(GLJPanel.java:363) > at com.jogamp.opengl.awt.GLJPanel.(GLJPanel.java:337) > at com.jogamp.opengl.awt.GLJPanel.(GLJPanel.java:325) > at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.(Unknown Source) > at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.(Unknown Source) > at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl.createOpenGLComponent(Unknown Source) > . > Any suggestion what I need to change for the compilation? > > I compile scilab with: > 1. gcc, g++, gfortran v 8, and also another try on v9 > 2. openjdk-8-jdk > 3. Tried Raspbian, Ubuntu for Pi 18.04 , same issue. > 4. Applied jogl 2.3.2 patch. > > Thanks. > > Rgds, > CL > > > > > > > ---- On Thu, 07 May 2020 00:45:23 +0800 Chin Luh Tan wrote ---- > > Hi, > > I tried to compile scilab 6.1 under raspberry pi 4, and the compilation completed with scilab lauched with following messages: > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > dev mailing list > dev at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From h_d_f at hotmail.com Thu May 7 13:19:48 2020 From: h_d_f at hotmail.com (hdf) Date: Thu, 7 May 2020 04:19:48 -0700 (MST) Subject: [Scilab-users] Corona modelling In-Reply-To: <1585606706577-0.post@n3.nabble.com> References: <61797769-8CEB-4391-8C95-A5C56438B43B@me.com> <8F119C47-20CC-4A2E-A732-B049E1DA916D@me.com> <50bc6c4cd367b06a3a314832255faddc@tu-sofia.bg> <57611cfb8420333b0d08c9f1adc6e510033fb054.camel@wescottdesign.com> <9219BCF9-E0C5-4202-A837-F39598BA7F33@me.com> <1585606706577-0.post@n3.nabble.com> Message-ID: <1588850388109-0.post@n3.nabble.com> Hello,My contribution, I've done it with Xcos: where you can play with other parameters like a limited immunization (delta), deaths (Mu) etc ...I'm thinking to modelize the healthcare system showing the number of beds saturation effect. But time is missing ... -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From h_d_f at hotmail.com Thu May 7 13:49:23 2020 From: h_d_f at hotmail.com (hdf) Date: Thu, 7 May 2020 04:49:23 -0700 (MST) Subject: [Scilab-users] Corona modelling In-Reply-To: <1588850388109-0.post@n3.nabble.com> References: <61797769-8CEB-4391-8C95-A5C56438B43B@me.com> <8F119C47-20CC-4A2E-A732-B049E1DA916D@me.com> <50bc6c4cd367b06a3a314832255faddc@tu-sofia.bg> <57611cfb8420333b0d08c9f1adc6e510033fb054.camel@wescottdesign.com> <9219BCF9-E0C5-4202-A837-F39598BA7F33@me.com> <1585606706577-0.post@n3.nabble.com> <1588850388109-0.post@n3.nabble.com> Message-ID: <1588852163265-0.post@n3.nabble.com> and here are the results, with parameters given: -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From kopac.jakub at gmail.com Thu May 7 14:01:13 2020 From: kopac.jakub at gmail.com (kjubo) Date: Thu, 7 May 2020 05:01:13 -0700 (MST) Subject: [Scilab-users] Variables visibility in functions Message-ID: <1588852873301-0.post@n3.nabble.com> Dear all, I would like to ask you, how can I disable visibility of variables from workspace for functions. I need to be sure, that function which I convert from script file, will not use any variable, which is not in it input, or defined inside the function itself. Please see examples below. Is this possible? Thank you BR JK example 1: a = 3 function fx = some_fun(x,a) fx = x+a endfunction calling some_fun(5) now return 3+5, but I need to be an error. example 2: a = 3 function fx = some_fun(x) fx = x+a endfunction I need also error, as variable a should be passed as input argument or defined inside some_fun body -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Thu May 7 14:40:03 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 7 May 2020 14:40:03 +0200 Subject: [Scilab-users] Variables visibility in functions In-Reply-To: <1588852873301-0.post@n3.nabble.com> References: <1588852873301-0.post@n3.nabble.com> Message-ID: <610c3659-effb-4207-1a0f-50cdd20cd2ac@utc.fr> Hi, Use Scilab slint tool: https://help.scilab.org/docs/6.1.0/en_US/slint.html S. Le 07/05/2020 ? 14:01, kjubo a ?crit?: > Dear all, > > I would like to ask you, how can I disable visibility of variables from > workspace for functions. > > I need to be sure, that function which I convert from script file, will not > use any variable, which is not in it input, or defined inside the function > itself. > > Please see examples below. > > Is this possible? > > Thank you > > BR > > JK > > example 1: > > a = 3 > function fx = some_fun(x,a) > fx = x+a > endfunction > > calling some_fun(5) now return 3+5, but I need to be an error. > > > example 2: > > a = 3 > function fx = some_fun(x) > fx = x+a > endfunction > > I need also error, as variable a should be passed as input argument > or defined inside some_fun body > > > > -- > Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > 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 Denis.CRETE at cnrs-thales.fr Thu May 7 14:58:44 2020 From: Denis.CRETE at cnrs-thales.fr (CRETE Denis) Date: Thu, 7 May 2020 12:58:44 +0000 Subject: [Scilab-users] Overloading "inv" and/or "p" does not seem to work with Scilab 6.1.0 Message-ID: Hello, I redefined a few functions in Scilab 6.1.0 to extend them to arrays with 3 dimensions (formerly called hypermatrix). Overloading works with "clean", "multiply", "left division" and "element by element division" (after defining functions %s_clean, %s_m_s, %s_l_s and %s_d_s). I tried to overload function "inv" with the following code: function y=%s_inv(x), if ndims(x)>2 then for k=1:size(x,3), y(:,:,k)=inv(x(:,:,k)); end; else y=inv(x); end; endfunction expecting that each layer of y is the reciprocal of corresponding layer of x. Instead, inv(ones(1,1,2).*.rand(2,2)) returns the reciprocal of x layer 1 in y layer 1 AND x LAYER n IN y LAYER n, WHEN n>1. I use "layer" to designate the matrix obtain for a fixed value the index along the 3rd dimension. Code to reproduce the problem: n=4; m=3; M=ones(1,1,n).*.rand(m,m); inv(M) Attempts to circumvent this problem by using M^(-1) instead of inv(M) run into the same problem (after redefining function %s_p). Is this a bug or did I miss something ? In the mean time, I avoided overloading the function "inv" and renamed "%s_inv" to "inverse" to do successfully call "inverse(M)"... Best regards Denis -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu May 7 15:11:10 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 7 May 2020 15:11:10 +0200 Subject: [Scilab-users] Overloading "inv" and/or "p" does not seem to work with Scilab 6.1.0 In-Reply-To: References: Message-ID: <61af93ea-0e55-cd93-fbf0-d02838da2fff@utc.fr> Hi, Le 07/05/2020 ? 14:58, CRETE Denis a ?crit?: > Hello, > > I redefined a few functions in Scilab 6.1.0 to extend them to arrays > with 3 dimensions (formerly called hypermatrix). Overloading works > with "clean", "multiply", "left division" and "element by element > division" (after defining functions %s_clean, %s_m_s, %s_l_s and %s_d_s). clean and element by element division do not need overloading: --> clean(ones(2,2,2)) ?ans? = (:,:,1) ?? 1.?? 1. ?? 1.?? 1. (:,:,2) ?? 1.?? 1. ?? 1.?? 1. --> ones(2,2,2)./ones(2,2,2) ?ans? = (:,:,1) ?? 1.?? 1. ?? 1.?? 1. (:,:,2) ?? 1.?? 1. ?? 1.?? 1. S. > > I tried to overload function "inv" with the following code: > > function y=%s_inv(x), > ??? if ndims(x)>2 then > ??? ??? for k=1:size(x,3), > ??? ??? ??? y(:,:,k)=inv(x(:,:,k)); > ??? ??? end; > ??? else > ??? ??? y=inv(x); > ??? end; > endfunction > > expecting that each layer of y is the reciprocal of corresponding > layer of x. Instead, > inv(ones(1,1,2).*.rand(2,2)) returns the reciprocal of x layer 1 in y > layer 1 AND x LAYER n IN y LAYER n, WHEN n>1. I use "layer" to > designate the matrix obtain for a fixed value the index along the 3rd > dimension. > > Code to reproduce the problem: > > n=4; m=3; > M=ones(1,1,n).*.rand(m,m); > inv(M) > > Attempts to circumvent this problem by using M^(-1) instead of inv(M) > run into the same problem (after redefining function %s_p). Is this a > bug or did I miss something ? > > In the mean time, I avoided overloading the function "inv" and renamed > "%s_inv" to "inverse" to do successfully call "inverse(M)"... > > Best regards > Denis > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Thu May 7 15:16:05 2020 From: heinznabielek at me.com (Heinz Nabielek) Date: Thu, 7 May 2020 15:16:05 +0200 Subject: [Scilab-users] Corona modelling In-Reply-To: <1588852163265-0.post@n3.nabble.com> References: <61797769-8CEB-4391-8C95-A5C56438B43B@me.com> <8F119C47-20CC-4A2E-A732-B049E1DA916D@me.com> <50bc6c4cd367b06a3a314832255faddc@tu-sofia.bg> <57611cfb8420333b0d08c9f1adc6e510033fb054.camel@wescottdesign.com> <9219BCF9-E0C5-4202-A837-F39598BA7F33@me.com> <1585606706577-0.post@n3.nabble.com> <1588850388109-0.post@n3.nabble.com> <1588852163265-0.post@n3.nabble.com> Message-ID: And how does it compare with Johns Hopkins? Heinz > On 07.05.2020, at 13:49, hdf wrote: > > and here are the results, with parameters given: > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From antoine.monmayrant at laas.fr Thu May 7 16:32:06 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 7 May 2020 16:32:06 +0200 Subject: [Scilab-users] Variables visibility in functions In-Reply-To: <1588852873301-0.post@n3.nabble.com> References: <1588852873301-0.post@n3.nabble.com> Message-ID: Hello, I am not sure to understand what you want to achieve here. It is not really clear for me. You might be able to hack something using 'exists" but I am not sure that it would fit nicely with the way Scilab is designed... Antoine On 07/05/2020 14:01, kjubo wrote: > Dear all, > > I would like to ask you, how can I disable visibility of variables from > workspace for functions. > > I need to be sure, that function which I convert from script file, will not > use any variable, which is not in it input, or defined inside the function > itself. > > Please see examples below. > > Is this possible? > > Thank you > > BR > > JK > > example 1: > > a = 3 > function fx = some_fun(x,a) > fx = x+a > endfunction > > calling some_fun(5) now return 3+5, but I need to be an error. > > > example 2: > > a = 3 > function fx = some_fun(x) > fx = x+a > endfunction > > I need also error, as variable a should be passed as input argument > or defined inside some_fun body > > > > -- > 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 h_d_f at hotmail.com Thu May 7 16:45:25 2020 From: h_d_f at hotmail.com (hdf) Date: Thu, 7 May 2020 07:45:25 -0700 (MST) Subject: [Scilab-users] Corona modelling In-Reply-To: References: <61797769-8CEB-4391-8C95-A5C56438B43B@me.com> <8F119C47-20CC-4A2E-A732-B049E1DA916D@me.com> <50bc6c4cd367b06a3a314832255faddc@tu-sofia.bg> <57611cfb8420333b0d08c9f1adc6e510033fb054.camel@wescottdesign.com> <9219BCF9-E0C5-4202-A837-F39598BA7F33@me.com> <1585606706577-0.post@n3.nabble.com> <1588850388109-0.post@n3.nabble.com> <1588852163265-0.post@n3.nabble.com> Message-ID: <1588862725077-0.post@n3.nabble.com> Hello Heinz, Before comparing with John Hopkins' data and try to identify the different parameters I wanted to 'improve' the model. I have read several interesting articles on the web. One of them , written by David Madore, explains (in french) that the recovery model would be better at a "constant recovery time" instead of using an "exponential distribution of probability whose expected value is 1/?" like in the traditional SIR model. I agree with him because I could recognized a "simple time delay" in his explanations So in the below diagram I replaced the gamma (?) feedback on the infected integrator by a variable delay and add a super function diagram to model the healthcare system with: - One input: infected people per day. - Two outputs: Recovered and unfortunately dead people per day. The other parameters are percentages of 'symtomatic', 'hospitabized', 'Reanimated' and 'dead' people on one hand and delays before being 'healed', 'hopitalized' and 'reanimated', but also 'incubation' time on the other hand. Here are some of my results: Funny 'infected' curve and its derive right ? I am thinking of studying the FFT of the real John Hopkings' curves to identify the delays to put inside my healthcare system model. But I'm running out of time before I have to work back next monday. Herv? de Foucault -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu May 7 17:05:23 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 7 May 2020 17:05:23 +0200 Subject: [Scilab-users] Variables visibility in functions In-Reply-To: <610c3659-effb-4207-1a0f-50cdd20cd2ac@utc.fr> References: <1588852873301-0.post@n3.nabble.com> <610c3659-effb-4207-1a0f-50cdd20cd2ac@utc.fr> Message-ID: <2b005c8b-beba-3518-ee36-0119b316ac93@utc.fr> Here is a small example. Although the name of fields of returned struct is very cryptic, the information you need can be easily recovered. mputl(["function [y] = foo(x)" "y = x + a" "y = y + b" "endfunction"],"slint_test.sci") out = slint("slint_test.sci",%f) if isfield(out.info,"00003.Uninitialized") s = out.info("00003.Uninitialized"); for i=1:length(s) disp(s(i).msg) end end S. Le 07/05/2020 ? 14:40, St?phane Mottelet a ?crit?: > Hi, > > Use Scilab slint tool: > > https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/help.scilab.org/docs/6.1.0/en_US/slint.html > > > S. > > Le 07/05/2020 ? 14:01, kjubo a ?crit?: >> Dear all, >> >> I would like to ask you, how can I disable visibility of variables from >> workspace for functions. >> >> I need to be sure, that function which I convert from script file, >> will not >> use any variable, which is not in it input, or defined inside the >> function >> itself. >> >> Please see examples below. >> >> Is this possible? >> ???????? Thank you >> ???????? BR >> ???????? JK >> >> ???????? example 1: >> >> ???????? a = 3 >> ???????? function fx = some_fun(x,a) >> ???????????? fx = x+a >> ???????? endfunction >> >> ???????? calling some_fun(5) now return 3+5, but I need to be an error. >> >> >> ???????? example 2: >> >> ???????? a = 3 >> ???????? function fx = some_fun(x) >> ???????????? fx = x+a >> ???????? endfunction >> >> ???????? I need also error, as variable a should be passed as input >> argument >> or defined inside some_fun body >> >> >> >> -- >> Sent from: >> https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html >> _______________________________________________ >> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From h_d_f at hotmail.com Thu May 7 19:16:19 2020 From: h_d_f at hotmail.com (hdf) Date: Thu, 7 May 2020 10:16:19 -0700 (MST) Subject: [Scilab-users] Scilab integrator In-Reply-To: <1587639568055-0.post@n3.nabble.com> References: <1587639568055-0.post@n3.nabble.com> Message-ID: <1588871779401-0.post@n3.nabble.com> Hi Steve, If I were you, I would try to use the following Xcos blocks: Hope this helps HdF ----- Herv? de Foucault -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Thu May 7 20:12:37 2020 From: heinznabielek at me.com (Heinz Nabielek) Date: Thu, 7 May 2020 20:12:37 +0200 Subject: [Scilab-users] The application "scilab-branch-6.1.app" is not open any more. Message-ID: <21FF431C-E8A7-49F9-8A40-4D0810062B5F@me.com> Suddenly I cannot start. It says The application "scilab-branch-6.1.app" is not open any more. What to do? Had worked nicely for a week.... Heinz System Version: macOS 10.15.4 (19E287) Kernel Version: Darwin 19.4.0 From stephane.mottelet at utc.fr Thu May 7 21:08:29 2020 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Thu, 7 May 2020 21:08:29 +0200 Subject: [Scilab-users] The application "scilab-branch-6.1.app" is not open any more. In-Reply-To: <21FF431C-E8A7-49F9-8A40-4D0810062B5F@me.com> References: <21FF431C-E8A7-49F9-8A40-4D0810062B5F@me.com> Message-ID: Do you have the latest build (20/04/2020) ? S. > Le 7 mai 2020 ? 20:13, Heinz Nabielek a ?crit : > > ?Suddenly I cannot start. It says > The application "scilab-branch-6.1.app" is not open any more. > > What to do? > > Had worked nicely for a week.... > Heinz > > System Version: macOS 10.15.4 (19E287) > Kernel Version: Darwin 19.4.0 > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users From kopac.jakub at gmail.com Thu May 7 21:28:42 2020 From: kopac.jakub at gmail.com (Jakub Kopac) Date: Thu, 7 May 2020 21:28:42 +0200 Subject: [Scilab-users] Variables visibility in functions In-Reply-To: <610c3659-effb-4207-1a0f-50cdd20cd2ac@utc.fr> References: <1588852873301-0.post@n3.nabble.com> <610c3659-effb-4207-1a0f-50cdd20cd2ac@utc.fr> Message-ID: Dear Stephane, thanks for tip, slint can help, but for me it looks like a manual bypass. What I need, is that for function in level_1 ( https://wiki.scilab.org/howto/global%20and%20local%20variables) variables from level_0 are not visible. is this possible? BR JK ?t 7. 5. 2020 o 14:40 St?phane Mottelet nap?sal(a): > Hi, > > Use Scilab slint tool: > > https://help.scilab.org/docs/6.1.0/en_US/slint.html > > S. > > Le 07/05/2020 ? 14:01, kjubo a ?crit : > > Dear all, > > > > I would like to ask you, how can I disable visibility of variables from > > workspace for functions. > > > > I need to be sure, that function which I convert from script file, will > not > > use any variable, which is not in it input, or defined inside the > function > > itself. > > > > Please see examples below. > > > > Is this possible? > > > > Thank you > > > > BR > > > > JK > > > > example 1: > > > > a = 3 > > function fx = some_fun(x,a) > > fx = x+a > > endfunction > > > > calling some_fun(5) now return 3+5, but I need to be an error. > > > > > > example 2: > > > > a = 3 > > function fx = some_fun(x) > > fx = x+a > > endfunction > > > > I need also error, as variable a should be passed as input > argument > > or defined inside some_fun body > > > > > > > > -- > > Sent from: > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > > _______________________________________________ > > 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 > > _______________________________________________ > 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 Thu May 7 21:37:49 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 7 May 2020 21:37:49 +0200 Subject: [Scilab-users] Variables visibility in functions In-Reply-To: References: <1588852873301-0.post@n3.nabble.com> <610c3659-effb-4207-1a0f-50cdd20cd2ac@utc.fr> Message-ID: <76002a31-9c8e-d000-fe17-67f62fab03ee@utc.fr> Hi again, Le 07/05/2020 ? 21:28, Jakub Kopac a ?crit?: > Dear Stephane, > > thanks for tip, slint can help, but for me it looks like a manual bypass. Sorry but you were not that clear; > > I need to be sure, that function which I convert from script file, > will not > > use any variable, which is not in it input, or defined inside the > function > > itself. > > I thought you just wanted to identify functions using this sort of variable scoping before conversion (to what software ?) > What I need, is that for function in level_1 > (https://wiki.scilab.org/howto/global%20and%20local%20variables > ) > variables from level_0 are not visible. This is a fundamental feature of variable scope in Scilab. You may find it useful or dangerous, but this is just the way it is and cannot be disactivated... S. > > is this possible? > > BR > > JK > > > ?t 7. 5. 2020 o?14:40 St?phane Mottelet > nap?sal(a): > > Hi, > > Use Scilab slint tool: > > https://help.scilab.org/docs/6.1.0/en_US/slint.html > > > S. > > Le 07/05/2020 ? 14:01, kjubo a ?crit?: > > Dear all, > > > > I would like to ask you, how can I disable visibility of > variables from > > workspace for functions. > > > > I need to be sure, that function which I convert from script > file, will not > > use any variable, which is not in it input, or defined inside > the function > > itself. > > > > Please see examples below. > > > > Is this possible? > > > > Thank you > > > > BR > > > > JK > > > >? ? ? ? ? example 1: > > > >? ? ? ? ? a = 3 > >? ? ? ? ? function fx = some_fun(x,a) > >? ? ? ? ? ? ? fx = x+a > >? ? ? ? ? endfunction > > > >? ? ? ? ? calling some_fun(5) now return 3+5, but I need to be an > error. > > > > > >? ? ? ? ? example 2: > > > >? ? ? ? ? a = 3 > >? ? ? ? ? function fx = some_fun(x) > >? ? ? ? ? ? ? fx = x+a > >? ? ? ? ? endfunction > > > >? ? ? ? ? I need also error, as variable a should be passed as > input argument > > or defined inside some_fun body > > > > > > > > -- > > Sent from: > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > > > _______________________________________________ > > 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 > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdb61858 at suoox.com Thu May 7 22:45:41 2020 From: jdb61858 at suoox.com (RolandB) Date: Thu, 7 May 2020 13:45:41 -0700 (MST) Subject: [Scilab-users] Variables visibility in functions In-Reply-To: <76002a31-9c8e-d000-fe17-67f62fab03ee@utc.fr> References: <1588852873301-0.post@n3.nabble.com> <610c3659-effb-4207-1a0f-50cdd20cd2ac@utc.fr> <76002a31-9c8e-d000-fe17-67f62fab03ee@utc.fr> Message-ID: <1588884341360-0.post@n3.nabble.com> Hi, by default, parent level variables will be visible in child level scripts. But once you assign a value to them in the child level script, they will be local variables unless you define something different for them. If you afterwards just leave the child level script without taking special measures for transferring their value back to the parent level script, the values assigned to them will become lost. So the only thing you have to take care of for your situation is to initialize all variables you want to be local with some start value before you are doing anything else with them. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From heinznabielek at me.com Thu May 7 23:05:51 2020 From: heinznabielek at me.com (Heinz Nabielek) Date: Thu, 7 May 2020 23:05:51 +0200 Subject: [Scilab-users] The application "scilab-branch-6.1.app" is not open any more. In-Reply-To: References: <21FF431C-E8A7-49F9-8A40-4D0810062B5F@me.com> Message-ID: <02E5069B-BF34-4C23-9A15-DD7A6A43F8E4@me.com> --> getversion() ans = "scilab-branch-6.1" but it still says Created: Tuesday, 28. May 2019 at 19:28 after complete reload and re-installation. In any case, everything works perfectly fine, I just a completely upset iMac for a few hours... Heinz > On 07.05.2020, at 21:08, St?phane Mottelet wrote: > > Do you have the latest build (20/04/2020) ? > > S. > >> Le 7 mai 2020 ? 20:13, Heinz Nabielek a ?crit : >> >> ?Suddenly I cannot start. It says >> The application "scilab-branch-6.1.app" is not open any more. >> >> What to do? >> >> Had worked nicely for a week.... >> Heinz >> >> System Version: macOS 10.15.4 (19E287) >> Kernel Version: Darwin 19.4.0 >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From stephane.mottelet at utc.fr Fri May 8 08:46:42 2020 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Fri, 8 May 2020 08:46:42 +0200 Subject: [Scilab-users] The application "scilab-branch-6.1.app" is not open any more. In-Reply-To: <02E5069B-BF34-4C23-9A15-DD7A6A43F8E4@me.com> References: <02E5069B-BF34-4C23-9A15-DD7A6A43F8E4@me.com> Message-ID: <89246818-3E21-42A4-B3E6-D1668DA92A67@utc.fr> Please give all outputs of [x,y]=getversion() > Le 7 mai 2020 ? 23:06, Heinz Nabielek a ?crit : > > ?--> getversion() > ans = "scilab-branch-6.1" > > but it still says Created: Tuesday, 28. May 2019 at 19:28 after complete reload and re-installation. > > In any case, everything works perfectly fine, I just a completely upset iMac for a few hours... > > Heinz > > >> On 07.05.2020, at 21:08, St?phane Mottelet wrote: >> >> Do you have the latest build (20/04/2020) ? >> >> S. >> >>>> Le 7 mai 2020 ? 20:13, Heinz Nabielek a ?crit : >>> >>> ?Suddenly I cannot start. It says >>> The application "scilab-branch-6.1.app" is not open any more. >>> >>> What to do? >>> >>> Had worked nicely for a week.... >>> Heinz >>> >>> System Version: macOS 10.15.4 (19E287) >>> Kernel Version: Darwin 19.4.0 >>> _______________________________________________ >>> 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 >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users From heinznabielek at me.com Fri May 8 09:16:58 2020 From: heinznabielek at me.com (Heinz Nabielek) Date: Fri, 8 May 2020 09:16:58 +0200 Subject: [Scilab-users] The application "scilab-branch-6.1.app" is not open any more. In-Reply-To: <89246818-3E21-42A4-B3E6-D1668DA92A67@utc.fr> References: <02E5069B-BF34-4C23-9A15-DD7A6A43F8E4@me.com> <89246818-3E21-42A4-B3E6-D1668DA92A67@utc.fr> Message-ID: On 08.05.2020, at 08:46, St?phane Mottelet wrote: > > [x,y]=getversion() x,y]=getversion() x = "scilab-branch-6.1" y = "GCC" "x64" "modelicac" "release" "Apr 21 2020" "15:18:18" Thanks for all the help Heinz From fredrik at fibix.net Fri May 8 11:18:35 2020 From: fredrik at fibix.net (Freddos) Date: Fri, 8 May 2020 02:18:35 -0700 (MST) Subject: [Scilab-users] Windows 10 VS 2015 example under ilib_build fails pvApiCtx undeclared identifier In-Reply-To: References: <1468543051395-4034371.post@n3.nabble.com> <1468933882.2176.23.camel@scilab-enterprises.com> Message-ID: <1588929515998-0.post@n3.nabble.com> How did it go with this one? I just upgraded to Scilab 6.1 (from 5.5.2) and got the "pvApiCtx: undeclared indentifier" using the "Scilab Engine" (calling Scilab from my C++ application). All upgrade documentation (5 to 6) I have found only talks about the API using Gateways (not Scilab Engine), and the documentation for the call scilab api still has code examples with the pvApiCtx variable ("Double management" for example). But looking in the scilab headers it seems to have been removed. So either how do I get the pvApiCtx variable (?) or how is the right way to read variables from the Scilab Engine in Scilab 6.x? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From mathias.magdowski at ovgu.de Fri May 8 20:47:18 2020 From: mathias.magdowski at ovgu.de (mathias_magdowski) Date: Fri, 8 May 2020 11:47:18 -0700 (MST) Subject: [Scilab-users] Plots on second Y axis In-Reply-To: <1490788443912-4036078.post@n3.nabble.com> References: <1776921249.132627694.1360340081532.JavaMail.root@zimbra75-e12.priv.proxad.net> <3B5FFC67498DFF49AE7271A584867D16F1068CF66D@301EX00100.sidel.com> <1462539930722-4034076.post@n3.nabble.com> <1472143983231-4034490.post@n3.nabble.com> <1490687506590-4036055.post@n3.nabble.com> <1490787060086-4036077.post@n3.nabble.com> <1490788443912-4036078.post@n3.nabble.com> Message-ID: <1588963638338-0.post@n3.nabble.com> I have found some problems in my code for certain ratios between the minimum and maximum values of both function. This is hopefully fixed now: -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From danielstringarita at gmail.com Mon May 11 11:45:35 2020 From: danielstringarita at gmail.com (Daniel Stringari) Date: Mon, 11 May 2020 02:45:35 -0700 (MST) Subject: [Scilab-users] CsvRead function Message-ID: <1589190335955-0.post@n3.nabble.com> Dear colleagues, I am using a code in the version of Scilab 6.1 that was made in version Scilab 6.0.2. However, the same code that works in version 6.0.2, gives an error when executed in version 6.1. The function pointed on the error screen is always 'csvRead'. any suggestion ? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Mon May 11 11:48:56 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 11 May 2020 11:48:56 +0200 Subject: [Scilab-users] CsvRead function In-Reply-To: <1589190335955-0.post@n3.nabble.com> References: <1589190335955-0.post@n3.nabble.com> Message-ID: Hi Le 11/05/2020 ? 11:45, Daniel Stringari a ?crit?: > Dear colleagues, > > I am using a code in the version of Scilab 6.1 that was made in version > Scilab 6.0.2. However, the same code that works in version 6.0.2, gives an > error when executed in version 6.1. The function pointed on the error screen > is always 'csvRead'. > > > > > > any suggestion ? Yes. Are you sure your file exists (considering the error message) ? S. > > > > -- > Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > 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 antoine.monmayrant at laas.fr Mon May 11 11:56:53 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 11 May 2020 11:56:53 +0200 Subject: [Scilab-users] CsvRead function In-Reply-To: <1589190335955-0.post@n3.nabble.com> References: <1589190335955-0.post@n3.nabble.com> Message-ID: Hello Daniel, It seems to me that the error is more the absence of the file "C:\Temp\PGC\Sai_Lot1v3.txt". You can try to check just before line 206 whether the file is present or not: ls("C:\Temp\PGC\Sai_Lot1v3.txt") or isfile("C:\Temp\PGC\Sai_Lot1v3.txt") . Hope it helps, Antoine On 11/05/2020 11:45, Daniel Stringari wrote: > Dear colleagues, > > I am using a code in the version of Scilab 6.1 that was made in version > Scilab 6.0.2. However, the same code that works in version 6.0.2, gives an > error when executed in version 6.1. The function pointed on the error screen > is always 'csvRead'. > > > > > > any suggestion ? > > > > -- > 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 Clement.David at esi-group.com Mon May 11 12:13:15 2020 From: Clement.David at esi-group.com (=?iso-8859-1?Q?Cl=E9ment_David?=) Date: Mon, 11 May 2020 10:13:15 +0000 Subject: [Scilab-users] Windows 10 VS 2015 example under ilib_build fails pvApiCtx undeclared identifier In-Reply-To: <1588929515998-0.post@n3.nabble.com> References: <1468543051395-4034371.post@n3.nabble.com> <1468933882.2176.23.camel@scilab-enterprises.com> <1588929515998-0.post@n3.nabble.com> Message-ID: Hello, You are correct, the pvApiCtx global define available in Scilab 5 no more exists in Scilab 6 as described in [1] or [2]. The call_scilab might need to be updated to cover this change, could you please post a bug on that ? [1]: https://cgit.scilab.org/scilab/tree/scilab/CHANGES.md?id=6.0.2#n374 [2]: https://help.scilab.org/docs/6.1.0/en_US/integerExample.html In a sentence, you should add a variable `void* pvApiCtx` on each gateway declaration. This variable will be passed through the Scilab APIs as a context of execution. Thanks, -- Cl?ment > -----Original Message----- > From: users On Behalf Of Freddos > Sent: Friday, May 8, 2020 11:19 AM > To: users at lists.scilab.org > Subject: Re: [Scilab-users] Windows 10 VS 2015 example under ilib_build fails > pvApiCtx undeclared identifier > > How did it go with this one? I just upgraded to Scilab 6.1 (from 5.5.2) and got the > "pvApiCtx: undeclared indentifier" using the "Scilab Engine" > (calling Scilab from my C++ application). All upgrade documentation (5 to 6) I > have found only talks about the API using Gateways (not Scilab Engine), and the > documentation for the call scilab api still has code examples with the pvApiCtx > variable ("Double management" for example). But looking in the scilab headers > it seems to have been removed. So either how do I get the pvApiCtx variable (?) > or how is the right way to read variables from the Scilab Engine in Scilab 6.x? > > > > -- > 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 fredrik at fibix.net Mon May 11 12:51:34 2020 From: fredrik at fibix.net (Fredrik Blomqvist) Date: Mon, 11 May 2020 12:51:34 +0200 Subject: [Scilab-users] Windows 10 VS 2015 example under ilib_build fails pvApiCtx undeclared identifier In-Reply-To: References: <1468543051395-4034371.post@n3.nabble.com> <1468933882.2176.23.camel@scilab-enterprises.com> <1588929515998-0.post@n3.nabble.com> Message-ID: Hi Clement, thanks for answering. You are correct, the pvApiCtx global define available in Scilab 5 no more > exists in Scilab 6 as described in [1] or [2]. The call_scilab might need > to be updated to cover this change, could you please post a bug on that ? > Ah, yes I will, but at the moment I still don't know where the bug is except it seems some documentation is missing (or it's a combination with something I have misunderstood). In a sentence, you should add a variable `void* pvApiCtx` on each gateway > declaration. This variable will be passed through the Scilab APIs as a > context of execution. > This I found in the documentation, so if I were doing a gateway, then I don't think anything is really missing in the documentation. The problem is I'm running Scilab from my C++ exe file (Scilab Engine instead of Gateway if I understood the naming correctly). In short I did this from my program (using Scilab 5.5.2): 1. Start up the scilab instance: StartScilab() 2. Call my script: SendScilabJob() 3. Read back some variables after the script is done: readNamedMatrixOfDouble( pvApiCtx, ...) 4. TerminateScilab() But up until number 3 above, "pvApiCtx" wasn't needed. And I've read some other discussion on this mailing list that you shouldn't mix the old 5.2 stack-style with the new 6.X C++ API style, but that feels exactly what I'm doing!? So I'm guessing I'm actually reading back my variables wrong, but I didn't find any documentation of another way to do it? Sending NULL on pvApiCtx makes the program work (which I found in an example), but is it really the right 6.X way to do it in? Thanks for any hints -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielstringarita at gmail.com Tue May 12 10:20:46 2020 From: danielstringarita at gmail.com (Daniel Stringari) Date: Tue, 12 May 2020 05:20:46 -0300 Subject: [Scilab-users] CsvRead function In-Reply-To: References: <1589190335955-0.post@n3.nabble.com> Message-ID: Good Morning, The file exists ... Every time the code is run, it tries to create a series of files inside the address "C: \ Temp \ PGC \ ..." using the functions FULLFILE, CSVWRITE, CSVREAD and MDELETE to create and manipulate the data. This tool always worked in version 6.0.2 and when upgrading to version 6.1, it started to give an error with the code identical to the previous version, so my first suspicion was in relation to the mentioned functions. On Mon, May 11, 2020 at 6:55 AM St?phane Mottelet wrote: > Hi > > Le 11/05/2020 ? 11:45, Daniel Stringari a ?crit : > > Dear colleagues, > > > > I am using a code in the version of Scilab 6.1 that was made in version > > Scilab 6.0.2. However, the same code that works in version 6.0.2, gives > an > > error when executed in version 6.1. The function pointed on the error > screen > > is always 'csvRead'. > > > > < > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/file/t498028/Piece_With_Error.png > > > > > > < > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/file/t498028/Error.png > > > > > > any suggestion ? > > Yes. Are you sure your file exists (considering the error message) ? > > S. > > > > > > > > > -- > > Sent from: > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > > _______________________________________________ > > 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 > > _______________________________________________ > 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 Tue May 12 10:36:03 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 12 May 2020 10:36:03 +0200 Subject: [Scilab-users] CsvRead function In-Reply-To: References: <1589190335955-0.post@n3.nabble.com> Message-ID: <29c52932-3fee-a6b4-18d2-72132ad0b72b@laas.fr> On 12/05/2020 10:20, Daniel Stringari wrote: > Good Morning, > > The file exists ... Every time the code is run, it tries to create a > series of files inside the address "C: \ Temp \ PGC \ ..." using the > functions FULLFILE, CSVWRITE, CSVREAD and MDELETE to create and > manipulate the data. This tool always worked in version 6.0.2 and when > upgrading to version 6.1, it started to give an error with the code > identical to the previous version, so my first suspicion was in > relation to the mentioned functions. OK, it's a bit weird. Are you sure this file exists with the exact same name and capitalization (Windows file system should not car about capitalization, but just to be sure) ? Can you give us the ouptut of "ls(Sai_Lot3v3)" ? Can you: (1) Provide us with a copy of the csv file Sai_Lot3v3 ? (2) Generate a minimum working example that trigger this bug and share it with us? This will help us helping you! Cheers, Antoine > > On Mon, May 11, 2020 at 6:55 AM St?phane Mottelet > > wrote: > > Hi > > Le 11/05/2020 ? 11:45, Daniel Stringari a ?crit?: > > Dear colleagues, > > > > I am using a code in the version of Scilab 6.1 that was made in > version > > Scilab 6.0.2. However, the same code that works in version > 6.0.2, gives an > > error when executed in version 6.1. The function pointed on the > error screen > > is always 'csvRead'. > > > > > > > > > > > > > > any suggestion ? > > Yes. Are you sure your file exists (considering the error message) ? > > S. > > > > > > > > > -- > > Sent from: > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > > _______________________________________________ > > 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 > > _______________________________________________ > 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-lan at online.no Tue May 12 13:41:29 2020 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Tue, 12 May 2020 13:41:29 +0200 Subject: [Scilab-users] CsvRead function In-Reply-To: References: <1589190335955-0.post@n3.nabble.com> Message-ID: csvRead is quite strict regarding column structure etc, but the associated error message is typical "can not read......". So when it reports "does not exist", it looks like the file is missing, or misplaced. If you still think the file is there, you may try this script that I have used to check csv files: //Read CSV file -J? 2020 datafile="test.csv"; separators=[ascii(9),";"]; decimal=","; headerlines=2; linestoread=-1;// -1 for all footerlines=2; fid = mopen(datafile,'rb'); csvline=mgetl(fid,linestoread); mclose(fid); clear dataset; n=size(csvline,1); for k=1:n if k>headerlines && k Good Morning, > > The file exists ... Every time the code is run, it tries to create a > series of files inside the address "C: \ Temp \ PGC \ ..." using the > functions FULLFILE, CSVWRITE, CSVREAD and MDELETE to create and > manipulate the data. This tool always worked in version 6.0.2 and when > upgrading to version 6.1, it started to give an error with the code > identical to the previous version, so my first suspicion was in > relation to the mentioned functions. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at auxitrolweston.com Tue May 12 21:40:54 2020 From: paul.carrico at auxitrolweston.com (Carrico, Paul) Date: Tue, 12 May 2020 19:40:54 +0000 Subject: [Scilab-users] unique instruction Message-ID: <3A6B7233274DB449A2A0053A47684F957B23D02D@BGS-EX01.auxitrol.ad> Dear All In the matrix here after, I want to remove duplicate values in the first column but while keeping the second one as it stands ; I guess Scilab while keep the first occurrence but it's fine. I do not remember how to use correctly "unique" and all my trials failed: can somebody help me? Thanks Paul Before : M = [ 0 2 0 6 1 8 2 9 ] After : M = [ 0 2 1 8 2 9 ] Or M = [ 0 6 1 8 2 9 ] -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Wed May 13 04:02:43 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 13 May 2020 04:02:43 +0200 Subject: [Scilab-users] unique instruction In-Reply-To: <3A6B7233274DB449A2A0053A47684F957B23D02D@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F957B23D02D@BGS-EX01.auxitrol.ad> Message-ID: <3a62ab69-43b8-2fa8-cd6f-cdb5fc645032@laas.fr> Hello Paul, You want to keep "unique" values along the first column of M. Here is how you can get this result: ////////////////////////////////////////// M = [ 0 2; 0 6; 1 8;2 9] firstCol=M(:,1); [dum,ind]=unique(firstCol); MuniqueFirstCol=M(ind,:); ////////////////////////////////////////// Hope it helps, Antoine From Clement.David at esi-group.com Wed May 13 10:13:33 2020 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Wed, 13 May 2020 08:13:33 +0000 Subject: [Scilab-users] CsvRead function In-Reply-To: References: <1589190335955-0.post@n3.nabble.com> Message-ID: Hello all, hello Daniel, There has been some modification on the csvRead code to speed things up and there might be some issue in the new code. If you can reproduce with a reduced CSV file, could you open a bug with a sample of your code ? Thanks, -- Cl?ment From: users On Behalf Of Jan ?ge Langeland Sent: Tuesday, May 12, 2020 1:41 PM To: Users mailing list for Scilab ; Daniel Stringari Subject: Re: [Scilab-users] CsvRead function csvRead is quite strict regarding column structure etc, but the associated error message is typical "can not read......". So when it reports "does not exist", it looks like the file is missing, or misplaced. If you still think the file is there, you may try this script that I have used to check csv files: //Read CSV file -J? 2020 datafile="test.csv"; separators=[ascii(9),";"]; decimal=","; headerlines=2; linestoread=-1;// -1 for all footerlines=2; fid = mopen(datafile,'rb'); csvline=mgetl(fid,linestoread); mclose(fid); clear dataset; n=size(csvline,1); for k=1:n if k>headerlines && k From danielstringarita at gmail.com Wed May 13 10:46:00 2020 From: danielstringarita at gmail.com (Daniel Stringari) Date: Wed, 13 May 2020 01:46:00 -0700 (MST) Subject: [Scilab-users] CsvRead function In-Reply-To: References: <1589190335955-0.post@n3.nabble.com> Message-ID: <1589359560840-0.post@n3.nabble.com> Good Morning, I'll post snippets of the code in question. Thanks for the effort Jan, the detail is that no matter how much the file exists when the code is run, the same file is deleted at the beginning by the MDELETE function, afterwards the code itself tries to create it again. This happens because this code aims to extract data from a specific software and that is why I ended up not sending the whole code at the beginning, considering that you would not be able to run it without some repairs. Daniel. https://drive.google.com/open?id=1TFWO1RrEsF9SkrBAFUC3DPu6Mmanaapn -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From j-lan at online.no Wed May 13 11:58:20 2020 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Wed, 13 May 2020 11:58:20 +0200 Subject: [Scilab-users] CsvRead function In-Reply-To: <1589359560840-0.post@n3.nabble.com> References: <1589190335955-0.post@n3.nabble.com> <1589359560840-0.post@n3.nabble.com> Message-ID: <655e493d-d750-0b19-d849-61d59559ac7d@online.no> One thing I find is that csvRead does not seem to extract data correctly in 6.1.0 with "? " (double space) as separator. test4.csv 11 2 3 4 11 21 3 41 6.1.0 csvRead("test4.csv","? ") ?ans? = ?? Nan?? Nan?? Nan?? 4. ?? Nan?? Nan?? Nan?? 41. 6.0.2 ?csvRead("test4.csv","? ") ?ans? = ?? 11.?? 2.??? 3.?? 4. ?? 11.?? 21.?? 3.?? 41. Jan On 2020-05-13 10:46 AM, Daniel Stringari wrote: > Good Morning, > > I'll post snippets of the code in question. Thanks for the effort Jan, the > detail is that no matter how much the file exists when the code is run, the > same file is deleted at the beginning by the MDELETE function, afterwards > the code itself tries to create it again. This happens because this code > aims to extract data from a specific software and that is why I ended up not > sending the whole code at the beginning, considering that you would not be > able to run it without some repairs. > > Daniel. > > https://drive.google.com/open?id=1TFWO1RrEsF9SkrBAFUC3DPu6Mmanaapn > > > > > -- > 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 heinznabielek at me.com Sun May 17 23:49:47 2020 From: heinznabielek at me.com (Heinz Nabielek) Date: Sun, 17 May 2020 23:49:47 +0200 Subject: [Scilab-users] Can Scilab compute the inverse of the regularized Incomplete Beta Function? Message-ID: Dear SciLabers: can Scilab compute the inverse of the regularized Incomplete Beta Function? Example: in unbiased sampling in Austria with sample size N=1432, they detected n=1 infections. Therefore, expected infected fraction = 0.000698324. But this does not say much, because the sample size was small and the "success" was extremely small (fortunately). The standard procedure therefore is to derive the one-sided 95% upper confidence limit: CONF=0.95; N=1432; n=1: One-sided 95% upper confidence limit fraction = BETA.INV(CONF, n+1, N+1-n) = 0.003306121 How would I do that in Scilab? Heinz From fmiyara at fceia.unr.edu.ar Mon May 18 04:05:59 2020 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Sun, 17 May 2020 23:05:59 -0300 Subject: [Scilab-users] Can Scilab compute the inverse of the regularized Incomplete Beta Function? In-Reply-To: References: Message-ID: Heinz, I don't know if this will serve you, but you cn always approximate the inverse of a function using spline interpolation. If you have y(k) = f(x(k)) fo a range of values of x then you can interpolate the data y(k) x(k) for a value yo to get an xo that approximates finv(yo). Regards Federico Miyara On 17/05/2020 18:49, Heinz Nabielek wrote: > Dear SciLabers: > > can Scilab compute the inverse of the regularized Incomplete Beta Function? > > Example: in unbiased sampling in Austria with sample size N=1432, they detected n=1 infections. > Therefore, expected infected fraction = 0.000698324. > > But this does not say much, because the sample size was small and the "success" was extremely small (fortunately). > > The standard procedure therefore is to derive the one-sided 95% upper confidence limit: > CONF=0.95; N=1432; n=1: > One-sided 95% upper confidence limit fraction = BETA.INV(CONF, n+1, N+1-n) = 0.003306121 > > How would I do that in Scilab? > Heinz > > _______________________________________________ > 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 Mon May 18 14:18:28 2020 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Mon, 18 May 2020 12:18:28 +0000 Subject: [Scilab-users] Can Scilab compute the inverse of the regularized Incomplete Beta Function? Message-ID: Hello, > De Heinz Nabielek > Envoy? : dimanche 17 mai 2020 23:50 > > CONF=0.95; N=1432; n=1: > One-sided 95% upper confidence limit fraction = BETA.INV(CONF, n+1, N+1-n) > = 0.003306121 > > How would I do that in Scilab? Would it be : [X,Y]=cdfbet("XY", n+1, N+1-n, CONF, 1-CONF) X = 0.0033061 Y = 0.9966939 Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General 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 heinznabielek at me.com Mon May 18 15:25:59 2020 From: heinznabielek at me.com (Heinz Nabielek) Date: Mon, 18 May 2020 15:25:59 +0200 Subject: [Scilab-users] Can Scilab compute the inverse of the regularized Incomplete Beta Function? In-Reply-To: References: Message-ID: <83BB50EB-2256-4008-B46B-0BD8F48BE4EE@me.com> > On 18.05.2020, at 14:18, Dang Ngoc Chan, Christophe wrote: > > Hello, > >> De Heinz Nabielek >> Envoy? : dimanche 17 mai 2020 23:50 >> >> CONF=0.95; N=1432; n=1: >> One-sided 95% upper confidence limit fraction = BETA.INV(CONF, n+1, N+1-n) >> = 0.003306121 >> >> How would I do that in Scilab? > > Would it be : > > [X,Y]=cdfbet("XY", n+1, N+1-n, CONF, 1-CONF) > X = > > 0.0033061 Written with more digits 0.0033061215, and EXCEL finds 0.003306121493. Very good agreement. I am glad I had asked. And the HELP provides real support with the statement Description Calculates any one parameter of the beta distribution given values for the others (The beta density is proportional to t^(A-1) * (1-t)^(B-1). Since my originating binomial distribution is obviously t^n * (1-t)^(N-n), the parameters for the Beta Function have to be A=n+1 B=N+1-n to obtain an upper conficende limit fraction = Beta.Inv(CONF, n+1, N+1-n) !!! Textbooks write Beta.Inv(CONF, n+1, N-n) since the last 50 years and it is wrong. And "R" is also using this wrong correlation in their binom.test Great many thanks for all the help. Heinz ______________ Dr Heinz Nabielek Sch?ttelstrasse 77A/11 A-1020 Wien, ?sterreich Tel +43 1 276 56 13 cell +43 677 616 349 22 heinznabielek at me.com From bruno.pincon at univ-lorraine.fr Mon May 18 15:57:35 2020 From: bruno.pincon at univ-lorraine.fr (=?UTF-8?Q?Pin=c3=a7on_Bruno?=) Date: Mon, 18 May 2020 15:57:35 +0200 Subject: [Scilab-users] Can Scilab compute the inverse of the regularized Incomplete Beta Function? In-Reply-To: <83BB50EB-2256-4008-B46B-0BD8F48BE4EE@me.com> References: <83BB50EB-2256-4008-B46B-0BD8F48BE4EE@me.com> Message-ID: <438c6301-74ac-9ed8-0b30-99ee9f059ed6@univ-lorraine.fr> ? Hi, ?as far I remember, the underlying code is based on a very good ?ACM TOMS (DiDinato, A. R. and Morris,? A.?? H.? Algorithm 708: Significant ?Digit Computation of the Incomplete? Beta? Function Ratios.? ACM ?Trans. Math.? Softw. 18 (1993), 360-373). ?Bruno -- Non ? l'augmentation des frais d'inscription (Fac, IUT, ?coles...) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: serveimage.png Type: image/png Size: 6113 bytes Desc: not available URL: From tim at wescottdesign.com Mon May 18 18:09:23 2020 From: tim at wescottdesign.com (Tim Wescott) Date: Mon, 18 May 2020 09:09:23 -0700 Subject: [Scilab-users] Can Scilab compute the inverse of the regularized Incomplete Beta Function? In-Reply-To: References: Message-ID: So you have \beta(x, n+1, N+1-n) = 0.95, and you want to solve for x? fsolve will do this for a single value of the confidence. Is that sufficient? On Sun, 2020-05-17 at 23:49 +0200, Heinz Nabielek wrote: > Dear SciLabers: > > can Scilab compute the inverse of the regularized Incomplete Beta > Function? > > Example: in unbiased sampling in Austria with sample size N=1432, > they detected n=1 infections. > Therefore, expected infected fraction = 0.000698324. > > But this does not say much, because the sample size was small and the > "success" was extremely small (fortunately). > > The standard procedure therefore is to derive the one-sided 95% upper > confidence limit: > CONF=0.95; N=1432; n=1: > One-sided 95% upper confidence limit fraction = BETA.INV(CONF, n+1, > N+1-n) = 0.003306121 > > How would I do that in Scilab? > Heinz > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From jrafaelbguerra at hotmail.com Mon May 18 19:08:37 2020 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 18 May 2020 17:08:37 +0000 Subject: [Scilab-users] Can Scilab compute the inverse of the regularized Incomplete Beta Function? In-Reply-To: References: Message-ID: Hi Heinz, Fyi, the following site provides Matlab code that may be translated to Scilab: https://people.sc.fsu.edu/~jburkardt/m_src/asa109/asa109.html betain.m : incomplete Beta function ratio xinbta.m : inverse of the incomplete Beta function The Scilab Atoms 'Distfun' package contains: distfun_betainc : Regularized Incomplete Beta function Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Mon May 18 22:50:36 2020 From: heinznabielek at me.com (Heinz Nabielek) Date: Mon, 18 May 2020 22:50:36 +0200 Subject: [Scilab-users] Can Scilab compute the inverse of the regularized Incomplete Beta Function? In-Reply-To: References: Message-ID: CONF=.95, N=1432, n=1 cdfbet("XY", n+1, N+1-n, CONF, 1-CONF) is doing it just fine. Correct and with high precision... h On 18.05.2020, at 18:09, Tim Wescott wrote: > > So you have \beta(x, n+1, N+1-n) = 0.95, and you want to solve for x? > > fsolve will do this for a single value of the confidence. Is that > sufficient? > > On Sun, 2020-05-17 at 23:49 +0200, Heinz Nabielek wrote: >> Dear SciLabers: >> >> can Scilab compute the inverse of the regularized Incomplete Beta >> Function? >> >> Example: in unbiased sampling in Austria with sample size N=1432, >> they detected n=1 infections. >> Therefore, expected infected fraction = 0.000698324. >> >> But this does not say much, because the sample size was small and the >> "success" was extremely small (fortunately). >> >> The standard procedure therefore is to derive the one-sided 95% upper >> confidence limit: >> CONF=0.95; N=1432; n=1: >> One-sided 95% upper confidence limit fraction = BETA.INV(CONF, n+1, >> N+1-n) = 0.003306121 >> >> How would I do that in Scilab? >> Heinz From heinznabielek at me.com Mon May 18 22:51:50 2020 From: heinznabielek at me.com (Heinz Nabielek) Date: Mon, 18 May 2020 22:51:50 +0200 Subject: [Scilab-users] Can Scilab compute the inverse of the regularized Incomplete Beta Function? In-Reply-To: References: Message-ID: <6D58D146-8BFC-448D-9719-5545B29C59FA@me.com> CONF=.95, N=1432, n=1 cdfbet("XY", n+1, N+1-n, CONF, 1-CONF) is doing it just fine. Correct and with high precision... h > On 18.05.2020, at 19:08, Rafael Guerra wrote: > > Hi Heinz, > > Fyi, the following site provides Matlab code that may be translated to Scilab: > https://people.sc.fsu.edu/~jburkardt/m_src/asa109/asa109.html > betain.m : incomplete Beta function ratio > xinbta.m : inverse of the incomplete Beta function > > The Scilab Atoms 'Distfun' package contains: > distfun_betainc : Regularized Incomplete Beta function > > Regards, > Rafael > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From tien.dang at setacinq.vn Tue May 19 12:26:03 2020 From: tien.dang at setacinq.vn (tien.dang) Date: Tue, 19 May 2020 03:26:03 -0700 (MST) Subject: [Scilab-users] Can Mux and Demux have more than 32 ports Message-ID: <1589883963088-0.post@n3.nabble.com> Dear all, As title, Can I custom Mux and Demux block to have more than 32 ports, for example: 64 ports as I need. I try to re build source code base on Git repos but meet so many errors. Thanks Tien Dang -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From perrichon.pierre at wanadoo.fr Tue May 19 12:46:58 2020 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Tue, 19 May 2020 12:46:58 +0200 Subject: [Scilab-users] Can Mux and Demux have more than 32 ports In-Reply-To: <1589883963088-0.post@n3.nabble.com> References: <1589883963088-0.post@n3.nabble.com> Message-ID: Good news ! Before printing, think about ENVIRONMENTAL responsabity -----Message d'origine----- De?: users De la part de tien.dang Envoy??: mardi 19 mai 2020 12:26 ??: users at lists.scilab.org Objet?: [Scilab-users] Can Mux and Demux have more than 32 ports Dear all, As title, Can I custom Mux and Demux block to have more than 32 ports, for example: 64 ports as I need. I try to re build source code base on Git repos but meet so many errors. Thanks Tien Dang -- 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 Clement.David at esi-group.com Tue May 19 16:09:29 2020 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Tue, 19 May 2020 14:09:29 +0000 Subject: [Scilab-users] Can Mux and Demux have more than 32 ports In-Reply-To: <1589883963088-0.post@n3.nabble.com> References: <1589883963088-0.post@n3.nabble.com> Message-ID: Hello Tien, and welcome ? Are you developing on Windows or Linux ? Did you follow the quick starts described in https://wiki.scilab.org/Compilation%20of%20Scilab ? Thanks, -- Clement > -----Original Message----- > From: users On Behalf Of tien.dang > Sent: Tuesday, May 19, 2020 12:26 PM > To: users at lists.scilab.org > Subject: [Scilab-users] Can Mux and Demux have more than 32 ports > > Dear all, > As title, Can I custom Mux and Demux block to have more than 32 ports, for > example: 64 ports as I need. > I try to re build source code base on Git repos but meet so many errors. > Thanks > Tien Dang > > > > -- > 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 tien.dang at setacinq.vn Tue May 19 16:33:13 2020 From: tien.dang at setacinq.vn (tien.dang) Date: Tue, 19 May 2020 07:33:13 -0700 (MST) Subject: [Scilab-users] Can Mux and Demux have more than 32 ports In-Reply-To: References: <1589883963088-0.post@n3.nabble.com> Message-ID: <1589898793259-0.post@n3.nabble.com> I just followed this instruction and meet error when use "make all". I build on Ubuntu. Can you provide me any dependencies software to build Scilab ? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Tue May 19 21:55:46 2020 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 19 May 2020 21:55:46 +0200 Subject: [Scilab-users] Can Mux and Demux have more than 32 ports In-Reply-To: <1589883963088-0.post@n3.nabble.com> References: <1589883963088-0.post@n3.nabble.com> Message-ID: Hello, Le 19/05/2020 ? 12:26, tien.dang a ?crit?: > Dear all, > As title, Can I custom Mux and Demux block to have more than 32 ports, for > example: 64 ports as I need. > I try to re build source code base on Git repos but meet so many errors. > Thanks > Tien Dang I am not an xcos user, but what about the following proposals: * use several MUX whose outputs are branched to another MUX. The output of this last one should be equivalent to the one of a big MUX. Shouldn't it? This "2-layer MUX set up" allows to "concatenate" up to 31*31 = 961 input channels, and to "split" the positioning of blocks of inputs in a more manageable way than with a single huge MUX block. Couldn't a MUX be considered as a columns concatenator, each column being a separate signal? So, concatenators might be nested in this way. * To build a big DEMUX, a somewhat symetric proposal: o from the single input, extract some ranges of channels with one or several EXTRACTOR blocks, with at most 31 bundled channels in the single output. o put a DEMUX after each EXTRACTOR, to split their channels as as many outputs. These naive proposals should be tested. The 2-layer MUX setup looks to work when the final output is connected to a simple scope: then there are as many curves as primary inputs. Could this match your requirements? Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gcjdkniiopdpdohc.png Type: image/png Size: 16743 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Untitled.zcos Type: application/octet-stream Size: 4635 bytes Desc: not available URL: From tien.dang at setacinq.vn Wed May 20 04:12:50 2020 From: tien.dang at setacinq.vn (Tien Dang) Date: Wed, 20 May 2020 09:12:50 +0700 Subject: [Scilab-users] Can Mux and Demux have more than 32 ports In-Reply-To: References: <1589883963088-0.post@n3.nabble.com> Message-ID: Thanks a lot. I see it. Tien Dang On Wed, May 20, 2020 at 2:56 AM Samuel Gougeon wrote: > Hello, > > Le 19/05/2020 ? 12:26, tien.dang a ?crit : > > Dear all, > As title, Can I custom Mux and Demux block to have more than 32 ports, for > example: 64 ports as I need. > I try to re build source code base on Git repos but meet so many errors. > Thanks > Tien Dang > > I am not an xcos user, but what about the following proposals: > > - use several MUX whose outputs are branched to another MUX. The > output of this last one should be equivalent to the one of a big MUX. > Shouldn't it? > This "2-layer MUX set up" allows to "concatenate" up to 31*31 = 961 > input channels, and to "split" the positioning of blocks of inputs in a > more manageable way than with a single huge MUX block. > Couldn't a MUX be considered as a columns concatenator, each column > being a separate signal? So, concatenators might be nested in this way. > > - To build a big DEMUX, a somewhat symetric proposal: > - from the single input, extract some ranges of channels with one or > several EXTRACTOR blocks, with at most 31 bundled channels in the single > output. > - put a DEMUX after each EXTRACTOR, to split their channels as as > many outputs. > > These naive proposals should be tested. The 2-layer MUX setup looks to > work when the final output is connected to a simple scope: then there are > as many curves as primary inputs. > > > Could this match your requirements? > > Regards > Samuel > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gcjdkniiopdpdohc.png Type: image/png Size: 16743 bytes Desc: not available URL: From fujimoto2005 at gmail.com Wed May 20 11:16:36 2020 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 20 May 2020 02:16:36 -0700 (MST) Subject: [Scilab-users] =?utf-8?q?multiple=E3=80=80histograms_on_one_graph?= Message-ID: <1589966196637-0.post@n3.nabble.com> Is there a way to display histograms of multiple data groups in the same graph? An n ? m matrix A which column represents the data of each group. I want to display the histogram of Aj data on the same graph to see the difference in frequency between groups. Best regards. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Wed May 20 15:50:04 2020 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 20 May 2020 15:50:04 +0200 Subject: [Scilab-users] Corona modelling In-Reply-To: References: <61797769-8CEB-4391-8C95-A5C56438B43B@me.com> Message-ID: <7923783d-b63b-fe22-aaf2-c1ed9a34f12a@free.fr> Hello, Thank you St?phane for this nice example of applied GUI. The screenshot of the Xcos model from Herv? is also quite stimulating. About the GUI run on Scilab 6.1.0, i have noticed that the Scilab filebrowser is blinking when using any of both sliders, as if it was updated/redisplayed for each slider step. It continues to blink for a while even after stopping using the control, likely until all queued steps are performed. This behavior can be seen when sliding with the mouse, as well as with arrows, but not with page_up and page_down keys. So, apparently only performing small steps triggers it. Does anyone confirm this behavior, or is it only on my PC on Windows7 ? Best regards Samuel Le 30/03/2020 ? 08:13, St?phane Mottelet a ?crit?: > > Hello Heinz, > > Here is an interactive version (made for my children last week...) : > > // Confinement COVID-19 ! > // Stephane MOTTELET, UTC > // Tue Mar 24 08:55:03 CET 2020 > // > function dydt=sir(t, y, bet, gam, N) > dydt=[-bet/N*y(1)*y(2) > bet/N*y(1)*y(2)-gam*y(2) > gam*y(2)]; > endfunction > > function draw(bet, gam) > t=0:1:360; > N=6e7; > if exists("gcbo") && is_handle_valid(gcbo) > sb = gcbo; > if sb.tag=="beta" > bet=sb.value; > gam=findobj("gamma").value > else > gam=sb.value; > bet=findobj("beta").value > end > y=ode('stiff',[N-1;1;0],0,t,list(sir,bet,gam,N)); > curves = findobj("curves"); > curves.children(1).data(:,2)=y(3,:); > curves.children(2).data(:,2)=y(2,:); > curves.children(3).data(:,2)=y(1,:); > else > y=ode('stiff',[N-1;1;0],0,t,list(sir,bet,gam,N)); > scf(0) > clf > plot(t,y) > gce().tag="curves"; > gce().children.thickness=2; > legend("Susceptible","Infected","Recovered",-1) > > sb1 = uicontrol("style","slider",... > "units","normalized",... > "Position", [0.85,0.2,0.05,0.48],... > "BackgroundColor", [1,1,1],... > "Callback_Type",12,... > "sliderstep",[1/1000,1/10],... > "min",0.15,"max",0.3,"value",bet,... > "Callback","draw","tag","beta"); > > uicontrol("style","text",... > "string","$\beta$",... > "units","normalized",... > "Position", [0.85,0.125,0.05,0.08],... > "BackgroundColor", [1,1,1],... > "HorizontalAlignment","center"); > > sb1 = uicontrol("style","slider",... > "units","normalized",... > "Position", [0.90,0.2,0.05,0.48],... > "BackgroundColor", [1,1,1],... > "Callback_Type",12,... > "sliderstep",[1/1000,1/10],... > "min",0,"max",1/15,"value",gam,... > "Callback","draw","tag","gamma"); > > uicontrol("style","text",... > "string","$\gamma$",... > "units","normalized",... > "Position", [0.9,0.125,0.05,0.08],... > "BackgroundColor", [1,1,1],... > "HorizontalAlignment","center"); > > end > end > > clf > > draw(0.3,1/15) -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed May 20 16:09:21 2020 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 20 May 2020 16:09:21 +0200 Subject: [Scilab-users] Overloading "inv" and/or "p" does not seem to work with Scilab 6.1.0 In-Reply-To: References: Message-ID: <3b257c5d-de2c-1d0d-9391-28b1468cf8d9@free.fr> Hello Denis, Le 07/05/2020 ? 14:58, CRETE Denis a ?crit?: > Hello, > > I redefined a few functions in Scilab 6.1.0 to extend them to arrays > with 3 dimensions (formerly called hypermatrix). Overloading works > with "clean", "multiply", "left division" and "element by element > division" (after defining functions %s_clean, %s_m_s, %s_l_s and %s_d_s). > > I tried to overload function "inv" with the following code: > > function y=%s_inv(x), > ??? if ndims(x)>2 then > ??? ??? for k=1:size(x,3), > ??? ??? ??? y(:,:,k)=inv(x(:,:,k)); > ??? ??? end; > ??? else > ??? ??? y=inv(x); > ??? end; > endfunction > > expecting that each layer of y is the reciprocal of corresponding > layer of x. Instead, > inv(ones(1,1,2).*.rand(2,2)) returns the reciprocal of x layer 1 in y > layer 1 AND x LAYER n IN y LAYER n, WHEN n>1. I use "layer" to > designate the matrix obtain for a fixed value the index along the 3rd > dimension. > > Code to reproduce the problem: > > n=4; m=3; > M=ones(1,1,n).*.rand(m,m); > inv(M) > > Attempts to circumvent this problem by using M^(-1) instead of inv(M) > run into the same problem (after redefining function %s_p). Is this a > bug or did I miss something ? It's a bug. inv() should display an error message inviting to define %s_inv(), or use %s_inv(). By the way, the hook to the overload existed in Scilab 5.5.2. Hence, this issue is a regression. Could you please report it? Thanks Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrichon.pierre at wanadoo.fr Wed May 20 16:17:33 2020 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Wed, 20 May 2020 16:17:33 +0200 Subject: [Scilab-users] Corona modelling In-Reply-To: <7923783d-b63b-fe22-aaf2-c1ed9a34f12a@free.fr> References: <61797769-8CEB-4391-8C95-A5C56438B43B@me.com> <7923783d-b63b-fe22-aaf2-c1ed9a34f12a@free.fr> Message-ID: Dear, I understand Samuel, but not sure that this kind of example on C-19 is the most representative of a GUI with Scilab. Confusion is done on what is on the screen, and ridiculus analysis when experts are always studing in the whole word ! Where is the message : scilab solve C-19 ??? I dream. So this is is a bad example. De : users De la part de Samuel Gougeon Envoy? : mercredi 20 mai 2020 15:50 ? : users at lists.scilab.org Objet : Re: [Scilab-users] Corona modelling Hello, Thank you St?phane for this nice example of applied GUI. The screenshot of the Xcos model from Herv? is also quite stimulating. About the GUI run on Scilab 6.1.0, i have noticed that the Scilab filebrowser is blinking when using any of both sliders, as if it was updated/redisplayed for each slider step. It continues to blink for a while even after stopping using the control, likely until all queued steps are performed. This behavior can be seen when sliding with the mouse, as well as with arrows, but not with page_up and page_down keys. So, apparently only performing small steps triggers it. Does anyone confirm this behavior, or is it only on my PC on Windows7 ? Best regards Samuel Le 30/03/2020 ? 08:13, St?phane Mottelet a ?crit : Hello Heinz, Here is an interactive version (made for my children last week...) : // Confinement COVID-19 ! // Stephane MOTTELET, UTC // Tue Mar 24 08:55:03 CET 2020 // function dydt=sir(t, y, bet, gam, N) dydt=[-bet/N*y(1)*y(2) bet/N*y(1)*y(2)-gam*y(2) gam*y(2)]; endfunction function draw(bet, gam) t=0:1:360; N=6e7; if exists("gcbo") && is_handle_valid(gcbo) sb = gcbo; if sb.tag=="beta" bet=sb.value; gam=findobj("gamma").value else gam=sb.value; bet=findobj("beta").value end y=ode('stiff',[N-1;1;0],0,t,list(sir,bet,gam,N)); curves = findobj("curves"); curves.children(1).data(:,2)=y(3,:); curves.children(2).data(:,2)=y(2,:); curves.children(3).data(:,2)=y(1,:); else y=ode('stiff',[N-1;1;0],0,t,list(sir,bet,gam,N)); scf(0) clf plot(t,y) gce().tag="curves"; gce().children.thickness=2; legend("Susceptible","Infected","Recovered",-1) sb1 = uicontrol("style","slider",... "units","normalized",... "Position", [0.85,0.2,0.05,0.48],... "BackgroundColor", [1,1,1],... "Callback_Type",12,... "sliderstep",[1/1000,1/10],... "min",0.15,"max",0.3,"value",bet,... "Callback","draw","tag","beta"); uicontrol("style","text",... "string","$\beta$",... "units","normalized",... "Position", [0.85,0.125,0.05,0.08],... "BackgroundColor", [1,1,1],... "HorizontalAlignment","center"); sb1 = uicontrol("style","slider",... "units","normalized",... "Position", [0.90,0.2,0.05,0.48],... "BackgroundColor", [1,1,1],... "Callback_Type",12,... "sliderstep",[1/1000,1/10],... "min",0,"max",1/15,"value",gam,... "Callback","draw","tag","gamma"); uicontrol("style","text",... "string","$\gamma$",... "units","normalized",... "Position", [0.9,0.125,0.05,0.08],... "BackgroundColor", [1,1,1],... "HorizontalAlignment","center"); end end clf draw(0.3,1/15) -------------- next part -------------- An HTML attachment was scrubbed... URL: From fujimoto2005 at gmail.com Wed May 20 16:29:51 2020 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 20 May 2020 07:29:51 -0700 (MST) Subject: [Scilab-users] =?utf-8?b?4oCdaGlzdGPigJ0nJ3MgYnVnPw==?= Message-ID: <1589984991625-0.post@n3.nabble.com> I think "histc" has a some bug. The following sample code of the help file does't work. ********************** data = [1 1 1 2 2 3 4 4 5 5 5 6 6 7 8 8 9 9 9]; N = size(data,"*") // ==19 // Default binning; "sqrt": sqrt(19) => 4. .. => 4 bins [h, j, b, i] = histc(data) [h, j, b, i] = histc(data,10) h= histc(data,10) ********************* -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Wed May 20 16:49:44 2020 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 20 May 2020 16:49:44 +0200 Subject: [Scilab-users] Scilab 6.1 too slow to list large vectors In-Reply-To: References: Message-ID: <01ec6c4d-25ca-a0dc-d4fd-fbd149b19403@free.fr> Le 30/03/2020 ? 11:56, Federico Miyara a ?crit?: > > Dear All, > > I have observed that Scilab 6.1 seems to have a regression respect to > 6.0.2. Sometimes one forgets to put semicolon after the coputation of > a vector with tens of thousands components. Scilab 6.0.2 listed all > the components very fast. That was nice because one hadn't to cancel > the computation, it took about 1 s. With 6.1 it takes much longer. For > instance > > Fs = 44100 > T = 2.5 > t = [0:T*Fs]/Fs; > ximp = exp(-t/0.3).*rand(t,"normal") + 0.004*rand(t,"normal"); > > tic > ximp = ximp(:) > toc > This takes 1.36 s in 6.0.2 > > The same code in 6.1 takes 182 s > > Any idea why? > > I know I can cancel at any moment the script execution, but if there > were a process that took a lot of time one wouldn't be willing to stop > it... Apparently, the maximum number N of lines of the console scroll buffer set in the user preferences (by default to 3000) is not taken into account to abstract the display in this kind of situation. Is it? Yet, if there is no opened diary, displaying 100000 "primary" rows looks 97% useless if the scroll buffer is 3000-row tall: 97000 rows will anyway become unreachable an lost, after the full display. So, even without anticipating wrapping of long primary rows, that still multiplies the number of actual rows to display, wouldn't it be wise to limit the display to N primary lines, either the N last ones, or the N/2 first ones + "..." + the N/2 last ones ? Even in the case of having so tall full diaries is required (that is a very specific and exceptional case), it is always possible to increase N through the preferences. My two cents... Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed May 20 17:11:59 2020 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 20 May 2020 17:11:59 +0200 Subject: [Scilab-users] Scilab Atoms Issue In-Reply-To: <170f8601763.f6881f93999554.208941967613132517@bytecode-asia.com> References: <170f8601763.f6881f93999554.208941967613132517@bytecode-asia.com> Message-ID: Hello Chin Luh, Le 20/03/2020 ? 15:36, Chin Luh Tan a ?crit?: > Hi, > > There is a little issue always bugging me, whenever an atoms module > has been installed, it will be kept in "archives" folder, either in > SCI or SCIHOME respective folder. > > Under some circumstances if the developer update some patch in the > portal and and remain the same version, atomsSystemUpdate followed by > atomsInstall the module will pick up the archived module instead of > the latest one from the web. User need to manually delete them from > the folder in order to get the latest one. > > Is there any function in atoms* which I might have miss out which > could clear the archives? It sounds redundant to developers or advance > user but it makes sense for normal Scilab user. Have you tried to run atomsUpdate(your_module) instead of atomsInstal(your_module), in addition to atomsSystemUpdate()? If it does not work better, it would be worth reporting the issue on bugzilla. Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrichon.pierre at wanadoo.fr Wed May 20 17:17:44 2020 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Wed, 20 May 2020 17:17:44 +0200 Subject: [Scilab-users] Scilab 6.1 too slow to list large vectors In-Reply-To: <01ec6c4d-25ca-a0dc-d4fd-fbd149b19403@free.fr> References: <01ec6c4d-25ca-a0dc-d4fd-fbd149b19403@free.fr> Message-ID: Hello, See also bugzilla Scilab's Bug Tracker ? Bug 16359 Time request : 100 s Results : Xcos Scilab 5.5.2 : Dur?e de la simulation : 258.3 s Xcos Scilab 6.1.0 : Dur?e de la simulation : 4353.4 s BR. Pierre Before printing, think about ENVIRONMENTAL responsabity De : users De la part de Samuel Gougeon Envoy? : mercredi 20 mai 2020 16:50 ? : users at lists.scilab.org Objet : Re: [Scilab-users] Scilab 6.1 too slow to list large vectors Le 30/03/2020 ? 11:56, Federico Miyara a ?crit : Dear All, I have observed that Scilab 6.1 seems to have a regression respect to 6.0.2. Sometimes one forgets to put semicolon after the coputation of a vector with tens of thousands components. Scilab 6.0.2 listed all the components very fast. That was nice because one hadn't to cancel the computation, it took about 1 s. With 6.1 it takes much longer. For instance Fs = 44100 T = 2.5 t = [0:T*Fs]/Fs; ximp = exp(-t/0.3).*rand(t,"normal") + 0.004*rand(t,"normal"); tic ximp = ximp(:) toc This takes 1.36 s in 6.0.2 The same code in 6.1 takes 182 s Any idea why? I know I can cancel at any moment the script execution, but if there were a process that took a lot of time one wouldn't be willing to stop it... Apparently, the maximum number N of lines of the console scroll buffer set in the user preferences (by default to 3000) is not taken into account to abstract the display in this kind of situation. Is it? Yet, if there is no opened diary, displaying 100000 "primary" rows looks 97% useless if the scroll buffer is 3000-row tall: 97000 rows will anyway become unreachable an lost, after the full display. So, even without anticipating wrapping of long primary rows, that still multiplies the number of actual rows to display, wouldn't it be wise to limit the display to N primary lines, either the N last ones, or the N/2 first ones + "..." + the N/2 last ones ? Even in the case of having so tall full diaries is required (that is a very specific and exceptional case), it is always possible to increase N through the preferences. My two cents... Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 12352 bytes Desc: not available URL: From chinluh.tan at bytecode-asia.com Wed May 20 17:39:13 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Wed, 20 May 2020 23:39:13 +0800 Subject: [Scilab-users] Scilab Atoms Issue In-Reply-To: References: <170f8601763.f6881f93999554.208941967613132517@bytecode-asia.com> Message-ID: <17232bd1b9c.cef603e340874.1371159129015745597@bytecode-asia.com> Hi Samuel,? Thanks. I will try your suggestion when I update the file with the same version number next time. Currently any changes I did I would create a new subversion for it, or just a small patch file. I was thinking it could be just mentioned as "SOP" instead of reporting as a bug.? Will keep you posted on this. Regards, Chin Luh ---- On Wed, 20 May 2020 23:11:59 +0800 Samuel Gougeon wrote ---- Hello Chin Luh, Le 20/03/2020 ? 15:36, Chin Luh Tan a ?crit?: Hi,? There is a little issue always bugging me, whenever an atoms module has been installed, it will be kept in "archives" folder, either in SCI or SCIHOME respective folder.? Under some circumstances if the developer update some patch in the portal and and remain the same version, atomsSystemUpdate followed by atomsInstall the module will pick up the archived module instead of the latest one from the web. User need to manually delete them from the folder in order to get the latest one.? Is there any function in atoms* which I might have miss out which could clear the archives? It sounds redundant to developers or advance user but it makes sense for normal Scilab user. Have you tried to run atomsUpdate(your_module) instead of atomsInstal(your_module), in addition to atomsSystemUpdate()? If it does not work better, it would be worth reporting the issue on bugzilla. Best regards Samuel _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Wed May 20 17:40:48 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Wed, 20 May 2020 23:40:48 +0800 Subject: [Scilab-users] Corona modelling In-Reply-To: <7923783d-b63b-fe22-aaf2-c1ed9a34f12a@free.fr> References: <61797769-8CEB-4391-8C95-A5C56438B43B@me.com> <7923783d-b63b-fe22-aaf2-c1ed9a34f12a@free.fr> Message-ID: <17232be8c80.d8af0eb441122.1766189240123471419@bytecode-asia.com> I can confirm this, this also happened in Scilab 6.1 Windows 10, however, it runs smooth in Scilab 6.0.2 same machine.? rgds, CL ---- On Wed, 20 May 2020 21:50:04 +0800 Samuel Gougeon wrote ---- Hello, Thank you St?phane for this nice example of applied GUI. The screenshot of the Xcos model from Herv? is also quite stimulating. About the GUI run on Scilab 6.1.0, i have noticed that the Scilab filebrowser is blinking when using any of both sliders, as if it was updated/redisplayed for each slider step. It continues to blink for a while even after stopping using the control, likely until all queued steps are performed. This behavior can be seen when sliding with the mouse, as well as with arrows, but not with page_up and page_down keys. So, apparently only performing small steps triggers it. Does anyone confirm this behavior, or is it only on my PC on Windows7 ? Best regards Samuel Le 30/03/2020 ? 08:13, St?phane Mottelet a ?crit?: Hello Heinz, Here is an interactive version (made for my children last week...) : // Confinement COVID-19 ! // Stephane MOTTELET, UTC // Tue Mar 24 08:55:03 CET 2020 // function dydt=sir(t, y, bet, gam, N) dydt=[-bet/N*y(1)*y(2) bet/N*y(1)*y(2)-gam*y(2) gam*y(2)]; endfunction function draw(bet, gam) t=0:1:360; N=6e7; if exists("gcbo") && is_handle_valid(gcbo) sb = gcbo; if sb.tag=="beta" bet=sb.value; gam=findobj("gamma").value else gam=sb.value; bet=findobj("beta").value end y=ode('stiff',[N-1;1;0],0,t,list(sir,bet,gam,N)); curves = findobj("curves"); curves.children(1).data(:,2)=y(3,:); curves.children(2).data(:,2)=y(2,:); curves.children(3).data(:,2)=y(1,:); else y=ode('stiff',[N-1;1;0],0,t,list(sir,bet,gam,N)); scf(0) clf plot(t,y) gce().tag="curves"; gce().children.thickness=2; legend("Susceptible","Infected","Recovered",-1) sb1 = uicontrol("style","slider",... "units","normalized",... "Position", [0.85,0.2,0.05,0.48],... "BackgroundColor", [1,1,1],... "Callback_Type",12,... "sliderstep",[1/1000,1/10],... "min",0.15,"max",0.3,"value",bet,... "Callback","draw","tag","beta"); uicontrol("style","text",... "string","$\beta$",... "units","normalized",... "Position", [0.85,0.125,0.05,0.08],... "BackgroundColor", [1,1,1],... "HorizontalAlignment","center"); sb1 = uicontrol("style","slider",... "units","normalized",... "Position", [0.90,0.2,0.05,0.48],... "BackgroundColor", [1,1,1],... "Callback_Type",12,... "sliderstep",[1/1000,1/10],... "min",0,"max",1/15,"value",gam,... "Callback","draw","tag","gamma"); uicontrol("style","text",... "string","$\gamma$",... "units","normalized",... "Position", [0.9,0.125,0.05,0.08],... "BackgroundColor", [1,1,1],... "HorizontalAlignment","center"); end end clf draw(0.3,1/15) _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bernard.vail at free.fr Wed May 20 20:07:56 2020 From: bernard.vail at free.fr (B@Ksva) Date: Wed, 20 May 2020 11:07:56 -0700 (MST) Subject: [Scilab-users] debug with scilab 6.1.0 Message-ID: <1589998076040-0.post@n3.nabble.com> Hello, trying to use debug mode with Scilab 6.1.0 on W10 fails. I reloaded 6.0.2 and it's OK ! Why? Example below is the console copy of 6.1 with the simple tutorial from the help menu: --> function v=compute(val) > v = 1; > for i=1:val > v = v * i; > end > endfunction --> debug debug> break compute 4 "i == 5" num enable function file condition 0 true compute:4 "i == 5" debug> exec compute(10) ans = 3628800. debug> quit Sortie du d?bogger. --> As one can see, the function is completed without taking the breakpoint into account. Again with 6.0.2, the function logically stop at i=5 as expected and get this: debug> exec compute(10) halte du d?bogger au point d'arr?t (0) dans la fonction compute ligne 4 >> v = (v * i) Any clue on what is going wrong ? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Wed May 20 21:09:02 2020 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 20 May 2020 21:09:02 +0200 Subject: [Scilab-users] Corona modelling In-Reply-To: <17232be8c80.d8af0eb441122.1766189240123471419@bytecode-asia.com> References: <61797769-8CEB-4391-8C95-A5C56438B43B@me.com> <7923783d-b63b-fe22-aaf2-c1ed9a34f12a@free.fr> <17232be8c80.d8af0eb441122.1766189240123471419@bytecode-asia.com> Message-ID: Le 20/05/2020 ? 17:40, Chin Luh Tan a ?crit?: > I can confirm this, this also happened in Scilab 6.1 Windows 10, > however, it runs smooth in Scilab 6.0.2 same machine. Thanks. The issue is now reported here: http://bugzilla.scilab.org/show_bug.cgi?id=11852#c9 Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed May 20 21:52:37 2020 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 20 May 2020 21:52:37 +0200 Subject: [Scilab-users] debug with scilab 6.1.0 In-Reply-To: <1589998076040-0.post@n3.nabble.com> References: <1589998076040-0.post@n3.nabble.com> Message-ID: <83fd9925-4b5d-b767-ae44-f75d1c1d39c0@free.fr> Hello Bernard, Please see http://bugzilla.scilab.org/16363 https://codereview.scilab.org/#/c/21428 Regards Samuel Le 20/05/2020 ? 20:07, B at Ksva a ?crit?: > Hello, > trying to use debug mode with Scilab 6.1.0 on W10 fails. I reloaded 6.0.2 > and it's OK ! Why? > Example below is the console copy of 6.1 with the simple tutorial from the > help menu: > > --> function v=compute(val) > > v = 1; > > for i=1:val > > v = v * i; > > end > > endfunction > > --> debug > > debug> break compute 4 "i == 5" > num enable function file condition > > 0 true compute:4 "i == 5" > > debug> exec compute(10) > ans = > > 3628800. > > debug> quit > Sortie du d?bogger. > > --> > > > As one can see, the function is completed without taking the breakpoint into > account. Again with 6.0.2, the function logically stop at i=5 as expected > and get this: > > debug> exec compute(10) > halte du d?bogger au point d'arr?t (0) dans la fonction compute ligne 4 >>> v = (v * i) > > Any clue on what is going wrong ? > From tien.dang at setacinq.vn Thu May 21 05:28:49 2020 From: tien.dang at setacinq.vn (tien.dang) Date: Wed, 20 May 2020 20:28:49 -0700 (MST) Subject: [Scilab-users] BusCreator, BusSelector in Scilab ? Message-ID: <1590031729948-0.post@n3.nabble.com> I'm doing project to convert model in Matlab Simulink to Scilab. I do not know the module BusCreator and BusSelector are supported in Scilab or Not. I just checked in Scilab Palette, don't have any module like this. How would I find that module in Scilab? BusCreator and BusSelector ? Thanks -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From fujimoto2005 at gmail.com Fri May 22 15:06:22 2020 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Fri, 22 May 2020 06:06:22 -0700 (MST) Subject: [Scilab-users] Spec function Message-ID: <1590152782048-0.post@n3.nabble.com> This question is about how to use the spec function to calculate eigenvalues. Suppose a square matrix D is a function of real number b. I am trying to find the eigenvalues of D for various b with the spec function. When I calculate for b = 1 and 3 simultaneously with the attached code, I get all eigenvalues for b = 1 are 0. However, I calculate for b = 1 alone , I get an eigenvalue of -0.5 ? 4.97i and 0 otherwise. Why are the results of the two methods different? Is the usage of the spec function wrong? Which result is correct? Best regards testSpec.sce -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From paul18fr at gmail.com Sun May 24 12:22:32 2020 From: paul18fr at gmail.com (paul francedixhuit) Date: Sun, 24 May 2020 12:22:32 +0200 Subject: [Scilab-users] h5mv / h5flush Message-ID: Hi all I'm trying to reorganize my hdf5 file by moving/renaming dozens of datasets, using mainly h5mv (loops are used to pass through all groups and datasets) My code is typically, where: - Source = the path+name of the original dataset - Destination= the path + the new dataset name h5flush(h5); h5mv(h5, Source, h5, Destination); Trouble I'm confront to: - It works only ounce and I do not understand why, even flushing hdf5 object - I can note that after *h5mv*, *h5flush* does not work anymore - hdf5 object becomes "invalide" What am I doing wrong? Thanks for any advice Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Sun May 24 14:38:06 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Sun, 24 May 2020 14:38:06 +0200 Subject: [Scilab-users] h5mv / h5flush In-Reply-To: References: Message-ID: <11f44e14-4b3b-954e-d7e5-3c5779054a04@laas.fr> Hello Paul, This is not a solution, but just tests to assert that the problem does come from scilab and not from your datasets. (1) Can you try to use command-line tool h5copy (that comes with the hdf5-tools pacakge on a Debian/Ubuntu Linux distribution) to do it outside of scilab? If you succeed, that might be a bug in h5mv in scilab. If you are under windows, there might be an equivalent tool, or you can use WSL if under Windows10. (2) I get that you are running this code inside some sort of loop, right? Can you try to do it step-by-step on one of the file that fails? By step-by-step I mean either Ctrl+E line by line in your code or one command at a time in the console. This might help if it's a race condition bug. I faced similar issues when manipulating the graphic handle hierarchy within a loop. Hope it helps, Antoine On 24/05/2020 12:22, paul francedixhuit wrote: > Hi all > > I'm trying to reorganize my hdf5 file by moving/renaming dozens of > datasets, using mainly h5mv (loops are used to pass through all? > groups and datasets) > > My code is typically, where: > > * Source = the path+name of the original dataset > * Destination= the path?+ the new dataset name > > h5flush(h5); > h5mv(h5, Source, h5, Destination); > > Trouble I'm confront to: > > * It works only ounce and I do not understand why, even flushing > hdf5 object > * I can note that after /h5mv/, /h5flush/?does not work anymore > * hdf5 object becomes "invalide" > > What am I doing wrong? > > Thanks for any advice > > Paul > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul18fr at gmail.com Sun May 24 15:28:24 2020 From: paul18fr at gmail.com (paul francedixhuit) Date: Sun, 24 May 2020 15:28:24 +0200 Subject: [Scilab-users] h5mv / h5flush In-Reply-To: <11f44e14-4b3b-954e-d7e5-3c5779054a04@laas.fr> References: <11f44e14-4b3b-954e-d7e5-3c5779054a04@laas.fr> Message-ID: Thanks Antoine for answering The datasets work fine. yes I'm under a loop in order to automate datasets moving/renaing; if I use "h5mv" for a single dataset (whatever it is) that's ok. As said previously, the issue occurs immediately after using the first "h5mv" without closing the file. I'm under Linux (Ubuntu); I've ever tested h5copy but it failed as well. I'll test your suggestion in using hdf5 package outside Scilab or through "unix_g" ino Scilab Paul Le dim. 24 mai 2020 ? 14:38, Antoine Monmayrant a ?crit : > Hello Paul, > > > This is not a solution, but just tests to assert that the problem does > come from scilab and not from your datasets. > > (1) Can you try to use command-line tool h5copy (that comes with the > hdf5-tools pacakge on a Debian/Ubuntu Linux distribution) to do it outside > of scilab? > If you succeed, that might be a bug in h5mv in scilab. > If you are under windows, there might be an equivalent tool, or you can > use WSL if under Windows10. > > (2) I get that you are running this code inside some sort of loop, right? > Can you try to do it step-by-step on one of the file that fails? By > step-by-step I mean either Ctrl+E line by line in your code or one command > at a time in the console. This might help if it's a race condition bug. I > faced similar issues when manipulating the graphic handle hierarchy within > a loop. > > Hope it helps, > > > Antoine > On 24/05/2020 12:22, paul francedixhuit wrote: > > Hi all > > I'm trying to reorganize my hdf5 file by moving/renaming dozens of > datasets, using mainly h5mv (loops are used to pass through all groups and > datasets) > > My code is typically, where: > > - Source = the path+name of the original dataset > - Destination= the path + the new dataset name > > h5flush(h5); h5mv(h5, Source, h5, Destination); > > > Trouble I'm confront to: > > - It works only ounce and I do not understand why, even flushing hdf5 > object > - I can note that after *h5mv*, *h5flush* does not work anymore > - hdf5 object becomes "invalide" > > What am I doing wrong? > > Thanks for any advice > > Paul > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://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 Sun May 24 16:29:02 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Sun, 24 May 2020 16:29:02 +0200 Subject: [Scilab-users] h5mv / h5flush In-Reply-To: References: <11f44e14-4b3b-954e-d7e5-3c5779054a04@laas.fr> Message-ID: <415ed40d-abd8-cb83-1052-8d80160d386a@laas.fr> On 24/05/2020 15:28, paul francedixhuit wrote: > Thanks Antoine for answering > > The datasets work fine. > > yes I'm under a loop in order to automate datasets moving/renaing;?if > I?use "h5mv" for a single dataset (whatever it is) that's ok. As said > previously, the issue occurs?immediately?after using the first "h5mv" > without closing the file. OK. I am not sure I understand the issue than. Is the first call to h5mv OK, then the second one failling? If it is, did you try h5copen/h5mv/h5close before the next call to h5mv ? Do you have a minimum working example with an hdf5 file you could share with us? > > I'm under Linux (Ubuntu); I've ever tested h5copy but it failed as well. > > I'll test your suggestion in using hdf5 package outside Scilab or > through "unix_g" ino Scilab There is also the python api for hdf5 that is really nice and not really difficult to use if you are already familiar with the scilab one. You could try from python to assess whether you are trying to do something inherently wrong or whether it's a bug in scilab. > > Paul > > > > Le?dim. 24 mai 2020 ??14:38, Antoine Monmayrant > > a ?crit?: > > Hello Paul, > > > This is not a solution, but just tests to assert that the problem > does come from scilab and not from your datasets. > > (1) Can you try to use command-line tool h5copy (that comes with > the hdf5-tools pacakge on a Debian/Ubuntu Linux distribution) to > do it outside of scilab? > If you succeed, that might be a bug in h5mv in scilab. > If you are under windows, there might be an equivalent tool, or > you can use WSL if under Windows10. > > (2) I get that you are running this code inside some sort of loop, > right? Can you try to do it step-by-step on one of the file that > fails? By step-by-step I mean either Ctrl+E line by line in your > code or one command at a time in the console. This might help if > it's a race condition bug. I faced similar issues when > manipulating the graphic handle hierarchy within a loop. > > Hope it helps, > > > Antoine > > On 24/05/2020 12:22, paul francedixhuit wrote: >> Hi all >> >> I'm trying to reorganize my hdf5 file by moving/renaming dozens >> of datasets, using mainly h5mv (loops are used to pass through >> all? groups and datasets) >> >> My code is typically, where: >> >> * Source = the path+name of the original dataset >> * Destination= the path?+ the new dataset name >> >> h5flush(h5); >> h5mv(h5, Source, h5, Destination); >> >> Trouble I'm confront to: >> >> * It works only ounce and I do not understand why, even >> flushing hdf5 object >> * I can note that after /h5mv/, /h5flush/?does not work anymore >> * hdf5 object becomes "invalide" >> >> What am I doing wrong? >> >> Thanks for any advice >> >> Paul >> >> _______________________________________________ >> 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: From jrafaelbguerra at hotmail.com Mon May 25 08:17:59 2020 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 25 May 2020 06:17:59 +0000 Subject: [Scilab-users] Spec function In-Reply-To: <1590152782048-0.post@n3.nabble.com> References: <1590152782048-0.post@n3.nabble.com> Message-ID: Hi, In the sample code provided, the loops 'for j=length(b_V)', seem to only evaluate the case b=3. It does not seem to match the explanation below. Regards, Rafael From: users On Behalf Of fujimoto2005 Sent: Friday, May 22, 2020 4:06 PM To: users at lists.scilab.org Subject: [Scilab-users] Spec function This question is about how to use the spec function to calculate eigenvalues. Suppose a square matrix D is a function of real number b. I am trying to find the eigenvalues of D for various b with the spec function. When I calculate for b = 1 and 3 simultaneously with the attached code, I get all eigenvalues for b = 1 are 0. However, I calculate for b = 1 alone , I get an eigenvalue of -0.5 ? 4.97i and 0 otherwise. Why are the results of the two methods different? Is the usage of the spec function wrong? Which result is correct? Best regards testSpec.sce From fujimoto2005 at gmail.com Mon May 25 08:37:55 2020 From: fujimoto2005 at gmail.com (Masahiro Fujimoto) Date: Mon, 25 May 2020 15:37:55 +0900 Subject: [Scilab-users] Spec function In-Reply-To: References: <1590152782048-0.post@n3.nabble.com> Message-ID: Dear Rafael, Thanks for your reply. You are right. It's due to my wrong code. Best regards, Masahiro Fujimoto 2020?5?25?(?) 15:18 Rafael Guerra : > Hi, > > In the sample code provided, the loops 'for j=length(b_V)', seem to only > evaluate the case b=3. > It does not seem to match the explanation below. > > Regards, > Rafael > > > From: users On Behalf Of fujimoto2005 > Sent: Friday, May 22, 2020 4:06 PM > To: users at lists.scilab.org > Subject: [Scilab-users] Spec function > > This question is about how to use the spec function to calculate > eigenvalues. > Suppose a square matrix D is a function of real number b. > I am trying to find the eigenvalues of D for various b with the spec > function. > When I calculate for b = 1 and 3 simultaneously with the attached code, I > get all eigenvalues for b = 1 are 0. > However, I calculate for b = 1 alone , I get an eigenvalue of -0.5 ? 4.97i > and 0 otherwise. > Why are the results of the two methods different? Is the usage of the spec > function wrong? Which result is correct? > > Best regards > > testSpec.sce > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.David at esi-group.com Mon May 25 16:11:45 2020 From: Clement.David at esi-group.com (=?iso-8859-1?Q?Cl=E9ment_David?=) Date: Mon, 25 May 2020 14:11:45 +0000 Subject: [Scilab-users] BusCreator, BusSelector in Scilab ? In-Reply-To: <1590031729948-0.post@n3.nabble.com> References: <1590031729948-0.post@n3.nabble.com> Message-ID: Hi Tien and welcome, The Simulink's BusCreator/BusSelector blocks are not available for heterogeneous datatypes (having a link composed of an integer and a double) but if you only have double values on your signals you could use MUX/DEMUX blocks. Note: you could also use name=idx in the context to access the idx field by name where idx is the index in the MUX/DEMUX block. -- Clement > -----Original Message----- > From: users On Behalf Of tien.dang > Sent: Thursday, May 21, 2020 5:29 AM > To: users at lists.scilab.org > Subject: [Scilab-users] BusCreator, BusSelector in Scilab ? > > I'm doing project to convert model in Matlab Simulink to Scilab. I do not know > the module BusCreator and BusSelector are supported in Scilab or Not. I just > checked in Scilab Palette, don't have any module like this. > How would I find that module in Scilab? BusCreator and BusSelector ? > Thanks > > > > > > -- > 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 tien.dang at setacinq.vn Tue May 26 05:55:58 2020 From: tien.dang at setacinq.vn (tien.dang) Date: Mon, 25 May 2020 20:55:58 -0700 (MST) Subject: [Scilab-users] BusCreator, BusSelector in Scilab ? In-Reply-To: References: <1590031729948-0.post@n3.nabble.com> Message-ID: <1590465358572-0.post@n3.nabble.com> Thank you for all your assistance. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Tue May 26 11:57:37 2020 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 26 May 2020 11:57:37 +0200 Subject: [Scilab-users] =?utf-8?b?4oCdaGlzdGPigJ0nJ3MgYnVnPw==?= In-Reply-To: <1589984991625-0.post@n3.nabble.com> References: <1589984991625-0.post@n3.nabble.com> Message-ID: Hello, Le 20/05/2020 ? 16:29, fujimoto2005 a ?crit?: > I think "histc" has a some bug. > The following sample code of the help file does't work. > > ********************** > data = [1 1 1 2 2 3 4 4 5 5 5 6 6 7 8 8 9 9 9]; > N = size(data,"*") // ==19 > > // Default binning; "sqrt": sqrt(19) => 4. .. => 4 bins > [h, j, b, i] = histc(data) > [h, j, b, i] = histc(data,10) > h= histc(data,10) > ********************* > Le 23/05/2020 ? 12:41, Masahiro Fujimoto a ?crit?: > Please see. > --> [v,o] = getversion() > ?o ?= > !VC++ ?x64 ?tk ?modelicac ?release ?Feb 14 2019 ?10:31:37 ?! > ?v ?= > ?scilab-6.0.2 The example is taken from the documentation of the 6.1.0 release, and illustrates some new features among the many ones introduced in this release. This is why this extension can't run on 6.0.2, although histc() is fully back-compatible. Best regards Samuel From antoine.monmayrant at laas.fr Wed May 27 08:58:03 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 27 May 2020 08:58:03 +0200 Subject: [Scilab-users] exporting Matplot RGB image to vector formats : BUG ? Message-ID: <71a9dbe1-5e32-8685-289a-7b9c1f1abd9d@laas.fr> Hi all, It seems there is a bug in the export of graphics to vector formats (svg, pdf, ps): it fails for elements in your graphic windows that were generated using Matplot on an RGB hypermatrix: //////////////////////////////////////////////////////////////////////////////////////////////////// img(:,:,1)=[ 1 0 0 ; 0 1 0 ; 0 0 1]*255; img(:,:,2)=[ 0 0 1 ; 0 1 0 ; 1 0 0]*255; img(:,:,3)=[ 0 1 0 ; 0 1 0 ; 0 1 0]*255; h=scf(); Matplot(img); xs2png(h,"img.png"); // correct xs2svg(h,"img.svg"); // wrong xs2pdf(h,"img.pdf"); // wrong again xs2ps(h,"img.ps"); // wrong again //////////////////////////////////////////////////////////////////////////////////////////////////// I've reported it: http://bugzilla.scilab.org/show_bug.cgi?id=16447 Do any of you know a workaround to avoid this bug? On more complex RGB images then the small example above, the RGB image is not rendered at all (just white emptiness)... I really need to export to svg to produce publication quality graphics and I have a bunch of bitmap+line plots on top of them... Thanks for you help, Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu May 28 00:37:14 2020 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 28 May 2020 00:37:14 +0200 Subject: [Scilab-users] exporting Matplot RGB image to vector formats : BUG ? In-Reply-To: <71a9dbe1-5e32-8685-289a-7b9c1f1abd9d@laas.fr> References: <71a9dbe1-5e32-8685-289a-7b9c1f1abd9d@laas.fr> Message-ID: <97107df8-d486-2cdf-3e55-a06ae145e6b5@free.fr> Hello Antoine, Just add gce().image_type = "rgba"; immediately after the Matplot() instruction, without adding a fourth layer to gce().data. This makes the three .svg .pdf and .ps conversions working. Best regards. Samuel Le 27/05/2020 ? 08:58, Antoine Monmayrant a ?crit?: > > Hi all, > > > It seems there is a bug in the export of graphics to vector formats > (svg, pdf, ps): it fails for elements in your graphic windows that > were generated using Matplot on an RGB hypermatrix: > > //////////////////////////////////////////////////////////////////////////////////////////////////// > > img(:,:,1)=[ 1 0 0 ; 0 1 0 ; 0 0 1]*255; > img(:,:,2)=[ 0 0 1 ; 0 1 0 ; 1 0 0]*255; > img(:,:,3)=[ 0 1 0 ; 0 1 0 ; 0 1 0]*255; > > h=scf(); > Matplot(img); > > xs2png(h,"img.png"); // correct > xs2svg(h,"img.svg"); // wrong > xs2pdf(h,"img.pdf"); // wrong again > xs2ps(h,"img.ps"); // wrong again > > //////////////////////////////////////////////////////////////////////////////////////////////////// > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Thu May 28 09:42:03 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 28 May 2020 09:42:03 +0200 Subject: [Scilab-users] exporting Matplot RGB image to vector formats : BUG ? In-Reply-To: <97107df8-d486-2cdf-3e55-a06ae145e6b5@free.fr> References: <71a9dbe1-5e32-8685-289a-7b9c1f1abd9d@laas.fr> <97107df8-d486-2cdf-3e55-a06ae145e6b5@free.fr> Message-ID: Yep, I've just seen your message on bugzilla. I confirm it solves the problem on my mwe. I'll try to use it on maximum-nonworking-example today. Thanks! Antoine On 28/05/2020 00:37, Samuel Gougeon wrote: > Hello Antoine, > > Just add > gce().image_type = "rgba"; > > immediately after the Matplot() instruction, without adding a fourth > layer to gce().data. > This makes the three .svg .pdf and .ps conversions working. > > Best regards. > Samuel > > Le 27/05/2020 ? 08:58, Antoine Monmayrant a ?crit?: >> >> Hi all, >> >> >> It seems there is a bug in the export of graphics to vector formats >> (svg, pdf, ps): it fails for elements in your graphic windows that >> were generated using Matplot on an RGB hypermatrix: >> >> //////////////////////////////////////////////////////////////////////////////////////////////////// >> >> img(:,:,1)=[ 1 0 0 ; 0 1 0 ; 0 0 1]*255; >> img(:,:,2)=[ 0 0 1 ; 0 1 0 ; 1 0 0]*255; >> img(:,:,3)=[ 0 1 0 ; 0 1 0 ; 0 1 0]*255; >> >> h=scf(); >> Matplot(img); >> >> xs2png(h,"img.png"); // correct >> xs2svg(h,"img.svg"); // wrong >> xs2pdf(h,"img.pdf"); // wrong again >> xs2ps(h,"img.ps"); // wrong again >> >> //////////////////////////////////////////////////////////////////////////////////////////////////// >> > > > _______________________________________________ > 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 Thu May 28 09:52:11 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 28 May 2020 09:52:11 +0200 Subject: [Scilab-users] exporting Matplot RGB image to vector formats : BUG ? In-Reply-To: <97107df8-d486-2cdf-3e55-a06ae145e6b5@free.fr> References: <71a9dbe1-5e32-8685-289a-7b9c1f1abd9d@laas.fr> <97107df8-d486-2cdf-3e55-a06ae145e6b5@free.fr> Message-ID: <0cbd2f88-40d9-eccd-f11e-e3bcf4393209@laas.fr> OK, just tested on my real plot: it does work! Samuel: how did you come up with this fix? Antoine On 28/05/2020 00:37, Samuel Gougeon wrote: > Hello Antoine, > > Just add > gce().image_type = "rgba"; > > immediately after the Matplot() instruction, without adding a fourth > layer to gce().data. > This makes the three .svg .pdf and .ps conversions working. > > Best regards. > Samuel > > Le 27/05/2020 ? 08:58, Antoine Monmayrant a ?crit?: >> >> Hi all, >> >> >> It seems there is a bug in the export of graphics to vector formats >> (svg, pdf, ps): it fails for elements in your graphic windows that >> were generated using Matplot on an RGB hypermatrix: >> >> //////////////////////////////////////////////////////////////////////////////////////////////////// >> >> img(:,:,1)=[ 1 0 0 ; 0 1 0 ; 0 0 1]*255; >> img(:,:,2)=[ 0 0 1 ; 0 1 0 ; 1 0 0]*255; >> img(:,:,3)=[ 0 1 0 ; 0 1 0 ; 0 1 0]*255; >> >> h=scf(); >> Matplot(img); >> >> xs2png(h,"img.png"); // correct >> xs2svg(h,"img.svg"); // wrong >> xs2pdf(h,"img.pdf"); // wrong again >> xs2ps(h,"img.ps"); // wrong again >> >> //////////////////////////////////////////////////////////////////////////////////////////////////// >> > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: