[Scilab-users] Possible error in manual

2018-12-14 Thread Federico Miyara
,1) indeed returns a. So the procedure seems to be mistakenly described in the help information. Interestingly, the fftw3 documentation, http://www.fftw.org/fftw3.pdf, gives, on page 42, the same formula but it indicates it is an unnormalized transform. Would you please clarify? Regards, Feder

[Scilab-users] Possible error in manual

2018-12-14 Thread Federico Miyara
Dear All, I've converted a Matlab function to Scilab. The converter inserts yhe following code: // Output variables initialisation (not found in input variables) z=[]; z is the output variable. Is it necessary to initialise the output variables? Regards, Federico Miyara --- El sof

[Scilab-users] Output variable initialisation?

2018-12-14 Thread Federico Miyara
Dear All, I've converted a Matlab function to Scilab. The converter inserts the following code: // Output variables initialisation (not found in input variables) z=[]; z is the output variable. Is it necessary to initialise the output variables? Regards, Federico Miyara --- El sof

[Scilab-users] Problems with graphics format

2018-12-25 Thread Federico Miyara
After creating a figure and plot I need to change the thickness of border around the plot. What property should I change? Besides, I try to change the grid style using gca().grid_style = n*[1, 1] where n is, for instance, 5. I get this: As can be seen, only the horizontal lines of the grid

[Scilab-users] improve accuracy of roots

2019-01-09 Thread Federico Miyara
41D-15 0. This is acceptable for the coefficients, but the error in the roots is too large. Somehow the errors cancel out when assembling back the polynomial but each individual zero should be closer to the theoretical value Is there some way to improve the accuracy? Regards, Federi

Re: [Scilab-users] improve accuracy of roots

2019-01-11 Thread Federico Miyara
overshoot. Regards, Federico Miyara On 10/01/2019 10:32, CRETE Denis wrote: Hello, I tried this correction to the initial roots z: z-4*(1+z).^4 ./([ones(z),z,z.^2,z.^3]*(C(2:5).*(1:4))') ans = -1. - 1.923D-13i -1. + 1.189D-12i -1. - 1.189D-12i -1. - 1.919D-13i // Ev

Re: [Scilab-users] improve accuracy of roots

2019-01-11 Thread Federico Miyara
Denis, I've found the correction here, https://en.wikipedia.org/wiki/Newton%27s_method It is useful to accelerate convergence in case of multiple roots, but I guess it is not valid to apply it once to improve accuracy because of the risk of overshoot. Regards, Federico Miyara On

Re: [Scilab-users] Data from XCos plots?

2019-01-13 Thread Federico Miyara
Probably it is a = gca(); x = a.children.children.data(:,1); y = a.children.children.data(:,2); since a.children doesn't have the "data" proerty, but its child is of type "Polyline" which does have the "data" property Federico Miyara On 13/01/2019 07:55, N

Re: [Scilab-users] improve accuracy of roots

2019-01-14 Thread Federico Miyara
application of the regular version of roots. Regards, Federico Miyara On 14/01/2019 13:47, CRETE Denis wrote: Thank you Frederico! According to the page you refer to, the method seems to converge more rapidly with this factor equal to the multiplicity of the root. About overshoot, it is well known

[Scilab-users] Seemingly inconsistent behavior

2019-01-14 Thread Federico Miyara
polynomial 2 6 -5v +v respectively, but they are reported as cell arrays, since iscell(a{2}(1)) and iscell(a{2}(2)) are both True Why is a cell array responsive to () at all and why it returns a sub ell array? Thank you in advance. Regards, Federico Miyara --- El software de antiv

Re: [Scilab-users] improve accuracy of roots

2019-01-15 Thread Federico Miyara
Stéphane, Thank you very much for your contribution! Best regards, Federico Miyara On 15/01/2019 14:14, Stéphane Mottelet wrote: Hello, After a quick search on the internet I have found and translated in Scilab "multroot", a Matlab Package computing polynomial roots and mult

[Scilab-users] compact layout for console

2019-01-20 Thread Federico Miyara
ature somehere...? Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/lis

Re: [Scilab-users] compact layout for console

2019-01-20 Thread Federico Miyara
Samuel, Thank you! Regards, Federico On 20/01/2019 07:09, Samuel Gougeon wrote: Hello Federico, The most compact you can get is after having used --> mode(1) https://help.scilab.org/docs/6.0.1/en_US/mode.html Regards Samuel Le 20/01/2019 à 09:46, Federico Miyara a écrit : Dear

Re: [Scilab-users] [EXTERNAL] Re: acos leads to complex values

2019-01-29 Thread Federico Miyara
47, being %eps 0.0002220446 I get no imaginary part. I guess there must be some dependency on the arithmetic engine. Federico Miyara On 29/01/2019 12:58, Stéphane Mottelet wrote: It is the same if x is slightly > 1: --> x=1+%eps x = 1. --> acos(x) an

Re: [Scilab-users] [EXTERNAL] Re: acos leads to complex values

2019-01-29 Thread Federico Miyara
In this case it should be imaginary... Federico Miyara On 29/01/2019 12:58, Stéphane Mottelet wrote: It is the same if x is slightly > 1: --> x=1+%eps x = 1. --> acos(x) ans = 2.107D-08i --> format(25); x x = 1.0002220446 Le 29/01/2019 à 16

Re: [Scilab-users] [EXTERNAL] Re: acos leads to complex values

2019-01-29 Thread Federico Miyara
mponent-wise isreal() function, otherwise it would have been simpler! Federico Miyara On 29/01/2019 12:58, Stéphane Mottelet wrote: It is the same if x is slightly > 1: --> x=1+%eps x = 1. --> acos(x) ans = 2.107D-08i --> format(25); x x = 1.0002220446

Re: [Scilab-users] [EXTERNAL] Re: acos leads to complex values

2019-01-29 Thread Federico Miyara
e small imaginary parts. In this case there is a reason, complex exponentials are used in the algorithm so arithmetioc errors may not completely cancel out because of arithmetic and precision issues. Federico Miyara --- El software de antivirus Avast ha analizado este correo electróni

[Scilab-users] Unexpected END OF FILE

2019-01-30 Thread Federico Miyara
the repeated pairs are because it is a stereo file with identical left and right channels. The same happens changing the way the file data are to be decoded. Seems to get stuck when 1A or 1A 3D appears. Any idea of what may be going on and how to solve it? Federico Miyara <#DAB4FAD8

Re: [Scilab-users] Unexpected END OF FILE

2019-01-30 Thread Federico Miyara
, you should open your file in binary mode, with "rb". --> fd = mopen("440Hz_0.2s.wav", "rb"); --> h = mgeti(1000, "uc", fd); --> size(h) ans = 1. 1000. --> dec2hex(h(1:5)) ans = !52 49 46 46 84 ! Regards, Antoine Le 30/01/2019

Re: [Scilab-users] Unexpected END OF FILE

2019-01-30 Thread Federico Miyara
Stéphane, I mean, the doc says that binary mode for writing or reading is the default but it was not the case under Windows, where *text* mode was the default, and in this mode char of hex code 1A is EOF (in binary EOF is just a condition not a char). Thank you for crlarifying. Now I com

Re: [Scilab-users] Different results inside a function and in the console

2019-01-31 Thread Federico Miyara
hat I would do is to create a new function removing all function code not related to the problem, trying to track what happens to p_x before applying the formula. Regards, Federico Miyara On 31/01/2019 15:06, Izabela Wójcik-Grząba wrote: Hello, I have a strange problem with simple calcula

[Scilab-users] Why plot doesn't work on integers

2019-02-02 Thread Federico Miyara
res much more memory). Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] Why plot doesn't work on integers

2019-02-02 Thread Federico Miyara
Thank you, I'm glad to help a little bit improve this great software. Regards, Federico Miyara On 02/02/2019 17:29, Samuel Gougeon wrote: Hello Federico, Thanks for pointing this issue. It is clearly a bug. It occurs since the earliest ages of Scilab. It will be fixed ASAP. Regards S

[Scilab-users] Coexistence of different versions

2019-02-19 Thread Federico Miyara
prevent trouble? Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] Coexistence of different versions

2019-02-20 Thread Federico Miyara
Samuel, Thank you very much vor this very complete answer! Regards, Federico On 20/02/2019 08:56, Samuel Gougeon wrote: Hello Federico, Le 20/02/2019 à 03:46, Federico Miyara a écrit : Dear all, I'm currently using Scilab 6.0.1 on Windows 7 with several projects in progress t

Re: [Scilab-users] Coexistence of different versions

2019-02-20 Thread Federico Miyara
Dear Éric, Thank you! Regards, Federico On 20/02/2019 03:55, Éric Dubois wrote: Dear Federico You can install and even run several different Scilab versions: I have been practicing it regularly for a Long Time. Éric Envoyé de mon iPhone Le 20 févr. 2019 à 03:46, Federico Miyara

[Scilab-users] Possible bug in wavread

2019-02-23 Thread Federico Miyara
uld warn about that and the error message should be more accurate, informing that it is an unsupported format, instead of providing a misleading report telling that the format is invalid. Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electrónico en busca d

Re: [Scilab-users] Possible bug in wavread

2019-02-24 Thread Federico Miyara
than once or might even appear only once but in the middle of the name. In such cases it is not a valid wav extension. This case might appear unlikely, but it is a possibility. For instance, some educator might present an example called: 'example_of_.wav_file.wav' Regards, Federico M

Re: [Scilab-users] Possible bug in wavread

2019-02-24 Thread Federico Miyara
of fileparts, thank you. Please do not hesitate to open another bug report to gather all this in a trackable place. OK, I've submitted it as bug 15981: http://bugzilla.scilab.org/show_bug.cgi?id=15981 Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electró

[Scilab-users] Efficiency of drive usage

2019-02-25 Thread Federico Miyara
Thank you. Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

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

2019-02-26 Thread Federico Miyara
select an appropriate size (large enough so that when inserted in a word processing software has a very high, printable resolution) and save as high quality jpg. If the export contains things you don't want, you simple trim out those parts. Regards, Federico Miyara On 26/02/2019 13:07,

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

2019-02-26 Thread Federico Miyara
ce image editor, then select an appropriate size (large enough so that when inserted in a word processing software has a very high, printable resolution) and save as high quality jpg. If the export contains things you don't want, you simple trim out those parts. Regards, Federico Miyara On 26/0

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

2019-02-26 Thread Federico Miyara
format), then open it with GIMP, a free open source image editor, then select an appropriate size (large enough so that when inserted in a word processing software has a very high, printable resolution) and save as high quality jpg. If the export contains things you don't want, you simple tri

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

2019-02-28 Thread Federico Miyara
export. Regards, Federico Miyara On 28/02/2019 05:26, Dang Ngoc Chan, Christophe wrote: 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 f

[Scilab-users] Behavior of gettext

2019-03-03 Thread Federico Miyara
mentos de entrada.\n But gettext("Wrong number of input arguments.") returns the original English version Wrong number of input arguments. Are the elements %s and \n part of the indexed string? How can I get a list of indexed strings? Regards, Federico Miyara --- El software d

Re: [Scilab-users] Behavior of gettext

2019-03-05 Thread Federico Miyara
cleaer is if the only use of getttext is to localize errore messages or it is possible to localize a GUI without formatting. Regards, Federico Miyara On 04/03/2019 14:29, Samuel Gougeon wrote: Hello Federico, Le 04/03/2019 à 05:58, Federico Miyara a écrit : Dear all, I'm tryi

[Scilab-users] Question on switch

2019-03-08 Thread Federico Miyara
it is or will be deprecated, and if it is advisable not to use it and use select instead (like in Fortran and Basic). The mfile2sci function converts the switch clauses to select. Thank you. Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electrónico en bus

Re: [Scilab-users] Question on switch

2019-03-08 Thread Federico Miyara
tran. Regards, Federico On 08/03/2019 18:23, Samuel Gougeon wrote: Hello Federico, I have nothing to add to comments posted for the bug 14940 <http://bugzilla.scilab.org/show_bug.cgi?id=14940> about this topic. Le 08/03/2019 à 20:46, Federico Miyara a écrit : Dear all, I've se

Re: [Scilab-users] Behavior of gettext

2019-03-12 Thread Federico Miyara
"bandfilter", 2, 4) Both messages were taken from the error_table documentation. Federico Miyara On 06/03/2019 18:02, Samuel Gougeon wrote: Le 06/03/2019 à 00:56, Federico Miyara a écrit : Dear Samuel, Thank you very much. I had read the gettext help but it is not as clear

Re: [Scilab-users] Behavior of gettext

2019-03-12 Thread Federico Miyara
t messages did exist. But I'm afraid it is a very hard problem since the way things combine in different languages may be quite different, particularly word order. Federico On 12/03/2019 21:19, Samuel Gougeon wrote: Le 12/03/2019 à 21:31, Federico Miyara a écrit : Dear All, I

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

2019-03-17 Thread Federico Miyara
Heinz, I don't find your example clear enough. What's y? Is it defined previously? Perhaps an example would be useful. Regards, Federico Miyara On 17/03/2019 19:49, Heinz Nabielek wrote: I need to generate random deviates x according to a given cumulative distribution

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

2019-03-18 Thread Federico Miyara
values take an average of 0.1 ms on an i7 laptop with Windows 7. Federico On 18/03/2019 05:22, Heinz Nabielek wrote: y is a previously defined table with values monotonically increasing from zero to one. h On 18.03.2019, at 06:43, Federico Miyara wrote: Heinz, I don't find your

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

2019-03-21 Thread Federico Miyara
porters be omnipresent in all discussions on Scilab worldwide. Federico Miyara On 10/03/2019 21:10, Samuel Gougeon wrote: Le 10/03/2019 à 23:40, farimani a écrit : It would be nice if you could also be more present on Reddit: https://www.reddit.com/search?q=scilab&sort=new and StackOv

Re: [Scilab-users] cannot get polarplot to graph a decent windrose

2019-03-23 Thread Federico Miyara
previous task, check which graph reaches the maximum and draw it at the end, so that you remove all the degree marks up to the graph before the last one. I'm sure there must be a better way to do this, but in the emergency it might do the job. If you find a better solution, please comment it.

Re: [Scilab-users] cannot get polarplot to graph a decent windrose

2019-03-24 Thread Federico Miyara
t; "E" "S" "W"]; changes the text properties of the children objects (these refer to the ticks and their labels) 23, 5, 11 and 17 from 0, 270, 180, 90 to the names of the cardinal directions. I don't know how to change easily the number and separation of angular

Re: [Scilab-users] 22.5° ray separations in polarplot

2019-03-27 Thread Federico Miyara
. The other children correspond to the circumference arcs of the rho grid of the polar plot. I don't know how to add or insert more children to the graphic handle... One possible way (very risky, ensure you make a backup first or work with a different function name) is try to find the source f

[Scilab-users] arrows in axis

2019-04-03 Thread Federico Miyara
arrow head. Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo

Re: [Scilab-users] arrows in axis

2019-04-03 Thread Federico Miyara
Gougeon wrote: Hello Federico, Le 03/04/2019 à 17:42, Federico Miyara a écrit : Dear all, Is there any standard way to add an arrow head to axes in a plot? I have found a function xarrows which allows drawing arrows, so it could be used as a workaround. But what I actually mean is something

Re: [Scilab-users] arrows in axis

2019-04-03 Thread Federico Miyara
ome examples, I find "clipgrf" to be the default. Am I right? Regards, Federico On 03/04/2019 17:21, Samuel Gougeon wrote: Hello Federico, Le 03/04/2019 à 17:42, Federico Miyara a écrit : Dear all, Is there any standard way to add an arrow head to axes in a plot? I have found a

Re: [Scilab-users] arrows in axis

2019-04-04 Thread Federico Miyara
but "clipgrf", so there is an issue in the documantation. Regards, Federico Miyara On 04/04/2019 12:12, Samuel Gougeon wrote: Le 04/04/2019 à 06:03, Federico Miyara a écrit : Samuel, Investigating your example, you use the property clip_state and set it to "off", clear

[Scilab-users] Problem with clip_state

2019-04-05 Thread Federico Miyara
ull. Why the original clip_state setting is overridden? If it is the normal or expected behavior (in which case the documentation isn't accurate), then what is it meant for, given that the final impact is that of each individual entity's setting? Thanks in advance. Federico Miya

Re: [Scilab-users] Problem with clip_state

2019-04-06 Thread Federico Miyara
OF, I have now filed it as a bug. Thenk you. Regards, Federico On 06/04/2019 14:39, Samuel Gougeon wrote: 1) I create new axes by plotting some data set. As expected, axes' size matches the plot data range. 2) I run gca().clip_state = "off" Acording to the documentation (https://help.scila

[Scilab-users] question on graphic children order

2019-04-07 Thread Federico Miyara
index were kept constant. The current behavior is as if each new object were inserted in the structure before the previous one instead of after it. Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus

[Scilab-users] Help on LaTeX rendering for xstring

2019-04-08 Thread Federico Miyara
k... Thank you. Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] question on graphic children order

2019-04-08 Thread Federico Miyara
Stéphane, Sometimes one just needs to extract some parameter from an entity and indexing is a valid way to access it. Federico On 08/04/2019 12:18, Stéphane Mottelet wrote: Hello, Le 07/04/2019 à 10:13, Federico Miyara a écrit : Dear all, I would like to know if there is a reason for

Re: [Scilab-users] question on graphic children order

2019-04-09 Thread Federico Miyara
p Am Mo., 8. Apr. 2019 um 23:01 Uhr schrieb Stéphane Mottelet mailto:stephane.motte...@utc.fr>>: Le 08/04/2019 à 22:56, Federico Miyara a écrit : Stéphane, Sometimes one just needs to extract some parameter from an entity and indexing is a valid way to access it.

Re: [Scilab-users] question on graphic children order

2019-04-10 Thread Federico Miyara
ded entity instead of having to keep track of the index or the handle of each specific entity. I suppose it is more frequent to modify the most recently added object than a deeply buried one. Regards, Federico Miyara On 10/04/2019 03:47, Stéphane Mottelet wrote: Le 10/04/2019 à 01:24, Feder

Re: [Scilab-users] 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-10 Thread Federico Miyara
ithin the word processor, if a final touch up is convenient (change font tyope or size, line color, etc.). Regards, Federico Miyara On 10/04/2019 15:07, Heinz Nabielek wrote: Scilab created graphs can be quickly imported into documents via the Clipboard, but their quality is poor with jagged line

Re: [Scilab-users] question on graphic children order

2019-04-10 Thread Federico Miyara
. I find more likely for me to contribute Scilab functions written using the available functions and operators, or try to improve help pages. Regards, Federico On 10/04/2019 13:28, Samuel Gougeon wrote: Le 10/04/2019 à 18:05, Federico Miyara a écrit : Stéphane, Thank you for your insight

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

2019-04-13 Thread Federico Miyara
e (> instead of -->), the same as in the case of a line with a for, but I don't succeed finding how to finish except cancelling with Ctrl-C. Regards, Federico Miyara On 12/04/2019 14:39, Antoine Monmayrant wrote: Hello, I've seen the same with scinotes in 6.0.2, I don't remem

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

2019-04-15 Thread Federico Miyara
geon wrote: Hello Federico, Le 13/04/2019 à 17:13, Federico Miyara a écrit : Antoine, The continuation mark .. doesn't work within strings. Something like this disp("Hello, .. world") produces an error (actually, two errors). I think it would be relatively simple to fix this sy

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

2019-04-16 Thread Federico Miyara
What about cshep2d and eval_cshep2d? This seems not to need grided dta. Federico Miyara On 16/04/2019 14:33, philippe wrote: Le 16/04/2019 à 16:16, Dang Ngoc Chan, Christophe a écrit : Just a quick idea: have you considered using interp2d() at first look yes but interp2d() use the output

Re: [Scilab-users] help page

2019-04-26 Thread Federico Miyara
Stéphane, You may try opening it and printing with PDFCreator (Freeware). Probably with Libre Office it is also possible. There are many xml types of files, Libre Office has in its lists of files that can be opened several xml. Regards, Federico Miyara On 26/04/2019 12:45, Stéphane

[Scilab-users] non-symmetric windows

2019-05-22 Thread Federico Miyara
Dear all, I need to implement a 4096 point non-symmetric Hann window. The function window provides several types of symetric windows, including Hann. I wonder if computing a 4097 point symmetric window and keeping the first 4096 yields what I'm looking for. Thanks. Federico M

Re: [Scilab-users] non-symmetric windows

2019-05-22 Thread Federico Miyara
uot;,N+1); q = q(1:N); q1 = [q, q, q, q]; q2 = [q(N/2+1:N), q, q, q, q(1:N/2)]; Q = q1 + q2 Here Q = [1 1 1 1 ... 1 1 1] so the result is the expected one. Regards, Federico On 22/05/2019 14:02, Samuel Gougeon wrote: Hello Federico, Le 22/05/2019 à 16:40, Federico Miyara a écrit : Dear all, I

Re: [Scilab-users] transparently overlapping histograms

2019-07-19 Thread Federico Miyara
set transparency but it should surely be straightforward. Federico Miyara On 19/07/2019 04:55, Heinz Nabielek wrote: Thanks a lot- unfortunately no idea about svg and inkscape. The neat thing with Scilab is that everything is easy and quick, both in calculation and display... Heinz On 19.07

[Scilab-users] Generating a boolean vector or matrix

2019-09-04 Thread Federico Miyara
oolean, but it does. Questions: 1) Why does it work? 2) Is there some native function to create bolean matrices 3) If not, are there any plans to introduce functions such as true(m,n) or false(m,n)? Thank you. Federico Miyara --- El software de antivirus Avast ha analizado este correo electrónico

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

2019-09-04 Thread Federico Miyara
ut as I'm not registered I cannot comment, and I don't find how to register, either. Regards, Federico Thank you. Federico Miyara <https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.avast.com/sig-

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

2019-09-05 Thread Federico Miyara
of a code I will post when ready for generating maximum length sequences. Regards, Federico Miyara On 04/09/2019 04:49, Dang Ngoc Chan, Christophe wrote: Hello, De : Federico Miyara Envoyé : mercredi 4 septembre 2019 09:11 I need to create a boolean vector, such as [%t, %t, %t, %t] […]

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

2019-09-05 Thread Federico Miyara
further ? There is a simple way to do the same : repmat(%t, n, m) Yeah, there are many other (ineficient) ways, but the average user would appreciate to have one and only one function (here "zeros") to initialize a matrix regardless is type. Yes, that is exactly the use case!

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

2019-09-17 Thread Federico Miyara
n be seen that it happens when the numeric error affects te 16th decimal digit. Regards, Federico Miyara --> x(7)  ans  =    1.6 --> x(7)-1.6  ans  =    0. --> x(8)  ans  =    1.700 --> x(8)-1.7  ans  =    2.220D-16 I think that we do agree about the fact that the

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

2019-09-17 Thread Federico Miyara
s a non-default formatting option. For me, the only change should be to prevent that 1.60009 be represented as 1.6 while 1.70018 is represented as 1.700. Regards, Federico Miyara On 13/09/2019 10:21, Stéphane Mottelet wrote: Le 13/09/2019 à 15:13, Dang Ngoc Chan, Chr

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

2019-09-17 Thread Federico Miyara
proposed ones(m,n,'boolean') would be welcome. Regards, Federico Miyara To me, the only need is to document these trivial ways in the help pages of %F and %T. Replacing a few lines of documentation with a lot of trivial duplicated codes, separate pages, separate tests always loo

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

2019-09-17 Thread Federico Miyara
stead of 1.700 on my system, but I cannot find a good rationale for trailing zeros. Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus ___

Re: [Scilab-users] code coverage

2019-09-19 Thread Federico Miyara
What do you mean by a profiling on functions? Federico Miyara On 18/09/2019 16:49, kjubo wrote: Dear all, I am not able to find out, how to make a profiling on functions, if they are nested. consider this example: //SCILAB CODE START clc,clear function fx = sub1(x1,x2) fx = x1+x2

[Scilab-users] cotg and acot

2019-09-23 Thread Federico Miyara
etter names and is somewhat inconsistent also with the names used for the hypebolic versions. If there is some difference in the result of Scilab and Matlab cotangent, probably the Matlab replacement should be called mtlb_cot, or something like that. Regards, Federico Miyara --- El softwa

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

2019-09-23 Thread Federico Miyara
Dear all, Is there some way of evaluating a polynomial on a square matrix in a matrix-wise (not component-wise) fashion? Something like horner but matrix-wise. Thanks! Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electrónico en busca de virus

[Scilab-users] Analytic models for empirical 3D data

2019-09-23 Thread Federico Miyara
that can likely approximate the data. 2) Optimizing the parameters for the best approximation to the data 2) Is relatively easy by least-squares or other optimization techniques. It is 1) the difficult part. Any help as to literature or known mehods will be welcome Federico Miyara --- El softwa

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

2019-09-24 Thread Federico Miyara
size to the matrix it is added to, and is also computationally more efficient, important especially for very large matrices. Best regards, Federico Miyara On 24/09/2019 05:34, Stéphane Mottelet wrote: Why just not writing Horner's algorithm directly ? functionout=horner_mat(p, X)a=co

Re: [Scilab-users] Deletion of console content

2019-09-25 Thread Federico Miyara
arts of the script do not remain undeleted. One possibility would be to save your work to a memory stick, I don't think a local copy is preserved since at most the script is loaded into volatile RAM which is deleted when you shut your system down. Regards, Federico Miyara On 25/09/2019

[Scilab-users] Difference btween flts and filter

2019-09-26 Thread Federico Miyara
gards, Federico Miyara -- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] cotg and acot

2019-09-30 Thread Federico Miyara
kward compatibility one, which could be handled by keeping cotg during some versions and, if there is any difference between the Matlab cot and the Scilab cot/cotg, introducing a mtlb_cot function as happens with other functions used in the matlab to scilab conveersion tool. Regards, Federico

Re: [Scilab-users] cotg and acot

2019-10-01 Thread Federico Miyara
Dear Masahiro, I accept that in some cases it might be not convenient to follow a rule, but I think the cotangent is not the case because of 1) a long tradition acknowledged in an international standard, 2) consistency, 3) aesthetics, 4) ease of pronounciation, 5) virtual impossibility of confus

[Scilab-users] Problems with mfile2sci

2019-10-06 Thread Federico Miyara
h no success. I'm using 6.0.2. Regards, Federico Miyara -- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus audiometro1.cat Description: application/vnd.ms-pki.seccat ** Beginning of mfile2sci() session ** Fil

Re: [Scilab-users] Re : Problems with mfile2sci

2019-10-07 Thread Federico Miyara
ing wrong? I've tried to change the options (recursive mode, etc.)with no success. I'm using 6.0.2. Regards, Federico Miyara ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- El software de a

[Scilab-users] exists yields double

2019-10-09 Thread Federico Miyara
;t it make more sense that this kind of funtion yielded a boolean result? It challenges reason the fact that "isreal", for instance, yields a boolean and "exists" yields a double. Regards, Federico Miyara -- El software de antivirus Avast ha analizado este correo el

[Scilab-users] Difference btween flts and filter

2019-10-25 Thread Federico Miyara
Dear all, I would like to know if there is a fundamental difference between functions flts and filter. For instance performance, accuracy, speed, versatility... I had asked some time ago but had no answer. Thanks. Regards, Federico Miyara <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

[Scilab-users] Inconsistency in polynomial coefficient order?

2019-10-25 Thread Federico Miyara
inator of a filter (whose numerator we can call B) I must write y = filter(B, [3 2 1], x); Is there a reason for this? Regards, Federico Miyara -- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus

Re: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10

2019-10-30 Thread Federico Miyara
ot shouldn't be used in a block diagram, its only use is to indicate they are real numbers, but block diagrams never refer to integers so the decimal dot is somewhat pedantic. By the way, the "·" can be typed using Alt-250 (on the num pad). Regards, Federico Miyara On 30/10/20

Re: [Scilab-users] Accessing sound device using java api from scilab

2019-10-30 Thread Federico Miyara
Samuel, I too would appreciate direct recording from Scilab and also offer myself to test it! I currently record using Audacity, perhaps some code from Audacity could be reused (it is GPL) Regards, Federico Miyara On 30/10/2019 09:18, Samuel Gougeon wrote: Hello Antoine, Le 30/10

Re: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10

2019-10-30 Thread Federico Miyara
/2019 à 21:51, Federico Miyara a écrit : Dear all, I think a half-high (centered) dot "·" is a better (and more standard) multiplication sign, it does not take much space and it cannot be confused with the decimal separator ".", for instance 1 + Ts·s - A·s^2 1 + 2.·s -

Re: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10

2019-10-31 Thread Federico Miyara
ed%20laplace%20variable%22&f=false But it is true that most references use s. Regards, Federico Miyara On 30/10/2019 19:02, Samuel Gougeon wrote: Le 30/10/2019 à 10:26, Perrichon a écrit : Hello CLR design component brings confusion by forgetting the * sign in operand of a polynomial

[Scilab-users] example of library

2019-11-08 Thread Federico Miyara
using elementary_functionlib, but when running the sample script I get the error message Undefined variable: elementary_functionlib Is it possible that the name has changed and the example has not been updated yet? Thanks. Federico Miyara ___

Re: [Scilab-users] example of library

2019-11-08 Thread Federico Miyara
y the example didn't work! Somebody told me I could edit the documentation by myself. I need some permission? How I can get access to edit the help pages? Regards, Federico Miyara On 09/11/2019 01:34, Federico Miyara wrote: Dear all, I'm trying to create some examples illust

[Scilab-users] mtlb_sparse

2019-11-08 Thread Federico Miyara
Dear all, Is the function mtlb_sparse still supported? I try to run the example in the documentation https://help.scilab.org/docs/6.0.2/en_US/mtlb_sparse.html and I get an error: Undefined variable: mtlb_sparse Is there another way to generate a type 7 variable? Regards, Federico Miyara

Re: [Scilab-users] QUESTION

2019-11-13 Thread Federico Miyara
error message. In Scilab you can compare a word with a novel since both are scalar strings, a type in its own right. There are many other advantages, such as being natively multi platform. Discovering them is fun, I promise. Regards, Federico Miyara On 13/11/2019 07:46, Wofai

Re: [Scilab-users] (no subject)

2019-11-13 Thread Federico Miyara
You can unsubscibe visiting the link at the bottom of any message and once there, clicking on the "unsubscribe or edit options" button at the end. On 13/11/2019 16:42, Uzoh Uzochukwu wrote: unsubscribe me from the mailing ;ist ___ users mailing lis

Re: [Scilab-users] example of library

2019-11-17 Thread Federico Miyara
'm completely at a loss. How do I locate the help page I want to edit from here? Thanks in advance. Federico Miyara ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

[Scilab-users] symbolic functions

2019-11-18 Thread Federico Miyara
, but they have been removed from version 6. Any idea why? Regards, Federico Miyara ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] example of library

2019-11-18 Thread Federico Miyara
rassing--I cannot track back what help page my own correction, http://bugzilla.scilab.org/show_bug.cgi?id=16250 refers to, and as the bug is a very unspecific typo I cannot recall it. Thank you very much for your patience! Regards, Federico Miyara On 18/11/2019 06:44, Stéphane Mottelet wrot

  1   2   3   >