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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] [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] [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] 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] 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] 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] 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] 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] 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] 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] 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] 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] scilab figure window toolbar icon remove

2013-07-29 Thread Serge Steer
You can use toolbar(winnumber,'off') but it hides all the tools of the toolbar Serge Le 27/07/2013 18:25, rajesh kannan a écrit : hello, I am using scilab for displaying a graph. Is there any way to remove selected icons from the tool bar. For example, if I want to remove 3d rotation, data

Re: [Scilab-users] how to get list of object that are present in scilab script file

2013-09-03 Thread Serge Steer
Le 03/09/2013 12:20, hilife5 a écrit : I want to know is there exist any way to get the list of objects like variable names, matrices, plots that are present in scilab script file. for script file, no but it is possible for functions using the macrovar function Serge Steer Thanks -- View

[Scilab-users] Scilab-5.5.0-beta-1 crashes at startup

2013-10-02 Thread Serge Steer
For information, under SuSe12.3 on a 64 bits processor I obtain the following trace at startup peace% scilab-5.5.0-beta-1/bin/scilab scilab-bin: /tmp/scilab-5.5.0-beta-1/lib/thirdparty/libcurl.so.4: no version information available (required by

Re: [Scilab-users] ode malfunction

2013-10-16 Thread Serge Steer
for the second run. Serge Steer Le 15/10/2013 17:46, Peter Hinow a écrit : Dear fellows, my goal is to solve numerically an ODE which contains a time-dependent parameter using 'ode'. I get a confusing result depending on whether the signal (it's called h) is on for 10 or 20 seconds. The two results

Re: [Scilab-users] Matrix of characters conversion

2013-10-21 Thread Serge Steer
You can use evstr for that example M=[1 2 5.54 3.45 8 -123 0 -432.512 -0.435] --evstr(M) ans = 1. 2. 5.54 3.458. - 123. 0.- 432.512 - 0.435 Serge Le 21/10/2013 14:29, Carrico, Paul a écrit : Dear All How can I

Re: [Scilab-users] Scilab Xcos Datatips

2013-11-04 Thread Serge Steer
if the datatip is over 1. It would be most helpful if there is a possibility to show the position of de datatip in a way like this for example: Y: 1.05 or Y: 1.005 it only shows Y: 1.1 (not very) Clicking right on a datatip open a gui where you can maodify the the function which generates the display Serge

Re: [Scilab-users] loglog plot in 3d

2013-11-06 Thread Serge Steer
You can use set(gca(),'log_flags','lln') to have the x and y axis in log mode and z in normal (linear) mode Serge Steer - Mail original - De: samaelkreutz mariajov...@icloud.com À: users@lists.scilab.org Envoyé: Mercredi 6 Novembre 2013 19:30:04 Objet: [Scilab-users] loglog plot

Re: [Scilab-users] Write format

2013-11-09 Thread Serge Steer
Le 08/11/2013 19:47, eleo a écrit : Hello, How to write the format to export data (a vector v) in a file as a vector line (56 rows, 1 column). write(v.dat,v, FORMAT ? ) something like write(v.dat,v,(E15.8)) or write(v.dat,v,(F15.8)) or fd=mopen(v.dat,w) mfprintf(fd,%f\n,v) mclose(fd) Serge

Re: [Scilab-users] Put .txt data in matrix

2013-12-11 Thread Serge Steer
The fscanfMat function should do the job Serge Steer - Mail original - De: simon_37 simmar...@gmail.com À: users@lists.scilab.org Envoyé: Mercredi 11 Décembre 2013 16:12:48 Objet: [Scilab-users] Put .txt data in matrix Hi everybody, I want to extract data from .txt in matrix

Re: [Scilab-users] Scaled plot displays in Scilab?

2014-01-09 Thread Serge Steer
You can proceed as follow. Note however that at least under windows it is not possible to create a window larger than the screen. Serge Steer clf;plot(linspace(0,100,10),linspace(0,150,10)) fig=gcf(); ax=gca(); ax.tight_limits=on; //Dimensions of the axis in user coordinates ax_xu

Re: [Scilab-users] Transparent rectangle?

2014-01-20 Thread Serge Steer
Hi Antoine, I understand that I could draw the lines after the coloured rectangle to get them visible, but I cannot do that. So, I need the rectangle to be transparent. What do you mean by rearrange the order? Here is an example clf; xpoly([0 1],[0,1]);p=gce(); xfrect([0.2 0.3 0.2

Re: [Scilab-users] Strange list error

2014-01-27 Thread Serge Steer
Le 27/01/2014 19:05, Stefan Du Rietz a écrit : Hello Paul, after trying like a maniac ;-) I finally managed to reproduce it! The error shows up only when you run the command from the command window after a pause in the attached function testlisterror.sci. --testlisterror(pnonfast,nonfast)

Re: [Scilab-users] bug report on http://wiki.scilab.org/howto/global%20and%20local%20variables

2014-01-28 Thread Serge Steer
Le 28/01/2014 17:14, Adrien Vogt-Schilb a écrit : The page does not mention pause Just because pause behave similarily to functions with respect to calling context http://wiki.scilab.org/howto/global%20and%20local%20variables sorry, o busy to file a bug

Re: [Scilab-users] 3d curve plot

2014-02-13 Thread Serge Steer
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 finally, I have a z,u relationship. *I would like

Re: [Scilab-users] Scilab vs Xcos

2014-02-14 Thread Serge Steer
Le 09/02/2014 16:14, noelec57 a écrit : Bonjour Je rejoins en tant qu'enseignant les utilisateurs de Scilab et Xcos. Pour le moment j'essaie de l'utiliser pour la modélisation de systèmes asservis continus avec PID. Je suis parvenu à obtenir la réponse de mon système en utilisant Xcos (mode

Re: [Scilab-users] Xcos PID controller problem

2014-02-18 Thread Serge Steer
a very small term in s^2 for the denominator (sse the attched diagram) Please report the problem in http://bugzilla.scilab.org/ Serge Steer Le 17/02/2014 21:51, john a écrit : Hello, I'm new to Scilab and Xcos so may be making a simple mistake, but I have the following problem. I created

Re: [Scilab-users] How to get a reguar sampled vector in Scilab

2014-02-18 Thread Serge Steer
($))=timesvalues($); clf;plot(sampletimes,V,'-+') //You can also use linear interpolation V1=interpln([times;values],sampletimes); plot(sampletimes,V1,'r-+') //or Splin interpolation V2=interp(sampletimes,times,values,splin(times,values)) plot(sampletimes,V2,'m-*') Serge Steer - Mail original

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

2014-02-20 Thread Serge Steer
Le 19/02/2014 14:31, Yohann a écrit : Hi Antoine, thank you for your answer but what I need is a confidence interval on each parameter ! The confidence interval on the computed parameters depends on the confidence interval on your x and y data. In your case where you are looking for

Re: [Scilab-users] Plotting density values

2014-02-25 Thread Serge Steer
The following function does the job but with one loop. It is based on the 1D classification function dsearch Serg Steer function occ=dsearch2D(xy,dx,dy,opt) //x,y coordinates of the points of the cloud //dx, discretization of the x axis //dy , discretization of the y axis //occ, table such as

Re: [Scilab-users] Problems with To workspace and From workspace

2014-04-10 Thread Serge Steer
The workspace variables are created in the Scilab environment at the end of the simulation You can probably use a DOLLAR block to do what you want Serge Le 10/04/2014 09:27, Michael Ungelehrt a crit:

Re: [Scilab-users] Xocs : enabled superblocks and multi frequence diagram

2014-07-21 Thread Serge Steer
- if it is a discret time system you can use two SampleCLK block one with 1/10 period and the other one with 1/1000 period as explained in the attached xcos diagram Serge Steer Le 21/07/2014 08:45, Quentin Mazué a écrit : Hello, I need to model a special phenomenon which has two different states: -1

Re: [Scilab-users] Find the position of vector in another vector

2014-07-22 Thread Serge Steer
One can use the Morris and Pratt algrithme (http://www.liafa.jussieu.fr/~carton/Enseignement/Algorithmique/Programmation/Pattern/MorrisPratt/) I give you a Scilab code of this algorithm. But it should be more efficient to add a builtin using the C code given at

Re: [Scilab-users] Xcos Debugging : block number, Flag and tutorial

2014-07-29 Thread Serge Steer
) detailed page 209 in the book Scilab de la théorie à la pratique written by Serge Steer and Yvon Degré does not exist in Scilab 5.5.0? This function could be useful because we have a direct correlation between block number and their uid. Please find it attached 2) Is there a list of all flag

Re: [Scilab-users] multiple plots

2014-08-20 Thread Serge Steer
and their children Serge Steer Thank you for any suggestions. JP Grivet ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http

Re: [Scilab-users] Calculus and Scilab

2014-09-29 Thread Serge Steer
You can use the int2d function For yopur example, the domain is defined by a single triangle: function z=f(x,y),z=3-x-y,endfunction X=[0;1;1]; Y=[0;0;1]; [I,e]=int2d(X,Y,f); Le 29/09/2014 00:15, Reinaldo a écrit : Hi Scilab users, I would like to plot the following 3D function in order to

Re: [Scilab-users] Problem with partial fraction decomposition (dfss)

2014-10-14 Thread Serge Steer
You just need to tune the rmax optionnal parameter pf = pfss(tf2ss(hz),5);length(pf) Serge Steer Le 13/10/2014 10:12, tinnguyen a écrit : Hi guys, I'm having trouble using scilab's function pfss to decompose a polynomial in order to do inverse Z transform. Following is my code: -- z = poly(0,'z

Re: [Scilab-users] Problem with partial fraction decomposition (dfss)

2014-10-22 Thread Serge Steer
block using a singular base change so the decomposition is a non-sense. Serge Steer Le 21/10/2014 12:07, Tin Nguyen a écrit : Dear Serge Steer, Thank you very much for your response. Your code works fine. However, I still have some problem with this pfss function. For example, I try to decompose

Re: [Scilab-users] ?E embedded scilab function in XCOS

2014-10-23 Thread Serge Steer
The scifun_block (in the user defined functions palette) may be what you are looking for. Serge Steer Le 23/10/2014 18:11, Candio a écrit : Hello, I am looking to reflect in XCOS (Scilab 5.5.1) the Simulink EML block. I cannot find a way to include embedded scilab code. I see a scilab

Re: [Scilab-users] How to find module containing a function

2014-10-30 Thread Serge Steer
The dft function is lust called fft (discrete and fast) Serge Steer Le 30/10/2014 04:05, Tin Nguyen a écrit : Hi all, I am being stuck with the function dft. My Scilab software doesn't include this function. So I searched the internet to find appropriate module in order to use it. I

Re: [Scilab-users] frequency analysis of N variables

2014-12-01 Thread Serge Steer
I think the attached function do what you expect Serge Steer Le 01/12/2014 17:15, David Chèze a écrit : Hi all, I have timeseries with measurements at every timestep and I would like to define bins of values for every variable and be able to count the number of records that are in each bin

Re: [Scilab-users] Question syslin

2014-12-16 Thread Serge Steer
- Mail original - De: Andreas Ladanyi andreas.lada...@gmx.net À: users@lists.scilab.org Envoyé: Mardi 16 Décembre 2014 11:01:25 Objet: [Scilab-users] Question syslin Hi, i am reading the help of scilab to understand the syslin function. In the help i can see 3 options for the

Re: [Scilab-users] Command datafit for a bivarate model function z=f(x, y)

2014-12-16 Thread Serge Steer
]=datafit(1,!e,M,p0) z=!z(X,Y,p) Serge Steer - Mail original - De: Jens j.s.st...@hslmg.de À: users@lists.scilab.org Envoyé: Lundi 15 Décembre 2014 23:00:43 Objet: [Scilab-users] Command datafit for a bivarate model function z=f(x, y) I tried to follow the pattern for data fit given

Re: [Scilab-users] Problem with function fitting

2014-12-17 Thread Serge Steer
,end endfunction The solution depends on the problem you want to solve. for example one can replage G by function e = G(n,z) xm = z(1) ym = z(2) e = ym - f1(xm,n) e=real(e*e') endfunction Serge Steer Le 17/12/2014 18:53, Maihem a écrit : Hi, I have problem with fitting function

Re: [Scilab-users] sparse hypermatrix definition

2014-12-19 Thread Serge Steer
There is no already built function to do that, but it cannot be very difficult using an mlist data structure which contains the index of non zero elements ans the non values. The amount of work mainly depends on what you want to do with it . Serge Steer - Mail original - De: David

Re: [Scilab-users] Help about Scilab

2015-02-04 Thread Serge Steer
please see http://svn.forge.scilab.org/docintrodiscrprobas/en_US/introdiscreteprobas/scripts/nchoosek.sci Serge Steer - Mail original - De: Paweł Postek post...@o2.pl À: users@lists.scilab.org Envoyé: Mardi 3 Février 2015 19:35:02 Objet: [Scilab-users] Help about Scilab Hello

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

2015-04-24 Thread Serge Steer
Le 23/04/2015 23:51, Stéphane Mottelet a écrit : 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

Re: [Scilab-users] integral of th discontinuous function

2015-05-12 Thread Serge Steer
endfunction e=1e-13; i1=intg(0,5,f,e,e); i2=intg(0,1,f,e,e)+intg(1+2*%eps,3,f,e,e)+intg(3+2*%eps,5,f,e,e); i1-i2 ans = 1.421D-14 Serge Steer But I want to integrate with one whole range. Is there a such program? -- View this message in context: http://mailinglists.scilab.org/integral

Re: [Scilab-users] Handle event ibut=-1000 (closing figure window, red cross)

2015-05-13 Thread Serge Steer
() function myclose(), disp(hello);endfunction f.closerequestfcn=myclose The each time you hit the red cross the hello message is send To kill the window one then has to call delete(f) Serge Steer Is there kind of an interrupt that could halt that? I did not figure out how i could manage to do that so

Re: [Scilab-users] ”Too complex recursion”

2015-05-19 Thread Serge Steer
already maximized the stack seize by stacksize('max'). The Too complex recursion! message has nothing to do with the stack size. It is often due to a function which calls itself (directly or indirectly) too deeply. Does your user function calls 'intg'? Serge Steer -- View this message

[Scilab-users] Questions about handling cursor from Scilab

2015-06-08 Thread Serge Steer
Hello, Does anyone knows how to * modify the pointeur coordinates into a Scilab graphic window with Scilab instruction? * modify the pointeur icon with Scilab instruction? Thanks Serge Steer ___ users mailing list users@lists.scilab.org

Re: [Scilab-users] number od decimals with csvWrite

2015-06-26 Thread Serge Steer
The simplest way is to use round A=rand(3,3); B=round(100*A)/100; Serge Steer Le 25/06/2015 22:07, Simone Meroni a écrit : Hi I want to write some data and export them with csvWrite I need to have no more than 2 decimals for aesthetic reasons. How can I set the number of decimals? Thanks

Re: [Scilab-users] Accidentally displaying huge matrices

2015-05-27 Thread Serge Steer
Le 27/05/2015 10:46, Samuel Gougeon a écrit : Le 27/05/2015 10:06, Lamy Alain a écrit : Maybe define a second function ? disp = displays in the julia way (for instance) disp_all = display all elements whatever the size (it's the user responsibility to limit the size to something

Re: [Scilab-users] Accidentally displaying huge matrices

2015-05-27 Thread Serge Steer
be set as a default display mode, keeping others as options. Serge Steer 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 : .../... First, is there a way to get

Re: [Scilab-users] fscanfMat help

2015-05-26 Thread Serge Steer
directory with the cd function. Serge Steer In attachment I send also the scilab script and the three txt files. Thanks for your help. Best regards, Francesco Pedretti ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman

Re: [Scilab-users] Accidentally displaying huge matrices

2015-05-26 Thread Serge Steer
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 : .../... First, is there a way to get it to stop? ctrl-C does not do the job. In your startup file

Re: [Scilab-users] save all variables

2015-08-24 Thread Serge Steer
I think save('testall.data','all') does the job Le 24/08/2015 04:31, fujimoto2005 a écrit : Can scilab5.5.2 save all variables without writing the names of all variables? The following script failed at the last line. scilab6.0 alpha can save all variables. x=1:10; y=10;20;

Re: [Scilab-users] Help with bvodeS & bvode and unusual boundary conditions

2015-11-12 Thread Serge Steer
in zeta you will give the locations (relative to y) of your boundary conditions in your case something like [0 0 0 , L L L ] if you have 6 states 3 with initial constraints and 3 with final contraints The constraints should then be defined by the gsub and dgsub functions Serge Le 12/11/2015

Re: [Scilab-users] Faster PWM signal

2015-10-16 Thread Serge Steer
Try with lower solver tolerances with the Simulate/Confiure menu. Serge Steer Le 15/10/2015 18:53, Michael Greenish a écrit : > Hello, > > I am modeling an electrical circuit. I have a voltage across an > inductor being switched on the ground side. I am generating a pwm > u

Re: [Scilab-users] read format

2015-10-12 Thread Serge Steer
with s given as follow s=['01/03/2015 00:01:00;5.49;1' '01/03/2015 00:01:01;5.9;1' '01/03/2015 00:01:11;4.9;1'] The following instructions returns the expexted results msscanf(-1,s,"%*s %*2s%*[:]%*2s%*[:]%*2s%*[;]%g[^;]%*[;]") But I do not succeed if the data are stored in

Re: [Scilab-users] How to produce a filled staircase plot

2015-10-07 Thread Serge Steer
ab.org> >>> Subject: Re: [Scilab-users] How to produce a filled staircase plot >>> >>> Thank you Serge for this solution, but it does not work for me: the "bars" >>> in my case are not regular. >>> I am simulating an exponential r

Re: [Scilab-users] read format

2015-10-13 Thread Serge Steer
It is possible to achieve what you want using the following instruction. It is a little tricky, may be a C format expert can do it in a more simple way. u=mopen("",'r') x=mfscanf(-1,u,"%*s %*2s%*[:]%*2s%*[:]%*2s%*[;]%g%*s"); mclose(u) Serge Steer Le 13/10/2015 16:19, sgou

Re: [Scilab-users] How to produce a filled staircase plot

2015-10-06 Thread Serge Steer
Le 06/10/2015 00:01, Antoine Monmayrant a écrit : > Hi everyone, > > I'm trying to do a filled staircase plot (ie a staircase where the area > between the staircase and the x axis is filled with a solid color). > Is there a given combination of polyline_style and fill_mode, etc ... that > can do

Re: [Scilab-users] animation of multiple plots

2015-09-15 Thread Serge Steer
Le 15/09/2015 15:57, grivet a écrit : > Hi, > > I am trying to animate multiple plots. For instance, when modeling the > motion of a planet > around the sun, I wish to plot, in one window, the planet's position > and, in another window, the tip of the velocity vector, both plots > evolving with

Re: [Scilab-users] Function

2015-09-29 Thread Serge Steer
alently by sqrt(sum(p2-p1).^2) Serge Steer > > Thanks in advance. > > > > ___ > users mailing list > users@lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users ___ user

Re: [Scilab-users] How to replace Matlab stairs function in Scilab

2015-09-24 Thread Serge Steer
Thers is no stair function but you can obtain this king of plot using the polyline_properties: clf;plot(sin(linspace(0,2*%pi,40))) e=gce();//plot creates an entity of type compound p=e.children;//the handle on the polyline p.polyline_style=2; //set stair case mode Serge Steer Le 24/09/2015 05

Re: [Scilab-users] Subplot figure size

2015-12-08 Thread Serge Steer
Le 08/12/2015 10:41, petarf a écrit : Hello, How to change subplot size of figure but not to change the whole size figure? I have managed to change one subplot size but I also changed the whole figure to that size. Thanks, Petar -- View this message in context:

Re: [Scilab-users] How to use champ

2015-12-15 Thread Serge Steer
Here is an example //First draw the "champ". System1 does not depend on time so the time value is not used xr=130:10:290;yr=5:0.3:9;t=0; clf();fchamp(System1, t, xr, yr) //now draw the trajectory from given initial point t=0:0.1:30; //It is not useful to ask for too many points,

Re: [Scilab-users] unable to set style for histplot

2015-12-15 Thread Serge Steer
zed histogram") The style argument rule the color of the lines and it appear to work as expected under sclab-5.5.2 (Linux) voir fichier joint. Serge Steer Figure.pdf Description: Adobe PDF document ___ users mailing list users@lists.scilab.org http://lis

Re: [Scilab-users] Plotting properties of digital audio filters

2015-12-11 Thread Serge Steer
Le 11/12/2015 18:03, fred_audio_dsp a écrit : Hi Rafael, Thank you very kindly for your assistance so far! If I understand correctly, the unwrap() macro quoted in your message has been part of Scilab since somewhere in 2014, am I wrong? Using scilab's phasemag() macro as suggested, I get the

Re: [Scilab-users] Set default working directory at start

2015-12-01 Thread Serge Steer
You can create a scilab.ini file the directory pointed to by the Scilab variable SCIHOME. The Scilab instructions stored in the scilab.ini file are executed eac time Scilab is loaded. Serge Steer Le 01/12/2015 12:09, Lester Anderson a écrit : Hello, A basic query, but how can I make sure

Re: [Scilab-users] Loop query - Scilab 5.5.2

2016-01-18 Thread Serge Steer
The plot instruction should be inside de loop k=0; st=["r","g","b"]; for Te = 5000:1:25000 // start: step: end k=k+1 D = E*Te .^3/(12*(1-v^2)); lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; lamda_k = lamda*1000; flex =

Re: [Scilab-users] plot versus date

2016-01-18 Thread Serge Steer
Le 18/01/2016 09:15, jbaud...@insa-rennes.fr a écrit : Hi, Le 18/01/2016 09:00, anna78 a écrit : Hi all, I'm beginner of SCILAB. I have the file here after reported, made of 5 columns. I would like to plot column 4 versus column 1, column 1 being a date in the yymmdd format. Is there any

Re: [Scilab-users] Hilbert transform query

2016-02-09 Thread Serge Steer
rson wrote: Hi Serge, I am working with grid data, so looking for the 2D Hilbert, the results I think should appear similar to doing a directional derivative, where X highlights features with N-S trends and E-W for Y. Lester On 5 February 2016 at 12:24, Serge Steer <serge.st...@inria.fr> wr

Re: [Scilab-users] Hilbert transform query

2016-02-05 Thread Serge Steer
Le 05/02/2016 10:56, Lester Anderson a écrit : Hello A quick query. How would one define the Hilbert transform of a grid for X and Y directions; looking for two solutions Hx and Hy (for the real values). Can you explain more precisely what you expect? Do you want to apply Hilbert transform to

Re: [Scilab-users] 'fsolver'

2016-01-27 Thread Serge Steer
May be you can use optim instead of fsolve using f(x)^2+alpha*norm(x)^2 as cost function with alpha small enough If you cannot compute the gradient of the cost function you can use the numderivative function to estimate it. Serge Le 27/01/2016 16:54, fujimoto2005 a écrit : The feature of my

  1   2   >