[Scilab-users] strange %h_set overloading

2018-03-01 Thread Stéphane Mottelet
and allows to disambiguate calls: e.g."graphicslib.plot" vs "plolib.plot". However, there is no namespace for built-in functions. The reason for these questions is that I am currently re-engineering the plotlib and need a smooth mechanism to emulate new properties/fields for *

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

2018-02-28 Thread Stéphane Mottelet
Le 28/02/2018 à 18:48, Samuel Gougeon a écrit : 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

[Scilab-users] Clone a function, continued

2018-02-28 Thread Stéphane Mottelet
recompile the lib with genlib -- just loading it with load() or lib() --, this should work. My 2 cents.. Samuel Le 28/02/2018 à 14:52, Stéphane Mottelet a écrit : Hello, With the new library system, it is no longer possible to clone a function in a library. This feature is still documented in the help

[Scilab-users] clone a function in a library

2018-02-28 Thread Stéphane Mottelet
6468b335a69681a29d84c99feb5c"/>   md5="a1ebda57a1607b28095def2e415e2ec1"/> ... It does not seem to be documented either. S. -- 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 Univ

Re: [Scilab-users] uicontrol tab

2018-02-26 Thread Stéphane Mottelet
t;, "frame", "tag", "tab 2", "string", "tab 2", "layout", "border"); uicontrol(tab2, "string", "button 2"); tab3= uicontrol(tabs, "style", "frame", "tag&

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

2018-02-23 Thread Stéphane Mottelet
Le 23/02/2018 à 15:50, Samuel Gougeon a écrit : 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

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

2018-02-23 Thread Stéphane Mottelet
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 >> uint8(255)+1 ans =   uint8    255 Do yo

[Scilab-users] Overflow convention for integer types

2018-02-23 Thread Stéphane Mottelet
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 >> uint8(255)+1 ans =   uint8    255 Do you see any reason in favor of one of each ? S. --

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

2018-02-21 Thread Stéphane Mottelet
quot;);//we should see a 3/1 aspect ratio in the x/Y plane but we have square Am I the only one to expect this behaviour? Antoine ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- Stéphane Mottelet Ingén

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

2018-02-21 Thread Stéphane Mottelet
max(Z)-min(Z) Z=rand(10,30); X=1:size(Z,2); Y=1:size(Z,1); h=scf(); surf(X,Y,Z); isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but we have square Am I the only one to expect this behaviour? Antoine -- Stéphane Mottelet Ingénieur de recherche EA 4297 Transformatio

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

2018-02-15 Thread Stéphane Mottelet
straight expression. For the time being, Scilab does not use JIT compilation, but I think that such constructs are typically not optimal and that it/then/else constructs should be used instead. S. Le 16/02/2018 à 07:48, Samuel Gougeon a écrit : Le 15/02/2018 à 11:45, Stéphane Mottelet a écri

Re: [Scilab-users] More rapid calculation

2018-02-15 Thread Stéphane Mottelet
   1.823105 On my machine (MacPro, OSX, Scilab 6.0.0), this last piece of code uses 100% cpu (four cores). S. -- 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 T

Re: [Scilab-users] More rapid calculation

2018-02-14 Thread Stéphane Mottelet
Hello, A priori, there is no reason why your calculation should use more than one CPU core, which explains why you see only 1/8=12,5% CPU use. S. 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

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

2018-02-09 Thread Stéphane Mottelet
Hello, There seems to be some statistical tests related to this, namely Moran’s or Mantel tests : https://stats.idre.ucla.edu/other/mult-pkg/faq/general/faq-how-can-i-detectaddress-spatial-autocorrelation-in-my-data/ http://www.petrkeil.com/?p=1050 hth S. Le 08/02/2018 à 20:16, Heinz a

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

2018-02-08 Thread Stéphane Mottelet
Yes, a precise math formula would disambiguate the denomination. S. > Le 8 févr. 2018 à 19:18, Samuel Gougeon a écrit : > > 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

[Scilab-users] Scilab dmg images for OSX Sierra (macOS 10.12) and High Sierra (macOS 10.13)

2018-02-07 Thread Stéphane Mottelet
were the interfering bundled libraries have been removed. The only remaining thing to do is to install the legacy Java 6 runtime (https://support.apple.com/kb/DL1572). If something goes wrong please post a message on the mailing-list. S. -- Stéphane Mottelet Ingénieur de recherche EA 4297

Re: [Scilab-users] macOs High Sierra

2018-02-05 Thread Stéphane Mottelet
A last (but not least) detail, copy the classpath.xml from scilab-6.0.0 app to scilab-6.0.1 app : cp scilab-6.0.0.app/Contents/MacOS/share/scilab/etc/classpath.xml scilab-6.0.1.app/Contents/MacOS/share/scilab/etc S. Le 05/02/2018 à 16:25, Stéphane Mottelet a écrit : Hello, If you already

Re: [Scilab-users] macOs High Sierra

2018-02-05 Thread Stéphane Mottelet
ing list users@lists.scilab.org http://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 C

Re: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome

2018-02-01 Thread Stéphane Mottelet
,MinDist1); disp([0.05+jj(1:$-1)' H1']); // END OF CODE Regards, Rafael ___ users mailing list users@lists.scilab.org http://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éparte

Re: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome

2018-01-31 Thread Stéphane Mottelet
nces(X);toc  ans  =     2.498 I hope that parallel_run will be available again in the next version of scilab. S. Le 31/01/2018 à 10:53, Stéphane Mottelet a écrit : Replacing     MinDist=[MinDist sqrt(min(sum(DIFF.^2,2)))]; by     MinDist=[MinDist sqrt(min(sum(DIFF.*DIFF,2)))]; will be at

Re: [Scilab-users] ?==?utf-8?q? {EXT} need a more efficient and faster code: suggestions welcome

2018-01-31 Thread Stéphane Mottelet
, Antoine Le Mercredi, Janvier 31, 2018 10:53 CET, Stéphane Mottelet <stephane.motte...@utc.fr> a écrit: Replacing     MinDist=[MinDist sqrt(min(sum(DIFF.^2,2)))]; by     MinDist=[MinDist sqrt(min(sum(DIFF.*DIFF,2)))]; will be at least twice faster. Crunching elapsed time could b

Re: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome

2018-01-31 Thread Stéphane Mottelet
moreover,     MinDist=[MinDist sqrt(min((DIFF.*DIFF)*[1;1;1]))]; is even faster. S. Le 31/01/2018 à 10:53, Stéphane Mottelet a écrit : Replacing     MinDist=[MinDist sqrt(min(sum(DIFF.^2,2)))]; by     MinDist=[MinDist sqrt(min(sum(DIFF.*DIFF,2)))]; will be at least twice faster

Re: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome

2018-01-31 Thread Stéphane Mottelet
, disclosure or distribution of the material in this e-mail is strictly forbidden. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- Stéphane Mottelet Ingénieur de recherche EA 4297 Transformations Intégrées de la

[Scilab-users] Run OSX nightly builds

2018-01-16 Thread Stéphane Mottelet
em attendu. Thanks for your help. S. -- 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 :

Re: [Scilab-users] numderivative Heart function

2017-12-07 Thread Stéphane Mottelet
Hello, As y is your unknown, you have interverted x and y in the arguments list of Hxy function (y is the unknown and x the parameter) : function val = Hxy(y,x) val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; // switched .^ to ^ to handle vectors endfunction; will dot it. S. Le 07/12/2017 à

Re: [Scilab-users] Plot Heart Curve in Scilab

2017-09-28 Thread Stéphane Mottelet
_ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- Stéphane Mottelet Ingénieur de recherche EA 4297 Transformation

Re: [Scilab-users] sparse in Scilab 6.0.0

2017-07-08 Thread Stéphane Mottelet
Please read the Matlab's help page for sparse at https://fr.mathworks.com/help/matlab/ref/sparse.html : S = sparse(i,j,v) generates a sparse matrix S from the triplets i, j, and v such that S(i(k),j(k)) = v(k). The max(i)-by-max(j) output matrix has space allotted for length(v) nonzero

Re: [Scilab-users] sparse in Scilab 6.0.0

2017-07-08 Thread Stéphane Mottelet
Hello, Sure, this is an UGLY regression which will break a lot of already written code. As far as I am concerned it definitely prevents the port of one of my contribs to 6.0... S. > Le 8 juil. 2017 à 10:00, Pinçon Bruno a écrit > : > >> Le 08/07/2017 à 04:13,

Re: [Scilab-users] Matlab vs Scilab perf

2017-03-02 Thread Stéphane Mottelet
Le 02/03/2017 à 23:23, Samuel Gougeon a écrit : [...] As a conclusion, i think that introducing non-optimal syntaxes or duplicates etc in the language hurts much more than introducing a quite slow algorithm. Simply because the algorithm can be changed later without breaking anything, while

Re: [Scilab-users] Matlab vs Scilab perf

2017-03-02 Thread Stéphane Mottelet
++ Michael 2017-03-02 16:33 GMT+01:00 Stéphane Mottelet <stephane.motte...@utc.fr <mailto:stephane.motte...@utc.fr>>: Hello, Can you precise your Scilab version ? 5.5.2 ? 6.0.0 ? Or another one... S. Le 02/03/2017 à 16:29, Michael Benguigui a écrit : Hi all

Re: [Scilab-users] Question about expm function

2017-02-02 Thread Stéphane Mottelet
Hello, The matrix exponential is defined as expm(A)=I+A+1/2*A^2+...+1/k!*A^k+... where the "*" denotes the matrix product. You can obtain what you wanted with exp(A) i.e. element-wise exponential of A S. Le 02/02/2017 à 09:49, Jean Rubagenga a écrit : Hi, I am trying to use expm() and

Re: [Scilab-users] Optim & NelderMead use [closed]

2017-01-16 Thread Stéphane Mottelet
Hi Paul, your cost function *f*= sqrt((val_lin - val_rac)^2); hasn't changed, since sqrt(x^2)=abs(x). What I meant before is replacing *f*= abs(val_lin - val_rac); by *f*= (val_lin - val_rac)^2; in order to make it differentiable. When using a non-differentiable cost function together

Re: [Scilab-users] 'optim' vs 'Nelder-Mead' ... or difficulties to use 'optim'

2017-01-15 Thread Stéphane Mottelet
Hello Your target function is not differrentiable (Because of the absolute value). That explains why optim has some difficulties. Using a square instead should give the advantage to optim against nelder-mead. S. > Le 15 janv. 2017 à 11:39, paul.carr...@free.fr a écrit : > > Hi all > >

Re: [Scilab-users] Plotting 2 functions & integrate 1 definitive

2017-01-02 Thread Stéphane Mottelet
Hi, Le 02/01/2017 à 11:26, Pirovano, Bart a écrit : Goodday, I would like to add a second function to the underneath little program. I suppose something I haven’t done correct where I address ‘b’. Can somebody put me in the good direction with integrating the x,y curve? you want to

Re: [Scilab-users] root object: get(0)

2016-12-05 Thread Stéphane Mottelet
Le 05/12/2016 à 13:50, Samuel Gougeon a écrit : Le 05/12/2016 13:15, Stéphane Mottelet a écrit : I didn't know.. but using the same handle for the console and the root window is very misleading to me. Scilab is full of misleading stuff like this... Right. Already, this get(0) object is named

Re: [Scilab-users] root object: get(0)

2016-12-05 Thread Stéphane Mottelet
gt; Message transféré >> Sujet : Re: [Scilab-users] How to remove all the figure in a single >> instruction >> Date : Mon, 5 Dec 2016 12:28:19 +0100 >> De : Stéphane Mottelet >> Pour : Users mailing list for Scilab <users@lists.scila

Re: [Scilab-users] How to remove all the figure in a single instruction

2016-12-05 Thread Stéphane Mottelet
Sorry, Denis was faster than me... Btw, the graphical objects hierachy is missing a root window object, i.e. something that would allow : -->rw=get("root_window") rw = Handle of type "Root" with properties: children: ["Figure","Figure"] and later

Re: [Scilab-users] How to remove all the figure in a single instruction

2016-12-05 Thread Stéphane Mottelet
xdel(winsid()) will do the trick ! S. Le 05/12/2016 à 12:06, paul.carr...@free.fr a écrit : Hi All To remove all the figures in a single instruction, I'm using Xdel keyword; for example, "xdel(1:10)" for the figure 1 to 10. Nevertheless if I manually remove one of them in the meantime, it

Re: [Scilab-users] varargout doubt

2016-11-08 Thread Stéphane Mottelet
Hello, The assignments have to be made to individual terms of varargout : function varargout=test(n) for i=1:n varargout(i)=i end endfunction -->[a,b]=test(2) b = 2. a = 1. -->[a,b,c]=test(3) c = 3. b = 2. a = 1. S. Le 08/11/2016 à 17:08, Rafael

Re: [Scilab-users] The sound of mathematical formulas

2016-11-05 Thread Stéphane Mottelet
Hello, Cascaded frequency modulation gives nices sounds. For example signals like sin((w0+a1*sin(w1*t))*t) w1 itself can also be modulated, and so on. This kind of synthesis was used by the famous Yamaha DX-7 and gave typical sounds (bass guitar, bells, ...) S. Le 05/11/2016 à 13:43,

Re: [Scilab-users] scilab and "parallelization" objectives

2016-10-23 Thread Stéphane Mottelet
ube.com> a écrit : > > What OS are you running? parallel_run does not work on macOS. It does work on > Linux though. > > Cheers, > Arvid > > Get Outlook for iOS > > > From: users <users-boun...@lists.scilab.org> on behalf of Stéphane Mottelet > <step

Re: [Scilab-users] scilab and "parallelization" objectives

2016-10-22 Thread Stéphane Mottelet
Hello, As parallel_run is using child Scilab processes, the std output of all children is the terminal where you started Scilab and not the Scilab console. S. > Le 22 oct. 2016 à 15:11, paul.carr...@free.fr a écrit : > > Thanks claus > > I completely forgot this features (that I've ever

Re: [Scilab-users] issue with "sum"

2016-09-27 Thread Stéphane Mottelet
paul, remember the transpose is *conjugate transpose*, use .' instead. S. Le 27/09/2016 à 15:04, paul.carr...@free.fr a écrit : Hi again In the following example, the sum lead to an opposite sign for the complex part … Am I doing something wrong ? thanks for any highlight Paul

Re: [Scilab-users] Scilab vs matlab

2016-09-26 Thread Stéphane Mottelet
The price :-D Le 26/09/2016 à 16:20, Chijioke Kenechukwu a écrit : What is the advantage of scilab over matlab ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] parallel_run mixed with vectorization

2016-06-14 Thread Stéphane Mottelet
Hello, IMHO parallel_run is very unstable and should be considered as an experimental feature. I never managed to make it work with multiple arguments. The workaround is the following : function U=fct(i) U1 = R1(i) * i1(i); U2 = R2(i) * i2(i); U = [U1 U2]'; endfunction n =

Re: [Scilab-users] issue with parallel_run

2016-06-14 Thread Stéphane Mottelet
Hello, 1-parallel_run is designed to cope with input-output data organized in columns 2-you have to precise the size of the output of yout fct() function. Here is your corrected script (with comments) : mode(0); clear; function random_matrix=fct(n) M = grand(n,12,'unf',-1,1); M

Re: [Scilab-users] create random values between [-1,1]

2016-06-10 Thread Stéphane Mottelet
Le 10/06/2016 à 15:59, Jens Simon Strom a écrit : rand(n,1)–rand(n,1) is definitely NOT uniform. by convolution the density of such a variable seems triangle shaped : f(x)=1/2-abs(x)/4, if x \in [-2,2] =0, elsewhere S. Jens

Re: [Scilab-users] create random values between [-1,1]

2016-06-10 Thread Stéphane Mottelet
Le 10/06/2016 à 16:19, Stéphane Mottelet a écrit : Le 10/06/2016 à 15:59, Jens Simon Strom a écrit : rand(n,1)–rand(n,1) is definitely NOT uniform. by convolution the density of such a variable seems triangle shaped : f(x)=1/2-abs(x)/4, if x \in [-2,2] =0, elsewhere oops, rather f(x

Re: [Scilab-users] "Smoothing" very localised discontinuities in (scilab: to exclusive) (scilab: to exclusive) curves.

2016-04-04 Thread Stéphane Mottelet
Hello, The last time I had used a median filter, it was to locate peaks in a frequency DSP. The idea was to substract the median-filtered spectrum to the original one, and treshold the difference. This was enough to locate the peaks. Maybe you could use the same idea there. S. Le

Re: [Scilab-users] "Smoothing" very localised discontinuities in curves.

2016-04-04 Thread Stéphane Mottelet
Why not use median filtering with a small window ? > Le 4 avr. 2016 à 07:57, t...@wescottdesign.com a écrit : > > As written (with or without the commenting out) that code won't produce phase > shifts. In technical terms it's a FIR filter that is symmetrical around zero > delay, and such

Re: [Scilab-users] leastsq question : what is 'gopt' useful for?

2016-03-22 Thread Stéphane Mottelet
Hello, Le 22/03/2016 10:41, antoine.monmayr...@laas.fr a écrit : Hi everyone, I have a very general and naive question concerning leastsq: what am I to do with "gopt", the "gradient of f at xopt"? Is there a way to link it to the confidence interval for each parameter of my fit? Not

Re: [Scilab-users] Scilab 6 bad performances

2016-02-19 Thread Stéphane Mottelet
Le 19/02/2016 11:41, Samuel Gougeon a écrit : Le 19/02/2016 11:31, Stéphane Mottelet a écrit : Le 19/02/2016 11:17, Samuel Gougeon a écrit : .../... bench_run() is designed for that: https://help.scilab.org/docs/5.5.2/en_US/bench_run.html On the same computer, you may run it on 5.5.2

Re: [Scilab-users] Scilab 6 bad performances

2016-02-19 Thread Stéphane Mottelet
Le 19/02/2016 11:17, Samuel Gougeon a écrit : Hello, Le 19/02/2016 11:05, Stéphane Mottelet a écrit : Hello, I am currently porting a Scilab package (Sysmetab, on the Scilab forge but not yet Atoms packaged) and I have noticed that Scilab 6 is two times slower than Scilab 5.5.2

[Scilab-users] Scilab 6 bad performances

2016-02-19 Thread Stéphane Mottelet
Hello, I am currently porting a Scilab package (Sysmetab, on the Scilab forge but not yet Atoms packaged) and I have noticed that Scilab 6 is two times slower than Scilab 5.5.2. The involved computations are very diverse but are vectorized products of submatrices, sparse matrix algebra and

Re: [Scilab-users] Logical zero

2016-02-01 Thread Stéphane Mottelet
Le 01/02/2016 09:10, shamikam a écrit : Is there a Scilab equivalent for the false function in Matlab? I want to create a matrix of logical zeros. Is there any other way to do it. Shamika -- View this message in context: http://mailinglists.scilab.org/Logical-zero-tp4033361.html Sent

Re: [Scilab-users] Logical zero

2016-02-01 Thread Stéphane Mottelet
BTY, I am worried about the Scilab 6.0 timing (3.3228213 seconds) of a(1:n,1:m)=%f; i.e. more than ten times slower than Scilab 5.5.1 (0.2964019 seconds). Does somebody have an explanation ? S. Le 01/02/2016 14:40, Jan-Åge Langeland a écrit : I ran a little speed test with the different

Re: [Scilab-users] 'fsolver'

2016-01-27 Thread Stéphane Mottelet
Le 27/01/2016 16:54, fujimoto2005 a écrit : The feature of my f(x) defined for x>0 is as follows. f(x)<0 for x0 for x1=x2 'fsolver' gives some x such as x>x2 as a solution. I want to get x1 as a solution. -- View this message in context:

Re: [Scilab-users] optim

2016-01-25 Thread Stéphane Mottelet
Hello, your costfunction has to provide f and its gradient : function [f, g, ind]=costfunction(x, ind, para1, para2) f=x(1)^2+x(2)^2; g=2*x; endfunction x0=[100,100]'; para1=[1,2]'; para2=[2,3]'; costf=list(costfunction,para1,para2) [fopt,xopt]=optim(costf,x0) S. Le 25/01/2016

Re: [Scilab-users] optim

2016-01-25 Thread Stéphane Mottelet
btw the error message is incorrect as you had an incorrect number of *output* arguments (Scilab 6.0 bug ?) S. Le 25/01/2016 10:06, fujimoto2005 a écrit : I'm useing scilab 6.0. I want to use 'optim' function . But it fail to work in my code with an error message 'costfunction: Wrong number of

Re: [Scilab-users] Conditional random variable

2016-01-23 Thread Stéphane Mottelet
You also have this distribution (and many more) in the atoms package https://forge.scilab.org/index.php/p/distfun/ S. Le 23/01/2016 13:25, fujimoto2005 a écrit : Is there any function generating random variable X with a standard normal density conditional on a range (a,b] where 0

Re: [Scilab-users] Conditional random variable

2016-01-23 Thread Stéphane Mottelet
Hello, You will find the Matlab code for the "trandn" function there : http://www.mathworks.com/matlabcentral/fileexchange/53180-truncated-normal-generator/content/trandn.m hth S. Le 23/01/2016 13:25, fujimoto2005 a écrit : Is there any function generating random variable X with a standard

Re: [Scilab-users] Problem installing modules manually (atomsInstall)

2016-01-15 Thread Stéphane Mottelet
Le 15/01/2016 14:25, Lester Anderson a écrit : Hello Antoine, How does one get a "cached" version of the repository list and where is it placed? -->atomsRepositoryList() ans = !http://atoms.scilab.org/5.5 official ! -->atomsVersion() ans = 5.5 Is there an option to disable

Re: [Scilab-users] Backslash operator with square singular matrix

2015-10-27 Thread Stéphane Mottelet
I forgot to mention that I tested this with 5.4.1 S. > Le 27 oct. 2015 à 15:14, JLan a écrit : > > Different in 6.0.0-alpha: > --> A = [2 4;1 2]; > --> disp(det(A)) > det: LAPACK error n°2. > --> b = [1;1]; > --> x = A \ b; > --> disp(norm(A*x-b)); >0.4472136 > > J > >

Re: [Scilab-users] Backslash operator with square singular matrix

2015-10-27 Thread Stéphane Mottelet
Hello, Le 27/10/2015 13:27, Pierre Vuillemin a écrit : A = [2 4;1 2]; disp(det(A)) b = [1;1]; x = A \ b; -->A = [2 4;1 2]; -->disp(det(A)) 0. -->b = [1;1]; -->x = A \ b; Attention : La matrice est presque singulière ou mal conditionnée. rcond = 0.D+00 Calcul de la solution des

Re: [Scilab-users] Function

2015-10-01 Thread Stéphane Mottelet
Le 01/10/2015 12:36, Rafael Guerra a écrit : I can only think of Da Vinci's wise words: "simplicity is the ultimate sophistication" +1, definitively > To: users@lists.scilab.org > From: cfutt...@gmail.com > Date: Wed, 30 Sep 2015 23:51:11 +0200 > Subject: Re: [Scilab-users] Function > > Hi

Re: [Scilab-users] Fwd: How to get fjac from lsqrsolve

2015-09-17 Thread Stéphane Mottelet
Hello, You can use the numderivative macro, with your residual function as first argument. hth S. Le 17/09/2015 16:18, Pablo Caron a écrit : Dear user group, I need to extract the Jacobian from the lsqrsolve function. The fortran routine lmdif (http://www.netlib.org/minpack/lmdif.f)

[Scilab-users] nightly builds of scilab 6 ?

2015-09-16 Thread Stéphane Mottelet
Hello, When will be recent nighty builds of Scilab 6 available ? Some important bugs have been fixed since the alpha version so it would be nice to benefit from these fixes. S. -- Département de Génie Informatique EA 4297 Transformations Intégrées de la Matière Renouvelable Université de

Re: [Scilab-users] How to speed up making big structure?

2015-07-03 Thread Stéphane Mottelet
Le 03/07/2015 11:01, Samuel Gougeon a écrit : Le 03/07/2015 09:42, jaipur a écrit : [...] *Conclusion*: for structures arrays, - Scilab 6 (aka YaSp) is ~12 times faster than the best of Scilab 5.5.2 - initializing the array size still makes things faster. It decreases by a factor ~2 the time

Re: [Scilab-users] Accidentally displaying huge matrices

2015-05-26 Thread Stéphane Mottelet
btw how can you overload the display of double matrices ? S. Le 26/05/2015 11:34, Serge Steer a écrit : Le 25/05/2015 15:29, Antoine Monmayrant a écrit : Le Samedi 23 Mai 2015 00:05 CEST, Samuel Gougeon sgoug...@free.fr a écrit: Hello Tim, Le 21/05/2015 17:48, Tim Wescott a écrit :

Re: [Scilab-users] Accidentally displaying huge matrices

2015-05-21 Thread Stéphane Mottelet
Le 22/05/2015 02:42, Antoine Monmayrant a écrit : Le Jeudi 21 Mai 2015 17:48 CEST, Tim Wescott t...@wescottdesign.com a écrit: If you're working with something humongous and you do some operation that displays, it takes forever before your mistake is done displaying. E.g., if x is 10

Re: [Scilab-users] lsqrsolve

2015-04-24 Thread Stéphane Mottelet
Le 24/04/2015 01:56, fujimoto2005 a écrit : function ret=err_test(param,argVector1,argVector2) err(1)=param(1)^2; err(2)=param(2)^2; err(3)=param(3)^2; err(4)=param(1)*param(2); ret=err; endfunction para=[1,2,3]; argVector1=zeros(1,5); argVector2=zeros(1,3)

Re: [Scilab-users] Ways to speed up simple things in Scilab ?

2015-04-24 Thread Stéphane Mottelet
://www.hidglobal.com/ From: Stéphane Mottelet stephane.motte...@utc.fr To: International users mailing list for Scilab. users@lists.scilab.org Date: 23/04/2015 22:52 Subject:[Scilab-users] Ways to speed up simple things in Scilab ? Sent by:users users-boun...@lists.scilab.org

Re: [Scilab-users] Ways to speed up simple things in Scilab ?

2015-04-24 Thread Stéphane Mottelet
Hello, this is not trivial indexing, in fact some terms are linear combination of v's components M1_v=[v(17) v(104) v(149) -(v(18)+v(63)+v(103)) -(v(18)+v(63)+v(103)) v(17) ... v(104) v(149) ] How do you take this into account in your proposed method ? These combinations are sums of

Re: [Scilab-users] Ways to speed up simple things in Scilab ?

2015-04-24 Thread Stéphane Mottelet
in correctness problems. It's likely better to make your improvements in the software that is generating the scilab code. I think the main feature there is to have it generate a vectorized implementation instead of a procedural one (as you have now). -Brian On Fri, Apr 24, 2015 at 8:34 AM, Stéphane

Re: [Scilab-users] Ways to speed up simple things in Scilab ?

2015-04-24 Thread Stéphane Mottelet
Le 24/04/2015 15:35, Samuel Gougeon a écrit : Le 24/04/2015 14:50, Stéphane Mottelet a écrit : Hello Antoine I think your idea is excellent in my context, I Will try it and keep you informed of the actual improvement, S. Le 24 avr. 2015 à 13:31, Antoine Monmayrant antoine.monmayr

[Scilab-users] Ways to speed up simple things in Scilab ?

2015-04-23 Thread Stéphane Mottelet
Hello, I am currently working on a project where Scilab code is automatically generated, and after many code optimization, the remaining bottleneck is the time that Scilab spends to execute simple code like this (full script (where the vector has 839 lines) with timings is attached) :

Re: [Scilab-users] bug #13158 /parallel_run on MacOSX

2015-04-14 Thread Stéphane Mottelet
Le 07/04/2015 15:39, Stéphane Mottelet a écrit : Hello, Is there any plan to solve bug #13158 ? http://bugzilla.scilab.org/show_bug.cgi?id=13158 There is no assignee since the bug has been signaled (in 2014)... As far as I am concerned, I have access to a Linux machine where parallel_run

Re: [Scilab-users] scilab 5.5.2 Ubuntu 14.10 plot error

2015-04-08 Thread Stéphane Mottelet
Hello, You are using the plotlib, please file a ticket at the plotlib Atoms page: https://atoms.scilab.org/toolboxes/plotlib S. Le 08/04/2015 08:53, Vincent COUVERT a écrit : Hello, The plot function you use is not Scilab's one (_update_leaf is not defined in Scilab). Did you install some

Re: [Scilab-users] Plotlib

2014-11-28 Thread Stéphane Mottelet
Le 28/11/2014 15:45, Collewet Guylaine a écrit : Hello, I would like to plot an image using a colormap with plotlib (pcolor function) In order to zoom on the values between A and B, I use the function caxis([A B]) But I would like also the pixels with values lower than A or greater than

Re: [Scilab-users] 3d interpolation griddata

2014-11-13 Thread Stéphane Mottelet
Hello, the cshep2d macro should fit your needs. S. Le 12/11/2014 22:40, simond a écrit : Hi, I am trying to convert a matlab code using griddata. Unfortunately, I havent succeed to solve the problem with the available scilal functions (linear_interpn, interpd..). I have a data set of

Re: [Scilab-users] printf bug?

2014-10-20 Thread Stéphane Mottelet
Hello, I think that the decimal separator is controlled by the LC_NUMERIC or the LANG environment variable. With my local install (LANG=fr_FR.UTF-8) I get --msprintf(%0.1f,1.2345) ans = 1.2 S. Le 20/10/2014 17:48, Stefan Du Rietz a écrit : Hello, look here: --x = 1.2345 x =

Re: [Scilab-users] printf bug?

2014-10-20 Thread Stéphane Mottelet
the difference between msprintf() and string()? Stefan On 2014-10-20 18:19, Stéphane Mottelet wrote: Hello, I think that the decimal separator is controlled by the LC_NUMERIC or the LANG environment variable. With my local install (LANG=fr_FR.UTF-8) I get --msprintf(%0.1f,1.2345) ans = 1.2

Re: [Scilab-users] Recognition of cursor key as input

2014-08-13 Thread Stéphane Mottelet
Hello, I presume you are not using scilab 5.5.0, change the function as follows : function key=waitforkeypress() global _keypress set(gcf(),'event_handler','handler'); set(gcf(),'event_handler_enable','on') _keypress=0; while ~_keypress sleep(1) end

Re: [Scilab-users] Recognition of cursor key as input

2014-08-13 Thread Stéphane Mottelet
Le 13/08/2014 15:53, Jens a écrit : It works now on my installation, probably the way you designed it. In my case the graphic window does not open after starting the script by F5 really strange... I think that you mean that the windows, if already open (or minimized, or docked), does not show

Re: [Scilab-users] Scilab leastsq exponential fitting

2014-07-23 Thread Stéphane Mottelet
Le 23/07/2014 11:45, chloe.kykam a écrit : k=6.63e-34*3e8/1.38e-23 x=[1;2;3;4;5;6;7;8;9;10] y=[280;320;369.22772;391.25743;414.74257;439.75248;466.06931;493.60396;523.87129;530] w=[0;0;1;1;1;1;1;1;1;0] function y=yth(x,a) y=a(1)*exp(-k/x/a(2)) endfunction a0=[1.0;1.0] function

[Scilab-users] Problème avec xmltoformat

2014-07-11 Thread Stéphane Mottelet
Bonjour, Depuis la 5.5.0 j'ai le problème suivant lors de la construction d'un module atoms : Création des fichiers d'aide... Génération du document maître : /Users/mottelet/svn/plotlib/trunk/plotlib/help/en_US Génération du fichier d'aide [javaHelp] in

[Scilab-users] xsl processor

2014-07-11 Thread Stéphane Mottelet
Hello, Is there any low level access to saxon in Scilab ? Functions of the XML module are fine, but it will be great to be also able to make xsl transformations. S. ___ users mailing list users@lists.scilab.org

Re: [Scilab-users] xsl processor

2014-07-11 Thread Stéphane Mottelet
calls whereas xsltproc doesn't. For example, I have an xsl stylesheet which computes the transitive closure of a graph which runs with Saxon but fails with xsltproc. S. -- Clément Le vendredi 11 juillet 2014 à 17:11 +0200, Stéphane Mottelet a écrit : Hello, Is there any low level access

[Scilab-users] problem/bug with xmlNs

2014-07-08 Thread Stéphane Mottelet
Hello, xmlNS is not able to create an XML namespace without a prefix, although this is completely correct in XML, as it allows inheritance of it. Example: a xmlns=http://name.space; b1/b /a here the b element is in the http://name.space; namespace. The only workaround I have found is the

Re: [Scilab-users] fmincon won't work

2014-03-14 Thread Stéphane Mottelet
attention, Natasha On 26/02/2014 20:25, Stéphane Mottelet (UTC) wrote: Hello, Currently, sci_ipopt seems to be broken on Linux and MacOSX when using the atoms package for Scilab 5.4.1. Since fmincon relies on sci_ipot, fmicon is equally broken... BTW, users needing an optimization toolbox

[Scilab-users] Test

2014-02-26 Thread Stéphane Mottelet
Sorry, this is a test... S. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] evaluate error on each parameter calculated with leastsq

2014-02-21 Thread Stéphane Mottelet
Here is a simple example where the derivative is approximated with the derivative macro of Scilab. S. 2014-02-20 9:43 GMT+01:00 Stéphane Mottelet stephane.motte...@gmail.com: Hello, If you can make the hypothesis that your data is corrupted by gaussian noise, then you can approximate

Re: [Scilab-users] evaluate error on each parameter calculated with leastsq

2014-02-21 Thread Stéphane Mottelet
Hello, If you can make the hypothesis that your data is corrupted by gaussian noise, then you can approximate the covariance matrix of your estimated parameters. Let p be the vector of parameters and r(p) the residual vector given by r(p)=sigma^(-1)*(y-Y(p)) where y is your measuement vector,

Re: [Scilab-users] evaluate error on each parameter calculated with leastsq

2014-02-21 Thread Stéphane Mottelet
Hello, If you can make the hypothesis that your data is corrupted by gaussian noise, then you can approximate the covariance matrix of your estimated parameters. Let p be the vector of parameters and r(p) the residual vector given by r(p)=sigma^(-1)*(y-Y(p)) where y is your measuement vector,

[Scilab-users] Test

2014-02-21 Thread Stéphane Mottelet
This is just a test, sorry for the disturbance. S. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

[Scilab-users] Test

2014-02-21 Thread Stéphane Mottelet
This a test, sorry. S. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] 3d curve plot

2014-02-13 Thread Stéphane Mottelet
Le 13/02/2014 10:51, Serge Steer a écrit : Le 12/02/2014 12:49, Jeibros a écrit : Hi all, I'm totally new to Scilab (I used to work with Matlab), and I have a rather simple question. I have two arrays (x,y). Next, I make a conversion so that to get a new variable u out of x and y. And

[Scilab-users] XMLlab 1.7.6 is out !

2014-01-24 Thread Stéphane Mottelet
Dear Scilab users, A new version of XMLlab (1.7.6) has just been released ! For those who never heard about XMLlab, the official site http://xmllab.org which is up again after a fatal server crash just before Christmas, will give you some piece of information about it. Basically, XMLlab

Re: [Scilab-users] Solving a ecuation

2013-11-08 Thread Stéphane Mottelet
Hello, spec(Kx,M) will give you all the solutions. S. Le 8 nov. 2013 à 20:30, Chuox chuox.b...@gmail.com a écrit : I need to solve the following equation det(Kx-w*M)=0, Were Kx, and M are know matrix, in my texas vollage 200 (R) i solve it like this: Kx= 457458.17 -

Re: [Scilab-users] Scilab 5.5.0 beta1 does not start under OSX 10.8

2013-10-07 Thread Stéphane Mottelet
you try something with umfpack ? (It should complain about dlopen) Thx On 10/04/2013 06:01 PM, Stéphane Mottelet wrote: Same behaviour : macmottelet-gi-0:Applications mottelet$ scilab-master-1380893237.app/Contents/MacOS/bin/scilab dyld: Library not loaded: @executable_path/../lib/thirdparty

<    1   2   3   4   5   6   7   >