Re: [Scilab-users] compiling scilab

2017-03-27 Thread Martin Marmsoler
Yes it worked to compile :) 2017-03-27 21:38 GMT+02:00 Martin Marmsoler : > Hello, > > yes I will try it. > > Thank you! > > Martin > > 2017-03-27 17:47 GMT+02:00 Clément David : > >> Hello, >> >> On my machine, with the patch [1] I am able to build scilab. Could you >> open a bug to track the is

Re: [Scilab-users] Adding a matrix with the empty matrix will give an empty matrix

2017-03-27 Thread Viktor Mileikovskyi
Yes! I agree with this change. But constructions with condition in the left part such as y(x>10)=y(x>10)+1; at false condition cause the same result in 5.5.2 and 6.0.0. Therefore, the warning is not required in this special case. Now I will use additional "if" block to bypass this warning: if

Re: [Scilab-users] compiling scilab

2017-03-27 Thread Martin Marmsoler
Hello, yes I will try it. Thank you! Martin 2017-03-27 17:47 GMT+02:00 Clément David : > Hello, > > On my machine, with the patch [1] I am able to build scilab. Could you > open a bug to track the issue > and confirm that this patch works in your distribution ? > > [1]: https://codereview.sci

Re: [Scilab-users] Adding a matrix with the empty matrix will give an empty matrix

2017-03-27 Thread tim
Wait. That's a major change in behavior, and will result in some broken code out here in user-land: -->getversion ans = scilab-5.5.2 -->A = rand(3,3) A = 0.0683740 0.7263507 0.2320748 0.5608486 0.1985144 0.2312237 0.6623569 0.5442573 0.2164633 -->A = A + [] A = 0.0683740 0.7263507 0.232

[Scilab-users] Adding a matrix with the empty matrix will give an empty matrix

2017-03-27 Thread Viktor Mileikovskyi
Dear members! I have problems with new warning "Warning adding a matrix with the empty matrix will give an empty matrix result.". A construction such as y(x>10)=y(x>10)+1; produce the warning in 6.0.0 version if all of x<10. It is very critical if such construction is in a cost function o

Re: [Scilab-users] Scilab 6 and graphics

2017-03-27 Thread Claus Futtrup
Hi there Update, after installing Scilab 6, now Scilab 5.5.0 also runs much faster ... it completes in 2.3 seconds, almost as fast as Scilab 6. Maybe improvements to the graphics library? (Java?). Best regards Claus On 27-03-2017 15:57, Claus Futtrup wrote: Hi there Today I downloaded Scil

Re: [Scilab-users] Replace multiple occurrences of regular expression in string with strsubst

2017-03-27 Thread Pierre Vuillemin
My bad, I didn't see the bug report. Great news though. Regards, Pierre Le 27/03/2017 à 16:43, sgoug...@free.fr a écrit : - Mail original - De: "Pierre Vuillemin", Lundi 27 Mars 2017 09:57:01 Hi all, It seems that when using regular expressions with strsubst, only the first occurre

Re: [Scilab-users] compiling scilab

2017-03-27 Thread Clément David
Hello, On my machine, with the patch [1] I am able to build scilab. Could you open a bug to track the issue and confirm that this patch works in your distribution ? [1]: https://codereview.scilab.org/#/c/19232 -- Clément Le dimanche 26 mars 2017 à 21:15 +0200, Martin Marmsoler a écrit : > Hel

Re: [Scilab-users] how to place datatip on one point of polyline

2017-03-27 Thread sgougeon
>De: "Erhy", Lundi 27 Mars 2017 11:59:49 >Objet: [Scilab-users] how to place datatip on one point of polyline > >Hello! >If I plot curves where some values are %nan >datatips are not shown if the curve point for the tip is surrounded by %nan >values. >Now I code on Version 6.0.0 IMO, this current

Re: [Scilab-users] Replace multiple occurrences of regular expression in string with strsubst

2017-03-27 Thread sgougeon
- Mail original - >De: "Pierre Vuillemin", Lundi 27 Mars 2017 09:57:01 > >Hi all, > >It seems that when using regular expressions with strsubst, only the >first occurrence is replaced. For instance, > >tst_str = 'This is a cow. A cow is funny.' >out1 = strsubst(tst_str, 'cow', 'rabbit

[Scilab-users] Scilab 6 and graphics

2017-03-27 Thread Claus Futtrup
Hi there Today I downloaded Scilab 6 and I'm surprised about the speed. A script with 4 plots used to run in 14.4 seconds, now takes 1.9 seconds. The script itself is fast, it was always the plots that took all the time (using Scilab 5.5.0). I'm running the 64 bit version of Scilab on a Micro

Re: [Scilab-users] how to place datatip on one point of polyline

2017-03-27 Thread Erhy
der_Phil wrote > yes, indeeed. > The datatip shows up if you replace the "%nan" by a number...such as: > > y2(TipIx-1) = 0;//%nan;y2(TipIx+1) = 0; //%nan; > > ...not sure if this helps. > > BR > Philipp Want also thank you for the last choke, as Austrian I know this choke. As mentioned it is a

Re: [Scilab-users] simple plot function

2017-03-27 Thread Pierre Vuillemin
Hi, A dot is missing in the argument of the hyperbolic sin for the division to be performed element-wise, x=0:0.1:1; y=exp((x.^4+x.^2-x+(5).^(0.5))/5)+sinh((x.^3+21*x+9) ./ (21*x+6))-3.0; plot(x,y) Regards, Pierre Le 27.03.2017 13:39, Luciano Andino a écrit : > Hi, doing a

Re: [Scilab-users] how to place datatip on one point of polyline

2017-03-27 Thread Philipp Mühlmann
yes, indeeed. The datatip shows up if you replace the "%nan" by a number...such as: y2(TipIx-1) = 0;//%nan;y2(TipIx+1) = 0; //%nan; ...not sure if this helps. BR Philipp 2017-03-27 14:18 GMT+02:00 Erhy : > der_Phil wrote > > t_red=datatipCreate(p_blue, TipIx); > > shouldn't it be > > t_red=d

Re: [Scilab-users] how to place datatip on one point of polyline

2017-03-27 Thread Erhy
der_Phil wrote > t_red=datatipCreate(p_blue, TipIx); > shouldn't it be > t_red=datatipCreate(p_red, TipIx); Thank you for reading the code. I wrote the example for demo the problem in an other script. You are right, but if you run the script with your correction the plot looks just before. Erhy

Re: [Scilab-users] simple plot function

2017-03-27 Thread Lamy Alain
Hello, It’s just because a “.” was missing. Alain x=0:0.05:1; y=exp((x.^4+x.^2-x+(5).^(0.5))/5)+sinh((x.^3+21*x+9) ./ (21*x+6))-3.0; plot(x,y) [cid:image001.png@01D2A704.DB333640] ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailm

[Scilab-users] simple plot function

2017-03-27 Thread Luciano Andino
Hi, doing a simple plot of [image: Imágenes integradas 2] x in [0,1] x=0:0.1:1; y=exp((x.^4+x.^2-x+(5).^(0.5))/5)+sinh((x.^3+21*x+9)/(21*x+6))-3.0; plot(x,y) graphic differs from this online calc: https://www.desmos.com/calculator/jehn17mvvb Don't know what I am doing wrong, tha

Re: [Scilab-users] how to place datatip on one point of polyline

2017-03-27 Thread Philipp Mühlmann
t_red=datatipCreate(p_blue, TipIx); shouldn't it be t_red=datatipCreate(p_red, TipIx); ?? 2017-03-27 11:59 GMT+02:00 Erhy : > Hello! > If I plot curves where some values are %nan > datatips are not shown if the curve point for the tip is surrounded by %nan > values. > Now I code on Version

[Scilab-users] how to place datatip on one point of polyline

2017-03-27 Thread Erhy
Hello! If I plot curves where some values are %nan datatips are not shown if the curve point for the tip is surrounded by %nan values. Now I code on Version 6.0.0 My code: function str=ShowTipsmyfmt(h) pt = h.data; str = 'where is the t

Re: [Scilab-users] efficient calculation for a moving window

2017-03-27 Thread fujimoto2005
Hi Rafael Thanks for your explanations. I understood it. Best regards. -- View this message in context: http://mailinglists.scilab.org/efficient-calculation-for-a-moving-window-tp4035997p4036032.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _

[Scilab-users] Replace multiple occurrences of regular expression in string with strsubst

2017-03-27 Thread Pierre Vuillemin
Hi all, It seems that when using regular expressions with strsubst, only the first occurrence is replaced. For instance, tst_str = 'This is a cow. A cow is funny.' out1 = strsubst(tst_str, 'cow', 'rabbit') out2 = strsubst(tst_str,'/cow/','rabbit','r') disp(out1) // both occurence are