Re: [Scilab-users] {EXT} Re: Export plot from figure with uicontrols

2019-02-28 Thread Dang Ngoc Chan, Christophe
Hello, Concerning the following point (which is not related to Scilab): > I couldn't manage to make it compatible with, for instance, Word. > My solution has been to save the figure as svg (a vectorized format), > then open it with GIMP You'd better open the SVG with Inkscape (also free) then sa

Re: [Scilab-users] {EXT} Re: Export plot from figure with uicontrols

2019-03-01 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de > Federico Miyara Envoyé : vendredi 1 mars 2019 04:20 > > Do you mean that the EMF produced by Inkscape is really compatible with Word? I do. I regularly produce sketches with Inkscape and export them as .emf to include th

Re: [Scilab-users] {EXT} creating nice svg-files

2019-03-01 Thread Dang Ngoc Chan, Christophe
Hello, > De : users [mailto:users-boun...@lists.scilab.org] De la part de P M > Envoyé : jeudi 28 février 2019 20:06 > > When I export the plot with xs2svg some thin black lines appear within the > regions. > This can be seen when I open the svg with inkscape. > [...] Any idea how to avoid these

Re: [Scilab-users] Sprintf and Italic font.

2019-03-18 Thread Dang Ngoc Chan, Christophe
Hello Marcus, > De : Marcus Vinicius Pereira de Souza > Envoyé : lundi 18 mars 2019 01:56 > > I am generating a graphic > and would like some information in the title to be in italics. > […] > title(sprintf('y(t) = -%0.2f exp(-0.5t)\ + %0.2f cos(4t)\ + %0.2f sin(4t) > ',kp1,kp1,kp2)) The online

Re: [Scilab-users] {EXT} Can you suggest a more efficient procedure for generating random variables?

2019-03-18 Thread Dang Ngoc Chan, Christophe
Hello Heinz, > De : Heinz Nabielek > Envoyé : dimanche 17 mars 2019 23:50 > > I need to generate random deviates x according to a given cumulative > distribution y that is available only in tabular form. > [...] > for i=1:N; > x=[x find(y>z(i),1)]; > end; > > y is a previously defined table with v

Re: [Scilab-users] {EXT} Can you suggest a more efficient procedure for generating random variables?

2019-03-18 Thread Dang Ngoc Chan, Christophe
Hello, > De : Heinz Nabielek [mailto:heinznabie...@me.com] > Envoyé : lundi 18 mars 2019 11:07 > > I had never heard of dsearch* before.. Neither did I :-D I just couldn't imagine such a feature didn't exist so I looked at the neighbouring "Search and sort" functions in the help online page

Re: [Scilab-users] {EXT} Re: Can you suggest a more efficient procedure for generating random variables?

2019-03-19 Thread Dang Ngoc Chan, Christophe
Hello, > De Federico Miyara > Envoyé : lundi 18 mars 2019 19:24 > > As you don't know the inverse for any value different from the tabulated > ones, you just interpolate: > > x1 = interp(y, x, y1); If you considere that the probability distribution function is continuous, yes, that's a very good

Re: [Scilab-users] {EXT} Re: Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report?

2019-03-21 Thread Dang Ngoc Chan, Christophe
Dear Farmiani > De : farimani > Envoyé : jeudi 21 mars 2019 09:56 > > Like it or not Well like it or not, I can't figure an editor without an official mailing list, which is the present one for Scilab. This is far different from languages that have several implementations and where users are not

Re: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report?

2019-03-27 Thread Dang Ngoc Chan, Christophe
Hello, > De : Stéphane Mottelet > Envoyé : mercredi 27 mars 2019 08:27 > > on StackOverflow I see messages of newcomers who > don't even know the existence of an official mailing list. > I think we should fix this. But how ? The information is already present at the bottom of the welcome page o

Re: [Scilab-users] {EXT} An error occurred during export: Unable to create export file, not enough memory. Decreasing the number of elements or the size of the figure should fix this error

2019-04-11 Thread Dang Ngoc Chan, Christophe
Hello Heinz, > De : Heinz Nabielek > Envoyé : mercredi 10 avril 2019 20:08 > > High quality graphs can be created when exporting to pdf. However, with my > 155,000 data points, I end up with an error message: > > "An error occurred during export: Unable to create export file, not enough > memory.

Re: [Scilab-users] Scilab-users] v6.0.2 jpeg export problem - again

2019-04-12 Thread Dang Ngoc Chan, Christophe
Hello Marko, > De : users [mailto:users-boun...@lists.scilab.org] De la part de marko > Envoyé : jeudi 11 avril 2019 20:34 > > Well, I'm certainly a newbie here. One thing I cannot seem to correct is that > graphic window / export / jpg always fails to produce an acceptable image. > As it has been

Re: [Scilab-users] {EXT} Re: Scilab-users] v6.0.2 jpeg export problem - again

2019-04-12 Thread Dang Ngoc Chan, Christophe
Hello Samuel, Thanks for the details. > De : Samuel Gougeon > Envoyé : vendredi 12 avril 2019 11:20 > > PS : Please don't expect improvements from anyone else than the > community, that's to say yourself or your ability to find, convince > and enrole contributors around you or with you able and r

Re: [Scilab-users] {EXT} Re: ?==?utf-8?q? SciNotes and printf("...\n")

2019-04-14 Thread Dang Ngoc Chan, Christophe
Hello, > De : Antoine Monmayrant > Envoyé : vendredi 12 avril 2019 19:39 > > > Le Vendredi, Avril 12, 2019 11:47 CEST, P M a > > écrit: > > > > what is the reason that SciNotes changes the colour from > > > > printf(".\n"); > > > > to > > > > printf("...\n"); > > What occurs is that scinotes inte

Re: [Scilab-users] {EXT} Sgrayplot/champ for non-regular grids

2019-04-16 Thread Dang Ngoc Chan, Christophe
Hello Philippe, > De : philippe > Envoyé : mardi 16 avril 2019 15:32 > > I realized that scilab function "Sgrayplot" (and other 2D plotting functions > like > "champ") only accept "regular grids > [...] > but I need to do this for Z,Vx,Vy corresponding to a non-regular > [...] > Can someone provi

Re: [Scilab-users] Sgrayplot/champ for non-regular grids

2019-04-17 Thread Dang Ngoc Chan, Christophe
Hello Philippe, > Apr 16, 2019; 7:45pm Philippe Roux > > but is there an easy > way to convert meshgrid output to a triangulation? For this, you might try the Delaunay triangulation. You can find it in the CGLAB Atoms module https://www.scilab.org/tutorials/introduction-model-reduction https:/

Re: [Scilab-users] {EXT} Finite Element Analysis

2019-05-09 Thread Dang Ngoc Chan, Christophe
Hello Samuel, > De : Samuel Enibe > Envoyé : mercredi 8 mai 2019 18:37 > > May I request to know if there are specific tools in SCILAB for finite > element analysis. Please have a look at: https://wiki.scilab.org/Finite%20Elements%20in%20Scilab Best regards -- Christophe Dang Ngoc Chan Mechan

Re: [Scilab-users] {EXT} unexpected result

2019-05-23 Thread Dang Ngoc Chan, Christophe
Hello Paul, > De : Carrico, Paul > Envoyé : mercredi 22 mai 2019 09:51 > > In the following code, > I was thinking that the provided index was the one on the “global” > matrix, but I was wrong ☺ […] > a2 = find(B(i-1:$,1) < 1); disp(a2); I would have made the same mistake (-: Now if we look at t

Re: [Scilab-users] [EXTERNAL] Re: {EXT} unexpected result

2019-05-23 Thread Dang Ngoc Chan, Christophe
Hello, > De : Carrico, Paul > Envoyé : jeudi 23 mai 2019 09:21 > > I share your suggestion in adding an example in the doc to prevent Scilab > users, but the question is "where" ? I suggest the "Scilab Help >> Elementary Functions > extraction" page. Regards -- Christophe Dang Ngoc Chan Mechani

Re: [Scilab-users] {EXT} How to count pixels

2019-06-03 Thread Dang Ngoc Chan, Christophe
Hello, > De : Jean-Philippe Grivet > Envoyé : lundi 3 juin 2019 12:08 > > Using Scilab (6.02/Win7), I have drawn a picure made up of thick lines and > arcs, within a region with irregular borders. What is the data structure of your picture? A matrix of dots? A Scilab figure containing polylines?

Re: [Scilab-users] cancelling a loop by key pressing

2019-06-07 Thread Dang Ngoc Chan, Christophe
Hello, > De : P M > Envoyé : jeudi 6 juin 2019 21:30 > > Question: > Is it possible to have a function within the loop to check if a specific key > is pressed? I don't know about a keystroke but you may use a mouse click. https://help.scilab.org/docs/6.0.2/en_US/xclick.html Regards -- Christo

Re: [Scilab-users] cancelling a loop by key pressing

2019-06-07 Thread Dang Ngoc Chan, Christophe
Correction: the function name is misleading, the xclick() function also takes keystroke into account. Regards > -Message d'origine- > De : users [mailto:users-boun...@lists.scilab.org] De la part de Dang Ngoc > Chan, Christophe > Envoyé : vendredi 7 juin 2019 09:06 &g

Re: [Scilab-users] {EXT} Re: [EXTERNAL] Re: gamma function overloading

2019-08-09 Thread Dang Ngoc Chan, Christophe
Hello Paul, > De : Carrico, Paul > Envoyé : vendredi 9 août 2019 13:36 > > What I'm doing wrong? > > function r=%s_gamma_user(a) > r = gamma(a); > endfunction > > A = complex(4,4) > gamma_A = gamma(A > > Limite de récursion atteinte (1000). You're calling recursively gamma without an end cond

Re: [Scilab-users] Generating a boolean vector or matrix

2019-09-04 Thread Dang Ngoc Chan, Christophe
Hello, > De : Federico Miyara > Envoyé : mercredi 4 septembre 2019 09:11 > > I need to create a boolean vector, such as [%t, %t, %t, %t] […] I > couldn't find a function similar to ones(1,n). > > However I've found a workaround: > > a = ones(1,n) & %t > […] > 1) Why does it work? Because "A numbe

Re: [Scilab-users] {EXT} help for specific plot

2019-09-10 Thread Dang Ngoc Chan, Christophe
Hello, > De : Vesela Pasheva > > I am dealing with a closed planar contour, presented in a struct > PS.x,[],PS.y,[] > with m points. The contour is closed, so m+1 point coincides with the first. > Parallel to this I have a quantity TS (temperature) as an array which elements > correspond to the p

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

2019-09-12 Thread Dang Ngoc Chan, Christophe
Hello, > De la part de Stéphane Mottelet > Envoyé : jeudi 12 septembre 2019 10:26 > > I now have a real rationale to promote a change in > the way complex numbers with small imaginary part are displayed. I agree with you. I would add another advantage: the user is not always aware that the resul

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

2019-09-13 Thread Dang Ngoc Chan, Christophe
Hello, > De : Stéphane Mottelet > Envoyé : vendredi 13 septembre 2019 14:23 > > I think that we do agree about the fact that the actual Scilab display > [...] > --> x(8) > ans = > > 1.7 > --> x(8)-1.7 > ans = > > 2.220D-16 > is pretty but not correct/homogeneous/honest I don't agree about t

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

2019-09-13 Thread Dang Ngoc Chan, Christophe
Hello, > De : Stéphane Mottelet > Envoyé : vendredi 13 septembre 2019 15:22 > > 1.7 cannot be stored exactly in IEEE754 Yes, but there is an "infinite" amount of decimal numbers that cannot be stored exactly in IEEE754. -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e

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

2019-09-16 Thread Dang Ngoc Chan, Christophe
Hello, > De : Stéphane Mottelet > Envoyé : vendredi 13 septembre 2019 17:57 > > > > --> x=(1:0.1:2); bitstring(x(8)), bitstring(1.7) > > ans = > > > > 00111011001100110011001100110011001100110011001100110100 > > > > ans = > > > > 0011101100110011001100110011001100110011001100

Re: [Scilab-users] Evaluating a polynomial on a square matrix

2019-09-24 Thread Dang Ngoc Chan, Christophe
Hello Frederico, > De : Federico Miyara > Envoyé : mardi 24 septembre 2019 00:25 > > Is there some way of evaluating a polynomial on a square matrix in a > matrix-wise (not component-wise) fashion? You can transform your polynomial into a usual external function Then apply it to a matrix. e.g.

Re: [Scilab-users] Evaluating a polynomial on a square matrix

2019-09-24 Thread Dang Ngoc Chan, Christophe
I'm aware that this is an inefficient way to compute the result but unfortunately, the Horner form of polynomial does not work on matrices: (A + 2)*A is not the same as A*A + 2*A for Scilab. It is possible to write a better function manually, by first calculating the successive powers before appl

Re: [Scilab-users] Evaluating a polynomial on a square matrix

2019-09-24 Thread Dang Ngoc Chan, Christophe
Hi, I've got some time this morning (-: so this one seems to work and should be a bit more efficient: // ** P = %s^2 + 2*%s + 3 C = coeff(P) n = size(C, "c") if n > 1 then stringP = "X1 = x; " for i = 3:n stringP = stringP+"X"+string(i-1)+" = X"+string(i-2)+"*x; "

Re: [Scilab-users] {EXT} Re: Evaluating a polynomial on a square matrix

2019-09-24 Thread Dang Ngoc Chan, Christophe
Hello, > De : Federico Miyara > Envoyé : mardi 24 septembre 2019 17:09 > > Stéphane, > Thanks, this is great Indeed, my own solution proves to be poor because the conversion to a string causes a drastic truncation. A quick example with something like P = poly(0.01:0.01:1, "s") shows a great di

Re: [Scilab-users] {EXT} Re: Deletion of console content

2019-09-26 Thread Dang Ngoc Chan, Christophe
Hello, > De : Federico Miyara > Envoyé : mercredi 25 septembre 2019 17:43 > > Regarding the previous versions of a script, I'm not quite sure. > [...] > If, on the contrary, the aim is to prevent other users of the same > computer to spy on your work, there is no guarantee either that parts of th

Re: [Scilab-users] grand in loop

2019-09-30 Thread Dang Ngoc Chan, Christophe
Hello, > De : jbaudais > Envoyé : lundi 30 septembre 2019 10:21 > > I have an incomprehensible problem with the following line code in the Scilab > window > > > for i=1:2000, mprintf("%d\r",i);grand(1,100,"exp",1); end > > It prints nothing after i=1859 but continues to run I have the same pr

Re: [Scilab-users] {EXT} Re: grand in loop

2019-09-30 Thread Dang Ngoc Chan, Christophe
Hello > De : Stéphane > Mottelet > Envoyé : lundi 30 septembre 2019 10:48 > > Can you test without the mprintf ? I personally tested with disp(i) (the display was more convenient for me). Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-mail may contain con

Re: [Scilab-users] {EXT} Error in messagebox - Part of the image is truncated

2019-10-11 Thread Dang Ngoc Chan, Christophe
Hello, > De : Perrichon > Envoyé : vendredi 11 octobre 2019 09:20 > > When displaying a messagebox, part of the image « warning » or « info » for > example is truncated. > I use W10 with Scilab 5.5.2 x64 > [...] > message=msprintf("... OptSim window not found !") > messagebox(message, "Save Optsi

Re: [Scilab-users] {EXT} Curves color when plotting

2019-10-21 Thread Dang Ngoc Chan, Christophe
Hello Pierre, > De : Perrichon > Envoyé : lundi 21 octobre 2019 12:05 > > Generally, when plotting, curves's color are taken in the range color > [1 3 5 7 9 11 13 15 [...] Is there a general way to modify this vector > as to get another one with blue as first curve. You might consider redefining

Re: [Scilab-users] {EXT} how to faster EVSTR?

2019-10-21 Thread Dang Ngoc Chan, Christophe
Hello, > De : anna78 > Envoyé : lundi 21 octobre 2019 16:02 > > test_number=evstr(test_str) > > It looks like working but it takes a not acceptable time... > > Do you have a more clever idea? You might try strtod() Generally, the evaluation or execution of strings should be avoided because one c

Re: [Scilab-users] {EXT} strange behaviof of function isreal

2019-11-13 Thread Dang Ngoc Chan, Christophe
Hello, > De : De la part de Jean-Philippe Grivet > Envoyé : mercredi 13 novembre 2019 10:50 > > --> z = [1,2,3*%i] > z = > 1. 2. 3.i > --> isreal(z(1)) > ans = >F > What did I miss ? Rhank you for your help. https://help.scilab.org/docs/6.0.2/en_US/brackets.html "In some limits

Re: [Scilab-users] {EXT} Query

2019-11-13 Thread Dang Ngoc Chan, Christophe
Hello, > De : Ral Okafor > Envoyé : mercredi 13 novembre 2019 11:47 > > How can I solve an ordinary differential equation? Please look at the ode() function https://help.scilab.org/docs/6.0.2/en_US/ode.html regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-m

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

2019-11-13 Thread Dang Ngoc Chan, Christophe
> De : chinagorom ajike > Envoyé : mercredi 13 novembre 2019 11:48 > > Pls what is the striking advantage of scilab over matlab http://mailinglists.scilab.org/Scilab-users-Scilab-vs-matlab-tp4034631.html -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-mail may contain

Re: [Scilab-users] QUESTION

2019-11-14 Thread Dang Ngoc Chan, Christophe
Hello, > De : Federico Miyara > Envoyé : mercredi 13 novembre 2019 22:31 > > Wofai, Chinagorom, Apebo, I also started to answer but I'm puzzled by the batch of short questions originating from new subscribers with a Gmail address. It looks like spamming: searching for messages in the archives,

Re: [Scilab-users] {EXT} Re: QUESTION

2019-11-14 Thread Dang Ngoc Chan, Christophe
Hello, > De : Wofai Okoi Ewa > Envoyé : jeudi 14 novembre 2019 13:03 > > We (Post Graduate Students) have just been enrolled into a 5-day > SciLab Training Workshop at the University of Nigeria, Nsukka, > facilitated by Prof. S. O. Enibe Much clearer now. Sorry for having suspecting you and your

Re: [Scilab-users] {EXT} Re: Scilab API sciprint to print on the same line

2019-12-18 Thread Dang Ngoc Chan, Christophe
Hello, > De : Chin Luh Tan > Envoyé : mercredi 18 décembre 2019 02:36 > > Looks like the last command followed by the clc(1) would be ignore : > > [...] I've got the same result as you but additionally, I've got a different result using disp((1:10)') instead of the loop. The result is also weir

Re: [Scilab-users] {EXT} Help with Jacobian call to Optim

2020-01-07 Thread Dang Ngoc Chan, Christophe
Hello, > De : David Brant > Envoyé : lundi 6 janvier 2020 19:15 > > Rsponse: > !--error 98 > Variable returned by scilab argument function is incorrect. I personally have the following error: costf: Wrong type for output argument #1: Real scalar expected. If I understand well, fun() returns a 5

Re: [Scilab-users] {EXT} Slight inconsistency and suggested mprovement in max / min / mean etc.

2020-01-17 Thread Dang Ngoc Chan, Christophe
Hello Frederico, > De : Federico Miyara > Envoyé : vendredi 17 janvier 2020 06:29 > > so that max(x,1), for instance, is an array whose components are the > maximum between the original components and 1. > > This prevents using the general syntax max(x,1) which would be more > consistent, allowing

Re: [Scilab-users] {EXT} density in a graph

2020-01-23 Thread Dang Ngoc Chan, Christophe
Hello, > De : Jean-Philippe Grivet > Envoyé : jeudi 23 janvier 2020 16:36 > > I am drawing a graph in a gray scale (say from 1 to 32), using lines of > different > density. I would like that, in the region of intersection of two lines, the > shade > of gray be the sum of the densities of each li

Re: [Scilab-users] {EXT} Re: ?==?utf-8?q? density in a graph

2020-01-24 Thread Dang Ngoc Chan, Christophe
Hello, > De : Jean-Philippe Grivet > Envoyé : vendredi 24 janvier 2020 10:24 > > Thank you Antoine; I am not famo=iliar with the SVG format, but I will > investigate. As you seem to understand French, may I recommend you a small page of mine? https://fr.wikibooks.org/wiki/D%C3%A9couvrir_le_SVG/L

Re: [Scilab-users] Double and triple integral query

2020-01-27 Thread Dang Ngoc Chan, Christophe
Hello, > De : Lester Anderson > Envoyé : dimanche 26 janvier 2020 12:45 > > I have looked at the int2d and int3d commands for double and triple > integrals, but was wondering if there was a simple method of defining > the input triangles or tetrahedrons (int2d and int3d respectively)? Do you mean

Re: [Scilab-users] Fitting correlations to measured data. Write-ups of leastsq is messy ...

2020-01-31 Thread Dang Ngoc Chan, Christophe
Hello, > De : Heinz Nabielek > Envoyé : jeudi 30 janvier 2020 23:25 > > First: linear least-squares fitting: with measurement data x=[2 7 12]'; y=[2 > 4.5 > 6.5]'; it is easy, to fit a straight line and plot it: > M=[ones(x) x]; a=M\y; plot2d(x,M*a); plot(x,y,'r.'); > [...] > In my case, I wanted

Re: [Scilab-users] {EXT} Count specific values in text file

2020-02-11 Thread Dang Ngoc Chan, Christophe
Hello, > De la part de arctica1963 > Envoyé : mardi 11 février 2020 13:11 > > I have text files of Pi and e to a million places [...] > > I can open the text file with pinum=mopen('pi-million.txt','rt') - but does it > need to be changed to a vector where each value is an element?. At the > moment

Re: [Scilab-users] Can Scilab compute the inverse of the regularized Incomplete Beta Function?

2020-05-18 Thread Dang Ngoc Chan, Christophe
Hello, > De Heinz Nabielek > Envoyé : dimanche 17 mai 2020 23:50 > > CONF=0.95; N=1432; n=1: > One-sided 95% upper confidence limit fraction = BETA.INV(CONF, n+1, N+1-n) > = 0.003306121 > > How would I do that in Scilab? Would it be : [X,Y]=cdfbet("XY", n+1, N+1-n, CONF, 1-CONF) X = 0.003

Re: [Scilab-users] {EXT} Help for . operator

2020-06-08 Thread Dang Ngoc Chan, Christophe
Hello Pierre, > De : Perrichon > Envoyé : lundi 8 juin 2020 11:07 > > I don't understand le role of the « point » operator '.' The dot is used to have an element-wise operation. The difference is when you work with matrices, e.g. the product * will make a matrix product C = A*B -> C(i, j) = su

Re: [Scilab-users] {EXT} scilab 6.1 crashes when trying to load big matfile (loadmatfile)

2020-06-18 Thread Dang Ngoc Chan, Christophe
Hello, > De la part de Antoine Monmayrant > Envoyé : mercredi 17 juin 2020 13:22 > > It's a bit cumbersome to share this big fie, so do you have any idea on how to > investigate this issue and try to locate the root cause? You might try to build a minimal and working (crashing) example, generati

Re: [Scilab-users] {EXT} Re: scilab 6.1 crashes when trying to load big matfile (loadmatfile)

2020-06-19 Thread Dang Ngoc Chan, Christophe
Hello, > De : De la part de Antoine Monmayrant > Envoyé : vendredi 19 juin 2020 08:58 > > Here is a small script that systematically crashes scilab on my machine: It works fine for me, no crash. Windows 7, RAM 16 GB, 12.9 GB used at peak. [a, b] = getdebuginfo() a = "Memory in use: 39

Re: [Scilab-users] Interface to Python 3.7 from Scilab

2020-07-08 Thread Dang Ngoc Chan, Christophe
Hello, > De De la part de tien.dang > Envoyé : mercredi 8 juillet 2020 09:13 > > Anyone knows how to move this ATOMS to python 3.7 or any > ATOMS that support interfacing Python 3.7 from Scilab. This would be great. I think the "young generation" massively learns Python and the Scipy/Numpy packag

Re: [Scilab-users] {EXT} Re: errors (uncertainties) in non-linear least-squares fitting parameters

2020-08-27 Thread Dang Ngoc Chan, Christophe
Hello Heinz, > De : Heinz Nabielek > Envoyé : lundi 24 août 2020 23:59 > > I want all three straight lines to go simultaneously through one point at the > negative x-axis. > This is why I had to use a non-linear least-squares fit. The calculation runs quite fats so it might not worth the effort

[Scilab-users] Weird error with leastsq()

2020-08-27 Thread Dang Ngoc Chan, Christophe
Hello all, Let's talk about optics. I have a glass, its refraction index n varies with the wavelength lamba. I have a CSV file with the corresponding data (verre_HOQ.cvs attached), 52 points. I want to model this with the Sellmeier model https://en.wikipedia.org/wiki/Sellmeier_equation and use f

Re: [Scilab-users] {EXT} Re: Weird error with leastsq()

2020-08-27 Thread Dang Ngoc Chan, Christophe
Hello, > De : Antoine Monmayrant > Envoyé : jeudi 27 août 2020 17:25 > > n=real(n); > > Now it works. Basic. I thought about this and I know I tested some isreal(sellmeier(lambda)) stuff during the development but I did not thought it would happen during the regression process with some param

Re: [Scilab-users] {EXT} Fwd: plotting dots vs xfarc

2020-10-01 Thread Dang Ngoc Chan, Christophe
Hello, > De la part de P M > Envoyé : mercredi 30 septembre 2020 16:50 > > exact dot-coordinates, drawn as filled circles. > All pixel coordinates of such an area would have to have exactly one single > pixel value. > The resulting graphic right now is stored via: xs2bmp. > [...] > - It seem

Re: [Scilab-users] {EXT} Re: Multiple regression on semi-log plot

2020-11-16 Thread Dang Ngoc Chan, Christophe
Hello, > De : users De la part de Stéphane Mottelet > Envoyé : lundi 16 novembre 2020 09:56 > > It is possible to fit a more general piecewise-affine model, > but you will have to know in advance the number of "kinks" Well, I think it is possible to automatically adjust the number of segments:

Re: [Scilab-users] {EXT} mesh2d - finding identical points

2020-11-20 Thread Dang Ngoc Chan, Christophe
Hello, > De : users De la part de P M Envoyé : > vendredi 20 novembre 2020 10:04 > > How to identify these points and remove the duplicates? You might try to use unique(). Maybe the following discussion can help: http://mailinglists.scilab.org/Scilab-users-Remove-duplicate-rows-and-sustain-ori

Re: [Scilab-users] {EXT} converting octave script imremap to scilab

2020-11-23 Thread Dang Ngoc Chan, Christophe
Hello Philipp, > De : users De la part de P M Envoyé : > samedi 21 novembre 2020 22:55 > > I am trying to map an image onto a 3D surface. If you are not "bound" to Scilab, then I suggest to have a look at Kitware Paraview https://www.paraview.org/ which can, as far as I remember, can import and

Re: [Scilab-users] CSV Building

2020-11-24 Thread Dang Ngoc Chan, Christophe
Hello Davide, > De : users De la part de Davide > Daloisio Envoyé : lundi 23 novembre 2020 17:13 > > So I am writing a new matrix with two vectors that have the same timestep. > In this specific case I have a time vector with a timestep (step) of > about 2E- When you're writing: A = B(C) Where

Re: [Scilab-users] {EXT} Re: CSV Building

2020-11-24 Thread Dang Ngoc Chan, Christophe
Hello, > De : users De la part de Davide > Daloisio Envoyé : mardi 24 novembre 2020 14:51 > > inconsistent row/column dimensions Difficult to say without the code. You usually have this when you multiply matrices (the number of rows of the first one must match the number of columns of the seco

Re: [Scilab-users] {EXT} thermal barrier

2020-11-26 Thread Dang Ngoc Chan, Christophe
Hello, > De : users De la part de Liviu Badea > Envoyé : jeudi 26 novembre 2020 14:22 > > Heat transfer; the stationary linear case to graphically represent the > conductivity variation with the thickness of the layers and with the > temperature. We would be happy to help you if you tell us exa

Re: [Scilab-users] {EXT} Re: Headless graphics in scilab: time & memory issues

2020-12-03 Thread Dang Ngoc Chan, Christophe
Hello Antoine, > De : Antoine Monmayrant > Envoyé : jeudi 3 décembre 2020 10:00 > > Can any of you confirm this bug? I don't know what you mean by headless mode but I get the same error as you error when I run your script (except it is in Franch): "xs2png : Impossible de créer le fichier d'expor

Re: [Scilab-users] {EXT} Increasing Scilab default Java heap memory to 512 MB?

2020-12-15 Thread Dang Ngoc Chan, Christophe
Hello, > De : De la part de Samuel Gougeon > Envoyé : mardi 15 décembre 2020 19:10 > > By the way, everyone, what do you think about increasing the default Scilab > java Heap from 256 MB to 512 MB? > This default 256 MB was set a long time ago, when on computers the average > RAM what much small

Re: [Scilab-users] {EXT} New constant %chars to get sets of symbols

2021-01-04 Thread Dang Ngoc Chan, Christophe
Hello to all (and best wishes for the new year) > De : Samuel Gougeon > Envoyé : mardi 29 décembre 2020 16:40 > > So, i would like to propose to add this new constant to Scilab, for the > benefit of all users. > In this respect, you will find > http://bugzilla.scilab.org/attachment.cgi?id=5206

Re: [Scilab-users] {EXT} Problems arising from truncation of %pi

2021-01-05 Thread Dang Ngoc Chan, Christophe
Hello Federico, I'm not sure to understand exactly your needs but: > De : Federico Miyara > Envoyé : mardi 5 janvier 2021 09:20 > > --> sin(%pi) > ans = > 0.0001224647 seems to be something we cannot get rid off unless using symbolic calculation i.e. having a specific variable fo

Re: [Scilab-users] Overarching subplot title for graphic window

2021-03-12 Thread Dang Ngoc Chan, Christophe
Hello, > De : bty22 > Envoyé : mercredi 10 mars 2021 22:40 > > I have been trying to figure out a way to add an overarching title on the > graphic window that goes above the subplots? I suggest to create an additional subplot and then use titlepage(). Something like : -- X=1:10; subpl

Re: [Scilab-users] find and locate local maxima

2021-03-17 Thread Dang Ngoc Chan, Christophe
Hello, > De : users De la part de CHEZE David > 227480 Envoyé : mardi 16 mars 2021 14:53 > > I'm looking for function that could find and locate every local maxima > of any discrete time signal I suggest you to detect the local minima of the second derivative obtained by the Savitzky-Golay algo

Re: [Scilab-users] How to specify angle in degree and minutes

2021-03-22 Thread Dang Ngoc Chan, Christophe
Hello, > De : Dmitry Samersoff > Envoyé : mardi 16 mars 2021 19:59 > > I need to calculate cosine of bunch of angles > that comes as Degree Minutes Seconds (e.g. 44d32m11s). > > What is the best way to do it in scilab? If you have a vector of numbers angle = [dd, mm, ss], it is rather easy to co

Re: [Scilab-users] xstring + format decimal number.

2021-03-26 Thread Dang Ngoc Chan, Christophe
Hello, > De : Marcus Vinicius P. de Souza > Envoyé : jeudi 25 mars 2021 18:20 > > Mp=54.566 > [...] > I want only: Mp=54.56% > How do I do? I suggest o use floor() (truncate) or round(), e.g. xstring(1, 1, '$\LARGE Mp={' + string(0.01*floor(100*Mp)) + '}\%$') or use msprintf() (rounding), e

Re: [Scilab-users] Why window() provides only symmetric weighting?

2021-04-12 Thread Dang Ngoc Chan, Christophe
Hello, > De : Federico Miyara > Envoyé : dimanche 11 avril 2021 02:08 > > Like it or not, I guess these keywords come from Matlab, and as Matlab > still seems to dominate the market, many people, including those > willing to quit Matlab (as I did several years ago), are quite used to > those keywo

Re: [Scilab-users] xfpoly: would wish that the filling colour could be made transparent.

2021-04-12 Thread Dang Ngoc Chan, Christophe
Hello Heinz, > De : Heinz Nabielek > Envoyé : samedi 10 avril 2021 23:58 > > BTW, how do the French infection rates look like? Thanks for caring (-: You'll probanbly find the answer here: https://www.gouvernement.fr/info-coronavirus/carte-et-donnees the second curve on the left is the incidenc

Re: [Scilab-users] plot2d3()

2021-04-26 Thread Dang Ngoc Chan, Christophe
Hello, > De : fmiyara > I'm trying to get a plot like this: [...] Maybe you should try with xpolys(), e.g. -- [n, ybase] = (10, -12); y = ybase + 9*grand(1,n,"def"); x=1:n; Y=[y ; ybase*ones(y)]; X=[x ; x] scf(0); clf(); xpolys(X, Y, ones(y)); plot(x, y, "o"); gcf().children.d

Re: [Scilab-users] Native arm64 build for Mac M1

2021-07-19 Thread Dang Ngoc Chan, Christophe
Hello Samuel, > De : users De la part de Samuel Gougeon > Envoyé : jeudi 8 juillet 2021 08:01 > > That's strange : do you confirm that this thread and following ones (*) look > no longer archived @ > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html I confirm I do

Re: [Scilab-users] Plot Graphs on Different Axes

2021-07-27 Thread Dang Ngoc Chan, Christophe
Hello Samuel > De : De la part de Samuel Enibe > Envoyé : mardi 27 juillet 2021 17:17 > > I want to plot y1 with x1 (Graph 1) on Bottom x-axis and left y-axis and y2 > with x2 (Graph 2) on Top x-axis and Right y-axis. I'm not sure what you want to do but you may try something like this: a1 = n

Re: [Scilab-users] Inquiry

2021-10-26 Thread Dang Ngoc Chan, Christophe
Hello, > De : onyeka ogbonna > Envoyé : mardi 26 octobre 2021 14:25 > > Which is advisable to learn now, Scilab or Python I'd say: Scilab is probably easier to learn and you have a community of calculation specialists you can rely on. Then, switching to Python is not much a problem. Python has

Re: [Scilab-users] jetcolormap in param3d1

2021-11-16 Thread Dang Ngoc Chan, Christophe
Hello Izabela, > De : Izabela Wójcik-Grzaba > Envoyé : lundi 15 novembre 2021 18:12 > > An additional problem appeared with my figure f2. Here is my function: Could you please provide a minimal example with a call to this function? I tried to use the function on the figure provided by the first

Re: [Scilab-users] Reimann Zeta function

2021-11-30 Thread Dang Ngoc Chan, Christophe
Hello Lester, > De : Lester Anderson > Envoyé : lundi 29 novembre 2021 09:39 > > I am interested in the Reimann Zeta function, but it does not appear as an > option directly with Scilab (v6.1.1). Not really an answer to your question, but I'd like to mention that the zeta function is implemented

Re: [Scilab-users] Bernoulli numbers calculation

2021-12-29 Thread Dang Ngoc Chan, Christophe
Sorry for the spam, I'd better collect all the information before posting ^_^ To be clear: The function binomial() is for the binomial distribution. The binomial coefficient is obtained with nchoosek(). Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-mail

Re: [Scilab-users] Bernoulli numbers calculation

2021-12-29 Thread Dang Ngoc Chan, Christophe
Hello, Concerning my former message, it seems that binomial() is no longer documented (although it works). There is the function nchoosek() that is documented, with a diagram showing the overflow limit: https://help.scilab.org/docs/6.1.1/en_US/nchoosek.html regards -- Christophe Dang Ngoc Ch

Re: [Scilab-users] Bernoulli numbers calculation

2021-12-29 Thread Dang Ngoc Chan, Christophe
Hello Lester, > De : Lester Anderson > Envoyé : mercredi 29 décembre 2021 09:00 > > Have adapted existing Matlab code for Scilan to calculate Bernoulli > numbers using an explicit formula [...] 11 onwards the values are incorrect: I don't know what you already investigated but did you consider t

Re: [Scilab-users] Changing properties of mark_mode polyline in param3d1

2022-05-02 Thread Dang Ngoc Chan, Christophe
Hello, > De : Izabela Wójcik-Grzaba > Envoyé : vendredi 29 avril 2022 17:01 > > The problem is that my real plot is made with param3d1 and consists of > different elements: polylines with line_mode, with mark_mode, xstrings. > It is now impossible to change the type. Both param3d1() and scatter3

Re: [Scilab-users] Variable user equation input (2, 3 or more)

2022-05-02 Thread Dang Ngoc Chan, Christophe
Hello, > De : De la part de Lester Anderson > Envoyé : samedi 30 avril 2022 07:15 > > My query, is it possible to make this more generalised and vary the > number of input equations and give the user an option to specify the number > of equations? I don't know this problem and its solution but a

Re: [Scilab-users] Problem with ticks

2022-08-04 Thread Dang Ngoc Chan, Christophe
Hello, You have to keep consistant the size of the locations and labels. Try : foo = [0:10:200]'; ca.x_ticks=tlist(ca.x_ticks(1), foo, string(foo)) Kind regards De : users De la part de Jens Simon Strom Envoyé : jeudi 28 juillet 2022 23:07 General ca.x_ticks.locations=[0:20:200]'; ca.x_ti

Re: [Scilab-users] Problems with cdfbet

2022-11-04 Thread Dang Ngoc Chan, Christophe
Hello Heinz, > De : users De la part de Heinz Nabielek > Envoyé : mardi 1 novembre 2022 22:02 > > I need to compute the inverse of the cumulative beta function, but I just > cannot handle cdfbet. >From what I undestand in https://help.scilab.org/docs/6.1.1/en_US/cdfbet.html the notation for the

Re: [Scilab-users] Problems with cdfbet

2022-11-07 Thread Dang Ngoc Chan, Christophe
Hello, That's weird, it seem I only receive the answers when I'm explicitly in the recipients list. However: > De : Heinz Nabielek Envoyé : samedi 5 novembre > 2022 01:04 > > N=10^(3:9); > def=[300 100 30 10 3 1 0]; > for i=1:7; > NN=N(i); > for j=1:7; > defects=def(j); > A(i,j)=cdfbet("XY", d

Re: [Scilab-users] command longer than 4096

2022-11-17 Thread Dang Ngoc Chan, Christophe
Hello Federico, > De : users De la part de Federico > Miyara Envoyé : jeudi 17 novembre 2022 03:36 > > I have to create a vector from a plain text containing about 700 decimal > numbers, each one with several digits. > [...] > Is there a simple way to do this other than [...] saving the data as

Re: [Scilab-users] [POLICY VIOLATION] Re: LATEX: easy help?

2022-12-28 Thread Dang Ngoc Chan, Christophe
Hello Heinz, You might look at : https://en.wikibooks.org/wiki/LaTeX/Command_Glossary## regards General De : users De la part de Heinz Nabielek Envoyé : mardi 27 décembre 2022 23:47 À : Users mailing list for Scilab Objet : [POLICY VIOLATION] Re: [Scilab-users] LATEX: easy help? __

Re: [Scilab-users] cdfchi=cumulative distribution function chi-square distribution

2023-02-08 Thread Dang Ngoc Chan, Christophe
Hello Heinz, > De : Heinz Nabielek > Envoyé : mardi 7 février 2023 13:07 > > cdfchi = cumulative distribution function chi-square distribution. > > I want to generate the 95% confidence limit of small numbers like below According to https://help.scilab.org/doc/6.0.0/en_US/cdfchi.html I think the

Re: [Scilab-users] 1. Re: cdfchi=cumulative distribution function chi-square distribution (Dang Ngoc Chan, Christophe)

2023-02-10 Thread Dang Ngoc Chan, Christophe
Hello Heinz, > De : Heinz Nabielek > Envoyé : jeudi 9 février 2023 13:36 > > Result is then > [...] > > However, EXCEL conf=0.95 gives me: > [...] Sorry, I don't know particularly the chi-square distribution, I suppose you don't ask the same question to both softwares. If you use for XL Xmax=

Re: [Scilab-users] Arrow on line from (x1, y1) to (x2, y2)

2023-03-08 Thread Dang Ngoc Chan, Christophe
Hello Samuel, > De : Samuel Enibe > Envoyé : lundi 6 mars 2023 18:53 > > I need to attach an arrow to a line pointing from (x1, y1) to (x2, y2). > > How can this be done? I think xarrows() is made for you: https://help.scilab.org/docs/6.1.1/en_US/xarrows.html kind regards -- Christophe Dang Ng

Re: [Scilab-users] Complex input to a function

2023-08-01 Thread Dang Ngoc Chan, Christophe
Hello, You might improve your function by allowing the processing of a matrix (if it is relevant), e.g. boolean1 = (imag(s) <> 0) reals = real(s) boolean2 = not(boolean1) & reals>0 & reals<1 etc. zz = zeros(s) zz(boolean1) = zeta_3(s(boolean1), n(boolean1)) zz(boolean2) = zeta_3(reals(bool

Re: [Scilab-users] On computational speed

2023-12-01 Thread Dang Ngoc Chan, Christophe
Hello, General -Message d'origine- De : users De la part de Federico Miyara Envoyé : jeudi 30 novembre 2023 16:52 > > confirm that, [...] the simple squaring operation takes much longer than it > should. Except that the power is not a multiplication. It is a fact that amongst the seve

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

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 ht

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 get

  1   2   3   >