From sgougeon at free.fr Sat Jan 7 23:26:42 2023 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 7 Jan 2023 23:26:42 +0100 Subject: [Scilab-users] Messagebox - button pre-selection In-Reply-To: References: Message-ID: <953a089f-a9ad-a22e-ca4c-214dab57b22f@free.fr> Le 22/10/2021 ? 12:56, P M a ?crit?: > Dear, > > in a messagebox: > > Is it possible to have a button other than the first one pre-selected? > > e.g.: I'd like to have "No" pre-selected in the example below? > > In my application the buttons must stay in their order as they > are...so simply changing the order (button label) is no option. > > Thank you, > Philipp > > grafik.png > Is it possible to have a button other than the first one pre-selected? Almost :-/? So, AFAIK, unfortunately no. There is a CallScilabBridge.setMessageBoxDefaultSelectedButtons(id, k) java method (*) that should set it, where k is the index of the preselected button. But in the code it is apparently implemented only for x_choices() As well, messagebox("Have you seen this beautiful message", "info", ["Yes" "No"]); jimport org.scilab.modules.gui.utils.UIElementMapper ; m = UIElementMapper.getCorrespondingUIElement(1); m.setDefaultSelectedButtons(1); // First is #0 does nothing Samuel (*) jimport org.scilab.modules.gui.bridge.CallScilabBridge jgetmethods(CallScilabBridge) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: grafik.png Type: image/png Size: 7370 bytes Desc: not available URL: From chukwuemeka.anyaoha at unn.edu.ng Tue Jan 10 15:43:18 2023 From: chukwuemeka.anyaoha at unn.edu.ng (chukwuemeka anyaoha) Date: Tue, 10 Jan 2023 15:43:18 +0100 Subject: [Scilab-users] (no subject) Message-ID: what is the advantage of scilab over matlab -- *Engr Chukwuemeka Anyaoha.* *Department of Mechanical Engineering* *University of Nigeria, Nsukka.* *Teaching and Research Assistant (TRA) , World Bank **African Centre of Excellence For Sustainable Power & Energy Development (ACE-SPED), * *COREN (R46092)* *+234 08065276477* -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Tue Jan 10 15:53:22 2023 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Tue, 10 Jan 2023 15:53:22 +0100 Subject: [Scilab-users] (no subject) In-Reply-To: References: Message-ID: Chat GPT answer (with a few inexact facts removed): Scilab and MATLAB are both powerful mathematical computing environments, but they have some key differences that may make one more suitable for a particular use case than the other. Here are a few potential advantages of Scilab over MATLAB: * Open-source: Scilab is open-source software, which means that it is free to download and use, and the source code is available for users to modify and distribute. MATLAB, on the other hand, is proprietary software, and requires a license to use. * Cross-platform compatibility: Scilab is available for Windows, macOS, and Linux, which makes it more accessible for users on different operating systems. * Interoperability: Scilab can call functions from other programming languages, such as C and Fortran, which can be useful for interfacing with existing code. * Cost: As mentioned before, Scilab is open source, which means you can use it without any license cost unlike Matlab which require purchasing a license to use it. It is also worth noting that Scilab and MATLAB are both based on similar ideas and share a similar syntax, so users familiar with one system should be able to pick up the other relatively easily. In general, Scilab might be a good option for users who are looking for a free or low-cost alternative to MATLAB, or for those who need to interface with existing code written in other languages. However, in terms of the functionality, Matlab is often considered as more mature and have a wider range of toolboxes for advanced functionality. So the choice between Scilab and MATLAB would depend on the specific needs and constraints of the user. Le 10/01/2023 ? 15:43, chukwuemeka anyaoha a ?crit?: > what is the advantage of scilab over matlab -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Tue Jan 10 18:05:26 2023 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Tue, 10 Jan 2023 14:05:26 -0300 Subject: [Scilab-users] (no subject) In-Reply-To: References: Message-ID: <8647a051-e704-43ab-259f-8421c26d2dd0@fceia.unr.edu.ar> My knowledge of Matlab is freezed as of 2017, when I abandoned Matlab and embraced Scilab, so might be some of my comments are outdated It is free, open source software No licenses that eventually expire Strings are better handled. In Matlab you can check for equality only if their lengths are the same since they are just vectors of codes. In Scilab a string is a true type for supporting many operations in a more intuitive way. Variable names support extended characters You can extract components from the result of any function: y = fft(x)(1:5) The same applies to any field of structure It is mostly compatible with Matlab and you can automatically convert Matlab scripts to Scilab scripts, which allows to reuse Matlab code (it is not perfect and manual correction is needed) Insanely powerful control of graphics. Impressive community to help with any doubts. Regards, Federico Miyara On 10/01/2023 11:43, chukwuemeka anyaoha wrote: > what is the advantage of scilab over matlab > > -- > *Engr Chukwuemeka Anyaoha.* > /Department of Mechanical Engineering/ > /University of Nigeria, Nsukka./ > /Teaching and Research Assistant (TRA) , World Bank //African Centre > of Excellence For Sustainable Power & Energy Development (ACE-SPED), / > /*COREN*?(*R46092*)/ > *+234 08065276477* > > _______________________________________________ > users mailing list - users at lists.scilab.org > Click here to unsubscribe: > http://lists.scilab.org/mailman/listinfo/users -- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Tue Jan 10 19:49:13 2023 From: heinznabielek at me.com (Heinz Nabielek) Date: Tue, 10 Jan 2023 19:49:13 +0100 Subject: [Scilab-users] (no subject) In-Reply-To: <8647a051-e704-43ab-259f-8421c26d2dd0@fceia.unr.edu.ar> References: <8647a051-e704-43ab-259f-8421c26d2dd0@fceia.unr.edu.ar> Message-ID: On 10.01.2023, at 18:05, Federico Miyara wrote: > > > My knowledge of Matlab is freezed as of 2017, when I abandoned Matlab and embraced Scilab, so might be some of my comments are outdated > > It is free, open source software > > No licenses that eventually expire > > Strings are better handled. In Matlab you can check for equality only if their lengths are the same since they are just vectors of codes. In Scilab a string is a true type for supporting many operations in a more intuitive way. > > Variable names support extended characters > > You can extract components from the result of any function: y = fft(x)(1:5) > > The same applies to any field of structure > > It is mostly compatible with Matlab and you can automatically convert Matlab scripts to Scilab scripts, which allows to reuse Matlab code (it is not perfect and manual correction is needed) > > Insanely powerful control of graphics. > > Impressive community to help with any doubts. 150% agreed and confirmed Heinz From sgougeon at free.fr Wed Jan 11 00:11:43 2023 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 11 Jan 2023 00:11:43 +0100 Subject: [Scilab-users] Basic query - mprintf In-Reply-To: References: Message-ID: <58b7a3f6-a5c4-f32e-91f1-3917570f319b@free.fr> Le 07/04/2022 ? 09:50, Lester Anderson a ?crit?: > Hello all, > > Very basic query but how do you print all the values from a result via > mprintf? > > e.g. > > fac = factor(1729) > 7 13 19 > > mprintf('Factors of 1729 are: %d\n', fac) > just prints 'Factors of 1729 are:?7 > You may also use a Fortran syntax -- that supports automatic inline iterations, unlike C syntaxes -- instead of a? C one: --> fac = factor(1729); --> write(%io(2), fac, "(''Factors of 1729 are:'', 10(i2,2x))") Factors of 1729 are: 7? 13? 19 Samuel PS : i no longer receive messages from users@ since 2022-10-05 (last received). So for the time being, i answer to old threads, to not break recent ones to which i can't reply, just read archives. From sdr at durietz.se Wed Jan 11 22:24:56 2023 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 11 Jan 2023 22:24:56 +0100 Subject: [Scilab-users] Basic query - mprintf In-Reply-To: <58b7a3f6-a5c4-f32e-91f1-3917570f319b@free.fr> References: <58b7a3f6-a5c4-f32e-91f1-3917570f319b@free.fr> Message-ID: <505e7620-bce4-9091-016b-87ade6af591f@durietz.se> On 2023-01-11 00:11, Samuel Gougeon wrote: > Le 07/04/2022 ? 09:50, Lester Anderson a ?crit?: >> Hello all, >> >> Very basic query but how do you print all the values from a result via >> mprintf? >> >> e.g. >> >> fac = factor(1729) >> 7 13 19 >> >> mprintf('Factors of 1729 are: %d\n', fac) >> just prints 'Factors of 1729 are:?7 >> > You may also use a Fortran syntax -- that supports automatic inline > iterations, unlike C syntaxes -- instead of a? C one: > > --> fac = factor(1729); > --> write(%io(2), fac, "(''Factors of 1729 are:'', 10(i2,2x))") > > Factors of 1729 are: 7? 13? 19 > > Samuel > > PS : i no longer receive messages from users@ since 2022-10-05 (last > received). > So for the time being, i answer to old threads, to not break recent ones > to which i can't reply, just read archives. > > Too print all elements, the argument must be a column vector: fac' And to avoid repeating the first wording, you can print it separately: --> mprintf("Factors of 1729 are: "), mprintf("%d ", fac') Factors of 1729 are: 7 13 19 Stefan From samuel.gougeon at sfr.fr Sat Jan 14 16:12:06 2023 From: samuel.gougeon at sfr.fr (Samuel Gougeon) Date: Sat, 14 Jan 2023 16:12:06 +0100 Subject: [Scilab-users] Basic query - mprintf In-Reply-To: <58b7a3f6-a5c4-f32e-91f1-3917570f319b@free.fr> References: <58b7a3f6-a5c4-f32e-91f1-3917570f319b@free.fr> Message-ID: [Let's try to answer without technical reply. Hope to not break or shift the thread] > On 2023-01-11 22:33:10, Stefan Du Rietz wrote: > > Too print all elements, the argument must be a column vector: fac' > And to avoid repeating the first wording, you can print it separately: > > --> mprintf("Factors of 1729 are: "), mprintf("%d ", fac') > Factors of 1729 are: 7 13 19 > > Stefan > Yes, i have well read your previous answer. I was just providing an alternative. That was not the initial querry, but write() allows to iterate on rows AND columns in the same way, adapting to free numbers of rows AND columns with the same unique simple syntax: --> fac = grand(3,4,"uin",0,9) ?fac? = ?? 2.?? 5.?? 9.?? 3. ?? 2.?? 4.?? 5.?? 5. ?? 4.?? 1.?? 8.?? 5. --> write(%io(2), fac, "(''The row is:'', 10(i2,2x))") The row is: 2?? 5?? 9?? 3 The row is: 2?? 4?? 5?? 5 The row is: 4?? 1?? 8?? 5 One could dream of extending the C syntax with this Fortran feature... The first days of January are a good for wishes :-) Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.DAVID at 3ds.com Wed Jan 18 11:28:13 2023 From: Clement.DAVID at 3ds.com (=?utf-8?B?REFWSUQgQ2zDqW1lbnQ=?=) Date: Wed, 18 Jan 2023 10:28:13 +0000 Subject: [Scilab-users] Scilab web sites migration In-Reply-To: <7ee7ca1b7bb1458d881bda088764e379@3ds.com> References: <7ee7ca1b7bb1458d881bda088764e379@3ds.com> Message-ID: Hello all, As a follow-up, we are entering the final migration phase. I will migrate the mailing list server lists.scilab.org starting 2023-01-19 9:00 CEST. It might not respond during this migration. I hope to limit downtime to a minimum and will keep you informed when the migration ended. Regards, Cl?ment This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Syst?mes does not accept or assume any liability or responsibility for any use of or reliance on this email. Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer https://www.3ds.com/privacy-policy/contact/ From Clement.DAVID at 3ds.com Fri Jan 20 08:22:58 2023 From: Clement.DAVID at 3ds.com (=?utf-8?B?REFWSUQgQ2zDqW1lbnQ=?=) Date: Fri, 20 Jan 2023 07:22:58 +0000 Subject: [Scilab-users] Scilab web sites migration In-Reply-To: References: <7ee7ca1b7bb1458d881bda088764e379@3ds.com> Message-ID: Hello all, The mailing list server lists.scilab.org has been migrated yesterday evening. This mail was sent with the new server! Note: server archives for mailing lists are also available for history on this https://lists.scilab.org/pipermail/users . Regards, Cl?ment > -----Original Message----- > From: DAVID Cl?ment > Sent: Wednesday, January 18, 2023 11:28 AM > To: Users mailing list for Scilab > Cc: DAVID Cl?ment > Subject: RE: Scilab web sites migration > > Hello all, > > As a follow-up, we are entering the final migration phase. I will migrate the > mailing list server lists.scilab.org starting 2023-01-19 9:00 CEST. It might not > respond during this migration. > > I hope to limit downtime to a minimum and will keep you informed when the > migration ended. > > Regards, > > Cl?ment This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Syst?mes does not accept or assume any liability or responsibility for any use of or reliance on this email. Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer https://www.3ds.com/privacy-policy/contact/ From fmiyara at fceia.unr.edu.ar Fri Jan 20 17:45:04 2023 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Fri, 20 Jan 2023 13:45:04 -0300 Subject: [Scilab-users] Scilab web sites migration In-Reply-To: References: <7ee7ca1b7bb1458d881bda088764e379@3ds.com> Message-ID: <848f2668-c773-cba4-1cc0-1c015e3bfc7f@fceia.unr.edu.ar> Thanks Cl?ment, this is just to check whether everything works fine for a random user. Regards, Federico Miyara On 20/01/2023 04:22, DAVID Cl?ment wrote: > Hello all, > > The mailing list server lists.scilab.org has been migrated yesterday evening. This mail was sent with the new server! > > Note: server archives for mailing lists are also available for history on this https://lists.scilab.org/pipermail/users . > > Regards, > > Cl?ment > >> -----Original Message----- >> From: DAVID Cl?ment >> Sent: Wednesday, January 18, 2023 11:28 AM >> To: Users mailing list for Scilab >> Cc: DAVID Cl?ment >> Subject: RE: Scilab web sites migration >> >> Hello all, >> >> As a follow-up, we are entering the final migration phase. I will migrate the >> mailing list server lists.scilab.org starting 2023-01-19 9:00 CEST. It might not >> respond during this migration. >> >> I hope to limit downtime to a minimum and will keep you informed when the >> migration ended. >> >> Regards, >> >> Cl?ment > This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. > > If you are not one of the named recipients or have received this email in error, > > (i) you should not read, disclose, or copy it, > > (ii) please notify sender of your receipt by reply email and delete this email and all attachments, > > (iii) Dassault Syst?mes does not accept or assume any liability or responsibility for any use of or reliance on this email. > > > Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer https://www.3ds.com/privacy-policy/contact/ > > _______________________________________________ > users mailing list - users at lists.scilab.org > Click here to unsubscribe: > http://lists.scilab.org/mailman/listinfo/users > > -- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.DAVID at 3ds.com Mon Jan 23 08:55:51 2023 From: Clement.DAVID at 3ds.com (=?utf-8?B?REFWSUQgQ2zDqW1lbnQ=?=) Date: Mon, 23 Jan 2023 07:55:51 +0000 Subject: [Scilab-users] Scilab web sites migration In-Reply-To: <848f2668-c773-cba4-1cc0-1c015e3bfc7f@fceia.unr.edu.ar> References: <7ee7ca1b7bb1458d881bda088764e379@3ds.com> <848f2668-c773-cba4-1cc0-1c015e3bfc7f@fceia.unr.edu.ar> Message-ID: <2732faa36f1e499db6fa5f0d85ceebe1@3ds.com> It is ! Thanks for your message. > Thanks Cl?ment, this is just to check whether everything works fine for a > random user. Cl?ment This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Syst?mes does not accept or assume any liability or responsibility for any use of or reliance on this email. Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer https://www.3ds.com/privacy-policy/contact/