Re: [Scilab-users] evaluation of a Scilab expression from Java in the current Scilab environment

2013-07-25 Thread Serge Steer
Take care that the getvalue function is overloaded by Scilab to silently evaluate and chack the arguments that are given by expression based variables defined in the Xcos context Basing your bload dialog on a other function will breaks this behavior... Serge Steer INRIA Le 25/07/2013 10:11

Re: [Scilab-users] uicontrol, callbacks, handle not valid anymore

2013-07-10 Thread Serge Steer
It is not a Scilab problem. It is better to preserve the plotfr handle in the user_data gui, so even if plotfr is cleared it can be retreived. Moreover I had improved a little your code to makemove more smooth (avoid clf and udpdate the polyline and axes bounds Serge Steer - Mail original

Re: [Scilab-users] error or not

2013-07-05 Thread Serge Steer
Le 05/07/2013 16:15, charles marchetti a écrit : Hi When I try the function classmarkov , It doesnot work. I get the error message: the function mat_2_graph doesn t exist. mat_2_graph is a part of the Metanet module (can be loaded with Atoms) Is it error from the programm or about the

Re: [Scilab-users] Plotting interference between WiFi and Bluetooth

2013-07-05 Thread Serge Steer
I am still not sure to really understand your problem Do you want to be able to contruct the effect of two spherical (stationnary?) waves at a given points of the 3D space? Serge Steer Le 05/07/2013 09:42, kanchan Masade a écrit : On Fri, Jul 5, 2013 at 12:36 AM, Serge Steer serge.st

Re: [Scilab-users] Plotting interference between WiFi and Bluetooth

2013-07-04 Thread Serge Steer
What do you mean by simulate interference Do you want to compute electromagetic wave combinaison at given points of the space? Serge Steer Le 04/07/2013 17:02, kanchan Masade a écrit : Hello All, I am very new to Scilab and Matlab. As a university project, I need to simulate interference

Re: [Scilab-users] figure with several subplots and two y-axes for each subplot

2013-06-14 Thread Serge Steer
Strange, look at the figure I get... What version of Scilab are you using? Serge Steer Le 14/06/2013 09:30, simi99 a écrit : that's weird. if I run your script (without any change), I get the following result: http://mailinglists.scilab.org/file/n4026852/tst2.png -- View this message

Re: [Scilab-users] Problems with plot 3d. Function fplot3d

2013-06-09 Thread Serge Steer
The question is: how do you want to represent complex numbers in your 3D plot? plot3d function only represent the real part...Serge SteerDe: "Ubirajara Marques da Cruz" birac...@cemig.com.brÀ: users@lists.scilab.orgEnvoyé: Vendredi 7 Juin 2013 22:46:37Objet: [Scilab-users] Problems with plot 3d.

Re: [Scilab-users] 2D contour for a non-rectangular region.

2013-06-07 Thread Serge Steer
of such a data with Scilab? Yes, just enter your data in a matrix and set the undefined values to %nan function z=my_surface(x, y),z=x*sin(x)^2*cos(y),endfunction t=linspace(-%pi,%pi,30); z=feval(t,t,my_surface); z(1:15,1:15)=%nan; clf;contour(t,t,z,20); Serge Steer INRIA Many thanks in advance for help

Re: [Scilab-users] Xcos simulation IDA_ERR_FAIL

2013-06-02 Thread Serge Steer
the solver is stopped when the event arises and restart just after. You can generate a discrete command for the switch using a selector block and an event at time block. Serge Steer Le 02/06/2013 05:04, dragaoerrante a écrit : Hi people. I started using Scilab just some moths ago, so I'm

Re: [Scilab-users] Disable figure name

2013-04-19 Thread Serge Steer
it contains: if n is the window number you can do: delmenu(n,_(?));delmenu(n,_(Edit));delmenu(n,_(Tools));delmenu(n,_(File)); Serge Steer I would also like to hide (with drawlater?) the creation of a figure until it is ready. Now I have to watch several different figures until the correct one

Re: [Scilab-users] [Users] Discrete cosine transform

2013-03-27 Thread Serge Steer
Le 26/03/2013 19:20, TViT a écrit : Serge and how to use? Just exec the file before use, it will overload the dct function Serge Steer I moved dct.sci to a folder С:\Program Files\scilab-5.4.0\modules\signal_processing\macros Has started buildmacros.bat and the file dct.bin has appeared

Re: [Scilab-users] X Y coordinates in a scilab plot

2013-03-27 Thread Serge Steer
a string you may use the xstringl function. Serge Steer Thanks for help, Stéphane Maya Technologies *Stephane BECU* Tel:+33 4 38 49 59 01 Mobile: www.maya-technologies.com http://www.maya-technologies.com *Maya technologies* La Petite Halle ZAC Bouchayer Viallet 31, rue Gustave

Re: [Scilab-users] [Users] Discrete cosine transform

2013-03-26 Thread Serge Steer
With Scilab 5.4.0 Windows versions using the MKL library, the dct and dst function does not work (the associated routines are not present in the MKL library) One solution is to use a non MKL version You can also use the attached Scilab function based on fft (slower) Serge Steer Le 26/03/2013

Re: [Scilab-users] discrete Fourier transform

2013-03-21 Thread Serge Steer
however. It is much more efficient using fft instead of dft. Serge Steer clear; clc; xdel; function y = f(x); y = sin(x); endfunction; n = 200; x=linspace(0,2*%pi,n); y=f(x); mat = [x',y']; //disp(mat); //plot2d(x , y); //xtitle('DATA','n''','y'''); Xf=dft(y,-1); XfA = abs(Xf)*2/n; plot2d3

Re: [Scilab-users] Regarding simple numerical operations result display.

2013-03-20 Thread Serge Steer
Le 19/03/2013 13:32, Stefan Du Rietz a écrit : On 2013-03-19 11:43, Serge Steer wrote: Le 19/03/2013 11:26, Dang, Christophe a écrit : De la part de Stefan Du Rietz Envoyé : mardi 19 mars 2013 11:10 But gsort is a built-in function (and very efficient): I just wonder

Re: [Scilab-users] Scan file backward from the end?

2013-03-20 Thread Serge Steer
If you know the approximate size of the footer in number of bytes (assume N greater than it) you can try to set the pointer N bytes before the end of file using the u=mopen(myfile); mseek(-N,u,'end') then read the rest with mgetl(-1,u) Serge - Mail original - De: Antoine Monmayrant

Re: [Scilab-users] Vectorization

2013-02-12 Thread Serge Steer
,Nj,Nk); //Transform D1 into a 3D array toc Are you sure of your variance definition? For me if v is a vector the variance of v is computed by sqrt(sum( (v-mean(v))^2)) Serge Steer INRIA Le 12/02/2013 17:10, Stéphane Bécu a écrit : Hello, I have much difficulty to optimize my calculation

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

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] How replace symbols and letters in a matrix

2013-01-10 Thread Serge Steer
You can substitute the * using Scilab t=mgetl('your file'); t=strsubst(strsubst(t, * , 0 ), S , 0 ) Le 09/01/2013 22:35, constantina a écrit : mputl(t,'your file') Serge Steer Hello everyone (first of all, sorry 4 my poor english), im newbie in scilab. Im trying to process data, it includes

Re: [Scilab-users] How replace symbols and letters in a matrix

2013-01-10 Thread Serge Steer
- Mail original - De: constantina geof...@gmail.com À: users@lists.scilab.org Envoyé: Jeudi 10 Janvier 2013 14:50:31 Objet: Re: [Scilab-users] How replace symbols and letters in a matrix Thank u so much Serge it works perfect! but i used an specific file , I have to program an

Re: [Scilab-users] uicontrol in a function

2013-01-02 Thread Serge Steer
, gcbo.userdata.string = string(0);); endfunction fig = figure(0); test(fig); Serge Steer Le 02/01/2013 10:48, Dang, Christophe a écrit : Hello, I'm starting with my first graphical user interfaces. It seems OK until I try to encapsulate it into a function. Here is a minimal complete example

Re: [Scilab-users] Generalised eigenvalues

2012-12-21 Thread Serge Steer
are right. but Scilab returns the generalized eigenvalues under a factorized form because some generalized eigenvalue problems may have eigenvalue at infinity. Serge Steer ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman

Re: [Scilab-users] Performance issue with mget on inhomogeneous binary file

2012-12-21 Thread Serge Steer
corresponding to doubles I=(2:3)'.*.ones(1,N/2)+(0:3:3*N-3).*.ones(2,1); u=mopen('/tmp/foo','w') mput(T(I),'f',u); mclose(u); //read it again as double u=mopen('/tmp/foo','r'); D=mget(N,'d',u); mclose(u); Serge Steer Thanks for reading, regards Phil -- View this message in context: http

Re: [Scilab-users] Summation query in Scilab

2012-12-13 Thread Serge Steer
On 12 December 2012 22:46, Lester Anderson arctica1...@gmail.com mailto:arctica1...@gmail.com wrote: Many thanks Serge :) That worked great! Helps to see how the syntax should work. Cheers Lester On 12 December 2012 22:29, Serge Steer serge.st...@inria.fr

Re: [Scilab-users] Replacement of pixmap by drawlater / drawnow in Version 5.4.0

2012-12-05 Thread Serge Steer
(k-1) //wait a little to slow down the loop if necessary nx=[r1(k)*cos(t+phi(k));r2(k)*cos(t+phi(k))]; ny=[r1(k)*sin(t+phi(k));r2(k)*sin(t+phi(k))]; e.data=[nx(:) ny(:)];//update arrow coordinates end Serge Steer ___ users mailing list users

Re: [Scilab-users] getting values from an event handler

2012-12-03 Thread Serge Steer
,x,y,ibut) fig=get_figure_handle(win) set(fig, user_data, struct(myres,x*2)) endfunction You can then recover the value everywhere using fig=get_figure_handle(win) disp(fig.user_data.myres) Serge Steer Le 30/11/2012 14:26, walid shouman a écrit : how can i return the a value from an event

Re: [Scilab-users] Emulate Object Oriented Programming

2012-11-28 Thread Serge Steer
Le 27/11/2012 10:08, michael.bau...@contrib.scilab.org a écrit : Hi, Thank you Serge for this interesting script. Defining a tlist with unnamed fields is indeed an idea which is quite unusual ! You will find in attachment a modified version, merging your proposal and my previous attempt. On

Re: [Scilab-users] Scilab date and hour functions

2012-11-28 Thread Serge Steer
with a string column formatted as you want, you may use a tlist [A, M, J, h, mn, s] = datevec(X(:,3)/1000/24/3600); out = msprintf(%02d:%02d:%04.1f\n,h, mn ,s) T=tlist([foo,data,time],X(:,1:2),out) I hope it will help. Serge Steer -- View this message in context: http://mailinglists.scilab.org

Re: [Scilab-users] Emulate Object Oriented Programming

2012-11-26 Thread Serge Steer
For safe mode you can use tlist with no field names. See the example in the attached file Serge Steer - Mail original - De: Daniel Penalva dka...@gmail.com À: International users mailing list for Scilab. users@lists.scilab.org Envoyé: Dimanche 25 Novembre 2012 23:04:56 Objet: Re

Re: [Scilab-users] EXCEPTION_ACCESS_VIOLATION error

2012-11-21 Thread Serge Steer
take care that i.*.ones(j) generates a vector of size 130321^2 which is near 2^34. With the current Scilab, the array dimensions (ans pointers) are stored in 32 bits integers. The crash is probably due to a missing test on dimensions in the kronecker product gateway. Butindependently of that

Re: [Scilab-users] question

2012-11-20 Thread Serge Steer
you have? Serge Steer ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] profiling

2012-11-19 Thread Serge Steer
Now you can use the add_profiling function. Serge Steer Le 19/11/2012 01:43, Iai Masafumi ax a écrit : Hello, écrit : How do I prepare a function for profiling using exec? The help page of profile says that To use profile the Scilab function must have been prepared for profiling (see exec

Re: [Scilab-users] Run your Scilab Codes Through Browser

2012-11-12 Thread Serge Steer
Hello, I tried your site, with firefox 16.0.2 entering A=1 as input, with Enable graphic checked I got the message The requested content cannot ne loaded, Please try again later, with graphic disable nothing appaers in the output part Serge Steer On 10/11/2012 19:55, Saket Choudhary

Re: [Scilab-users] funny result for tensor norm calculation

2012-09-28 Thread Serge Steer
norm(A) / /Serge Steer / Le 26/09/2012 19:42, Paul Carrico a écrit : Dear All, A funny result for calculating the norm of a tensor ... for ounce a traditional method (that probably uses vectorization in back stage) is faster than the norm function ... Paul mode(0); A= [ 1 2 3 ; 4 5 6; 7

<    1   2