Re: [Scilab-users] circshift() : Scilab Enhancement Proposal

2018-06-06 Thread Samuel Gougeon
Rafael, To me, this attempt looks not legitimate. Indeed, the true original signal HAS a steep jump across its edges. So, the best algorithm should shift the signal and *keep this big slope** **from one sample to the next*. The jump is /*at least*/ as steep as from one sample to the next (and li

Re: [Scilab-users] circshift() : Scilab Enhancement Proposal

2018-06-06 Thread Samuel Gougeon
Hello Rafael, I did not remember this symetrization trick that you use to restore continuous boundaries and so avoid the noise-making jump. It is very efficient. Great! I don't see any reason that could make this trick failing with complex numbers: Making the signal even makes its spectrum ev

Re: [Scilab-users] Legends of saved SciLab graphs slip away

2018-06-06 Thread Samuel Gougeon
Hello Denis, Le 06/06/2018 à 12:57, CRETE Denis a écrit : Hello, Thank you for your quick answer. I could get a correct behaviour with your code. However, if you run this part of the code: g_test=scf(); x=-1:0.01:1; y=sin(2*%pi*x); z=cos(2*%pi*x); plot2d(x',[y;z]',style=1:2) legends(['Sin'

Re: [Scilab-users] Legends of saved SciLab graphs slip away

2018-06-05 Thread Samuel Gougeon
Hello Denis, I am not able to reproduce the behavior that you describe, neither with 6.0.0 nor with 6.0.1 on Windows7 64 bits: g_test=scf(); x=-1:0.01:1; y=sin(2*%pi*x); z=cos(2*%pi*x); plot2d(x',[y;z]',style=1:2) legends(['Sin','Cos'],1:2,"ur") // with an _s_, as in your post twinkle(gcf().

Re: [Scilab-users] Fill plot line properties into a list

2018-06-03 Thread Samuel Gougeon
Le 02/06/2018 à 22:31, Jens Simon Strom a écrit : Hello Scilab intimates, The lines Cspec=list('Color','r','thickness',5); plot(1:5,Cspec(:)) are functional, but the lines Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',5); plot([1:5],Cspec(:))

Re: [Scilab-users] Fill plot line properties into a list

2018-06-03 Thread Samuel Gougeon
Hello Jens, Le 02/06/2018 à 22:31, Jens Simon Strom a écrit : Hello Scilab intimates, The lines Cspec=list('Color','r','thickness',5); plot(1:5,Cspec(:)) are functional, but the lines Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',5); plot([1:

Re: [Scilab-users] circshift() : Scilab Enhancement Proposal

2018-05-31 Thread Samuel Gougeon
Hello Rafael, Le 10/01/2018 à 00:01, Rafael Guerra a écrit : Hi Samuel, .../... Regarding extending circshift() to non-integers I had in mind n-dimensional matrices and the discrete Fourier transform. These matrices could represent regularly sampled 1D time signals, or 2D/3D spatial funct

[Scilab-users] .isoview (and .cube_scaling) design <= Re: surf & isoview: bug or unexpected "feature"

2018-05-30 Thread Samuel Gougeon
Le 21/02/2018 à 12:05, Stéphane Mottelet a écrit : Hello, The cube_scaling appeared with version 5.2 or 5.3 (I don't remember) because the previous default behavior, which corresponds to cube_scaling="off" could produce surfaces which were very hard to visualize with default angles and hard

Re: [Scilab-users] surf & isoview: bug or unexpected "feature"

2018-05-30 Thread Samuel Gougeon
Le 21/02/2018 à 13:47, Stéphane Mottelet a écrit : Great ! But in this case I would add also isoview('off') missed switching .cube_scaling='on' Done. The fixed behaviour of isoview() is now available in Scilab 6.1.0- (by now, continuous built of the master) Samuel _

Re: [Scilab-users] Is cond([]) 0 or 1 ? (bug 15579)

2018-05-30 Thread Samuel Gougeon
Le 27/05/2018 à 23:23, philippe a écrit : Le 27/05/2018 à 19:51, Samuel Gougeon a écrit : [...] Please let us know more about your proposal for 1 instead of 0. I can't say it now, the best value also depends on the compatibility of this value with others assigned to matrix functions

[Scilab-users] A way to manage and use homonymous builtin functions?

2018-05-29 Thread Samuel Gougeon
Hello, Would anyone know a way to call a builtin function in a specific gateway? I mean: for a function in Scilab language, if several homonymous functions -- say thisfun() -- are available in distinct available libraries -- say scilib and mylib --, it is possible to call either the scilib on

Re: [Scilab-users] Is cond([]) 0 or 1 ? (bug 15579)

2018-05-27 Thread Samuel Gougeon
Le 27/05/2018 à 23:49, Rafael Guerra a écrit : You guys may have missed the paper sent before on the algebra of empty matrices by Carl de Boor (Emeritus Professor in Mathematics and Computer Science), so I am sending it again: https://pdfs.semanticscholar.org/0f3b/c36f19d5c6a761c19fbc3c4ebde

Re: [Scilab-users] Is cond([]) 0 or 1 ? (bug 15579)

2018-05-27 Thread Samuel Gougeon
Hello Philippe, Le 24/05/2018 à 23:20, philippe a écrit : Le 21/05/2018 à 15:46, Samuel Gougeon a écrit : There are at least two way to do it : * either keep *cond([])* to *1* and set all *cond([], p)* to 1 instead of 0 * or set *cond([])* to *0*. I don't see any clear r

Re: [Scilab-users] Exclamation mark in variable names

2018-05-27 Thread Samuel Gougeon
Le 26/05/2018 à 14:10, Samuel Gougeon a écrit : Le 25/05/2018 à 11:02, Samuel Gougeon a écrit : Hello, Le 25/05/2018 à 10:45, Clément David a écrit : Hi, Thanks for your experimental work on that topic. I guess we could merge the parser fix easily however the `!` usage to recall a previous

Re: [Scilab-users] Exclamation mark in variable names

2018-05-27 Thread Samuel Gougeon
Le 27/05/2018 à 16:30, Wozai a écrit : Dear Samuel, my point is, it wasn't possible to execute "!A=1" in Scilab 5.x (without prepending a space) and IMHO one should really *improve* the situation in Scilab 6, rather than just restoring the status quo. Thank you Wozai for having confirmed my r

Re: [Scilab-users] Exclamation mark in variable names

2018-05-27 Thread Samuel Gougeon
Le 27/05/2018 à 13:45, Wozai a écrit : Hi, In theory they are "completely independent", but currently as a matter of fact there is a clash wrt. to the semantics of the "!" character. Wozai, i am afraid i don't catch your point. Your point is not specifically about Scilab 6, is it? You already

Re: [Scilab-users] Exclamation mark in variable names

2018-05-27 Thread Samuel Gougeon
Le 27/05/2018 à 10:52, Jens Simon Strom a écrit : Hi, The `!` usage to recall a previous command is discussed here in detail. I don't miss it. My question was different. I was answering to the "What's your opinion?" question by Clément. Yes, i definitely agree on that both questions are comp

Re: [Scilab-users] Exclamation mark in variable names

2018-05-26 Thread Samuel Gougeon
Le 25/05/2018 à 11:02, Samuel Gougeon a écrit : Hello, Le 25/05/2018 à 10:45, Clément David a écrit : Hi, Thanks for your experimental work on that topic. I guess we could merge the parser fix easily however the `!` usage to recall a previous command will remain problematic. This usage does

Re: [Scilab-users] Exclamation mark in variable names

2018-05-25 Thread Samuel Gougeon
Le 25/05/2018 à 11:08, Wozai a écrit : Hi, I think it should be possible to execute things like "!A=123" in the Java Console. Just prepend a space, and it works. Samuel ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/l

Re: [Scilab-users] Exclamation mark in variable names

2018-05-25 Thread Samuel Gougeon
Hello, Le 25/05/2018 à 10:45, Clément David a écrit : Hi, Thanks for your experimental work on that topic. I guess we could merge the parser fix easily however the `!` usage to recall a previous command will remain problematic. This usage does not seem to be documented somewhere in the help p

Re: [Scilab-users] det([]) changed in Scilab 6.0

2018-05-21 Thread Samuel Gougeon
Le 21/05/2018 à 20:25, Rafael Guerra a écrit : Hi Samuel, I am not a mathematician but I suspect that determinant rules you have enunciated do not hold for empty matrices. Fyi, the following Wikipedia’s entry states that det([]) should be 1 (see ‘Empty matrices’ paragraph): https://en.wik

[Scilab-users] Is cond([]) 0 or 1 ? (bug 15579)

2018-05-21 Thread Samuel Gougeon
Hello, Another case with []: The bug 15579 reports that *cond([])* returns *1*, while *cond([],2)* -- that computes the same 2-norm conditional number for any other matrix than [] -- returns *0*. Actually, *cond([], p)* returns 0 for any acce

[Scilab-users] det([]) changed in Scilab 6.0

2018-05-21 Thread Samuel Gougeon
Hello, While updating "help empty" after changes in Scilab 6 about inequality comparisons with [], i have found that det([]) is changed: * 5.5: det([]) => 1 * 6.0: det([]) => 0 I don't know if this modification is intentional. I am wondering about the added value of this change: * If we c

Re: [Scilab-users] Exclamation mark in variable names

2018-05-19 Thread Samuel Gougeon
Hello Jens, Le 19/05/2018 à 12:35, Jens Simon Strom a écrit : Hallo Scilab intimates, Is *!a* a valid variable name in the latest version of Scilab? Vers. 6.0.1 sees an*Error: Unexpected token '!'* Yes it is. You have reported it as the bug 15126

Re: [Scilab-users] gcf().anti_aliasing : Confirmation of (un)effect?

2018-05-11 Thread Samuel Gougeon
Le 07/05/2018 à 14:36, Samuel Gougeon a écrit : Hello, The gcf().anti_aliasing figure property was implemented many years ago (in the early Scilab 5.x versions). It aims to reduce the "staircase effect" for lines drawn very close to vertical or horizontal directions. Yet, has a

Re: [Scilab-users] GSOC 2018

2018-05-07 Thread Samuel Gougeon
Hello Claus, AFAIK, there is this portal on the wiki : https://wiki.scilab.org/GSoC_project_proposal and this dedicated and active mailing list : http://mailinglists.scilab.org/Scilab-GSOC-Mailing-Lists-Archives-f2646148.html But you are right : it would be worthwhile having official news her

[Scilab-users] gcf().anti_aliasing : Confirmation of (un)effect?

2018-05-07 Thread Samuel Gougeon
Hello, The gcf().anti_aliasing figure property was implemented many years ago (in the early Scilab 5.x versions). It aims to reduce the "staircase effect" for lines drawn very close to vertical or horizontal directions. Yet, has anyone ever seen an actual effect on graphic rendering, as ex

Re: [Scilab-users] [SEP] factorial() extension on [171, 10^14]

2018-05-04 Thread Samuel Gougeon
Le 04/05/2018 à 16:13, Rafael Guerra a écrit : Hi Samuel, How are in the proposed extension the resulting very large numbers represented? In other words, how are the limitations of double precision overcome and can we do math with such very large integers? PS: In Scilab the gammaln() function

Re: [Scilab-users] [SEP] factorial() extension on [171, 10^14]

2018-05-04 Thread Samuel Gougeon
Le 14/04/2018 à 15:44, Samuel Gougeon a écrit : While fixing the bug 7562 about a bad memory usage by factorial(), i was wondering about the poor factorial() result, since currently it can process only integers in [0, 170] before saturating and returning %inf. This Scilab Enhancement

Re: [Scilab-users] Comments in a multiline literal array definition

2018-04-23 Thread Samuel Gougeon
Le 23/04/2018 à 10:49, Clément David a écrit : Hello Samuel, This seems to be a regression on the parser, could you post a bug please ? Done @ http://bugzilla.scilab.org/15552 ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mai

[Scilab-users] dos() bug: code or documentation issue?

2018-04-22 Thread Samuel Gougeon
in the consolebox --> dos dira// shows no error in the consolebox The same behavior can be seen as soon as with Scilab 5.0 (where consolebox has been introduced).. and up to 5.5.2 and 6.0.1 now. Is it a dos() bug, or a documentation error? Regards Samuel Gougeon PS: by the way, dos(), unix*()

Re: [Scilab-users] [SEP] [boolean integer_class] concatenations

2018-04-22 Thread Samuel Gougeon
Le 17/04/2018 à 18:49, Samuel Gougeon a écrit : Hello, Surprisingly, as reported in http://bugzilla.scilab.org/15534, after 30 years, Scilab still does not know how to concatenate booleans with encoded integers. For instance : --> [%f int8(-3)] Undefined operation for the given opera

[Scilab-users] [SEP] [boolean integer_class] concatenations

2018-04-17 Thread Samuel Gougeon
Hello, Surprisingly, as reported in http://bugzilla.scilab.org/15534, after 30 years, Scilab still does not know how to concatenate booleans with encoded integers. For instance : --> [%f int8(-3)] Undefined operation for the given operands. check or define function %b_c_i for overloading. I

[Scilab-users] [SEP] factorial() extension on [171, 10^4]

2018-04-14 Thread Samuel Gougeon
Hello, While fixing the bug 7562 about a bad memory usage by factorial(), i was wondering about the poor factorial() result, since currently it can process only integers in [0, 170] before saturating and returning %inf. This Scilab Enhancement Proposed (SEP) aims to extend factorial() to all i

[Scilab-users] Comments in a multiline literal array definition

2018-04-14 Thread Samuel Gougeon
Hello, Before possibly posting a bug report, i would like to know if the following change from Scilab 5.5.2 to 6.0.0 is an expected restriction, or an unexpected one -- so a bug. Scilab 5.5.2 accepts the following: -->a = [ -->1 // line #1 -->2, // line #2 -->] a = 1. 2. while Sc

Re: [Scilab-users] weird bug with scicv: can you help me reproduce it & report it correctly?

2018-04-11 Thread Samuel Gougeon
Le 11/04/2018 à 11:09, Samuel Gougeon a écrit : Hello Antoine, I do not think that this behavior is proper to sciCV or any very specific function. It can be reproduced for many situations, provided that executing from Scinotes or from the console is done without echo (= in silent mode

Re: [Scilab-users] weird bug with scicv: can you help me reproduce it & report it correctly?

2018-04-11 Thread Samuel Gougeon
Hello Antoine, I do not think that this behavior is proper to sciCV or any very specific function. It can be reproduced for many situations, provided that executing from Scinotes or from the console is done without echo (= in silent mode). Typically, echoing a bunch of commands into the conso

Re: [Scilab-users] Problem with SCILAB 5 and 6 Version

2018-03-21 Thread Samuel Gougeon
Hello Héctor Are you using the latest Scilab 6.0.1 release? input() was bugged in previous Scilab 6.0.0+/- releases, but it is now fixed: --> function ingres() > > A=input ('Ingrese la matriz A '); > > disp(A); > > b=input ('Ingrese el vector independiente b '); > > disp(b);

Re: [Scilab-users] n dimensional normal distribution

2018-03-19 Thread Samuel Gougeon
Hello Masahiro, Le 18/03/2018 à 17:31, fujimoto2005 a écrit : Let x1, x2, .., xn be an random variable of n dimensional normal distribution. Is there any function that gives the probability of {x1> = k1}&{x2> = k2}&...&{xn> = kn}? I thougth at the first sight that it would be possible to get t

Re: [Scilab-users] Atoms login

2018-03-16 Thread Samuel Gougeon
Le 16/03/2018 à 20:12, Grzegorz Skiba a écrit : Same situation with our MicroDAQ 1.2.1v toolbox (https://atoms.scilab.org/toolboxes/microdaq/1.2.1 ). Pushed even earlier on 05.03.2018 and still not available for Scilab and MicroDAQ users. Thanks for your confirmation, Grzegorz! For sure, i w

Re: [Scilab-users] Atoms login

2018-03-16 Thread Samuel Gougeon
Le 09/01/2018 à 10:35, simon.marche...@scilab-enterprises.com a écrit : Hello, The ATOMS toolbox cache is once again automatically refreshed every 5 *minutes*, as before. Your cron daemon is killed again, or intentionally stopped. I pushed and published 5 *days* ago a new version of a module

Re: [Scilab-users] Function to read Excel xlsx file into SCILAB

2018-03-16 Thread Samuel Gougeon
Hello Samuel, https://atoms.scilab.org/toolboxes/xls_link is the module likely the most fitting to your need. There is no indication in the description about the support to .xlsx. But if you did not do it yet, you may try using it. Best regards Samuel Gougeon Le 13/03/2018 à 18:18, Samuel

Re: [Scilab-users] Clone a function, continued

2018-03-05 Thread Samuel Gougeon
Le 28/02/2018 à 18:21, Samuel Gougeon a écrit : About http://mailinglists.scilab.org/Scilab-users-Scilab-and-hdf5-format-small-survey-tp4037711p4037718.html : Le 28/02/2018 à 14:52, Stéphane Mottelet a écrit : .../... Doing things like this is not possible any more. It was was also to add

Re: [Scilab-users] mean of elements corresponding element is "true"

2018-03-03 Thread Samuel Gougeon
Le 03/03/2018 à 13:15, Rafael Guerra a écrit : An alternative solution: n=10; M=bool2s(rand(n,n)>0.5);/// Boolean to zero-ones matrix/ A=rand(n,n); x=sum(A.*M,'r')./sum(M,'r'); Indeed. This is basically what nanmean() does, managing in addtition cases where no components remain on a ran

Re: [Scilab-users] mean of elements corresponding element is "true"

2018-03-02 Thread Samuel Gougeon
Le 02/03/2018 à 16:54, Samuel Gougeon a écrit : Le 02/03/2018 à 16:40, fujimoto2005 a écrit : In the attached code,"boolean_M" is a random Boolean matrix. I want to get the average of each column of A whose corresponding element of boolean_M has "true" as row vector x_V,

Re: [Scilab-users] mean of elements corresponding element is "true"

2018-03-02 Thread Samuel Gougeon
Le 02/03/2018 à 16:40, fujimoto2005 a écrit : In the attached code,"boolean_M" is a random Boolean matrix. I want to get the average of each column of A whose corresponding element of boolean_M has "true" as row vector x_V, but it does not work. Where am I wrong? n=10; boolean_M=rand(n,n)>0.5; di

Re: [Scilab-users] int2d

2018-02-28 Thread Samuel Gougeon
Hello Masahiro, function rt=multNormDensFunc(x_V, m_V, cov_M); I am not sure about the semi-colon... ? [I2,e]=int2d(X,Y,list(multNormDensFunc,[0,0],[1,0;0,1]),[0.0001, 1, 20*20, 4000, 0]) The function expects only one parameter after both 2D operands x_V, m_V, while the list provide

Re: [Scilab-users] Clone a function, continued

2018-02-28 Thread Samuel Gougeon
Le 28/02/2018 à 16:30, Stéphane Mottelet a écrit : Thanks Samuel, the problem is that save('macros/%axesData_i_h.bin', '%axesData_i_h') will produce a .sod file with a .bin extension. Both formats cannot be used indifferently for compiled macros of a library : in the following code (that can

Re: [Scilab-users] Clone a function, continued

2018-02-28 Thread Samuel Gougeon
About http://mailinglists.scilab.org/Scilab-users-Scilab-and-hdf5-format-small-survey-tp4037711p4037718.html : Le 28/02/2018 à 14:52, Stéphane Mottelet a écrit : .../... Doing things like this is not possible any more. It was was also to add persistent variables in libraries, with the same me

Re: [Scilab-users] Clone a function, continued

2018-02-28 Thread Samuel Gougeon
Le 28/02/2018 à 17:43, Samuel Gougeon a écrit : Le 28/02/2018 à 17:21, Samuel Gougeon a écrit : On my side, with the following lib file: it is possible to load the library, but then, first issue, only fun2 is reported: --> lib ./ ans = Functions files location : TMPDIR\t

Re: [Scilab-users] Clone a function, continued

2018-02-28 Thread Samuel Gougeon
Le 28/02/2018 à 17:21, Samuel Gougeon a écrit : On my side, with the following lib file: it is possible to load the library, but then, first issue, only fun2 is reported: --> lib ./ ans = Functions files location : TMPDIR\test. fun2 And then, also in this case, calling fun

Re: [Scilab-users] Clone a function, continued

2018-02-28 Thread Samuel Gougeon
Le 28/02/2018 à 16:30, Stéphane Mottelet a écrit : Thanks Samuel, the problem is that save('macros/%axesData_i_h.bin', '%axesData_i_h') will produce a .sod file with a .bin extension. Both formats cannot be used indifferently for compiled macros of a library : in the following code (that can

Re: [Scilab-users] clone a function in a library

2018-02-28 Thread Samuel Gougeon
Le 28/02/2018 à 15:17, Samuel Gougeon a écrit : Another way would be to clone the source file with a hard link with your OS. It is possible with Linux. It should be possible with powershell under Windows. With MacOS, i don't know. Likely possible as well. Could you confirm? Then, try g

Re: [Scilab-users] clone a function in a library

2018-02-28 Thread Samuel Gougeon
Another way would be to clone the source file with a hard link with your OS. It is possible with Linux. It should be possible with powershell under Windows. With MacOS, i don't know. Likely possible as well. Could you confirm? Then, try genlib() and see if it considers such a link.. In Linux, it

Re: [Scilab-users] clone a function in a library

2018-02-28 Thread Samuel Gougeon
Hello Stéphane, I would try the following: After genlibing the set of regular .sci files, * save the clone with save('macros/%axesData_i_h.bin', "%axesData_i_h") * add a line in the lib file The MD5 hash is of the content of the .sci file, that here does not exist. It is use by genlib to c

Re: [Scilab-users] "intg" and i"ntegrate"

2018-02-26 Thread Samuel Gougeon
Hello Fujimoto2005, Le 22/02/2018 à 14:19, fujimoto2005 a écrit : I want to integrate a user function f(x,y1,y2) from a to b with respect to x. 1, I don't see the difference between "integrate" and "intg". I saw help file and find "integrate" can manage multi upper limits. Except it, I can't f

Re: [Scilab-users] repmat() slow compared to .* and .*. <= Re: More rapid calculation

2018-02-26 Thread Samuel Gougeon
Hello Stéphane, Le 16/02/2018 à 08:24, Stéphane Mottelet a écrit : Hello Samuel, It is a good initiative. Looking at your proposed code, I see that you use "execstr" on strings which are forged on the fly. Although the obtained expression will be faster (this was the goal), AFAIK such constr

Re: [Scilab-users] Overflow convention for integer types

2018-02-23 Thread Samuel Gougeon
Le 23/02/2018 à 14:06, Stéphane Mottelet a écrit : Le 23/02/2018 à 13:45, Stéphane Mottelet a écrit : Hello, I would like to point out the conventions used by Scilab and Matlab when an integer number is subject to overflow: Scilab 6.0.1: --> uint8(255)+1 ans = 0 Matlab R2017b >> uint

Re: [Scilab-users] surf & isoview: bug or unexpected "feature"

2018-02-21 Thread Samuel Gougeon
Hi Antoine and Stéphane, Please look at https://codereview.scilab.org/#/c/18857/ and its header, and try --> uman isoview! @ Samuel Le 21/02/2018 à 10:59, Antoine Monmayrant a écrit : Hi all, I am a bit surprised by the way isoview acts on a surf plot. It seems to just scale the x,y,z axis s

Re: [Scilab-users] Scilab closes when I try to execute a code

2018-02-16 Thread Samuel Gougeon
Le 16/02/2018 à 15:53, Hermes a écrit : Hello, this problem was repeated on another PC. -->ver: Scilab Version: 6.0.1.1518683525 Operating System: Windows 7 6.1 Java version: 1.8.0_151 Java runtime information: Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java Virtual Machine informat

[Scilab-users] repmat() slow compared to .* and .*. <= Re: More rapid calculation

2018-02-15 Thread Samuel Gougeon
Le 15/02/2018 à 11:45, Stéphane Mottelet a écrit : Le 15/02/2018 à 00:02, fujimoto2005 a écrit : .../... Hello, In your code, most of the cpu time is spent between lines 40-54 (random generation of big matrices), then between lines 54-60, where one of the bottlenecks is the use of repmat (a

Re: [Scilab-users] More rapid calculation

2018-02-14 Thread Samuel Gougeon
Le 14/02/2018 à 19:15, stephane.motte...@utc.fr a écrit : If your program does not take advantage of the MKL Intel library, it means that its CPU usage is not dominated by linear algebra stuff. I was actually wondering that the bootle neck is not the CPU. This is why i was thinking about the

Re: [Scilab-users] More rapid calculation

2018-02-14 Thread Samuel Gougeon
Le 14/02/2018 à 14:35, fujimoto2005 a écrit : I am using 6.00 for windows. I am doing a simulation using a random number matrix with a huge size. The size of the random matrix is 10 ^ 4 x 25000. I am using a PC equipped with 8 cores and 16 threads. It takes a considerable time to finish the simul

[Scilab-users] A new smarter default grid style for Scilab 6.1.0 (SEP)

2018-02-14 Thread Samuel Gougeon
Dear co-users, New smart lines styles #7 to #10 were defined 3-4 years ago: https://help.scilab.org/docs/6.0.0/fr_FR/polyline_properties_3.png However, the default grid_style == #3 has not been improved. Being aware that better styles are available, this makes me setting by hand the grid_style a

Re: [Scilab-users] Curing scf() & figure() slowliness: a good target for Scilab 6.0.1

2018-02-14 Thread Samuel Gougeon
Le 27/02/2017 à 12:58, Clément David a écrit : Hi Samuel, This is clearly a regression : there probably some synchronization issue (CPUs are not busy at all), could you report a bug on it please ? Done here: http://bugzilla.scilab.org/15035 All regressions -- especially coming from Scilab 5.

[Scilab-users] graphics .uid : usage (& display)

2018-02-13 Thread Samuel Gougeon
Dear co-scilabers, I am wondering about the hidden "uid" property of all graphical objects : --> plot() --> gcf().uid ans = 581. --> gca().uid ans = 628. --> gce().uid ans = 675. It is a protected property, and it's OK: --> gca().uid=500 Unknown property: uid. *Question #1*: this

Re: [Scilab-users] implicit polynomial / implicitlist

2018-02-12 Thread Samuel Gougeon
Le 12/02/2018 à 21:30, Samuel Gougeon a écrit : Dear ESI devs, In Scilab < 6, typeof(1:$) was "|size implicit"| In Scilab 6.0, typeof(1:$) has become "implicitlist" Why not. The issue is that the overloading code is still "ip" standing for "implicit p

[Scilab-users] implicit polynomial / implicitlist

2018-02-12 Thread Samuel Gougeon
Dear ESI devs, In Scilab < 6, typeof(1:$) was "|size implicit"| In Scilab 6.0, typeof(1:$) has become "implicitlist" Why not. The issue is that the overloading code is still "ip" standing for "implicit polynomial", not"il". And in practical, this object is actually made of polynomial(s) So,

Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job?

2018-02-09 Thread Samuel Gougeon
Le 08/02/2018 à 20:16, Heinz a écrit : Sorry, I am lost. I have 10,000 xyz data and want to know, if there is some regularity in them or if they are more or less random. So you need and are speaking about the 3D autocorrelation of data(x,y,z). Usually we compute it through a 3D convolution, th

Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job?

2018-02-08 Thread Samuel Gougeon
Hello Heinz, Le 07/02/2018 à 23:13, Heinz a écrit : Friends: I need to compute the spatial correlation coefficient of my x,y,z data in 3d. Question 1: Is the MATLAB corrcoef function doing the job? Question 2: How do I get corrcoef running in SciLab or C? Do you mean the autocorrelation of a

Re: [Scilab-users] Stacked 2D plot in 3D

2018-02-05 Thread Samuel Gougeon
Le 28/01/2018 à 17:24, Rafael Guerra a écrit : Absolutely, the two param3d functions should be merged. This wish is now reported there: http://bugzilla.scilab.org/15400 Please do not hesitate to add comments in bugzilla if needed. Regards Samuel __

Re: [Scilab-users] Stacked 2D plot in 3D

2018-02-04 Thread Samuel Gougeon
Hi Claus, Indeed, ndgrid(x) standing for ndgrid(x,x) was not yet available in the official 6.0.0 release, while i am using the 6.0.1. It has been implemented in the meantime. Sorry for this misleading situation. Cheers Samuel Le 03/02/2018 à 2

Re: [Scilab-users] Stacked 2D plot in 3D

2018-02-03 Thread Samuel Gougeon
Le 03/02/2018 à 20:11, Claus Futtrup a écrit : Hi Samuel Thank you. This thing with the direction of the lines is difficult to "discover" by accident. :-) ... And thanks for the good help for param3d(1). I hope Scilab will adopt it. When parts of curves are behind each others, there is a m

Re: [Scilab-users] Stacked 2D plot in 3D

2018-02-03 Thread Samuel Gougeon
Le 03/02/2018 à 18:35, Claus Futtrup a écrit : .../... The above code draws lines in the Y-axis direction. What I intended to do is to draw lines in the frequency-direction (x-axis direction). I see how e.children(i) manipulates the curves, but have failed to find a way to change this (= the d

[Scilab-users] param3d() and param3d1() pages merged & improved <= Re: Stacked 2D plot in 3D

2018-02-01 Thread Samuel Gougeon
Hello, Le 28/01/2018 à 17:16, Samuel Gougeon a écrit : Hello Rafael, About param3d() and param3d1(): In 3 days, it will be the 10th birthday of this report: http://bugzilla.scilab.org/6155 Shall we make a present to other users? :) A new merged and improved version of param3d() and

[Scilab-users] xget("fpf") xset("fpf") => gca().ticks_format(4)?

2018-02-01 Thread Samuel Gougeon
Please follow up the discussion on the devs@ list only. Dear devs and users, xset() and xget() are obsolete since Scilab 5.0. Yet, they still remain in Scilab 6.0 due to the xget("fpf") and xset("fpf") syntaxes that still have no replacement. These syntaxes respectively gets and sets the flo

Re: [Scilab-users] Scilab 6 crashes all the time

2018-01-28 Thread Samuel Gougeon
Le 28/01/2018 à 18:58, antoine monmayrant a écrit : It might be related to graphic drivers. On the same PC, after the excellent 5.5.2 release that still run in a very stable way, the only thing that changed is Scilab. However, i must notice that old Scilab version before 5.3.3 (except the

Re: [Scilab-users] Scilab 6 crashes all the time

2018-01-28 Thread Samuel Gougeon
Hello Claus, Thank you for telling things as they are. I experiment the same situation now for 2 years, on Windows 7 64 bits. It got a bit better with the official 6.0.0 release than with the nightly built a few days before the release, but it is still very unstable. With the pending 6.0.1 as

Re: [Scilab-users] Stacked 2D plot in 3D

2018-01-28 Thread Samuel Gougeon
Hello Rafael, About param3d() and param3d1(): In 3 days, it will be the 10th birthday of this report: http://bugzilla.scilab.org/6155 Shall we make a present to other users? :) By the way, beyond their pages, don't you think the functions themselves should be merged? Le 28/01/2018 à 16:39, R

Re: [Scilab-users] Stacked 2D plot in 3D

2018-01-28 Thread Samuel Gougeon
Hello Claus, plot3d3() may be used for this kind of plot. It is even its main asset, despites it is not highlighted in its documentation. Here is an enriched version of its example, and its rendering: u = linspace(-%pi/2, %pi/2, 30); v = linspace(0, 2*%pi, 30); X = cos(u)'*cos(v); Y

Re: [Scilab-users] File exist function?

2018-01-25 Thread Samuel Gougeon
Hello Claus, Le 25/01/2018 à 17:43, Claus Futtrup a écrit : .../... Is such a function already available? Which way is the "official" way to do this in Scilab? Maybe I'm searching for the wrong word, but I found some ways in Scilab. The "fileinfo" seems to be the closest one to what I wish

[Scilab-users] polarplot improvements (pre-SEP) <= Re: Polarplot help

2018-01-21 Thread Samuel Gougeon
Hello Clauss, After a first polarplot upgrade in 2010, i started writting some other improvements in 2016, first about still improving angular and radial labels positionning. Yesterday, i took the opportunity of your message to post on the CodeReview the polarplot.sci in progress, and to go on

Re: [Scilab-users] Dump the output of a function

2018-01-17 Thread Samuel Gougeon
Le 17/01/2018 à 20:26, Samuel Gougeon a écrit : Le 17/01/2018 à 18:16, antoine monmayrant a écrit : Hello all, I might say something really stupid, but can't we define a special variable like %eps, %i, etc to act as a black hole ? Something like %null (like piping to /dev/null or a

Re: [Scilab-users] Dump the output of a function

2018-01-17 Thread Samuel Gougeon
Le 17/01/2018 à 18:16, antoine monmayrant a écrit : Hello all, I might say something really stupid, but can't we define a special variable like %eps, %i, etc to act as a black hole ? Something like %null (like piping to /dev/null or a null pointer) or a better name (%blackhole, %lostforever,

[Scilab-users] datafit() : upgrade proposal (SEP)

2018-01-11 Thread Samuel Gougeon
eady use datafit() ? Hope reading your comments, noticeably about the choice about the 5th item, Best regards Samuel Gougeon ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] Dump the output of a function

2018-01-11 Thread Samuel Gougeon
Hello Christian, AFAIK there is presently no way to skip an output parameter. The more handy would be [,y2,,y4] = f(x) but unfortunately, it does not work (yet?). I did not find this feature as a wish on bugzilla. IMO it should be. It is possible to use a one-character variable name, for instan

Re: [Scilab-users] Atoms login

2018-01-09 Thread Samuel Gougeon
Hello Simon, Thanks for these definitely good news, and for the clear information about the refreshing delay. I confirm that, contrarily to last week-end and yesterday, now it works! I hope that all contributors and maintainers will now come back to ATOMS. Thanks again Regards Samuel PS :

Re: [Scilab-users] circshift() : Scilab Enhancement Proposal

2018-01-09 Thread Samuel Gougeon
Hello Rafael, Le 03/01/2018 à 16:00, Rafael Guerra a écrit : Samuel, As requested, some further feedback on circshift: .../... * To add to the wish list: if the input matrix represents a regularly sampled function, it would be useful to have in Scilab a generalization of circshift

Re: [Scilab-users] Atoms login

2018-01-05 Thread Samuel Gougeon
Le 05/01/2018 à 16:20, Tan Chin Luh a écrit : Yes, after atomsSystemUpdates now seems like the modules are updated. On the ATOMS page of one of your modules, change say the Description, and save. Then run --> atomsSystemUpdate() // in your session. Then --> atomsShow yourModuleName The displ

Re: [Scilab-users] Atoms login

2018-01-04 Thread Samuel Gougeon
Le 04/01/2018 à 02:54, Tan Chin Luh a écrit : Hi Samuel, Thanks for your details explanation. The microdaq 1.2 seems to be listed, does it means that it has been manually added ? It is very likely. I just updated plotplots 1.0 binaries for 5.4 and 5.5 10 minutes ago (because of the missing

Re: [Scilab-users] Atoms login

2018-01-04 Thread Samuel Gougeon
Hello Chin Luh, Le 04/01/2018 à 02:54, Tan Chin Luh a écrit : Hi Samuel, Thanks for your details explanation. The microdaq 1.2 seems to be listed, does it means that it has been manually added ? I don't know. What i know is that i have packaged recent ATOMS zipped binaries exactly in the

Re: [Scilab-users] Atoms login

2018-01-03 Thread Samuel Gougeon
toolbox or file (fileexchange) updates. Sorry for the delay. Simon Marchetto Le 2017-11-14 20:53, Samuel Gougeon a écrit : Hello, Le 26/09/2017 à 22:49, Samuel Gougeon a écrit : Le 25/09/2017 à 23:07, Shamika Mohanan a écrit : Hello,

Re: [Scilab-users] circshift() : Scilab Enhancement Proposal

2018-01-03 Thread Samuel Gougeon
Thanks for your comments, Rafael. I am answering in the body: Le 03/01/2018 à 16:00, Rafael Guerra a écrit : Samuel, As requested, some further feedback on circshift: * The proposed syntax seems to be compatible with Matlab’s circshift while adding extra functionality, which is very pos

Re: [Scilab-users] circshift() : Scilab Enhancement Proposal

2018-01-03 Thread Samuel Gougeon
s(1), then the indices of A columns by shifts(2), then indices of A layers by shifts(3), etc. Cheers, Antoine (& Happy New Year to all!) Le 23/12/2017 à 19:06, Samuel Gougeon a écrit : Dear co-scilabers, After the wish reported at http://bugzilla.scilab.org/7293 in 2010, some cshift()

Re: [Scilab-users] Adjusting data bounds of semi-log plot with dual axes

2017-12-26 Thread Samuel Gougeon
Hello Rafael, using /a1.data_bounds = [xmin,0;xmax,200];// how to use data_bounds with log plots?/ after plot2d(x,y1,logflag="ln"); works for me. For an unknown reason, setting .data_bounds /before/ plotting cancels the log mode. This is clearly a bug. Cheers Samuel Le 26/12/2017 à 19:46

[Scilab-users] circshift() : Scilab Enhancement Proposal

2017-12-23 Thread Samuel Gougeon
include this basic but non-trivial feature in Scilab 6.1, a Scilab Enhancement Proposal is posted on review at https://codereview.scilab.org/#/c/19625/ Proposed features are described in the help page in PDF format in attachment. Every comment is welcome. Best regards Samuel Gougeon

Re: [Scilab-users] Numderivative and integrate

2017-12-20 Thread Samuel Gougeon
Hello Paul, The loop Le 11/12/2017 à 11:53, Carrico, Paul a écrit : ... fori = 1 : n Numl_Gamma_derrivative(2,i) = _numderivative_(_Gamma_function_, Numl_Gamma_derrivative(1,i),1e-3,order=4); end could be avoided by vectorizing numderivative(). There was a previous recent thread about th

Re: [Scilab-users] Scrollbar in figures

2017-12-20 Thread Samuel Gougeon
Hello Baptiste, Le 20/12/2017 à 16:50, Boillot, Baptiste (GE Renewable Energy) a écrit : Hello, Is there a way in 6.0 to get a scrollbar in a figure when the axes_size is greater than the figure_size, the same way it used to be in 5.3.3 (auto_resize = “off”). On Windows_x64, we get them

Re: [Scilab-users] Floating-point relative accuracy – HELP

2017-12-14 Thread Samuel Gougeon
Hello, Le 14/12/2017 à 21:54, David Brant a écrit : Hello I'm not fully conversant with Matlab, but offered to help my daughter with a tutorial in Scilab ... and then Matlab! Basically Matlab gives the 'expected' tutorial answer (n=17), and scilab does not! Hopefully this is down to my lack of

Re: [Scilab-users] guibuilder 4.1/4.0.1 reload problem

2017-11-30 Thread Samuel Gougeon
Le 29/11/2017 à 21:39, Blaise a écrit : Hello guys, Recently I tried to create a GUI in scilab using guibuilder. I could save and run the GUI, but the problem occured when I was going to open the GUI via guibuilder to make some changes. I got a message: operation -: Warning adding a matrix with

<    2   3   4   5   6   7   8   9   10   11   >