Re: [Scilab-users] A plane intersecting a surface

2018-09-10 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Rafael Guerra > Envoyé : samedi 8 septembre 2018 14:52 > > If your cloud of points behaves well enough, you can interpolate it first > into a dense If nobody is expert in this field, then I could invoke a memory when I

Re: [Scilab-users] {EXT} xs2svg and complex grayplot: room for improvements?

2018-08-23 Thread Dang Ngoc Chan, Christophe
Hello, > De : antoine.monmayr...@laas.fr > Envoyé : mercredi 22 août 2018 15:19 > > In "he who must not be named"¹, the svg export is using a more pragmatic > approach: > everything is rendered as svg path/text/whatever, > except from the intensity maps (grayplots, surf, ...) > that are rendered

Re: [Scilab-users] {EXT} Re: Removing elements of one vector from another vector

2018-08-17 Thread Dang Ngoc Chan, Christophe
Hello, > De Izabela Wójcik-Grzaba > Envoyé : vendredi 17 août 2018 12:09 > > A=[0 0 0 0 0]' is the initial form of matrix > B=[10 15]' is the matrix of values > C=[2 4]' is the matrix of positions of the values from B in A, so the > resulting matrix A would look like: > A=[0 10 0 15 0]' This

Re: [Scilab-users] {EXT} Removing elements of one vector from another vector

2018-08-16 Thread Dang Ngoc Chan, Christophe
Hello, > De : Izabela Wójcik-Grzaba > Envoyé : jeudi 16 août 2018 16:56 > > Is there any simple way to remove from one vector elements > which are in another vector. For example: > a=[1 2 3 4 5 6 7 8] > b=[1 3 5] > resulting vector: c=[2 4 6 7 8]. You can try: // ** [nb, loc] =

Re: [Scilab-users] xmltopdf() broken : workaround ?

2018-08-02 Thread Dang Ngoc Chan, Christophe
Hello, > De : Samuel Gougeon > Envoyé : jeudi 2 août 2018 12:49 > > Does anyone know an external (free) tool to convert a set of > inter-hyperlinked HTML pages into a browsable PDF? You might try HTML to LaTeX

Re: [Scilab-users] {EXT} == and : relative priorities, as in 0==-1:1

2018-08-02 Thread Dang Ngoc Chan, Christophe
Hello, > De : De la part de Samuel Gougeon > Envoyé : mardi 31 juillet 2018 21:52 > > --> p = 0; p==-1:1 > […] > the expression is parsed (p==-1):1. > […] > what about inverting the comparisons > and ":" relative priorities, in order to parse p==(-1:1) ? I do agree with this. Regards --

Re: [Scilab-users] {EXT} Re: Function "locate" for 3d graphs

2018-06-15 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Stéphane > Mottelet > Envoyé : vendredi 15 juin 2018 08:49 > > Your 3D graphics is projected on 2D. How could you get points in 3D ? This is a common feature of the CAD softwares and I think I already saw this on some

Re: [Scilab-users] {EXT} Re: Empty matrix

2018-06-11 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Rafael Guerra > Envoyé : mardi 5 juin 2018 23:42 > > Fyi, the following reference on empty matrices algebra is extremelly good > [...] > Nett, C. N. and W. M. Haddad [1993] "A system-theoretic appropriate > realization

[Scilab-users] Empty matrix

2018-06-05 Thread Dang Ngoc Chan, Christophe
Hello, Thanks to the discussion started by Samuel and the document provided by Rafael (de Boor 1990) (see http://mailinglists.scilab.org/Scilab-users-Is-cond-0-or-1-bug-15579-td4037987.html ) I discovered this astonishing mathematical object: the empty matrix. Our only use of this in Scilab

Re: [Scilab-users] {EXT} Re: [SEP] [boolean integer_class] concatenations

2018-04-23 Thread Dang Ngoc Chan, Christophe
Hello Samuel, > De la part de Samuel Gougeon > Envoyé : dimanche 22 avril 2018 16:06 > > http://bugzilla.scilab.org/15534 [...] > --> [%f int8(-3)] > [...] > > No comments? Unfortunately, I don't have any use of this kind of mix between booleans and integers so my opinion would not help very

Re: [Scilab-users] {EXT} Re: n dimensional normal distribution

2018-03-19 Thread Dang Ngoc Chan, Christophe
Hello, > De : fujimoto2005 > Envoyé : lundi 19 mars 2018 13:15 > > " the product of the Qs for all your single component. " is a right answer > only when xis are independent. > I am looking for the function when they are not independent. I'm afraid I can't help further; Maybe if you can share a

Re: [Scilab-users] {EXT} n dimensional normal distribution

2018-03-19 Thread Dang Ngoc Chan, Christophe
Hello, > De : fujimoto2005 > Envoyé : dimanche 18 mars 2018 17:32 > > Let x1, x2, .., xn be an random variable of n dimensional normal distribution. > Is there any function that gives the probability of {x1> = k1}&{x2> = > k2}&...&{xn> = kn}? I'm not sure I understand well your need. You can

Re: [Scilab-users] Help me plot y = x^(1/3);

2018-03-09 Thread Dang Ngoc Chan, Christophe
Hello Hector, > De : Hector R. Lepez > Envoyé : vendredi 9 mars 2018 13:58 > > What does it mean to put a sign (x) * ?? You'll find some answers here: https://help.scilab.org/docs/6.0.1/en_US/sign.html https://help.scilab.org/docs/6.0.1/en_US/hat.html

Re: [Scilab-users] Antwort: Antwort: Re: Antwort: Re: Problem with solving this elegantly

2018-02-27 Thread Dang Ngoc Chan, Christophe
Hello Pascal, > De : Pascal Buehler > Envoyé : mardi 27 février 2018 14:00 > > So this is my attempt for the Mohrscher Spannungskreis. > > Please impruve the code. Well, first improvement would be to comment your code, especially if you want other people to read it :-) Apart from this, here are

Re: [Scilab-users] Antwort: Re: Problem with solving this elegantly

2018-02-27 Thread Dang Ngoc Chan, Christophe
Hello, > De : Pascal Buehler > Envoyé : mardi 27 février 2018 11:42 > > when i do it with my pencil, i get to the real values directly There is no "real" value as they are defined up to a factor. [0.4472136 ; 0.8944272] is as correct as [2 ; 4], [0.5 ; 1] ou [π ; 2π]. Scilab performs numerical

Re: [Scilab-users] {EXT} Antwort: Re: [EXTERNAL] Problem with solving this elegantly

2018-02-27 Thread Dang Ngoc Chan, Christophe
Hello, > De : Pascal Buehler > Envoyé : mardi 27 février 2018 11:20 > > Now for lambda1, insert the number to the matrix, where sigmaxx =-1, sigmayy > =5 and tauxy=4 already known is, as a stress tensor > you will get two linear equation like > > -8*v1x+4*v1y=0 > 4*v1x-2*v1y=0 > > normaly an

Re: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome

2018-01-31 Thread Dang Ngoc Chan, Christophe
Hello, The following suggestions will probably not have a drastic influence (I don't see how it could be more vectorised) but his a little thing I see: > De : users [mailto:users-boun...@lists.scilab.org] De la part de Heinz > Nabielek > Envoyé : mercredi 31 janvier 2018 00:13 > >

Re: [Scilab-users] {EXT} string and excestr

2018-01-22 Thread Dang Ngoc Chan, Christophe
Hello Paul, > De la part de Carrico, Paul > Envoyé : lundi 22 janvier 2018 15:09 > > In the past, I used the following structure to develop my code on several > lines (until the release 5.5.2) ; > in the new one, the 3 dots do not work anymore. I also noticed some changes with the continuation

Re: [Scilab-users] {EXT} Find the points of intersection of two curves

2018-01-12 Thread Dang Ngoc Chan, Christophe
Hello Hermes, If I understand well,, the core of your question : > De : Hermes > Envoyé : vendredi 12 janvier 2018 10:47 > > How could I improve the accuracy of intersection points? Lies here: > s=LL(3,:)-LL(1,:); > ym=s(1:$-1).*s(2:$); > z=find(ym <= h); So you have 2 curves which y-values

Re: [Scilab-users] {EXT} Re: Floating-point relative accuracy – HELP

2017-12-15 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Samuel > Gougeon > Envoyé : jeudi 14 décembre 2017 23:15 > > > Le 14/12/2017 à 21:54, David Brant a écrit : > > > > Does the problem require the use of floating-point relative accuracy > > feature (%eps)? > Yes. The

Re: [Scilab-users] {EXT} Re: create submatrix

2017-11-16 Thread Dang Ngoc Chan, Christophe
Hello, > On 11/15/2017 9:42, Hermes wrote: > > Hola, > I have the following matrix > a = [1 2 3; 4 5 6] > and I want to select all columns except one. Another possibility : --> a = [1 2 3; 4 5 6] a = 1. 2. 3. 4. 5. 6. --> foo = a foo = 1. 2. 3. 4. 5. 6. -->

Re: [Scilab-users] {EXT} Weird things with the continuation dots

2017-11-09 Thread Dang Ngoc Chan, Christophe
Hello, For an unknown reason, I don't receive your messages Samuel, so I copy/paste from http://mailinglists.scilab.org > "*." is documented as well OK, I saw this but the "operator with no predefined meaning" puzzled me a bit ^_^ > Are you using a 6.0.0- pre-release? I tried with the 6.0.0

[Scilab-users] Weird things with the continuation dots

2017-11-09 Thread Dang Ngoc Chan, Christophe
Hello, When I used a script written for 5.4 with 6.0, I noticed some weird things with the continuation mark "..". E.g. in 5.4, "abc... def" was OK, it now gives an error ; I have to fix it with "abc"+... "def" Additionally, there should be a space after a * or a / ; *this is not

Re: [Scilab-users] {EXT} do not manage to show text labels along the x-axis

2017-10-04 Thread Dang Ngoc Chan, Christophe
Hello, > De : Heinz Nabielek > Envoyé : mercredi 4 octobre 2017 11:16 > > I do not manage to show text labels along the x-axis. Please try: // ** plot(1:np, p, "-d"); h=gca(); foo = h.x_ticks; foo(2) = (1:np)'; foo(3) = blood'; h.x_ticks=foo; // ** Explanation: gca()

Re: [Scilab-users] {EXT} Re: Scilab 6 problem with "Prettify"

2017-09-08 Thread Dang Ngoc Chan, Christophe
Hello, > De : Pierre Vuillemin > Envoyé : jeudi 7 septembre 2017 22:20 > > Or you may want to comment suspicious parts of your code until there is no > more error A very efficient way to isolate the error is to use dichotomy. Normally, the core of your script should consist in calling

Re: [Scilab-users] {EXT} Question

2017-09-07 Thread Dang Ngoc Chan, Christophe
Hello, > De : tonybuchi.oko...@yahoo.com > Envoyé : mercredi 6 septembre 2017 09:35 > > Please I wish to find out the advantages of scilab over MATLAB. A quick search in the mailing list with the keyword "matlab" should give you some answers, e.g.:

Re: [Scilab-users] {EXT} scilab2c toolbox query

2017-08-10 Thread Dang Ngoc Chan, Christophe
Hello, > De : Abhinav Dronamraju > Envoyé : jeudi 10 août 2017 08:53 > > if our output size depends on an element which is a part of matrix, what can > we do to assign the output size accordingly. I'm not sure I understand well your question, but maybe you should have a look at varagout

Re: [Scilab-users] {EXT} ugly code improvement (with vectorization)

2017-06-27 Thread Dang Ngoc Chan, Christophe
Hello Paul, > De : Carrico, Paul > Envoyé : mardi 27 juin 2017 09:06 > > - to capture the non-null values of each line from the 5th column - each row > can have different "length" > - the 4th column indicates how many values there're i.e the length > - Then to put this values in a vector

Re: [Scilab-users] {EXT} Handling of special characters like °

2017-05-29 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de JLan > Envoyé : samedi 27 mai 2017 10:21 > > Is there a good explanation for this behavior? [...] > > --> d=ascii('°') > d = > 194. 176. I've got the same behaviour here and I think this deserves a bug report.

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

2017-04-26 Thread Dang Ngoc Chan, Christophe
Hello, > De : sgoug...@free.fr > Envoyé : mercredi 26 avril 2017 17:42 > >Shall I declare a bug? > > No. It is already reported 3 times (at least), I checked in bugzilla but didn't find. I probably didn't use the right keywords ("input" didn't give accurate answers) > and already fixed (once,

Re: [Scilab-users] {EXT} stripchart?

2017-04-26 Thread Dang Ngoc Chan, Christophe
Hello > De : sho...@energetiq.com > Envoyé : mercredi 26 avril 2017 15:31 > > I would like to plot this data on a "stripchart" - to show only the (say) > latest 10 seconds of data, > with the plot scrolling to the left - new points added to the right, data > falls off the end on the left.

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

2017-03-28 Thread Dang Ngoc Chan, Christophe
Hello, Thanks for sharing. Just a general comment: > De : mathias_magdowski > Envoyé : mardi 28 mars 2017 09:52 > > while 1 >if distance>10 then > [...] >elseif distance<1 then >[... ] >else >// exit loop >break; >end > end I can admit

Re: [Scilab-users] {EXT} Re: add number arrays efficiently, how?

2017-03-24 Thread Dang Ngoc Chan, Christophe
Hello, > De : Rafael Guerra > Envoyé : vendredi 24 mars 2017 13:16 > > Your code only works if the input arrays are oriented similiarly (both > column or row vectors). > [...] > > SumArr = [ 1 2 3 ]; > toAdd = [ 7 8 9 10 ]' You can transform it to line vectors (or column vectors) with

Re: [Scilab-users] mixed data type matrix

2017-03-23 Thread Dang Ngoc Chan, Christophe
Hello, > De : fujimoto2005 > Envoyé : jeudi 23 mars 2017 09:55 > > I want to make the matrix whose the first column has the date value such as > 2007/5/1 which I can use it in Excel and whose second column has the > numerical value such as 0.12. Excel can convert dates to numbers, see e.g.

[Scilab-users] Some weirdies with 6.0.0

2017-03-21 Thread Dang Ngoc Chan, Christophe
Hello, I noticed some weird behaviours which are difficult to reproduce (6.0.0, Windows 7). E.g. I has two graphical windows opened and one of them did not refresh (clf()+plot() always gave me the first plot although I changed the variables). Or the console "refused to answer": any command

Re: [Scilab-users] {EXT} lcm() output type: how to avoid overflowing and get an actual result?

2017-03-15 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Samuel > Gougeon > Envoyé : mercredi 15 mars 2017 17:05 > > My (slight) preference would be to cast the result always into the decimal > class This sounds reasonable. But the result could also be converted to the format

Re: [Scilab-users] {EXT} Re: Matlab vs Scilab perf

2017-03-03 Thread Dang Ngoc Chan, Christophe
Hello again, > De : De la part de Dang Ngoc Chan, Christophe > Envoyé : vendredi 3 mars 2017 09:57 > > considering tooth_psi_angle(:, tooth) is a line vector Mmmm, quite a silly assertion (-: tooth_psi_angle(:, tooth) is necessarily a column vector, you just have to use th

Re: [Scilab-users] Matlab vs Scilab perf

2017-03-03 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Michael > Benguigui > Envoyé : jeudi 2 mars 2017 17:40 > > ROT_LCS_TCS =[-cos(tooth_psi_angle(i,tooth)) > -sin(tool.kappa)*sin(tooth_psi_angle(i,tooth)) - > cos(tool.kappa)*sin(tooth_psi_angle(i,tooth));

Re: [Scilab-users] {EXT} function with public variables possible?

2017-02-10 Thread Dang Ngoc Chan, Christophe
Hello, > De : Erhy > Envoyé : vendredi 10 février 2017 15:48 > > Is there a way to have all variables public? Do you mean something like who() ? https://help.scilab.org/docs/6.0.0/en_US/who.html Hope this helps Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail

Re: [Scilab-users] Simultaneous record and play sound with scilab

2017-01-30 Thread Dang Ngoc Chan, Christophe
Hello, > De : Pablo Fonovich > Envoyé : dimanche 29 janvier 2017 19:13 > > i wanted to know if its possible to play a sound and record an input > simultaneously with Scilab. I'm not sure that this fulfils your need, but you can use the savewave() function to generate a .wav file, then use any

Re: [Scilab-users] {EXT} Re: Non rectangular contour plot

2017-01-30 Thread Dang Ngoc Chan, Christophe
Hello again > De : De la part de Dang Ngoc Chan, Christophe > Envoyé : lundi 30 janvier 2017 16:36 > > [Determination of the convex hull with Jarvis walk] I just extracted the function and put it here: https://fr.wikipedia.org/wiki/Discussion:Marche_de_Jarvis#Programme_Scilab

Re: [Scilab-users] Non rectangular contour plot

2017-01-30 Thread Dang Ngoc Chan, Christophe
Hello, > De : Pinçon Bruno > Envoyé : lundi 30 janvier 2017 16:21 > > a possibility would be to compute > the convex-hull of the (x-y coordinates) interpolation points and > to test if each grid point is inside but I 'm not sure you can do > that immediatly with Scilab For your information, I

Re: [Scilab-users] Non rectangular contour plot

2017-01-30 Thread Dang Ngoc Chan, Christophe
Hello, > De : Max Rossi > Envoyé : lundi 30 janvier 2017 00:26 > > I'm trying to plot in Scilab the surface error of different non rectangular > panels (see attachments). > [...] > When the panel is not rectangular or circular I'm in trouble assigning %nan > to points > that are inside the grid

Re: [Scilab-users] {EXT} Re: Using lsqrsolve with a certain kind of function

2017-01-04 Thread Dang Ngoc Chan, Christophe
Hello, > De : Viktor Goryainov > Envoyé : mardi 3 janvier 2017 22:54 > > So what am I doing wrong? Unfortunately I never used lsqrsolve but I used leastsq. The two functions should do the same thing (i.e. least square regression) but the syntax is very different. Nevertheless, in the help page

Re: [Scilab-users] Using lsqrsolve with a certain kind of function

2017-01-03 Thread Dang Ngoc Chan, Christophe
Hello, Happy new year to everyone and : > De : Viktor Goryainov > Envoyé : vendredi 23 décembre 2016 22:51 > > s = vr3(C_inh); In the former messages, vr3 needed two arguments: >> De : Viktor Goryainov >> Envoyé : mercredi 21 décembre 2016 16:43 >> >> function r = vr3(C, mu) so I'm a bit

Re: [Scilab-users] {EXT} Using lsqrsolve with a certain kind of function

2016-12-22 Thread Dang Ngoc Chan, Christophe
Hello, > De : Viktor Goryainov > Envoyé : mercredi 21 décembre 2016 16:43 > > I have a function that takes tabulated values from several arrays (a_w15, > b_w15, etc.) and thus returns a vector: > [...] > Now I need to [...] generate a vector I'm not sure I understand well your problem with

Re: [Scilab-users] {EXT} Re: uicontrol & wiki

2016-12-22 Thread Dang Ngoc Chan, Christophe
Hello, > De : De la part de Samuel Gougeon > Envoyé : mardi 20 décembre 2016 22:25 > >> Le 20/12/2016 21:45, paul.carr...@free.fr a écrit : >> >> (https://fr.wikibooks.org/wiki/Découvrir_Scilab/Créer_une_interface_graphique_GUI >> - in French language). > > In the callback, the instruction > x =

Re: [Scilab-users] {EXT} tweaking the appearance of error bars created by errbar()

2016-12-16 Thread Dang Ngoc Chan, Christophe
Oups, too fast: > De : Dang Ngoc Chan, Christophe > Envoyé : vendredi 16 décembre 2016 15:46 > > For the mark_style and segs_color, see Better have a look at https://help.scilab.org/docs/6.0.0/en_US/segs_properties.html to change the colour, you can use something like n

Re: [Scilab-users] {EXT} tweaking the appearance of error bars created by errbar()

2016-12-16 Thread Dang Ngoc Chan, Christophe
Hello, > De : christophk > Envoyé : vendredi 16 décembre 2016 15:25 > > how do I change the appearance of error bars that are created with the > errbar() command? --> errbar() --> h=gce() h = Handle of type "Segs" with properties: == parent: Axes children:

Re: [Scilab-users] {EXT} image area mask for applying for filter

2016-12-12 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Erhy > Envoyé : samedi 10 décembre 2016 21:34 > > My interest ist to image processing. > Are there tools to mask an area of an image, that a filter is only applied > for the masked area? Tools for image processing are in

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

2016-11-25 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Rafael Guerra > Envoyé : vendredi 25 novembre 2016 15:32 > > function []=plotxbreaks(x0, y0, dx_break); > […] > endfunction Rafael, your solution is really nice. Nevertheless, I would like to understand why I have these

Re: [Scilab-users] {EXT} Re: Axis break with Scilab ?

2016-11-25 Thread Dang Ngoc Chan, Christophe
Hem, > De : Dang Ngoc Chan, Christophe > Envoyé : vendredi 25 novembre 2016 17:13 > > The following code is somewhat better: Forget it: depends on the break that is set, and the X-scales are different from left to right. -- Christophe Dang Ngoc Chan Mechanical calculation engineer

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

2016-11-25 Thread Dang Ngoc Chan, Christophe
Hello, So, I spotted one error, and I now understand the arect parameter for xsetech(). The following code is somewhat better: at least the x-axes are well placed at the bottom. Unfortunatelly, the y-axis is still misplaced. function []=break_axis(X, Y, minbreakX, maxbreakX, breaksize) //

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

2016-11-23 Thread Dang Ngoc Chan, Christophe
Hello, > De : sgoug...@free.fr > Envoyé : mardi 22 novembre 2016 17:18 > > IMO this is quite embarrassing (not from a technical point of view, but from > a reader one The example provided is excessive, but making *one* shortcut on *one* axis is a rightful request. It is even considered good

Re: [Scilab-users] {EXT} Re: moving axis ticks around orthogonally to their axes?

2016-11-18 Thread Dang Ngoc Chan, Christophe
Hello, > De : christophk > Envoyé : jeudi 17 novembre 2016 20:53 > > that was my first guess too, but it doesn't work because drawaxis does not > have a "thickness" parameter, see: Right, I didn't catch this. Maybe you could try by.parent.thickness=1.5 ("a" might not be the correct handle?)

Re: [Scilab-users] moving axis ticks around orthogonally to their axes?

2016-11-17 Thread Dang Ngoc Chan, Christophe
Hello, > De : christophk > Envoyé : mercredi 16 novembre 2016 19:42 > > I tried to change the parent line thickness (see last line in the example) > but my drawaxes were not affected by this. > [...] > a=get("current_axes"); > [...] >

Re: [Scilab-users] {EXT} moving axis ticks around orthogonally to their axes?

2016-11-16 Thread Dang Ngoc Chan, Christophe
Hello, > De : christophk > Envoyé : mardi 15 novembre 2016 23:44 > > I couldn't find a property of "current_axes" that allows me to move the axis > ticks out of the graph again. You may have a look at: https://help.scilab.org/docs/6.0.0/en_US/axis_properties.html especially the tics_direction

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

2016-11-15 Thread Dang Ngoc Chan, Christophe
Hello, > De la part de n.gulunay > Envoyé : lundi 14 novembre 2016 21:38 > >> From: "n.gulunay" >> Date: 11/12/16 8:14 AM (GMT-06:00) >> >> Why doesnt scilab have option of coding scatter type input ( that is x,y and >> z all are vectors of the same size ) >> for all these

Re: [Scilab-users] {EXT} Re: finding reasonable axis markers for plotting a random data set

2016-11-14 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de christophk > Envoyé : lundi 14 novembre 2016 14:15 > > Or perhaps I'm not getting your idea No, you're right, I was a bit optimistic. Nevertheless, I think you could get something from: - estimating the step size on the

Re: [Scilab-users] {EXT} Plotting graphs

2016-11-14 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Samuel > Gougeon > Envoyé : vendredi 11 novembre 2016 14:08 > >> How about plotting all this on a single graph, sir? > > A single plot(..) instruction does it, as indicatedby Christophe. Didn't you > try at least before

Re: [Scilab-users] {EXT} Re: finding reasonable axis markers for plotting a random data set

2016-11-14 Thread Dang Ngoc Chan, Christophe
Hello again, > Nov 10, 2016; 8:58pm > christophk > Any feedback on how improve it or replace it with existing Scilab features > are more than welcome. > testcode.sci As I understand it, you want to do what Scilab automatically does,

Re: [Scilab-users] {EXT} Plotting graphs

2016-11-10 Thread Dang Ngoc Chan, Christophe
To answer more precisely to your question: > If x is a vector and y a matrix plot(x,y) plots each columns of y versus > vector x. If M is the matrix, and the X column is the n-th one, then: -- X = M(:, n); // select the n-th column Y = M; Y(:, n) = []; // remove the n-th column from

Re: [Scilab-users] {EXT} Plotting graphs

2016-11-10 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Godson Moses > Envoyé : jeudi 10 novembre 2016 14:50 > > Plse how can one plot a single column by every other column in a matrix? > And that on a single screen. https://help.scilab.org/docs/6.0.0/en_US/plot.html

Re: [Scilab-users] {EXT} help on timer function

2016-11-10 Thread Dang Ngoc Chan, Christophe
Hello, I have a limited understanding about these topics, but here are a few things I know or guess: > De : users [mailto:users-boun...@lists.scilab.org] De la part de Osvaldo > Sergio Farhat de Carvalho > Envoyé : jeudi 10 novembre 2016 11:57 > > 1) timer() measures vary each time you run a

Re: [Scilab-users] {EXT} Plotting graphs

2016-11-08 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Godson Moses > Envoyé : mardi 8 novembre 2016 07:06 > > Please with a data set in Excel sheet > how do I export it to Scilab > and also select the columns and row I want to plot > neglecting the others. The best is to

Re: [Scilab-users] {EXT} Re: determining the amount of excelsheets in an xls(mlist)-variable

2016-11-04 Thread Dang Ngoc Chan, Christophe
Hello, > De la part de christophk > Envoyé : vendredi 4 novembre 2016 09:48 > > I just got confused because the "sheets" variable seems to be identical to > it's field name "sheets" in the example: > [...] > Perhaps it would be wise to use another variable name in the Scilab help > example

Re: [Scilab-users] {EXT} Re: horner test

2016-10-28 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Rafael Guerra > Envoyé : jeudi 27 octobre 2016 20:23 > > (note: votre message n'a pas été publié) > […] > function f = fmodel(a,x) > f = exp(a(1) + a(2)*x + a(3)*x.^a(4)); > endfunction > > function f = costfun(a,x,y)

[Scilab-users] TR: Peaks and valleys [was: Forum dedicated to Scilab developments -> practical concern]

2016-10-07 Thread Dang Ngoc Chan, Christophe
Small error > De : Dang Ngoc Chan, Christophe > Envoyé : vendredi 7 octobre 2016 10:50 > > band = (sign(Ysecond (1:$-1)).*sign(Ysecond (2:$))==1) It's of course minus one band = (sign(Ysecond (1:$-1)).*sign(Ysecond (2:$))==-1) Regards -- Christophe Dang Ngoc Chan Mechanical

Re: [Scilab-users] Peaks and valleys [was: Forum dedicated to Scilab developments -> practical concern]

2016-10-07 Thread Dang Ngoc Chan, Christophe
Hello, > De : paul.carr...@free.fr > Envoyé : jeudi 6 octobre 2016 12:32 > > thanks for the information and the link I updated the source code on the following page https://commons.wikimedia.org/wiki/File:Savitzky-golay_pic_gaussien_bruite.svg (vectorised, faster). Concerning the use of the

[Scilab-users] Peaks and valleys [was: Forum dedicated to Scilab developments -> practical concern]

2016-10-06 Thread Dang Ngoc Chan, Christophe
Hello, > De : paul.carr...@free.fr > Envoyé : mercredi 5 octobre 2016 21:56 > > In attachment is typically a project I'm working on : > determination of peaks and valley on a noisy signal; > Trying to avoid reinventing the wheel, > I had a look on information's and algorithms on internet >

Re: [Scilab-users] is vectorization possible

2016-09-27 Thread Dang Ngoc Chan, Christophe
Hello, > De : paul.carr...@free.fr > Envoyé : mardi 27 septembre 2016 09:08 > > for i = 1 : n > tmp(i,1) = sum(a( [1 + (i-1)*w : i*w],:)); > end So you want to sum on a window which width is w, isn't it? Not full vectorization, but you might loop on w (=5) instead of n (=20), something

Re: [Scilab-users] {EXT} Re: is vectorization possible

2016-09-27 Thread Dang Ngoc Chan, Christophe
Hello, > De : paul.carr...@free.fr > Envoyé : mardi 27 septembre 2016 10:27 > > It works now To have it complete, my solution, once debugged, is twice slower than the vectorised solution (but faster than the initial loop) tic() indices0 = 0:w:(k-1); tmp3 = zeros(n,1); for i = 1 : w indices

Re: [Scilab-users] {EXT} Re: Functions lib

2016-09-26 Thread Dang Ngoc Chan, Christophe
Hello, > De : sgoug...@free.fr > Envoyé : vendredi 23 septembre 2016 17:30 > > IMO, as already mentionned on this forum, lib() looks almost useless. > [...] > Yes, "help lib" is outdated. > "help genlib" actually speaks about the "lib" file: Thanks for the clarification. Regards -- Christophe

Re: [Scilab-users] {EXT} Re: Functions lib

2016-09-23 Thread 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, this is required for Scilab 5, and no longer for Scilab 6. > [...] >

Re: [Scilab-users] {EXT} Re: Functions lib

2016-09-22 Thread Dang Ngoc Chan, Christophe
Hello, > De : Gerhard Kreuzer > Envoyé : jeudi 22 septembre 2016 09:03 > >> Von: Samuel GOUGEON >> Gesendet: Donnerstag, 22. September 2016 08:27 >> >> You may >> […] >> Then for each new Scilab session, the functions of your library with be >> available from anywhere in the session. There is

Re: [Scilab-users] {EXT} create random values between [-1,1]

2016-06-10 Thread Dang Ngoc Chan, Christophe
Hello, > De : De la part de Dang Ngoc Chan, Christophe > Envoyé : vendredi 10 juin 2016 15:38 > > AFAIK, the sum of two random values following a normal Reading the other contributions, I realised I misread the code. However, I can't imagine a production process (milling, lat

Re: [Scilab-users] {EXT} create random values between [-1,1]

2016-06-10 Thread Dang Ngoc Chan, Christophe
Hello, > De la part de Carrico, Paul > À : International users mailing list for Scilab. (users@lists.scilab.org) > > >In order to simulate dimensional tolerances in +/-, > I'm using the following workaround : > n = 100; > a = rand(n,1) - rand(n,1); AFAIK, the sum of two

Re: [Scilab-users] {EXT} csvread different separator

2016-05-24 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de Florian > Winter > Envoyé : lundi 23 mai 2016 23:15 > > It is a rather large file so I wanted to use the csvread function > [...] > It looks like this: > > 1 2 3 4 5 6 7 8 You can try: a = csvRead("foo.csv", " ")

Re: [Scilab-users] {EXT} Set axes limit for plot

2016-04-28 Thread Dang Ngoc Chan, Christophe
Hello, > De : Shamika Mohanan > Envoyé : jeudi 28 avril 2016 08:19 > > How do I set the minimum and maximum values for the axes in a plot? > When I use the plot command as > plot(x1,y1,x2,y2) > [...] How do I set the axis from 25 to 100 for both x and y axes? You should try : plot(x1,y1,x2,y2)

Re: [Scilab-users] {EXT} Set axes limit for plot

2016-04-28 Thread Dang Ngoc Chan, Christophe
I forgot: you should also add : h.tight_limits=["on","on"]; Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the

Re: [Scilab-users] Scilab 6.0.0 Beta crashed by input()

2016-02-19 Thread Dang Ngoc Chan, Christophe
Hello, > De : Antoine MonmayrantEnvoyé : vendredi 19 février 2016 09:14 > Objet : Re: [Scilab-users] Scilab 6.0.0 Beta crashed by input() > > Did you try it with the 6.0.0 beta and not the alpha? Nope, I was not up-to-date. I downloaded the beta, and it also crashed for me. -- Christophe Dang

Re: [Scilab-users] Scilab 6.0.0 Beta crashed by input()

2016-02-18 Thread Dang Ngoc Chan, Christophe
Hello, De Antoine Monmayrant Envoyé : jeudi 18 février 2016 08:47 > Le 02/17/2016 05:10 PM, JLan a écrit : > > > Is this just on my machine? > > a=input('How can this line cause Scilab 6.0.0 Beta to crash when > > pressing enter?:'); > > > >Result in error message: > > Saddly, no! > > I just

Re: [Scilab-users] Logical zero

2016-02-01 Thread Dang Ngoc Chan, Christophe
Hello, > De : Jan-Åge Langeland > Envoyé : lundi 1 février 2016 14:41 > > I ran a little speed test with the different alternatives, I found the > results surprising: These kind of tests are of course interesting, but I'm always suspicious because of the buffering. -- Christophe Dang Ngoc

Re: [Scilab-users] 'fsolver'

2016-01-27 Thread Dang Ngoc Chan, Christophe
Hello, > De : fujimoto2005 > Envoyé : mercredi 27 janvier 2016 15:24 > > if f(x)=0 has multiple solutions and I want to get the smallest solution, is > there any way to get a such solution by 'fsolver'? > In my actual problem, 'fsolver' give the largest solution. I'm afraid the solution you

Re: [Scilab-users] 'fsolver'

2016-01-27 Thread Dang Ngoc Chan, Christophe
Of course, read "guess" instead of "guest" (-: -- Christophe Dang Ngoc Chan Mechanical calculation engineer -Message d'origine- De : Dang Ngoc Chan, Christophe Envoyé : mercredi 27 janvier 2016 16:00 À : 'Users mailing list for Scilab' <users@lists.scilab.org>

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

2016-01-11 Thread Dang Ngoc Chan, Christophe
Hello, > De la part de animeshbaranawal > Envoyé : dimanche 10 janvier 2016 16:53 > > I have a function which has variable output arguments (using varargout). > Now, I want to access the nth output argument of the function > [...] > Is there a method in scilab to do this? Reading the help page

Re: [Scilab-users] Running external program

2015-12-03 Thread Dang Ngoc Chan, Christophe
Hello, > De : Lester Anderson > Envoyé : jeudi 3 décembre 2015 16:56 > > dos('grdinfo FAA.grd -C | gawk "{nx=$10; ny=$11}; {print nx, ny}" > > nxy.txt','-echo') > !--error 3 Waiting for right parenthesis. In some cases, you need to use two quotes to tell that

<    1   2