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

2017-11-29 Thread Samuel Gougeon
not do it quickly. HTH Samuel Gougeon ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] Find the error

2017-11-28 Thread Samuel Gougeon
Le 28/11/2017 à 16:06, CRETE Denis a écrit : When the header is stripped off, there is no error: M=fscanfMat('grids_germany_monthly_radiation_direct_201706.asc'); I confirm. After using another web browser to download the file, and after removing the header, fscanfMat() works like a charm. Sam

Re: [Scilab-users] Find the error

2017-11-28 Thread Samuel Gougeon
Le 28/11/2017 à 15:30, Richard llom a écrit : Hello, when trying to read in this file: ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_direct/grids_germany_monthly_radiation_direct_201706.zip I don't get any file in this zipped archive. 0 k. ___

Re: [Scilab-users] find a zero of a system of nonlinear functions

2017-11-28 Thread Samuel Gougeon
Le 28/11/2017 à 12:30, CRETE Denis a écrit : Hello, I am not convinced that in the quoted document the first argument is a range: the values returned by the function fsolve are generally not lying in the intended "range"; if you try: fsolve([0.4,0.45,0.5],f) ans = - 1.6.228. If I

Re: [Scilab-users] Atoms login

2017-11-26 Thread Samuel Gougeon
Le 25/09/2017 à 23:07, Shamika Mohanan a écrit : Hello, Is anyone having trouble logging into their ATOMS account? I'm unable to log in or create a new account. At last, after a 5-months-long interruption, the ATOMS server has reopened this week! The login works with the former accounts (no

Re: [Scilab-users] The numderivative function

2017-11-19 Thread Samuel Gougeon
Hello Hermes, As stated in my first answer, the only actually valuable thing to do to shorten the execution time is exec(SCI+"/modules/optimization/macros/numderivative.sci",-1) before the first call to numderivative() (through ode(), in your case). This will decrease the execution time by a fa

Re: [Scilab-users] users@ no longer archived

2017-11-19 Thread Samuel Gougeon
Le 18/11/2017 à 16:44, Samuel Gougeon a écrit : @ ESI-Scilab group : This mailing list -- and maybe the other ones on @lists.scilab.org -- is no longer archived on http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html since 2017-11-14, so now for 4 days. Is it

Re: [Scilab-users] The numderivative function

2017-11-18 Thread Samuel Gougeon
Le 18/11/2017 à 22:38, Samuel Gougeon a écrit : Le 18/11/2017 à 22:01, Hermes a écrit : Hi; The numderivative function consumes a lot of time in the calculations. In the following script I show two options for my "odes" function In one of them I use the numderivative functio

Re: [Scilab-users] The numderivative function

2017-11-18 Thread Samuel Gougeon
vectorized (=> back-compatibility issue) * The jacobian would become an hypermatrix (OK) * The hessian would get up to 4 dimensions You may post a report on bugzilla in order to point numderivative slowness() (if it is not already reported)(Bugzilla is currently off, taking its

Re: [Scilab-users] Trouble with reading whitespace separated csv

2017-11-18 Thread Samuel Gougeon
Hello Richard, Le 17/11/2017 à 17:41, Richard llom a écrit : Hello, I'm trying to read in a file with whitespace separated values, with [log_data, comments] = csvRead(log_file,ascii(32),'.','double'); However I'm constantly getting this error: Warning: Inconsistency found in the columns. At line

[Scilab-users] users@ no longer archived

2017-11-18 Thread Samuel Gougeon
@ ESI-Scilab group : This mailing list -- and maybe the other ones on @lists.scilab.org -- is no longer archived on http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html since 2017-11-14, so now for 4 days. Is it intentional? Samuel Gougeon

Re: [Scilab-users] Atoms login

2017-11-17 Thread Samuel Gougeon
OMS and FE pointers formerly attached to this login. Samuel Le 17/11/2017 à 22:00, Samuel Gougeon a écrit : Hello Simon, Thanks for your efforts to solve these long standing bugs. Unfortunately, tonigh, not being logged, * ATOMS o visiting once the portal is OK o visiting any module&#x

Re: [Scilab-users] Atoms login

2017-11-17 Thread Samuel Gougeon
Hello Simon, Thanks for your efforts to solve these long standing bugs. Unfortunately, tonigh, not being logged, * ATOMS o visiting once the portal is OK o visiting any module's page fails and displays: "LDAP : bind échoué" o after that, visiting again the ATOMS portal fails * F

Re: [Scilab-users] Atoms login

2017-11-14 Thread Samuel Gougeon
Hello, Le 26/09/2017 à 22:49, Samuel Gougeon a écrit : Le 25/09/2017 à 23:07, Shamika Mohanan a écrit : Hello, Is anyone having trouble logging into their ATOMS account? I'm unable to log in or create a new account. Neither are we. Please have a look at http://mailinglists.scila

Re: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP

2017-11-11 Thread Samuel Gougeon
Hello David, Le 11/11/2017 à 11:29, David Brant a écrit : Hi Everything works fine on windows, but unforunately i need to work with linux. It appears ATOMS has not been configured to run correctly on Linux Mint. Could you be more explicit? What's the problem with ATOMS, and with which Scila

Re: [Scilab-users] frame, plot & non working zoom: your help for a bug report and a possible workaround

2017-11-10 Thread Samuel Gougeon
Hello Antoine, Le 10/11/2017 à 21:32, Antoine Monmayrant a écrit : Hello Scilab users, I'm facing a bug that prevents zooming on a plot inside a frame (or a tab). Here is my minimum working (or bugging) example: // // Two axes in one figure: // left one is insid

Re: [Scilab-users] Shift indices

2017-11-09 Thread Samuel Gougeon
Le 09/11/2017 à 12:42, Rafael Guerra a écrit : n = size(log_data,1); log_data = log_data([4001:n,1:4000], :); Yes, it's definitely simpler! (unfortunately, we can't use the implicit polynomial 4001:$ to replace n=.., 4001:n, because it can't be concatenated)

Re: [Scilab-users] Shift indices

2017-11-09 Thread Samuel Gougeon
Le 08/11/2017 à 15:07, Richard llom a écrit : Hello, is there a function available to shift indices? E.g. I have aa = [1:10] and want bb = 6. 7. 8. 9. 10. 1. 2. 3. 4. 5. This is what I come up with: log_data2 = zeros(log_data); log_data2 = log_data(4001:size(log_data,1),:); lo

Re: [Scilab-users] Weird things with the continuation dots

2017-11-09 Thread Samuel Gougeon
Le 09/11/2017 à 09:31, Dang Ngoc Chan, Christophe a écrit : --> 5*... > 2 Opération indéfinie pour les opérandes données. By the way, with the official 6.0.0 and a later nighlty built for Windows, i don't get the same error message. I get the clearer message: --> 5*... > 2 Undefined oper

Re: [Scilab-users] Weird things with the continuation dots

2017-11-09 Thread Samuel Gougeon
Le 09/11/2017 à 10:08, Samuel Gougeon a écrit : Hello Christophe, Le 09/11/2017 à 09:31, Dang Ngoc Chan, Christophe a écrit : Hello, When I used a script written for 5.4 with 6.0, I noticed some weird things with the continuation mark "..". E.g. in 5.4, "abc... def" was

Re: [Scilab-users] Weird things with the continuation dots

2017-11-09 Thread Samuel Gougeon
Hello Christophe, Le 09/11/2017 à 09:31, Dang Ngoc Chan, Christophe a écrit : Hello, When I used a script written for 5.4 with 6.0, I noticed some weird things with the continuation mark "..". E.g. in 5.4, "abc... def" was OK, it now gives an error ; I have to fix it with "abc"+... "def" Ind

Re: [Scilab-users] Shift indices

2017-11-08 Thread Samuel Gougeon
Le 08/11/2017 à 15:07, Richard llom a écrit : Hello, is there a function available to shift indices? E.g. I have aa = [1:10] and want bb = 6. 7. 8. 9. 10. 1. 2. 3. 4. 5. If you need to shift i = 1:n indices by /any/ p -- not necessarily n/2 --, you may do si = modulo(i+p-1

Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-31 Thread Samuel Gougeon
Le 31/10/2017 à 13:53, philippe a écrit : Le 31/10/2017 à 11:23, Samuel Gougeon a écrit : Hello Philippe, Le 31/10/2017 à 10:58, philippe a écrit : Even reporting duplicates of already existing bugs can help to improve scilab ... Sorry, but i strongly disagree with this last assertion

Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-31 Thread Samuel Gougeon
Hello Philippe, Le 31/10/2017 à 10:58, philippe a écrit : Even reporting duplicates of already existing bugs can help to improve scilab ... Sorry, but i strongly disagree with this last assertion. Please contribute to process bugs reported on bugzilla, and you will understand why. On the con

Re: [Scilab-users] Scilab 6 : unable to display variables

2017-10-30 Thread Samuel Gougeon
Le 30/10/2017 à 10:33, Samuel Gougeon a écrit : Hello Fabrice, Le 30/10/2017 à 10:21, Lesept a écrit : I'm using Scilab 6 on Windows 7. When I execute Scilab, everything goes well, but after a certain delay, I am enable to display variables' values. E.g., if I type d=6 this creat

Re: [Scilab-users] Scilab 6 : unable to display variables

2017-10-30 Thread Samuel Gougeon
Le 30/10/2017 à 10:33, Samuel Gougeon a écrit : Le 30/10/2017 à 10:21, Lesept a écrit : Also, Scilab is not linked to .sce or .sci files, I have to load these files manually in the editor. This is a matter with your OS. For my part, i do not link these extensions to Scilab, because

Re: [Scilab-users] Scilab 6 : unable to display variables

2017-10-30 Thread Samuel Gougeon
Hello Fabrice, Le 30/10/2017 à 10:21, Lesept a écrit : I'm using Scilab 6 on Windows 7. When I execute Scilab, everything goes well, but after a certain delay, I am enable to display variables' values. E.g., if I type d=6 this creates the new variable 'd', I can see it in the 'navigateur de vari

Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-28 Thread Samuel Gougeon
Le 28/10/2017 à 13:48, philippe a écrit : The clf page https://help.scilab.org/docs/6.0.0/en_US/clf.html misses telling that uicontrols are cleared as well, including frames (i guess). I don't understand the link between this bug and uicontrols . If you are /sure/ that the student did not defi

Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-28 Thread Samuel Gougeon
Le 28/10/2017 à 12:22, Samuel Gougeon a écrit : Hello Philippe, Sorry, but i don't catch clearly the circumstances of this bug. Are you the user that experimented this bug, or someone else did? If you are not the user, where did you find the primary information? If you are the user, why d

Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-28 Thread Samuel Gougeon
Hello Philippe, Sorry, but i don't catch clearly the circumstances of this bug. Are you the user that experimented this bug, or someone else did? If you are not the user, where did you find the primary information? If you are the user, why do you say that "you can't reproduce it because you don't

Re: [Scilab-users] Callback poorly reactive

2017-10-13 Thread Samuel Gougeon
Hello Alexis, Le 13/10/2017 à 15:02, Alexis Cros a écrit : Good day, I made a relatively complex HMI with Scilab which uses pushbuttons with callbacks from uicontrol 'library'. Particularly, one pushbutton is used to make visible or invisible a configuration window, which also contains slid

Re: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues

2017-10-04 Thread Samuel Gougeon
Le 04/10/2017 à 12:58, Paul Bignier a écrit : We're having trouble at the moment uploading the nightly builds, you may find some uploaded versions at http://downloadarea.scilab.org We often forget how priviledged we are :) __

[Scilab-users] help_from_sci() with %overload.sci <= Re: unit tests and help generation for overloaded unary/binary operators

2017-10-03 Thread Samuel Gougeon
Hi, Le 16/06/2016 à 18:28, philippe a écrit : Hi, I'm writing a toolbox to handle "big integers" represented by a tlist of type "bigint". In my "macros/" directory I wrote my scilab functions for bigint type and overloaded unary and binary operators (+,-,>,==, ...) for example %bigint_o_bigi

Re: [Scilab-users] "unique" bug with complex ?

2017-09-28 Thread Samuel Gougeon
Hello Philippe, unique() sorts components to deduplicate them. So, components are assumed to be sortable. This is not the case for complex numbers. Here there are 2 issues 1) This limitation is not documented. 2) We could need deduplicating complex numbers, but this limitation is not overcome.

Re: [Scilab-users] Atoms login

2017-09-26 Thread Samuel Gougeon
Le 25/09/2017 à 23:07, Shamika Mohanan a écrit : Hello, Is anyone having trouble logging into their ATOMS account? I'm unable to log in or create a new account. Neither are we. Please have a look at http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.htm

Re: [Scilab-users] Cannot access module at atom.scilab

2017-09-23 Thread Samuel Gougeon
Hello, Le 22/08/2017 à 12:50, Clément David a écrit : Hi, You could still use `atomsInstall foo.zip` to install a binary module. To download it, use the link within the atoms.scilab.org website. It is impossible now for almost 2 full months to update existing ATOMS modules -- noticeably f

Re: [Scilab-users] Strange floating point issue below %eps

2017-09-23 Thread Samuel Gougeon
Hello, Le 19/09/2017 à 11:16, Pinçon Bruno a écrit : Le 18/09/2017 à 20:54, Samuel Gougeon a écrit : Now comes the issue: In (A), the relative difference 1/2^53 is too small (< %eps) to be recorded and to change the number. OK. Since 1 / (2^53 +2) is even smaller than 1 / (2^53), it sho

[Scilab-users] Strange floating point issue below %eps

2017-09-18 Thread Samuel Gougeon
Dear co-Scilabers, I met a strange Scilab's bug this week-end. But today, i tried with Octave, Matlab2016 and R, and i found the same strange behavior. So, either i am missing something, or the bug affects all these languages in the same way. It is reported @ http://bugzilla.scilab.org/15276

Re: [Scilab-users] getd in a script

2017-09-11 Thread Samuel Gougeon
Hello Dana, Le 07/09/2017 à 17:50, quant a écrit : I am running Scilab 6 on Windows 8.1. I have a directory named Macros where I have one file - helperfuncs.sci. In the console: I cd to the directory that contains Macros. --> getd('Macros\'); That works. However, when I execute

Re: [Scilab-users] figure_size

2017-09-10 Thread Samuel Gougeon
Le 10/09/2017 à 17:32, Samuel Gougeon a écrit : Le 10/09/2017 à 14:03, Claus Futtrup a écrit : Hi all I figured it out. At the beginning of the script I can call gdf and set parameters. I did: if saveplots then // if plots are to be saved to disk, then plotsize = [931,750

Re: [Scilab-users] figure_size

2017-09-10 Thread Samuel Gougeon
Le 10/09/2017 à 17:37, Claus Futtrup a écrit : Hi Samuel Thanks for all the (different email) responses - and below tip how to directly put the figure size with the scf() command. This directly answers my initial question. Thanks. How do you guys figure this out? Looking directly in the Scil

Re: [Scilab-users] figure_size

2017-09-10 Thread Samuel Gougeon
Le 10/09/2017 à 14:03, Claus Futtrup a écrit : Hi all I figured it out. At the beginning of the script I can call gdf and set parameters. I did: if saveplots then // if plots are to be saved to disk, then plotsize = [931,750]; // make larger plot, default is 626 x 587 p = gd

Re: [Scilab-users] figure_size

2017-09-10 Thread Samuel Gougeon
Le 10/09/2017 à 14:47, Claus Futtrup a écrit : Hi Rafael FYI, just adding auto_resize = "off" means that the actual plot doesn't resize to the new (bigger) plot area. I get a small plot in a larger plot area and lots of white space. Right. By the way, fig.auto_resize = "off" makes fig.figure

Re: [Scilab-users] figure_size

2017-09-10 Thread Samuel Gougeon
Hello, Le 10/09/2017 à 13:35, Claus Futtrup a écrit : Hi there When I create a new figure, I do newfig = scf(); Then to make the figure larger I do newfig.figure_size = [931,750]; // default is 626 x 587 // When height = 750 is specified, then it correctly becomes 817. // I have no idea w

Re: [Scilab-users] Scilab 6 problem with "Prettify"

2017-09-08 Thread Samuel Gougeon
Le 08/09/2017 à 21:07, Claus Futtrup a écrit : Hi Pierre, et al. I was able to resolve the problem with the Prettify code by changing ' to " in the code for default_options. I have no idea why this should matter. As explained in a previous message, this confirms that quotes were wrongly en

Re: [Scilab-users] Scilab 6 problem with "Prettify"

2017-09-07 Thread Samuel Gougeon
Le 07/09/2017 à 23:14, Samuel Gougeon a écrit : Le 06/09/2017 à 21:33, Claus Futtrup a écrit : Hi there I've started to use the prettify functions by Pierre Vuillemin. So far so good in Scilab 5.5 Now I've started to look into Scilab 6 (not least because graphics is much fast

Re: [Scilab-users] Scilab 6 problem with "Prettify"

2017-09-07 Thread Samuel Gougeon
Le 06/09/2017 à 21:33, Claus Futtrup a écrit : Hi there I've started to use the prettify functions by Pierre Vuillemin. So far so good in Scilab 5.5 Now I've started to look into Scilab 6 (not least because graphics is much faster), but I get a weird error. If I start Scilab, first time I

Re: [Scilab-users] Scilab 6 problem with "Prettify"

2017-09-07 Thread Samuel Gougeon
tead. w strcmpi is deprecated. Please use strcmp(..,"i")instead. w square will be removed from Scilab 6.1. Please use gcf().axes_ size and replot instead. ... You might be right that clear is on its way out, but I don't know where to find the information. /Claus On 07-09-2017

Re: [Scilab-users] Scilab 6 problem with "Prettify"

2017-09-07 Thread Samuel Gougeon
Hello Claus, In Scilab, clear is deleterious. As a first hint, i would try commenting it before rerunning the script. Best regards Samuel Le 06/09/2017 à 21:33, Claus Futtrup a écrit : Hi there I've started to use the prettify functions by Pierre Vuillemin. So far so good in Scilab 5.5 N

Re: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7

2017-09-02 Thread Samuel Gougeon
Le 02/09/2017 à 20:58, rlandersen a écrit : I still have the problem. Anyone found a solution for this? Please post. Does the console version run? It does not run the Java virtual Machine. This may make a difference in your case. If it does, then type --> SCIHOME // in the "safe" scilab sessio

Re: [Scilab-users] Installing SIVP and IPD upon Scilab Installation

2017-09-02 Thread Samuel Gougeon
Hello nigamakashkumar Le 14/06/2017 à 07:49, nigamakashkumar a écrit : Hi folks, I am currently working on application development through labview, which uses the Labview to Scilab Gateway (1.31) to run scilab scripts. Also, my scilab scripts require the toolboxes SIVP (0.5.3) and IPD(8.2) for

Re: [Scilab-users] Problems with "Matlab to Scilab translator" application

2017-08-21 Thread Samuel Gougeon
Hello Hermes, Please see http://mailinglists.scilab.org/Scilab-users-scilab-6-mfile2sci-fails-tt4035737.html http://bugzilla.scilab.org/15053 http://bugzilla.scilab.org/15220 http://www.scilab.org/en/development/nightly_builds/branch60 Regards Samuel Le 21/08/2017 à 09:45, Hermes a écrit : goo

Re: [Scilab-users] vectorfind() upgrade [SEP]

2017-08-17 Thread Samuel Gougeon
Le 17/08/2017 à 11:10, Samuel Gougeon a écrit : Hi Hermes, Le 17/08/2017 à 10:31, Hermes a écrit : Hi Samuel, Good morning, please guide me how to update scilab so I can use the update function: vectorfind. I have writw access to Scilab installation directory Gracias There are several ways

Re: [Scilab-users] vectorfind() upgrade [SEP]

2017-08-17 Thread Samuel Gougeon
Hi Hermes, Le 17/08/2017 à 10:31, Hermes a écrit : Hi Samuel, Good morning, please guide me how to update scilab so I can use the update function: vectorfind. I have writw access to Scilab installation directory Gracias There are several ways to include it in Scilab. All ways require first t

Re: [Scilab-users] vectorfind() upgrade to search partial matches and in hypermatrices

2017-08-16 Thread Samuel Gougeon
Le 08/02/2017 à 14:28, Samuel Gougeon a écrit : Here it is: https://codereview.scilab.org/#/c/19055/ Follow-up there: http://mailinglists.scilab.org/Scilab-users-vectorfind-upgrade-SEP-tt4036885.html ___ users mailing list users@lists.scilab.org

[Scilab-users] vectorfind() upgrade [SEP]

2017-08-16 Thread Samuel Gougeon
Hi, Looking for occurrences of a vector in an array is a general task that can be useful in many situations. vectorfind() currently does it, but with some cumbersome limitations. A work was started in last February to extend vectorfind() capabilities. It was announced @ http://mailinglists.sc

Re: [Scilab-users] Problem with GUI / SERIAL / REALTIME.

2017-08-15 Thread Samuel Gougeon
Hi Le 15/08/2017 à 14:38, Jonas a écrit : Hi, I'm having a problem with GUI / SERIAL / REALTIME. . After the serial is open, I can not close the serial by pressing the graphic button I created for this. What does occur when you press this button? Did you try to add disp(serial) in close_ser

Re: [Scilab-users] Leading Spaces in xstring

2017-08-14 Thread Samuel Gougeon
Le 14/08/2017 à 12:44, Samuel Gougeon a écrit : I am answering separately to the secodn item: Le 14/08/2017 à 12:05, Richard llom a écrit : Furthermore in captions: ""by_coordinates": the upper left corner of the captions box is given by the "position" field of the

Re: [Scilab-users] Leading Spaces in xstring

2017-08-14 Thread Samuel Gougeon
Le 14/08/2017 à 13:12, Richard llom a écrit : Are you sure? .axes_bounds is a figure's property, not an axes one (this is why it can't be specified in data coordinates). AFAIU, you would like to have coordinates normalized either to the full axes, or to the full data ranges. This .position coordi

Re: [Scilab-users] Inverse of getdate()?

2017-08-14 Thread Samuel Gougeon
Hello Rafael, Le 14/08/2017 à 09:07, Rafael Guerra a écrit : Hello Samuel, Thanks a lot for the responses. I am bit confused about the leap seconds, getdate seems to handle those but datenum formula below might ignore them? Who is not so? There is a lot of work to do tests, look at the c

Re: [Scilab-users] Leading Spaces in xstring

2017-08-14 Thread Samuel Gougeon
Le 14/08/2017 à 12:52, Richard llom a écrit : I am afraid that you are making still worse the already very bad situation about legends(), legend(), captions() and the leg= plotting options, that all basically do the same thing, but all with pitfalls: http://bugzilla.scilab.org/5371 Ah, I wasn'

Re: [Scilab-users] Leading Spaces in xstring

2017-08-14 Thread Samuel Gougeon
I am answering separately to the secodn item: Le 14/08/2017 à 12:05, Richard llom a écrit : Furthermore in captions: ""by_coordinates": the upper left corner of the captions box is given by the "position" field of the associated data structure. The x and y positions are given as fractions of the

Re: [Scilab-users] Leading Spaces in xstring

2017-08-14 Thread Samuel Gougeon
Le 14/08/2017 à 12:05, Richard llom a écrit : AFAIK, only data coordinates are possible: https://help.scilab.org/docs/6.0.0/en_US/text_properties.html Otherwise, you may build your own routine to make the coordinates change from axes-normalized to data. In both legend() and captions() are pos/ l

Re: [Scilab-users] Inverse of getdate()?

2017-08-13 Thread Samuel Gougeon
Le 13/08/2017 à 20:15, Rafael Guerra a écrit : Also, how to know in Scilab the difference between UTC and local time (time zone)? Likely with t = getdate(0); tz = t(7)+t(8)/60 // in [h] to what the Daylight saving time must be considered and added separately. Samuel _

Re: [Scilab-users] Inverse of getdate()?

2017-08-13 Thread Samuel Gougeon
Hello Rafael, Le 13/08/2017 à 20:15, Rafael Guerra a écrit : Dear Scilab’ers, Do you know of an inverse function for getdate() in Scilab, similar to Octave’s mktime()? Example: d = getdate(1.5026e+09) d= 2017.8.32.225.1.13.6.53.20.0. If we have d (or the key part of it), how to compute

Re: [Scilab-users] Leading Spaces in xstring

2017-08-11 Thread Samuel Gougeon
Le 11/08/2017 à 16:10, Richard llom a écrit : Hi Samuel, thanks for the hint, that works nicely. Regarding xstring is there a way to place it relative in the graph? I.e. not at a fixed axis position, but at e.g. lower and left 10% of the graph? AFAIK, only data coordinates are possible: https

Re: [Scilab-users] unusable cat() rewritten. Call for reviewers

2017-08-10 Thread Samuel Gougeon
Le 10/08/2017 à 19:55, Samuel Gougeon a écrit : Dear co-scilabers, The bug 8297 <http://bugzilla.scilab.org/8297> reporting the outstanding slowness of the cat() function was reported in 2010 but lasts since cat() was introduced. As measured and commented in the report, this sl

[Scilab-users] unusable cat() rewritten. Call for reviewers

2017-08-10 Thread Samuel Gougeon
Dear co-scilabers, The bug 8297 reporting the outstanding slowness of the cat() function was reported in 2010 but lasts since cat() was introduced. As measured and commented in the report, this slowness actually makes cat() almost unusable, except for small siz

Re: [Scilab-users] Call for reviewer <= SEP: upgrading weekday()

2017-08-10 Thread Samuel Gougeon
Le 01/08/2017 à 14:24, Richard llom a écrit : Then, for a big subset of dates, there would not be any way to distinguish it from DD/MM/, Yeah, thats the problem with this format (and not only in scilab). unless for instance using a distinct separator: MM\DD\. Not sure that this wou

Re: [Scilab-users] Leading Spaces in xstring

2017-08-10 Thread Samuel Gougeon
Hi Richard, Le 10/08/2017 à 13:58, Richard llom a écrit : Hey All, I have this code to print some information in the graph: // Save info as string infobox(1) = msprintf('Min V %.2f V \n',min(log_data(:,3))); infobox(2) = msprintf('Max V %.2f V \n',max(log_data(:,3))); infobox(3) = mspr

Re: [Scilab-users] High processor usage of idle Scilab and SciNotes

2017-08-05 Thread Samuel Gougeon
Hello Viktor, Le 05/08/2017 à 13:06, Viktor Mileikovskyi a écrit : Dear members! After running Scilab 64 bit and SciNotes and opening a file in SciNotes, the processor load is very high. It does not drop in idle conditions! It drops only if the SciLab is closed. It is exactly what i get whe

Re: [Scilab-users] Save figure as landscape DIN A4 PDF

2017-08-02 Thread Samuel Gougeon
Le 02/08/2017 à 13:59, Samuel Gougeon a écrit : Le 02/08/2017 à 10:52, Richard llom a écrit : Have you tried printsetupbox() (for the default parameters) or printfigure(i) for printing parameters only for a given figure? Both of these involve the GUI and user interaction, which I BOTH want to

Re: [Scilab-users] Save figure as landscape DIN A4 PDF

2017-08-02 Thread Samuel Gougeon
Le 02/08/2017 à 10:52, Richard llom a écrit : Have you tried printsetupbox() (for the default parameters) or printfigure(i) for printing parameters only for a given figure? Both of these involve the GUI and user interaction, which I BOTH want to avoid... AFAIRemember, options set with printset

Re: [Scilab-users] Linux: Taskmanager Icons of Scilab Application

2017-08-02 Thread Samuel Gougeon
Le 02/08/2017 à 11:41, Richard llom a écrit : Under Linux I have the problem that all Scilab application (console, scinotes, help, figures) have the same icon in the taskmanager, which makes it very cumbersome to navigate between them. Is this just me? Any way to change this? Note that the wind

Re: [Scilab-users] Setting default axes / figure values

2017-08-01 Thread Samuel Gougeon
Le 01/08/2017 à 18:33, Richard llom a écrit : Before my printing commands I'm setting up some defaults like this: // Visualization clf(); // Set some defaults defaxh = get("default_axes"); defaxh.font_size = 3; defaxh.title.font_size = 4; defaxh.title.font_style = 9; defaxh.x_label.font

Re: [Scilab-users] Save figure as landscape DIN A4 PDF

2017-08-01 Thread Samuel Gougeon
Le 01/08/2017 à 18:24, Richard llom a écrit : Hello All, I want to save my figures automatically (from the script) as landscape DIN A4. xs2pdf(gcf(),'result','landscape'); Works fine so far, however I have problems defining the (paper) size. I found only: "figure_size: This property controls th

Re: [Scilab-users] Call for reviewer <= SEP: upgrading weekday()

2017-08-01 Thread Samuel Gougeon
Le 01/08/2017 à 15:45, Richard llom a écrit : OK. So, instead of an option, we could use a prefix, that will be even handier, like in "US7/24/2017". It could be specified just with "US"+myDate instead of myDate,"US", without having to think about the place of the "US" option wrt the"long" one. We

Re: [Scilab-users] Call for reviewer <= SEP: upgrading weekday()

2017-08-01 Thread Samuel Gougeon
Le 01/08/2017 à 14:24, Richard llom a écrit : unless for instance using a distinct separator: MM\DD\. Not sure that this would be actually ok. Would it? IMO, a "US" optional flag would not be more handy. IMO the "US" optional flag would be the only reasonable solution. Also for someone who h

Re: [Scilab-users] Call for reviewer <= SEP: upgrading weekday()

2017-08-01 Thread Samuel Gougeon
Hello Richard, Thanks for your input. I am answering in the body: Le 01/08/2017 à 13:07, Richard llom a écrit : I find it confusing that only "DD/MM/" doesn't require a leading zero, while all others do... Not all, just the -MM-DD... one, because this format is a normalized/standard

Re: [Scilab-users] overloading size for tlist

2017-07-23 Thread Samuel Gougeon
Hello Philippe, In Scilab 5, size() is overloadable only for mlist(), not for tlist(). In Scilab 6, it is overloadable for foth. So, to be compatible with both Scilab 5 and 6, you shall define your object as a mlist instead of tlist. Best regards Samuel Le 23/07/2017 à 11:43, philippe a écrit

Re: [Scilab-users] Convert struct to mlist/tlist

2017-07-20 Thread Samuel Gougeon
Hello, Le 20/07/2017 à 10:01, Pierre Payen a écrit : .../... // BONUS : with getfield, you can get the value inside nested structures when you dont know the field name time_st = struct('date',date_st) fields = fieldnames(time_st) for j = 1:size(fields,'*') subfields = fieldnames(time_st(fie

Re: [Scilab-users] Issue with Using atomsTest

2017-07-18 Thread Samuel Gougeon
Le 18/07/2017 à 15:50, Samuel Gougeon a écrit : Workaround: Do the following once. It will then be ok forever: // after loading it: [?,path] = libraryinfo("stixboxlib"); cwd = pwd(); cd(path); genlib stixboxlib cd(cwd) If for you stixbox is autoloaded at startup, you need to

Re: [Scilab-users] Issue with Using atomsTest

2017-07-18 Thread Samuel Gougeon
Hello David, Le 18/07/2017 à 15:12, David Chèze a écrit : Hi Samuel, did you find a workaround to make the stixbox 2.5 module running on scilab 6 in the end? I submitted bug at bugzilla (scilab side) and on the forge (stixbox module) on this specific issue but did not receive any comments since

[Scilab-users] Call for reviewer <= SEP: upgrading weekday()

2017-07-17 Thread Samuel Gougeon
Hello, The new implementation of weekday() is now pushed and available on the CodeReview: https://codereview.scilab.org/#/c/19326/ Its updated help page is attached. It now expects to be reviewed before merging. Any contributor is welcome to do so online. Thanks Best regards Samuel Gougeon

Re: [Scilab-users] sparse in Scilab 6.0.0

2017-07-08 Thread Samuel Gougeon
Hi, Le 08/07/2017 à 10:00, Pinçon Bruno a écrit : Le 08/07/2017 à 04:13, Taiji HAGIWARA a écrit : Dear all, I have a question on "sparse" function in ver.6.0.0 Sparse function in ver.6.0.0 returns different answer compared to ver.5.2.2. I am using Scilab 6.0.0 on Windows 10 (64bit) When we

[Scilab-users] SEP: upgrading weekday()

2017-07-04 Thread Samuel Gougeon
in en_US language as a standard. Only the locale version is returned. A proposal to extend weekday() is attached. It is also available on the Scilab wiki: https://wiki.scilab.org/SEP/2017%20-%20weekday()%20uppgrade Any comment and input is welcome. Regards Samuel Gougeon

Re: [Scilab-users] overload column/row extraction

2017-06-28 Thread Samuel Gougeon
Hello Philippe, Could you please provide a full executable example, and the final error message? It would help testing and possibly debugging. Thanks Samuel Le 27/06/2017 à 22:06, philippe a écrit : hi, I've created a type "bigint" as an tlist : x = tlist(['bigint','rep','signe'], tab, sign

Re: [Scilab-users] Plot with 2 y-axes

2017-06-28 Thread Samuel Gougeon
Le 27/06/2017 à 13:33, Richard llom a écrit : Hello Samuel, I couldn't find plotyy in the help, neither does plotyy() work for me: "Undefined variable: plotyy" My fault: demos are not named plotyy() and plotyyy() but plotyy and plotyyy. There are usages without dedicated functions. In the demos

Re: [Scilab-users] Plot with 2 y-axes

2017-06-27 Thread Samuel Gougeon
Hello, There are 2 demos named plotyy() and plotyyy() that are examples that you can edit and mimick, about this topic. In addition, it was already dealt with in some quite recent threads in this mailing list. You may have a look to the archives. Regards Samuel Le 27/06/2017 à 00:51, Richard l

Re: [Scilab-users] Advice needed on file parsing

2017-06-19 Thread Samuel Gougeon
Helle Richard, Le 18/06/2017 à 23:10, Richard llom a écrit : Hello fellow scilab-users, I'm writing a script to read and process files, which are constructed as follows: PCB: 007 ASM: 000 LOT: 0 FW: 1477971088 CH1: AMPS 10A CH2: VOLT 60V SMPL: 0064 0125Hz DESC: 12V CU LOG UTC TIME SE

[Scilab-users] "removed": a new package gathering help pages of > 120 removed functions

2017-06-12 Thread Samuel Gougeon
boxes/uman> has been upgraded in order to apply as well on /removed/ pages. Hope this may help other users, Best regards Samuel Gougeon ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] xmlns attribute cancels counting <= Re: xmlXPath with count

2017-06-09 Thread Samuel Gougeon
Hello Jens, Le 08/06/2017 à 22:38, Jens Simon Strom a écrit : Hallo Samuel, I reported the case as Bug 15179 "xmlXPath failing with count". Great >>May i suggest adding a space to ' '' ' be even better? You have caught the reason. "" would be even better/clearer. Best regards Samuel

[Scilab-users] Replacing predef() with an actual varprot(): a top-5 priority for Scilab 6.1 <= At last, protecting user variables one by one

2017-06-08 Thread Samuel Gougeon
some central weaknesses like this one. IMO, implementing varprot() should be a top priority. Don't you need this feature as well? Best regards Samuel Gougeon ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] xmlns attribute cancels counting <= Re: xmlXPath with count

2017-06-07 Thread Samuel Gougeon
Hello Jens, Le 07/06/2017 à 09:49, Jens Simon Strom a écrit : Hallo Samuel, So I better count with something like this: wpt_pos=grep(XmlDump,' This is a useful workaround. May i suggest adding a space to ' '___ users mailing list users@lists.scilab.or

Re: [Scilab-users] Problem to create file .Jar, is getting empty

2017-06-07 Thread Samuel Gougeon
re running Scilab on MSWindows, compilation errors are sent to an external terminal named the "consolebox", instead to the Scilab console. To get them in order to debug your pages, you may type: --> consolebox on and then see and take into account me

[Scilab-users] xmlns attribute cancels counting <= Re: xmlXPath with count

2017-06-06 Thread Samuel Gougeon
27;'+.. 'City (Small)'+.. ''+.. '']; doc = xmlReadStr(t); xp1 = xmlXPath(doc, "count(//wpt)") xmlDelete(doc); --> xp1 = xmlXPath(doc, "count(//wpt)") xp1 = 1. Since this attribute looks to be legal here (https://www.w3schools.com/xml/xml_namespaces.asp), the wrong result is likely a bug: http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab software&component=XML Best regards Samuel Gougeon ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] VIM syntax script for Scilab 6 ?

2017-06-06 Thread Samuel Gougeon
Le 06/06/2017 à 17:41, Erhy a écrit : Samuel GOUGEON wrote Le 02/06/2017 à 18:31, Erhy a écrit : some adjustments in scilab.vim from me: scilab.vim <http://mailinglists.scilab.org/file/n4036524/scilab.vim>; Great. Your post on FileExchange in the /Editors/ category will be certainly w

Re: [Scilab-users] VIM syntax script for Scilab 6 ?

2017-06-02 Thread Samuel Gougeon
Le 02/06/2017 à 18:31, Erhy a écrit : some adjustments in scilab.vim from me: scilab.vim Great. Your post on FileExchange in the /Editors/ category will be certainly welcome :) https://fileexchange.scilab.org/categories/editor_styles __

Re: [Scilab-users] ATOMS packages manager: missing packages in categories => FIXED!

2017-05-29 Thread Samuel Gougeon
I did something before posting that removed a step of the how-to . Here it is restored: Le 29/05/2017 à 23:19, Samuel Gougeon a écrit : *The how-to apply the patch is the following*: * --> oldd = pwd(); // save your current directory * --> cd SCI/modules/atoms/macros/atoms_int

[Scilab-users] ATOMS packages manager: missing packages in categories => FIXED!

2017-05-29 Thread Samuel Gougeon
Hello, Since the ATOMS package manager exists (Scilab 5.2), its client interface launched with atomsGui() has some weird and rather annoying troubles about categories: While a package is tagged in one or several categories on the ATOMS website, and while the package is well compiled and avail

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