[Scilab-users] javasci on Netbeans

2013-01-29 Thread rtodymic
hello scilab users, i want to use javasci on NetBeans 6.5 but i have some problems: the output displays anything when i run the application. This is my java code: import org.scilab.modules.javasci.Scilab; import org.scilab.modules.types.ScilabType; import org.scilab.modules.types.ScilabDouble

Re: [Scilab-users] Simple Date & Time Plotting

2013-01-29 Thread Serge Steer
I'm afraid it is yet not possible with the default zoom tool becausefor this behavior it should be necessary to have the possibility to attach a callback function that responds to the zoom the resize actions But you can develop your own zoom menu for zooming time séries Serge Steer Le 29/0

[Scilab-users] Simple Date & Time Plotting

2013-01-29 Thread Pat
Hi All, I would like to find a simple plotting function to enable a plot of numeric data against *date/time * to be obtained. I have read numerous workarounds to this problem from input over the years - usually involving manually manipulating X-Tick Text Data. I'm just not sure how the graph woul

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 wo

[Scilab-users] Using context values with scicos_simulate

2013-01-29 Thread amiege
Hi, I am trying to run scripted simulations of an Xcos model using scicos_simulate. I have defined the following values: However, when I run the scicos_simuate command (using scilab 5.4.0), I get following: and the response of the model is not what it should be. If I then run the same model

[Scilab-users] Getting rid of Modelica info pop-up window in Xcos

2013-01-29 Thread amiege
Hi, I am running an Xcos model which contains some COSELICA blocks. Every time I run it, the following window pops up: This is fine for interactive simulation, but I am trying to run the model iteratively as part of an optimization

Re: [Scilab-users] figure exported before graphical refresh

2013-01-29 Thread Antoine Monmayrant
On 29/01/2013 10:39, Dang, Christophe wrote: Hello, while trying to make an animation, I noticed that some figures were exported with the wrong scale. The scale is set by setting the data_bound axes property. I supposed that the file was created before the scale was set, so I introduced a slee

[Scilab-users] figure exported before graphical refresh

2013-01-29 Thread Dang, Christophe
Hello, while trying to make an animation, I noticed that some figures were exported with the wrong scale. The scale is set by setting the data_bound axes property. I supposed that the file was created before the scale was set, so I introduced a sleep(100) and it solved the problem. Here is a mi

Re: [Scilab-users] Peaks and positions

2013-01-29 Thread Dang, Christophe
One more (rather big) detail, the script I sent only works when the spike is in the 1st column (which is the case of the data I use). please replace line 22 : slope = abs(M(2:$, :) - M(1:$-1,:)); line 29 : if max(slope(i, :)) >= upperthreshold then Regards -- Christophe Dang Ngoc Chan Mec

Re: [Scilab-users] Peaks and positions

2013-01-29 Thread Dang, Christophe
Sorry again, I didn't scope the result with enough attention, the i = i+1 in for...end loop does not seem to work as I thought it would, (replaced by a while...end loop) and I forgot the offset between the indices of the slope and M matrices. New script attached, should work better. HTH, regar

Re: [Scilab-users] Peaks and positions

2013-01-29 Thread Dang, Christophe
Sorry, I'm not sure the code source was well displayed (MS Outlook seems to get rid of some carriage return). Please see the script attached. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are no

Re: [Scilab-users] Peaks and positions

2013-01-29 Thread Dang, Christophe
Hello, > My problem consist: a matrix like [v,k1,k2] [...] > if I plot the values, Im gonna find "spikes" that means "errors OK, I guess that a spike is a steep change in the value, a huge derivative. IMHO, you should compare 2 consecutive values in a column. This can be done by subtracting M(i