[Scilab-users] Re : Cauchy Integral query

2022-01-05 Thread sgougeon
Hello Lester, The integrand is y = exp((z^2))/(z-2), not y = exp((z^2)). Then, provided that the (undocumented) absolute tolerance is increased wrt the default one, we get the expected result: --> function y=f(z) > y = exp((z.^2))./(z-2) > endfunction --> fz=intl(0, 2*%pi, 2, 1, f,1e-10)

[Scilab-users] Re : restriction for fileinfo (?)

2021-09-28 Thread sgougeon
Philipp, No problem for me with Scilab 6.1.1 on Windows 10 for a file in a directory whose name is 272-character long, when calling fileinfo() with the huge name in the path. So the issue may come from elsewhere. May be from a symbolic link (no test done on my side)? Samuel - Mail

[Scilab-users] Re : Re: calendar does not work

2020-08-25 Thread sgougeon
>Who do I change to en_US.UTF-8 permanently under zsh? All my attempts change >it only momentarily As suggested in my previous post, changing your defaults should not be necessary. Just using Scilab preferences, out of defaults, should fix the issue.

[Scilab-users] Re : calendar does not work

2020-08-25 Thread sgougeon
Hello Heinz, You are likely using a quite restricted font for the Scilab console. May be your system's one as the default. These characters are non-breakable spaces ascii(160) <=> ascii([194 160]), that are not US-ASCII but nevertheless rather standard. You can check in your Scilab preferences,

[Scilab-users] Re : problem with matrix of polynomials

2020-03-09 Thread sgougeon
Hello Federico, cond() and rcond() do not accept rationals, but the determinant of A is very close to 0: --> det(A) ans = 3.573D-10 0.027s² +7.433D-10s³ This likely explains that the inversion is not

[Scilab-users] Re : Stopping at the line generating warning

2019-12-02 Thread sgougeon
Hello, Yes, with --> warning stop Regards ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

[Scilab-users] Re : How to identify componants in a figure ?

2019-10-11 Thread sgougeon
Hello Pierre, Just do find(a.type=="Axes") Regards Samuel ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

[Scilab-users] Re : Problems with mfile2sci

2019-10-07 Thread sgougeon
Hello Federico, With some end indices in your script, you are certainly facing the bug http://bugzilla.scilab.org/16181 This bug prevents starting the actual conversion. You may copy the proposed fix on your own Scilab installation, and use it. Regards Samuel - Mail d'origine - Dear

[Scilab-users] Re : Re: display of complex/not real numbers, again

2019-09-18 Thread sgougeon
Le 18/09/2019 à 13:50, Stéphane Mottelet a écrit : > >> Another regression very close to this one, but with real numbers >> display, would deserve the same care : >> Scilab 5: >> -->[1e30 1e-30] >>  ans  = >>     1.000D+30    1.000D-30 >> >> Scilab 6: >> --> [1e30 1e-30] >>  ans  = >>   

[Scilab-users] Re : plot3d and param3d

2018-11-06 Thread sgougeon
Hello Paul, Your polyline is directly e2, not any child p2. Samuel ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

[Scilab-users] Re : Re: grand in 6.0.1

2018-10-12 Thread sgougeon
It is already reported: http://bugzilla.scilab.org/15524 - Mail d'origine - De: amonm...@laas.fr À: users@lists.scilab.org Envoyé: Fri, 12 Oct 2018 09:39:11 +0200 (CEST) Objet: Re: [Scilab-users] grand in 6.0.1 Hello again, I just tried grand(10,1,"nor",0,1) on a fresh install of 6.0.1

[Scilab-users] Re : fftshift and ifftshift are way too different

2018-10-09 Thread sgougeon
Hello Antoine, fttshift() switches all halves along all dimensions. This is mandatory. So for instance in 2D, opposite quadrants (wrt the center) are switched. In 3D, opposite cubes are switched. etc. To me, the current implementation is right: --> m=grand(3,5,"uin",0,9) m = 2. 5. 9.

[Scilab-users] Re : concatenate hypermatrices along the 3rd dimension

2018-10-08 Thread sgougeon
Hello Antoine, Please check cat(3, ..) to concatenate along the 3rd (or any) dimension. Please check resize_matrix() to padd an hypermatrix (with what you want). Regards Samuel - Mail d'origine - De: antoine monmayrant À: International users mailing list for Scilab. Envoyé: Mon, 08

Re: [Scilab-users] circshift() : Scilab Enhancement Proposal

2018-06-07 Thread sgougeon
>Samuel, > >The idea and the implementation of the end-points interpolation is that >this is done on the input data (big slope), not on the FFT output. This is clear >Maybe be it needs some further work. Tbc. I don't think so. >Noting also that between the endpoints of the DFT periodic

Re: [Scilab-users] macOs High Sierra

2018-02-05 Thread sgougeon
Hello, You may try there: https://build.scilab.org/job/scilab-6.0-macosx/ Regards Samuel Gougeon - Mail original - De: "Philippe Dérogis" À: "Users mailing list for Scilab" Envoyé: Lundi 5 Février 2018 12:44:06 Objet: [Scilab-users] macOs High Sierra Hi, I

Re: [Scilab-users] Dump the output of a function

2018-01-16 Thread sgougeon
Hello Clément, OK for your confirmation. Unfortunately, in Scilab "_" can't be used, because _() is a defined function aliasing gettext(), and Scilab needs it as is. I don't think it was a good thing to use a single character to define such an alias, but it is as is. It would be unlikely

Re: [Scilab-users] Scrollbar in figures

2017-12-21 Thread sgougeon
Aa, i get it as well! Actually, it works as i reported it only for the first run from a fresh Scilab session. Then, forthcoming tests with exactly the same code and in a fresh figure shows the bug as you report it... Samuel ___ users mailing list

Re: [Scilab-users] numderivative Heart function

2017-11-30 Thread sgougeon
Hello Hermes, - Mail original - >.../... >function m=g(x1,x2) > > m=[2*x1-(x1.*(1.25*x2-sqrt(abs(x1/abs(x1).^(3/2),2.5*(1.25*x2-sqrt(abs(x1)))]; .. or ./abs(x1) // instead? >.../... >I receive the following alert: > "Function not defined for given argument type (s), check

Re: [Scilab-users] datatips and grayplot

2017-11-27 Thread sgougeon
Hello Richard, >Still, kind of 'meh'. Because this way I cannot access the z-value... You may use param3d() to plot a fake 3D polyline to support and "overlay" datatips. Then the datatip will include Z by default. If you are running 6.0: you may also try to use the new .display_components

Re: [Scilab-users] surf and %nan

2017-11-21 Thread sgougeon
>It is not the most compact form but I think there is no issue with original >syntax proposed: >[a,b]=find(M==-999); >M(a,b) = %nan; In the M(a,b) syntax, a stands for the indices of selected ROWS, and b for the vector of selected COLUMNS, no matter about the fact that a and b have here the

Re: [Scilab-users] surf and %nan

2017-11-21 Thread sgougeon
Hello Richard, >- Mail original - >Envoyé: Mardi 21 Novembre 2017 17:41:40 > >Hi all, >I have a big matrix, which I want to surf plot. However there are actually >only values for a non-rectangular shape and i want to blank out those other >values (which are -999 by default). >

Re: [Scilab-users] Digit Grouping in msprintf?

2017-11-06 Thread sgougeon
Hi Richard, Are you sure that a relative accuracy of 5e-8 of your result is relevant/actual/significant?! (.f displays 6 decimal digits after the dot). If yes, and if msprintf('%5.2f GWh',2725977/1e6) does not match your actual data and relative accuracy, AFAIK there is no way with the Scilab

Re: [Scilab-users] Convert struct to mlist/tlist

2017-07-12 Thread sgougeon
Hello Shamikan, A (array of) structures IS a mlist. The list of defined fields is returned by fieldnames(): --> s.b = %t; --> s.r = %pi; --> s.p = %z s = b: [1x1 boolean] r: [1x1 constant] p: [1x1 polynomial] --> fieldnames(s) ans = !b ! ! ! !r ! ! ! !p ! And the number of

Re: [Scilab-users] Element Wise multipliication in Scilab

2017-06-08 Thread sgougeon
Hello, >- Mail original - > > During Image Processing, I have an extracted small matrix > > Mat = > > 152 149 151 > 159 151 147 > 158 152 152 > > and a simple flipped sobel mask > > Gy = > > - 1. - 2. - 1. >0.0.0. >1.2.1. > > To

Re: [Scilab-users] Closing popup windwos

2017-06-01 Thread sgougeon
Hello, >Hi every body, > >I would like to know if there exist a function to close dialog windows >(like messagebox, progressionbar, waitbar...), as 'xdel' does for >regular graphic window(s). winH = waitbar(37,"Can it be closed before completion?"); close(winH); id = progressionbar("Work in

Re: [Scilab-users] automatic traverse question

2017-05-12 Thread sgougeon
Hello Erhy, >I studied your solution and think there will be a very huge array with >kronecker operator and generated the planes with a for loop. There is a common compromise between the used amount of memory and the algorithmic speed. There we are. >And now I have the problem with the max()

Re: [Scilab-users] Problems with figures in Scilab 6.0.0

2017-05-10 Thread sgougeon
Hello Philippe, Could you provide compared parts of screenshots from 5.5.2 and from 6.0.0 illustrating it at the same resolution? (whole heavy screenshots are not necessarily required) Thanks Samuel - Mail original - Hi, My name is Philippe, I work in the field of physics and

Re: [Scilab-users] applying a function to each element

2017-05-10 Thread sgougeon
Hello Frieder, max(A,B) does it: --> max(A,B) ans = 3. 3. 2. Samuel - Mail original - Hello, I have to matrices: A = [ 1 ; 2 ; 2 ] B = [ 3 ; 3 ; 1 ] I looking for get matric with having only the larger Elemtns: C = [ 3 ; 3 ; 2 ] Is there function to make to apply

Re: [Scilab-users] automatic traverse question

2017-05-09 Thread sgougeon
Hello Erhy, >resu(:,:)=abs(imdbl(:,:,1)-imdbl(:,:,2))*max(imdbl(:,:,1),imdbl(:,:,2)); This syntax of max() works element-wise and returns a matrix. Then, if the matrix is not square, the * multiplication can't work here. So, depending of what you want to do, you shall either use .* instead of *,

Re: [Scilab-users] Clear, export only an axis

2017-05-03 Thread sgougeon
Hello, >Is it possible, when many axes (plot2d or polarplot) are docked into a unique >figure, You mean: when using subplot()? Then, we do not properly speak about "docking". Figures that are really docked together or to the desktop remain separated. >to export the PNG of an axis like with the

Re: [Scilab-users] ?= =?utf-8?q? stripchart?

2017-04-26 Thread sgougeon
- Mail original - Objet: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? stripchart? >//dummy loop to simulate data generation and plotting >for i=1:1000 >oldxy=e.children.data;//old data > >newy=rand();//this would be your recently measured Y >newx=oldxy($,1)+1;//this

Re: [Scilab-users] Weird behaviour of two input() in a row

2017-04-26 Thread sgougeon
Hello, >Hello all, > >I'm experiencing some weirdies with the following script (6.0.0, Windows 7) : > >// ** > >A=input("A = "); > >B=input("B = "); > >// ** > >When I run the script, I can enter the value for A then I get the --> prompt. >It seems the script stopped, but if I

Re: [Scilab-users] how to add IPCV help

2017-04-25 Thread sgougeon
Hello, When the module is loaded, its help pages are loaded as well. But then, if the help browser was already opened before loading IPCV, it must be closed and restarted to see IPCV pages. HTH Samuel - Mail original - Hello, want to try IPCV in SciLab 6.0 Don't find a way to include

Re: [Scilab-users] how to place datatip on one point of polyline

2017-03-27 Thread sgougeon
>De: "Erhy", Lundi 27 Mars 2017 11:59:49 >Objet: [Scilab-users] how to place datatip on one point of polyline > >Hello! >If I plot curves where some values are %nan >datatips are not shown if the curve point for the tip is surrounded by %nan >values. >Now I code on Version 6.0.0 IMO, this

Re: [Scilab-users] Replace multiple occurrences of regular expression in string with strsubst

2017-03-27 Thread sgougeon
- Mail original - >De: "Pierre Vuillemin", Lundi 27 Mars 2017 09:57:01 > >Hi all, > >It seems that when using regular expressions with strsubst, only the >first occurrence is replaced. For instance, > >tst_str = 'This is a cow. A cow is funny.' >out1 = strsubst(tst_str, 'cow',

Re: [Scilab-users] labels for 2 y-axes in plot

2017-03-10 Thread sgougeon
>now I see there is also a function >*drawaxis*. >Is it possible to get a *handle* of the X-axis alone to modify the color and >appearance of only one axis? As indicated in its help page, just use the drawaxis output: HandleOfMyAdditionalAxis = drawaxis(..);

Re: [Scilab-users] Axis break with Scilab

2016-11-24 Thread sgougeon
>De: "Antoine Monmayrant" > >OK, that's what I understood from your last post but saddly it does not work >on my setup with scilab-6.0.0-beta-2. >I tried on two different machines under linux (ubuntu 16.04 64bits) and it >does not work. >I cannot start the zoom box outside of the axis

Re: [Scilab-users] ?==?utf-8?q? Axis break with Scilab ?

2016-11-23 Thread sgougeon
>But anyway, with subplots, I haven't found a reliable way to get "zoom >synchronization" across several subplots... This feature was broken since Scilab 5.4.0, but is repaired in Scilab 6.0-b: the zoom box can again be dragged and set over several subplots.

Re: [Scilab-users] Axis break with Scilab ?

2016-11-22 Thread sgougeon
Hello Antoine, This is an interesting user case. It is quite easy to get an equivalent, even smarter, but it depends on what is really required. here, * There is no overlay between the 4 curves. The technical solution would be quite specific. * The vertical scale is different from one y

Re: [Scilab-users] Understanding the graphic hierarchy. Copy a figure

2016-11-21 Thread sgougeon
Hello Jens, The proper way to copy graphics is to use copy(). Example: f = scf(); plot2d() f.tag = "plot2d() example"; fc = copy(f); // Creates (and render) the copy fc.tag=="plot2d() example" HTH Samuel Gougeon - Mail original - De: "Jens Simon Strom" À: users@lists.scilab.org Envoyé:

Re: [Scilab-users] Lack of Scatter type plots in scilab

2016-11-18 Thread sgougeon
>Hi Rafael, > >Thank you for letting me know about drawlater() and drawnow() functions. >I tried them and waited about 2 minutes, nothing drawn , so I restarted the >run without them. After plotting the frame and before plotting dots, you may turn the axes invisible with ax = gca(); ax.visible

Re: [Scilab-users] pinkification of xs2jpg exported images

2016-11-17 Thread sgougeon
>driver JPG; >xinit test.jpg; >surf (); >f = gcf (); >f.figure_size = [1000 800]; >xend winopen test.jpg > >Scilab freezes and I don't know where or if test.jpg is saved. If you really write xend winopen test.jpg winopen and test.jpg are taken as xend() arguments. The space is not a

Re: [Scilab-users] ignore function output variable

2016-11-10 Thread sgougeon
>SG: However, the first argout is actually assigned (and possibly displayed). >AFAIK, this can't be presently avoided. Humm, actually it aims to work in Scilab 6, but it is bugged: --> h = zeros(5,3,2); --> [s1,,s3]=size(h) // no error s3 = 3. // wrong: 2 expected s1 = 5.

Re: [Scilab-users] ignore function output variable

2016-11-10 Thread sgougeon
Hello Christoph, If you are searching for a one-char recipient, for instance "?" or "#" or "%" are valid starting chars for a name of identifier (variable). So [#,o]= getversion() // works, as well as [?,o]= getversion() // or [%,o]= getversion() However, the first argout is actually assigned

Re: [Scilab-users] Plot with two different y-axis as one plot

2016-09-28 Thread sgougeon
Hello, >I did attach a plot, now 20kB, of a pump from an old exam. The plot >does provide SI dimensions as well as US ones. Thats why there are three >x-axis and two y-axis. For this kind of case where * you want different axes _for the same data_ * all expected axes are linear (not

Re: [Scilab-users] Plot with two different y-axis as one plot

2016-09-26 Thread sgougeon
>De: "Frieder Nikolaisen" >.../... >I do use the ScilabHelp, but I cannot find a plotyyy. That isn't the Demos? no. To get and use the demos manager, you may run --> demo_gui >.../... In this case, if I zoom in after >plotting, that might be called interactiv, I only zoom in the later >plotted

Re: [Scilab-users] Plot with two different y-axis as one plot

2016-09-26 Thread sgougeon
Hello, >De: "Frieder Nikolaisen" >Envoyé: Lundi 26 Septembre 2016 13:27:35 >Objet: [Scilab-users] Plot with two different y-axis as one plot > >Dear Sir or Madam, > >I want to print a Diagramm with two different y-axis and one x-axis. I >want to zoom both plots at the same time after plotting.

Re: [Scilab-users] Functions lib

2016-09-23 Thread sgougeon
- Mail original - De: "Dang Ngoc Chan, Christophe" >Hello all, hello Samuel, > >> De : Samuel Gougeon >> Envoyé : vendredi 23 septembre 2016 11:00 >> >>> * a file named "name" (without any extension), which is an ascii file >>> containing the names of the functions; >> >> That's true,

Re: [Scilab-users] Again: On the PC, Scilab does not find the C compiler

2016-09-19 Thread sgougeon
>De: "Heinz Nabielek" >"Scilab doesn't find a C compiler": I have 64 bit Scilab 5.5.2 in 64 bit >Windows10 >and a working Microsoft Visual Studio 2014, but Scilab does not find the C >compiler. >All the Scilab commands asking for compilers have a negative response. > >What to do? > >Heinz You

Re: [Scilab-users] strange error with "rat"

2016-09-02 Thread sgougeon
Hello Philippe, Le 2016-09-02 13:10, philippe a écrit : Hi to all, I use rat to do integer simplifications in vectors (if possible). I use it like this -->[n,d]=rat(2/14) d = 7. n = 1. but I have a strnage error when rat is called from another (very complex) function :

Re: [Scilab-users] replacing sed command by regexp ?

2016-07-11 Thread sgougeon
- Mail original - >De: "Clément David" >Envoyé: Vendredi 8 Juillet 2016 14:37:18 > >Hello Philippe, > >About replacing "%foo_" to "foo_" in a file, I crafted an example using >strsplit() and strcat() (see >attached) but it might be good to have an extended strsubst() that can output

Re: [Scilab-users] plot2d question

2016-07-03 Thread sgougeon
>- Mail original - >De: "Offe rPade" >À: users@lists.scilab.org >Envoyé: Dimanche 3 Juillet 2016 17:58:21 > >I could not use plot for drawing a semilog graph. So I am using plot2d, >but if I want the curve to have both linestyle and markers, >I have to draw the curve Twice, like: Sure

Re: [Scilab-users] type/typeof bug ?

2016-06-07 Thread sgougeon
Hello Philippe, >I work with matrix of polynomials, but some coefficients could be scalar. ? Each coefficient _is_ a scalar. >I though that I could differentiate real and polynomial coefficients >comparing their type, surprisingly type(A(i,j))=2 >whatever the nature of A(i,j) (see example

Re: [Scilab-users] How to find the number of polylines automatically

2016-05-02 Thread sgougeon
>De: "Jens Simon Strom" > >You didn't miss anything. I did: I tried size but I did not try length >although it is so self-evident. size(ca.children,1) // works as well ___ users mailing list users@lists.scilab.org

Re: [Scilab-users] How to find the number of polylines automatically

2016-05-02 Thread sgougeon
Hello, >De: "Jens" >Hi, >By the line > >for i=1:n; ca.children(i).children.foreground=5; end > >one can change all level lines of a 2D contour plot to red. But how can the >script find n (without manual trial and error)? With length(ca.children) ? I may miss something... Samuel

Re: [Scilab-users] A generic datastructure dump tool?

2016-03-29 Thread sgougeon
>De: "scilab 20 browseruk" >Objet: [Scilab-users] A generic datastructure dump tool? > .../... >I have a "working" version (and have had several others), but they all suffer >from the >same problem: namely that in order to redraw the line I have to redraw the >entire graph, >which defeats the

Re: [Scilab-users] Matrix: mix string and float

2016-03-04 Thread sgougeon
Hello, >De: "anna78" 4 Mars 2016 14:45:10 >.../... >Is it possible to build a matrix with different element types? This is called a cell array. In your case, since each column is homogeneous, you may as well store the 13 matrices simply in a list: M = list(M1,M2,..,M13). The most appropriate

Re: [Scilab-users] global constant definition for module

2016-03-03 Thread sgougeon
>De: Samuel GOUGEON, Jeudi 3 Mars 2016 11:56:15 >However, we could ask to merge lib() in load() and remove it. I should have written: We could ask to merge lib() in load() and UNDOCUMENT lib() in order to make it an internal. (and obviously avoid any back-compatibility issue: lib() is heavily

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

2016-01-18 Thread sgougeon
Hello, >for Te = 5000:25000:1 // start:end:step to make 5000, 15000, 25000 The syntax is start:step:end, not start:end:step https://help.scilab.org/docs/5.5.2/en_US/colon.html Samuel Gougeon ___ users mailing list users@lists.scilab.org

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

2015-12-01 Thread sgougeon
This feature has been added to Preferences in Scilab 5.5. You may upgrade to 5.5.2. It then allows as well to set the starting directory equal to the one that Scilab left in the previous session. Very handy. Samuel Gougeon ___ users mailing list

Re: [Scilab-users] Title positioning on log-scale plots

2015-11-25 Thread sgougeon
>Does anybody know how to [ x,y ]-position titles on log-scale plots? After some trials without searching for the involved bugged piece of code, it comes that the title is wrongly displayed at X = 10*( gca().title.position(1) - 1) So, to display it from X=1 on your first graph, you must set

Re: [Scilab-users] Title positioning on log-scale plots

2015-11-25 Thread sgougeon
Hi, >Does anybody know how to [ x,y ]-position titles on log-scale plots? This is a regression since Scilab 5.5.0, as well reported here for X and Y labels: http://bugzilla.scilab.org/13518 >On a related matter, is it possible to use figure coordinates to position >titles (instead of the

Re: [Scilab-users] read format

2015-10-13 Thread sgougeon
Hello, - Mail original - >De: "CHEZE David 227480" > >.../... Would you need to get the timestamps data, you may call csvRead with >"string" conversion and process the first column of the matrix of string to >retrieve numeric value fields. For this part, using

Re: [Scilab-users] Strange behavior of interpln function

2015-09-14 Thread sgougeon
Hello, >x1=[-1604,-23982,-31978,-38883,-45638,-52660,-59782,-60536,-67648,-75176,-82997,-92066,-101438,-110067,-119852,-130754,-142046,-153749,-165495] >y1=[0.01,0.04,0.05,0.06,0.07,0.08,0.09,0.091,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2] >yy1=interpln([x1;y1],0) --> help interpln

Re: [Scilab-users] how to respond the shrinkage of hyper-matrix

2015-06-24 Thread sgougeon
I suppose 'Yasp' is one which is in the following address. https://www.scilab.org/development/nightly_builds/yasp Am I right Yes you are and can I install Yasp in the same PC where Scilab 5.5.2 has been already installed? Yes, you may have as many Scilab versions as needed on the same

Re: [Scilab-users] Accidentally displaying huge matrices

2015-05-26 Thread sgougeon
btw how can you overload the display of double matrices ? you can redefine disp(), but AFAIK it is not possible to overload the default display for native types such as booleans, decimal or complex numbers, strings... For instance, if you define %s_p(), it won't never be called when displaying

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

2015-05-19 Thread sgougeon
Hello, - Mail original - .../... plCtrlEX1=intg(xmin_V,xTrig_V-%eps,list('payoffDenFunc',payD_V,fxValDate,fxTriger,fxFixed,mu,vol)); In the list, you may try specifying directly by its name the function to be integrated, rather than through a string giving its name:

Re: [Scilab-users] Strange figure behaviour

2015-05-13 Thread sgougeon
De: Stefan Du Rietz Envoyé: Mercredi 13 Mai 2015 12:19:01 Hello all, can anybody explain this: I have a figure f with two axes (and some GUIs). When I move the mouse with the right button pressed, *one* of the axes gets distorted. Right-click rotates interactively the axes on which you have

Re: [Scilab-users] linux command line

2015-02-11 Thread sgougeon
Hello, I would like to give, in Scilab, a linux command line. It's possible? For example mv file1.txt file2.txt yes, you may use one of the unix..() or host() functions: http://help.scilab.org/docs/5.5.1/en_US/section_7182261dbbb2bb2293bb9166ba5f1fb3.html Regards Samuel

Re: [Scilab-users] interpreting showprofile results

2014-10-22 Thread sgougeon
Hello Candio, I just caught it: add_profile() prepares the function to profiling. But then, the profile is really set when calling the function. Each new call cumulates the execution time and occurrence numbers for each line. In your case, you did not call the function at all before asking to

Re: [Scilab-users] function find()

2014-05-27 Thread sgougeon
Hello, // initialisation diam = 0.2; nd = 10; etat = (rand(nd,2) -0.5)*4; distance = zeros(nd,nd); //compute distance matrix for i = 1:(nd-1) for j = (i+1):nd distance(i,j) = sqrt((etat(i,1)-etat(j,1))**2+(etat(i,2)-etat(j,2)**2)); end end You may do without explicit nested

Re: [Scilab-users] Plotting problem - subplot with 2 y-axis

2014-05-13 Thread sgougeon
Hello Wolfgang, If you were dealing about the mismatch between both axes frames: This is a side effect of the new axes.auto_margin attribute. In order to fix it in your example, you may just add a1.margins = a.margins; HTH Samuel ___ users mailing list

Re: [Scilab-users] operations on a DAG

2014-02-28 Thread sgougeon
Hello, Metanet might be your friend: http://atoms.scilab.org/toolboxes/metanet It should be available through the ATOMS module manager (open box icon in the console toolbar). Regards Samuel - Mail original - De: rasleendeol rasleend...@yahoo.com À: users@lists.scilab.org Envoyé:

Re: [Scilab-users] Using try and catch

2013-04-09 Thread sgougeon
- Mail original - De: laurent berger laurent.ber...@univ-lemans.fr Envoyé: Mardi 9 Avril 2013 17:30:08 .../... Scilab console is blocked.You have to used ctrlc C and abort. I do not understand why Thanks you for your help This may be connected to the bug

Re: [Scilab-users] declaration of uint8 matrix

2013-03-13 Thread sgougeon
Hello Stéphane, De: Stéphane Mottelet stephane.motte...@utc.fr Is it possible to declare a uint8 matrix without first declaring it as a double ? ../.. Yes, you can do: --ui = resize_matrix(uint8(0),5,3) ui = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 --typeof(ui) ans

Re: [Scilab-users] declaration of uint8 matrix

2013-03-13 Thread sgougeon
../.. Maybe would it be a good idea to extend the syntax of uint8 (and others) like ui=uint8(5,3) ? Yes, such a feature would be useful. IMO it would be better to rather extend zeros(), ones(), and eye() with an optional input parameter typeof (text): zeros(X, uint8) ones(m, n, p, int16) ...

Re: [Scilab-users] Array of struct

2013-03-01 Thread sgougeon
Maybe pts($+1) = temp is not the correct way to append the whole of the struct in an existing struct, but I haven't found a way to do this so far. Update: just realised that pts($+1,:) = temp. Is that the correct way to do it? //a : is actually needed, but here: pts($+1) = temp(:) Samuel

Re: [Scilab-users] Array of struct

2013-03-01 Thread sgougeon
//a : is actually needed, but here: pts($+1) = temp(:) Sorry amiege, i have forgotten clearing pts before issuing this command, and its result is not the expected one. By the way, what's the expected result? Do you wish a) to add temp(1:$) as a whole, as a _single_ new element of pts(), or b) to

Re: [Scilab-users] Array of struct

2013-03-01 Thread sgougeon
pts(s+1:s+st) = temp(:) // pts($+1:$+st) can't be used, even with parentheses ($+1):($+st) // but pts($+(1:st)) can! : pts = struct(); temp(1).partnumber = 1; temp(1).P = zeros(8,3); temp(1).C = zeros(96,5); temp(2).partnumber = 2; temp(2).C = zeros(96,5); temp(2).P = zeros(8,3); st =

Re: [Scilab-users] Array of struct

2013-03-01 Thread sgougeon
amiege wrote: I would prefer to have the whole of the struct temp to be pts($+1), so that pts(i) contains all the information related to the data file that has been parsed, so I think that's a). pts(i) would then be a struct which would match what temp is or was when it was constructed. I

Re: [Scilab-users] Array of struct

2013-02-28 Thread sgougeon
Hello, here is what i get with a similar example: --v=struct(b,%t,r,%pi,t,Hi) v = b: %t r: 3.1415927 t: Hi --w = struct(b,%f,r,%e,t,Hola) w = b: %f r: 2.7182818 t: Hola --v($+1)=w v = 2x1 struct array with fields: b r t --v(2) ans = b: %f r:

Re: [Scilab-users] Array of struct

2013-02-28 Thread sgougeon
De: Stanislav krote...@gmail.com Hi. The size function does not work with structures (see help). It does (despite it is not documented): on the example that i posted: --size(v) ans = 2.1. It works also on 2D-arrays of structures Samuel

Re: [Scilab-users] Plots on second Y axis

2013-02-08 Thread sgougeon
Hello, according to your needs, you may do either: plot2d() ax = gca(); ax.y_location = 'right'; or demo_gui() // then Graphics = 2D 3D = plotyy | plotyyy // and look at the code, using help newaxes // http://help.scilab.org/docs/5.4.0/en_US/newaxes.html Regards Samuel