[Scilab-users] ODE is returning a vector of wrong size

2014-12-29 Thread Ezequiel Soule
Hello, when ODE is called to solve a differential equation: x=ode(y0, t0, t, f) t is the vector containing the times at which the solution is computed. In some cases, it returns a vector x which has less elements than t! When this happens I get a warning message: lsoda-- at t (=r1) and step

Re: [Scilab-users] Problems using save

2014-10-21 Thread Ezequiel Soule
Hello, unfortunately I cannot give you a solution, instead I´ll give you another problem! I had the problems you mention also, and in addition, another one. When I try to load a file, I get an error: !--error 41 Argumento de salida incompatible. at line 16 of function coord called by : at

Re: [Scilab-users] Pairwise distance of a huge amount of points

2014-09-01 Thread Ezequiel Soule
Hi, I am working in something related, which is deteriming overlaps in a sistem of spheres with random positions. So I have to compute the distance between centers of spheres, and compare it with the contact distance. I implemented a cell algorithm, which is used in molecular dynamics (you can

[Scilab-users] problem loading enviroment

2013-03-21 Thread Ezequiel Soule
Hello, sometimes, when I try to load an eviroment, I got a message like this: loading initial environment Warning : redefining function: %_sodload . Use funcprot(0) to avoid this message inside function: createMacro . = (pos,V,R,calc_D_superp_dobcel(N, N2))

Re: [Scilab-users] modifying a variable changes the value of another variable!!!

2013-01-29 Thread Ezequiel Soule
Hi Rafael, thank you for your answer. I'm running the code with the minimum variables required for it (positions, radius, number of spheres). it can be some sort of error generating in the output (or in some internal calculation) of calc_D_superp_dobcel, but I don't think it is roundoff, why

Re: [Scilab-users] modifying a variable changes the value of another variable!!!

2013-01-28 Thread Ezequiel Soule
Sorry I didn't clarify that: I define the initial random positions, I store them in a variable, say pos_in, and then I call the functions (the different versions) with pos_in as input, so the initial positions are the same in every case. On 28/01/13 14:07, Serge Steer wrote: If the initial

[Scilab-users] modifying a variable changes the value of another variable!!!

2013-01-25 Thread ezequiel soule
Hello, I am using some iterative algorithm defined as a function in a .sci file, and I have the following problem: the iterations in the algorithm are controlled by a given variable. Now, if I define another variable, (which DO NOT affect the values of the control variable nor the way it is