Re: [Scilab-users] Peaks and positions

2013-01-28 Thread Berns Buenaobra
Thanks! Understood much better to ask some experienced fellow than dig in the pile of hay. Berms B. On Tue, Jan 29, 2013 at 6:03 AM, Samuel Gougeon wrote: > Le 28/01/2013 22:30, Berns Buenaobra a écrit : > > Hi Samuel: >> >> I'd like to understand the "$" inside the would mean from the scrip

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

2013-01-28 Thread Rafael Guerra
>From the code excerpt provided it is difficult to see from where errors of magnitude~=1e-15 might come from. Could they be due to some round-off errors in the function: calc_D_superp_dobcel? Please check the function details. Have you run the code with a "clear" at the beginning of the program

Re: [Scilab-users] Peaks and positions

2013-01-28 Thread Samuel Gougeon
Le 28/01/2013 22:30, Berns Buenaobra a écrit : Hi Samuel: I'd like to understand the "$" inside the would mean from the script? This is the size of the object along the related direction: http://help.scilab.org/docs/5.4.0/en_US/dollar.html after a = ones(7,3) a(:,$) // is equivalent to a(

Re: [Scilab-users] Peaks and positions

2013-01-28 Thread Stefan Du Rietz
It means the last element of the vector/matrix. /Stefan On 2013-01-28 22:30, Berns Buenaobra wrote: Hi Samuel: I'd like to understand the "$" inside the would mean from the script? Thanks, Berns B. On Sun, Jan 27, 2013 at 12:46 AM, Samuel Gougeon mailto:sgoug...@free.f

Re: [Scilab-users] Peaks and positions

2013-01-28 Thread Berns Buenaobra
Hi Samuel: I'd like to understand the "$" inside the would mean from the script? Thanks, Berns B. On Sun, Jan 27, 2013 at 12:46 AM, Samuel Gougeon wrote: > Le 26/01/2013 17:00, constantina a écrit : > > Sorry, I know is a basic question, i now the answer in matlab but not in > scilab Wh

Re: [Scilab-users] Help files seem to be missing.

2013-01-28 Thread ledlighter
I reinstalled Scilab and everything works fine now. The new features and environment in this version are very nice. Thanks to all those who contributed to its development. As a user only, I am grateful. Best regards. -- View this message in context: http://mailinglists.scilab.org/Help-files-se

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 pos

Re: [Scilab-users] Problem with ATOMS

2013-01-28 Thread Giovanni Tirelli
Hi, i've got the same error type in function "plot" of "scilab 5.4" running over "mountain lion" e.g. (scilab help ode exampe) function ydot=f(t, y) ydot=y^2-y*sin(t)+cos(t) endfunction y0=0; t0=0; t=0:0.1:%pi; y=ode(y0,t0,t,f); plot(y,t) executing with echo: -->function ydot=f(t, y) -->

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

2013-01-28 Thread Serge Steer
If the initial position of your sphere are randomly set, it can be normal than you do not have the same number of iteration from one simulation to an other one. can you check using rand("seed",0) to force identical initial points for your various tests. Serge Steer Le 28/01/2013 16:18, Ezequiel

Re: [Scilab-users] Peaks and positions

2013-01-28 Thread constantina
yes, you're right, the correct word is "spike". My problem consist: a matrix like [v,k1,k2], the first letter is "time", k1 and k2 are "values" of a time series. So... if I plot the values, Im gonna find "spikes" that means "errors, happens the same with "zero" values... I have to eliminate the w

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

2013-01-28 Thread Ezequiel Soulé
The algorithm essentially starts with a set of spheres in random positions and in a relatively dense state, and runs an iterative process where the spheres are moved in each iteration in order to reduce the overlaps. The core of the script is more or less like this superp=calc_D_superp_dobcel(

Re: [Scilab-users] Peaks and positions

2013-01-28 Thread Dang, Christophe
Hello, > If I have a vector , por example M= rand(418,1) Just a question of vocabulary, are you lookng for peaks with a given width, such as or for "one-pixel" wide peaks, which are sometimes refered to as "spikes"? For spikes, you can use the cade given by Samuel, just removing the "pC". If t

Re: [Scilab-users] Peaks and positions

2013-01-28 Thread constantina
If I have a vector , por example M= rand(418,1) , how can I implement the same procediment?? -- View this message in context: http://mailinglists.scilab.org/Peaks-and-positions-tp4025764p4025799.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _

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

2013-01-28 Thread Rafael Guerra
Ezequiel, I recommend you to create a minimal code example which reproduces the problem you have at hands and to submit it to the users list for evaluation. It will be easier to help you. Best regards. Rafael G. -Original Message- From: users-boun...@lists.scilab.org [mailto:users-boun..

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

2013-01-28 Thread Dang, Christophe
Hello, > Now, if I define another variable, > the number of iterations to converge changes! [...] > the problem is that this difference propagates exponentially Maybe you could send us a "minimal" script reproducing the problem? Regards -- Christophe Dang Ngoc Chan Mechanical calculation eng

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

2013-01-28 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 cal

Re: [Scilab-users] Linearizing a model with COSELICA blocks

2013-01-28 Thread amiege
Clément David-2 wrote > Hello,It is possible to linearize a modelica model however I should > compile(in the sense of producing an Xcos block from a modelica diagram) > first.Just define "needcompile=4" before calling lincos and open > anon-documented bug. Thank you, that works indeed. I have open

Re: [Scilab-users] Identification Toolbox Documentation

2013-01-28 Thread Serge Steer
The identification functions help pages can be found in the CACSD chapter look at findABCD, findBD, findAC,... but also imprep2ss, armax, ... Serge Steer Le 25/01/2013 18:18, AntonSeab a écrit : Hi It would be great if you could point me to some documentation for the Identification Toolbox. Se

Re: [Scilab-users] Problem with ATOMS

2013-01-28 Thread Stéphane Mottelet
Hello, this problem is fixed in the current developpement version of the plotlib, a new version will be released this week. S. Le 28/01/13 08:52, Vincent COUVERT a écrit : Hello, It seems that this error is due to plotlib since the error message indicates that the error occurred at line 46

Re: [Scilab-users] Linearizing a model with COSELICA blocks

2013-01-28 Thread Clément David
Hello, It is possible to linearize a modelica model however I should compile (in the sense of producing an Xcos block from a modelica diagram) first. Just define "needcompile=4" before calling lincos and open a non-documented bug. -- Clément Le vendredi 25 janvier 2013 à 09:26 -0800, amiege a é