From herozigle at gmail.com Mon Oct 2 09:40:04 2017 From: herozigle at gmail.com (Hermes) Date: Mon, 2 Oct 2017 00:40:04 -0700 (MST) Subject: [Scilab-users] numderivative Heart Message-ID: <1506930004543-0.post@n3.nabble.com> Hola,I would like to find the values of the function for which its derivative is equal to zero.function val = Heart(x1, x2) val=(1.25*x2-sqrt(abs(x1))).^2+x1.^2-1; // switched ^ to .^ to handle vectorsendfunction;I've tried it with the numderivative function.Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Mon Oct 2 09:41:55 2017 From: herozigle at gmail.com (Hermes) Date: Mon, 2 Oct 2017 00:41:55 -0700 (MST) Subject: [Scilab-users] numderivative Heart function Message-ID: <1506930115440-0.post@n3.nabble.com> Hola, I would like to find the values of the function for which its derivative is equal to zero. function val = Heart(x1, x2) val=(1.25*x2-sqrt(abs(x1))).^2+x1.^2-1; endfunction; I've tried it with the numderivative function. Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Mon Oct 2 23:22:30 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 2 Oct 2017 21:22:30 +0000 Subject: [Scilab-users] numderivative Heart function In-Reply-To: <1506930115440-0.post@n3.nabble.com> References: <1506930115440-0.post@n3.nabble.com> Message-ID: Salut, 1. Define: z = H(x, y). 2. Differentiate analytically to obtain the gradient g = (gx,gy) = (dH/dx, dH/dy) 3. Use same contour method as before to plot |g| = 0 PS: as derivative has singularity along x=0; need to define grid appropriately to avoid it. Bonne chance Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Hermes Sent: Monday, October 02, 2017 9:42 AM To: users at lists.scilab.org Subject: [Scilab-users] numderivative Heart function Hola, I would like to find the values of the function for which its derivative is equal to zero. function val = Heart(x1, x2) val=(1.25*x2-sqrt(abs(x1))).^2+x1.^2-1; endfunction; I've tried it with the numderivative function. Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From jumar2103 at gmail.com Tue Oct 3 03:54:02 2017 From: jumar2103 at gmail.com (blanckaway) Date: Mon, 2 Oct 2017 18:54:02 -0700 (MST) Subject: [Scilab-users] I NEED HELP WITH SCILAB (I'M IN A HURRY) Message-ID: <1506995642382-0.post@n3.nabble.com> I'M NEW AT THIS. I HAVE TO DO THESE TWO EXERCISES NEVER LESS THAN 24 HOURS AND I AM 12 AND I CAN NOT ACHIEVE ANYTHING. HELP 1. Using the fact that in Scilab an inequality such as 2 3 ? ?x has a logical value that becomes numerical value (0 or 1) by involving it in arithmetic calculations, genera without using cycles the graph of figure 3.3 The image describes a line that runs along a Cartesian plane. The line is kept straight until it reaches x = 2 there it rises straight up to y = 5, stays at y = 5 until x = 3 and then goes back down to x = 0 2. Modify the code of the fourier_aprox function so that it only graphs one cycle of the pulse train and its Fourier series approximation by increasing the number of N weapons from 1 to infinity (only odd numbers). Waiting at each value of N for the user to press the [enter] key to continue (using the command: input ('press [enter] to continue'); PLEASE HELP -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From rsthakur922 at gmail.com Tue Oct 3 05:46:53 2017 From: rsthakur922 at gmail.com (rusty148) Date: Mon, 2 Oct 2017 20:46:53 -0700 (MST) Subject: [Scilab-users] XCOS crashes when period of cscope made smaller than 0.1 Message-ID: <1507002413483-0.post@n3.nabble.com> Hello, I am trying to simulate PID in xcos using an user defined function. Here is my function function [y]= tito(a) y(1)=a(1)+a(2); endfunction And the layout is depicted in the picture attached Whenever I am making the period in xcos smaller than 0.1 it run for few second and then crashes. The eroor log generated reads: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000084ab9916, pid=2024, tid=1600 # # JRE version: Java(TM) SE Runtime Environment (8.0_40-b26) (build 1.8.0_40-b26) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode windows-amd64 compressed oops) # Problematic frame: # C 0x0000000084ab9916 # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x0000000072e89800): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=1600, stack(0x000000007b9b0000,0x000000007d840000)] siginfo: ExceptionCode=0xc0000005, reading address 0x00000000b2734180 Registers: RAX=0x00000000acb45cd0, RBX=0x00000000661b0000, RCX=0x000000008b1501d8, RDX=0x0000000083d10000 RSP=0x000000007d83cda0, RBP=0x00000000006900fc, RSI=0x0000000000000000, RDI=0x0000000000000001 R8 =0x000000000000000b, R9 =0x000000000000000b, R10=0x000000008b1501d8, R11=0x00000000b2734180 R12=0x000000008b1501d8, R13=0x000000008a6300b8, R14=0x000000008b1501d8, R15=0x000000000000000c and it continues................. Please help me in this regard. Thanks -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From Yves.Rambinintsoa at gmail.com Tue Oct 3 10:22:58 2017 From: Yves.Rambinintsoa at gmail.com (Yves Rambi) Date: Tue, 3 Oct 2017 01:22:58 -0700 (MST) Subject: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues Message-ID: <1507018978341-0.post@n3.nabble.com> Hello, I am using Scilab on both OS - MS Windows (6.0.0) - Linux (5.5.0) For the Windows version I have following issues with Xcos: *Issue 1: Wrong port number* - I create a Superblock - In the Superblock I add an input or an output port - An error message appears stating "Evaluation porblem: Wrong port number" and the number of the new port doesnt increment but stays by "1" (It's the same for outputs) *Issue 2: Port/Block name disappear* - When I give a port a name through "format" ...(Strg+F2) and close the window the port names don't appear in the upper level Both issues don't appear on Linux version (5.5.0). Is there a workaround or are there some special settings I miss here? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Tue Oct 3 13:54:07 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 3 Oct 2017 13:54:07 +0200 Subject: [Scilab-users] help_from_sci() with %overload.sci <= Re: unit tests and help generation for overloaded unary/binary operators In-Reply-To: References: Message-ID: Hi, Le 16/06/2016 ? 18:28, philippe a ?crit : > Hi, > > I'm writing a toolbox to handle "big integers" represented by a tlist > of type "bigint". In my "macros/" directory I wrote my scilab functions > for bigint type and overloaded unary and binary operators (+,-,>,==, > ...) for example %bigint_o_bigint for bigint equality "==" (see the > source code at the bottom of this message ). For each function I wrote, > I've created : > > - a short help, as a comment at the beginning of the *.sci file > - a test file "*.tst" placed in "/tests/unit_tests/" directory > > I have some problems when I execute my builder.sce : > > if %bigint_o_bigint function is stored in macros/%bigint_o_bigint.sci > and its unit test in tests/unit_tests/%bigint_o_bigint.tst then I get > an error during help generation (but unit_tests are OK) : What you did not really say here is that you use help_from_sci() to build your XML pages from heading comments in your %overload_name.sci files. Now, help_from_sci() does not support properly functions names starting with "%", including some forbidden "%" characters in XML filenames and xml:id value. This is now reported as http://bugzilla.scilab.org/15282 with a proposed fix @ https://codereview.scilab.org/#/c/19443 With this fix, you will no longer need to post-process your filenames and files contents to make the doc builder running right. It normalizes filenames and xml:id in the same way as native Scilab files are, by replacing "%" with "percent". BR Samuel > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > G?n?ration du document ma?tre : > /home/roux/Documents/informatique/scilab/bigint/help/en_US > > G?n?ration du fichier d'aide [javaHelp] in > /home/roux/Documents/informatique/scilab/bigint/help/en_US. > !--error 999 > buildDoc : Erreur pendant la g?n?ration de la documentation : no > protocol: > /home/roux/Documents/informatique/scilab/bigint/help/en_US/%bigint_o_bigint.xml. > at line 691 of function xmltoformat called by : > at line 17 of function xmltojar called by : > at line 51 of function tbx_build_help called by : > tbx_build_help(toolbox_title, help_lang_dir); > at line 7 of exec file called by : > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > if %bigint_o_bigint function is stored in macros/bigint_o_bigint.sci and > its unit test in tests/unit_tests/%bigint_o_bigint.tst or > tests/unit_tests/bigint_o_bigint.tst then I get the error during > unit_tests (but online help is generated without problems ???? ) > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > -->tbx_build_help_loader(toolbox_title, help_dir) > > TMPDIR = /tmp/SCI_TMP_420_E0z4Rx > > 001/001 - [.] : > > 001/009 - [.] bigint.........................................failed: > premature end of the test script > 002/009 - [.] bigint_o_bigint................................failed: > premature end of the test script > > > [...........] > > TEST : [.] bigint_o_bigint > failed: premature end of the test script > Check the following file : > - /tmp/SCI_TMP_420_E0z4Rx/bigint_o_bigint.dia.tmp > Or launch the following command : > - > exec("/home/roux/Documents/informatique/scilab/bigint/tests/unit_tests/bigint_o_bigint.tst"); > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > same problem with %bigint_o_bigint.tst > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > > 001/009 - [.] %bigint_o_bigint...............................failed: > premature end of the test script > > [........] > > TEST : [.] %bigint_o_bigint > failed: premature end of the test script > Check the following file : > - /tmp/SCI_TMP_420_E0z4Rx/%bigint_o_bigint.dia.tmp > Or launch the following command : > - > exec("/home/roux/Documents/informatique/scilab/bigint/tests/unit_tests/%bigint_o_bigint.tst"); > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > how can I solve both problems ? > > Philippe. > > my %bigint_o_bigint code with help inside : > > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > function [bool]=%bigint_o_bigint(x,y) > // > // Calling Sequence > // x==y > // > // Parameters > // x,y: bigint > // bool : boolean > // > // Description > // bigint comparison > // > // Examples > // // > // x=bigint('123456789') > // y=bigint('0123456789') > // z=bigint('1234567890') > // x==y // true > // x==z // false > // > // See also > // bigint > // > // Authors > // Philippe Roux > // > > x=check_bigint(x) > y=check_bigint(y) > bool=(x.signe==y.signe)&(and(x.rep==y.rep)) > endfunction > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From Paul.Bignier at esi-group.com Tue Oct 3 14:04:15 2017 From: Paul.Bignier at esi-group.com (Paul Bignier) Date: Tue, 3 Oct 2017 12:04:15 +0000 Subject: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues In-Reply-To: <1507018978341-0.post@n3.nabble.com> References: <1507018978341-0.post@n3.nabble.com> Message-ID: Hello Yves, Could you please report this issue to our Bugzilla? You may also try with our latest nightly builds. Thanks a lot for your contribution! Regards, Paul Paul BIGNIER Development engineer ----------------------------------------------------------- ESI Group - Scilab 99 rue des Solets - 94513 Rungis, France Phone: +33.1.41.73.58.77 https://scilab.io https://esi-group.com ________________________________ From: users on behalf of Yves Rambi Sent: Tuesday, October 3, 2017 10:22 AM To: users at lists.scilab.org Subject: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues Hello, I am using Scilab on both OS - MS Windows (6.0.0) - Linux (5.5.0) For the Windows version I have following issues with Xcos: *Issue 1: Wrong port number* - I create a Superblock - In the Superblock I add an input or an output port - An error message appears stating "Evaluation porblem: Wrong port number" and the number of the new port doesnt increment but stays by "1" (It's the same for outputs) *Issue 2: Port/Block name disappear* - When I give a port a name through "format" ...(Strg+F2) and close the window the port names don't appear in the upper level Both issues don't appear on Linux version (5.5.0). Is there a workaround or are there some special settings I miss here? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Paul.Bignier at esi-group.com Tue Oct 3 14:07:45 2017 From: Paul.Bignier at esi-group.com (Paul Bignier) Date: Tue, 3 Oct 2017 12:07:45 +0000 Subject: [Scilab-users] XCOS crashes when period of cscope made smaller than 0.1 In-Reply-To: <1507002413483-0.post@n3.nabble.com> References: <1507002413483-0.post@n3.nabble.com> Message-ID: Hello rusty, Could you please report this issue to our ? Thanks a lot for your contribution! Regards, Paul Paul BIGNIER Development engineer ----------------------------------------------------------- ESI Group - Scilab 99 rue des Solets - 94513 Rungis, France Phone: +33.1.41.73.58.77 https://scilab.io https://esi-group.com ________________________________ From: users on behalf of rusty148 Sent: Tuesday, October 3, 2017 5:46 AM To: users at lists.scilab.org Subject: [Scilab-users] XCOS crashes when period of cscope made smaller than 0.1 Hello, I am trying to simulate PID in xcos using an user defined function. Here is my function function [y]= tito(a) y(1)=a(1)+a(2); endfunction And the layout is depicted in the picture attached Whenever I am making the period in xcos smaller than 0.1 it run for few second and then crashes. The eroor log generated reads: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000084ab9916, pid=2024, tid=1600 # # JRE version: Java(TM) SE Runtime Environment (8.0_40-b26) (build 1.8.0_40-b26) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode windows-amd64 compressed oops) # Problematic frame: # C 0x0000000084ab9916 # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x0000000072e89800): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=1600, stack(0x000000007b9b0000,0x000000007d840000)] siginfo: ExceptionCode=0xc0000005, reading address 0x00000000b2734180 Registers: RAX=0x00000000acb45cd0, RBX=0x00000000661b0000, RCX=0x000000008b1501d8, RDX=0x0000000083d10000 RSP=0x000000007d83cda0, RBP=0x00000000006900fc, RSI=0x0000000000000000, RDI=0x0000000000000001 R8 =0x000000000000000b, R9 =0x000000000000000b, R10=0x000000008b1501d8, R11=0x00000000b2734180 R12=0x000000008b1501d8, R13=0x000000008a6300b8, R14=0x000000008b1501d8, R15=0x000000000000000c and it continues................. Please help me in this regard. Thanks -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Paul.Bignier at esi-group.com Tue Oct 3 14:08:41 2017 From: Paul.Bignier at esi-group.com (Paul Bignier) Date: Tue, 3 Oct 2017 12:08:41 +0000 Subject: [Scilab-users] XCOS crashes when period of cscope made smaller than 0.1 In-Reply-To: References: <1507002413483-0.post@n3.nabble.com>, Message-ID: Sorry, I meant "to our bugzilla"! Paul Paul BIGNIER Development engineer ----------------------------------------------------------- ESI Group - Scilab 99 rue des Solets - 94513 Rungis, France Phone: +33.1.41.73.58.77 https://scilab.io https://esi-group.com ________________________________ From: Paul Bignier Sent: Tuesday, October 3, 2017 2:07 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] XCOS crashes when period of cscope made smaller than 0.1 Hello rusty, Could you please report this issue to our ? Thanks a lot for your contribution! Regards, Paul Paul BIGNIER Development engineer ----------------------------------------------------------- ESI Group - Scilab 99 rue des Solets - 94513 Rungis, France Phone: +33.1.41.73.58.77 https://scilab.io https://esi-group.com ________________________________ From: users on behalf of rusty148 Sent: Tuesday, October 3, 2017 5:46 AM To: users at lists.scilab.org Subject: [Scilab-users] XCOS crashes when period of cscope made smaller than 0.1 Hello, I am trying to simulate PID in xcos using an user defined function. Here is my function function [y]= tito(a) y(1)=a(1)+a(2); endfunction And the layout is depicted in the picture attached Whenever I am making the period in xcos smaller than 0.1 it run for few second and then crashes. The eroor log generated reads: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000084ab9916, pid=2024, tid=1600 # # JRE version: Java(TM) SE Runtime Environment (8.0_40-b26) (build 1.8.0_40-b26) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode windows-amd64 compressed oops) # Problematic frame: # C 0x0000000084ab9916 # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x0000000072e89800): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=1600, stack(0x000000007b9b0000,0x000000007d840000)] siginfo: ExceptionCode=0xc0000005, reading address 0x00000000b2734180 Registers: RAX=0x00000000acb45cd0, RBX=0x00000000661b0000, RCX=0x000000008b1501d8, RDX=0x0000000083d10000 RSP=0x000000007d83cda0, RBP=0x00000000006900fc, RSI=0x0000000000000000, RDI=0x0000000000000001 R8 =0x000000000000000b, R9 =0x000000000000000b, R10=0x000000008b1501d8, R11=0x00000000b2734180 R12=0x000000008b1501d8, R13=0x000000008a6300b8, R14=0x000000008b1501d8, R15=0x000000000000000c and it continues................. Please help me in this regard. Thanks -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Tue Oct 3 23:12:02 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 3 Oct 2017 21:12:02 +0000 Subject: [Scilab-users] I NEED HELP WITH SCILAB (I'M IN A HURRY) In-Reply-To: <1506995642382-0.post@n3.nabble.com> References: <1506995642382-0.post@n3.nabble.com> Message-ID: Without providing some code showing your attempts to use Scilab, this forum may not feel the urge to solve other?s homework. The hardest job kids face today is learning good manners without seeing any - Fred Astaire -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of blanckaway Sent: Tuesday, October 03, 2017 3:54 AM To: users at lists.scilab.org Subject: [Scilab-users] I NEED HELP WITH SCILAB (I'M IN A HURRY) I'M NEW AT THIS. I HAVE TO DO THESE TWO EXERCISES NEVER LESS THAN 24 HOURS AND I AM 12 AND I CAN NOT ACHIEVE ANYTHING. HELP 1. Using the fact that in Scilab an inequality such as 2 3 ? ?x has a logical value that becomes numerical value (0 or 1) by involving it in arithmetic calculations, genera without using cycles the graph of figure 3.3 The image describes a line that runs along a Cartesian plane. The line is kept straight until it reaches x = 2 there it rises straight up to y = 5, stays at y = 5 until x = 3 and then goes back down to x = 0 2. Modify the code of the fourier_aprox function so that it only graphs one cycle of the pulse train and its Fourier series approximation by increasing the number of N weapons from 1 to infinity (only odd numbers). Waiting at each value of N for the user to press the [enter] key to continue (using the command: input ('press [enter] to continue'); PLEASE HELP -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Yves.Rambinintsoa at gmail.com Wed Oct 4 09:25:16 2017 From: Yves.Rambinintsoa at gmail.com (Yves Rambi) Date: Wed, 4 Oct 2017 00:25:16 -0700 (MST) Subject: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues In-Reply-To: References: <1507018978341-0.post@n3.nabble.com> Message-ID: <1507101916864-0.post@n3.nabble.com> Hello Paul, I submitted both issues to Bugzilla. For the nightly builds, the links seem to be dead. I always get "Error 404" by clicking on the target links to the *.exe file. Regards, Yves -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From heinznabielek at icloud.com Wed Oct 4 11:16:14 2017 From: heinznabielek at icloud.com (Heinz Nabielek) Date: Wed, 04 Oct 2017 11:16:14 +0200 Subject: [Scilab-users] do not manage to show text labels along the x-axis In-Reply-To: <1507101916864-0.post@n3.nabble.com> References: <1507018978341-0.post@n3.nabble.com> <1507101916864-0.post@n3.nabble.com> Message-ID: <7BAD81ED-FB0F-482C-B1DE-019831881402@icloud.com> Monte-Carlo simulating blood types in Austria was easy in Scilab, but I do not manage to show text labels along the x-axis. Text would be: blood=['0+' 'A+' 'B+' 'AB+' '0-' 'A-' 'B-' 'AB-'] and the diagram should look similar to my attached EXCEL. Heinz // SciLab code for Monte-Carlo simulating blood types in Austria p=[0.3 0.37 0.12 0.05 0.06 0.07 0.02 0.01]; blood=['0+' 'A+' 'B+' 'AB+' '0-' 'A-' 'B-' 'AB-'] P=cumsum(p);P=[0 P];np=length(p);nj=5;C = zeros(np,nj); N=12; X = grand(nj,N,'def'); for i=1:np C(i,:) = sum((X>=P(i) & X -------------- next part -------------- A non-text attachment was scrubbed... Name: blood type.png Type: image/png Size: 48486 bytes Desc: not available URL: From Christophe.Dang at sidel.com Wed Oct 4 11:44:36 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Wed, 4 Oct 2017 09:44:36 +0000 Subject: [Scilab-users] {EXT} do not manage to show text labels along the x-axis In-Reply-To: <7BAD81ED-FB0F-482C-B1DE-019831881402@icloud.com> References: <1507018978341-0.post@n3.nabble.com> <1507101916864-0.post@n3.nabble.com> <7BAD81ED-FB0F-482C-B1DE-019831881402@icloud.com> Message-ID: Hello, > De : Heinz Nabielek > Envoy? : mercredi 4 octobre 2017 11:16 > > I do not manage to show text labels along the x-axis. Please try: // ********** plot(1:np, p, "-d"); h=gca(); foo = h.x_ticks; foo(2) = (1:np)'; foo(3) = blood'; h.x_ticks=foo; // ********** Explanation: gca() retrieves the handle tha point to the axes, you can then modify the x_ticks data but the size of the second and third parts must always be consistent, the reason why you have to use a foo variable. HTH -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From Jean-Yves.Baudais at insa-rennes.fr Wed Oct 4 11:37:17 2017 From: Jean-Yves.Baudais at insa-rennes.fr (Jean-Yves Baudais) Date: Wed, 4 Oct 2017 11:37:17 +0200 Subject: [Scilab-users] do not manage to show text labels along the x-axis In-Reply-To: <7BAD81ED-FB0F-482C-B1DE-019831881402@icloud.com> References: <1507018978341-0.post@n3.nabble.com> <1507101916864-0.post@n3.nabble.com> <7BAD81ED-FB0F-482C-B1DE-019831881402@icloud.com> Message-ID: Hello, Le 04/10/2017 ? 11:16, Heinz Nabielek a ?crit?: > Monte-Carlo simulating blood types in Austria was easy in Scilab, but I do not manage to show text labels along the x-axis. Text would be: > blood=['0+' 'A+' 'B+' 'AB+' '0-' 'A-' 'B-' 'AB-'] > and the diagram should look similar to my attached EXCEL. To change the axes labels (and location) see "axes properties". For exemple x=1:8; p=[0.3 0.37 0.12 0.05 0.06 0.07 0.02 0.01]; blood=['0+' 'A+' 'B+' 'AB+' '0-' 'A-' 'B-' 'AB-']; scf(0);clf(0),plot(x,p,'-*b') f=gca(); f.x_ticks=tlist(["ticks" "locations", "labels"],x,blood); Jean-Yves From heinznabielek at icloud.com Wed Oct 4 12:37:21 2017 From: heinznabielek at icloud.com (Heinz Nabielek) Date: Wed, 04 Oct 2017 12:37:21 +0200 Subject: [Scilab-users] do not manage to show text labels along the x-axis In-Reply-To: References: <1507018978341-0.post@n3.nabble.com> <1507101916864-0.post@n3.nabble.com> <7BAD81ED-FB0F-482C-B1DE-019831881402@icloud.com> Message-ID: <3CCB6005-66CD-4886-819B-D45BDE4681E9@icloud.com> Neat. Thanks a lot. Heinz On 04.10.2017, at 11:37, Jean-Yves Baudais wrote: > Hello, > > > Le 04/10/2017 ? 11:16, Heinz Nabielek a ?crit : >> Monte-Carlo simulating blood types in Austria was easy in Scilab, but I do not manage to show text labels along the x-axis. Text would be: >> blood=['0+' 'A+' 'B+' 'AB+' '0-' 'A-' 'B-' 'AB-'] >> and the diagram should look similar to my attached EXCEL. > > To change the axes labels (and location) see "axes properties". For exemple > > x=1:8; > p=[0.3 0.37 0.12 0.05 0.06 0.07 0.02 0.01]; > blood=['0+' 'A+' 'B+' 'AB+' '0-' 'A-' 'B-' 'AB-']; > scf(0);clf(0),plot(x,p,'-*b') > f=gca(); > f.x_ticks=tlist(["ticks" "locations", "labels"],x,blood); > > > Jean-Yves > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-2.tiff Type: image/tiff Size: 33762 bytes Desc: not available URL: From Paul.Bignier at esi-group.com Wed Oct 4 12:58:51 2017 From: Paul.Bignier at esi-group.com (Paul Bignier) Date: Wed, 4 Oct 2017 10:58:51 +0000 Subject: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues In-Reply-To: <1507101916864-0.post@n3.nabble.com> References: <1507018978341-0.post@n3.nabble.com> , <1507101916864-0.post@n3.nabble.com> Message-ID: We're having trouble at the moment uploading the nightly builds, you may find some uploaded versions at http://downloadarea.scilab.org Regards, Paul Paul BIGNIER Development engineer ----------------------------------------------------------- ESI Group - Scilab 99 rue des Solets - 94513 Rungis, France Phone: +33.1.41.73.58.77 https://scilab.io https://esi-group.com ________________________________ From: users on behalf of Yves Rambi Sent: Wednesday, October 4, 2017 9:25 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues Hello Paul, I submitted both issues to Bugzilla. For the nightly builds, the links seem to be dead. I always get "Error 404" by clicking on the target links to the *.exe file. Regards, Yves -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Wed Oct 4 15:11:46 2017 From: rouxph.22 at gmail.com (philippe) Date: Wed, 4 Oct 2017 15:11:46 +0200 Subject: [Scilab-users] help_from_sci() with %overload.sci <= Re: unit tests and help generation for overloaded unary/binary operators In-Reply-To: References: Message-ID: Le 03/10/2017 ? 13:54, Samuel Gougeon a ?crit : > > > With this fix, you will no longer need to post-process your filenames > and files contents > to make the doc builder running right. It normalizes filenames and > xml:id in the same way > as native Scilab files are, by replacing "%" with "percent". Good job Samuel ;-) Philippe. From sgougeon at free.fr Wed Oct 4 18:33:10 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 4 Oct 2017 18:33:10 +0200 Subject: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues In-Reply-To: References: <1507018978341-0.post@n3.nabble.com> <1507101916864-0.post@n3.nabble.com> Message-ID: <262f900f-1502-f9b2-d858-f62e32ef7148@free.fr> Le 04/10/2017 ? 12:58, Paul Bignier a ?crit : > > > We're having trouble at the moment uploading the nightly builds, you > may find some uploaded versions at http://downloadarea.scilab.org > > We often forget how priviledged we are :) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: flffjfnlgbaapdlb.png Type: image/png Size: 18439 bytes Desc: not available URL: From Yves.Rambinintsoa at gmail.com Thu Oct 5 10:14:16 2017 From: Yves.Rambinintsoa at gmail.com (Yves Rambi) Date: Thu, 5 Oct 2017 01:14:16 -0700 (MST) Subject: [Scilab-users] Scicos - Type of computational functions supported by Scicos Message-ID: <1507191256485-0.post@n3.nabble.com> Hello, I have a question about the "generic_block3" parameter "Function Type (0, 1, 2, 3, ...) Can someone explain how many types of function do exist and what is the meaning of each type? I tried to look everywhere in the Maling List Archive and also on the internet but I could not get any precise information. Also another question: is there an exhaustive documentation for Scilab/XCos? Each time I look in the help I miss a lot of essential information (like the above topic). Maybe there is such a book you can recommend? Thank you Regards -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From j.s.strom at hslmg.de Thu Oct 5 10:41:35 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Thu, 05 Oct 2017 10:41:35 +0200 Subject: [Scilab-users] Print string matrix on console without exclamation marks Message-ID: <59D5F03F.4090407@hslmg.de> Hi Scilab experts, How can I print a string matrix on the console without leading and trailing exlamation marks (!)? ['a','b';'c','d'] should simply be returned as a b c d Kind regards Jens From sdr at durietz.se Thu Oct 5 10:55:39 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Thu, 5 Oct 2017 10:55:39 +0200 Subject: [Scilab-users] Print string matrix on console without exclamation marks In-Reply-To: <59D5F03F.4090407@hslmg.de> References: <59D5F03F.4090407@hslmg.de> Message-ID: <2ff3b448-a573-2032-c31f-7ea66e965483@durietz.se> Hello Jens, -->M = ['a','b';'c','d']; -->mprintf("%s %s\n", M) a b c d Regards Stefan On 2017-10-05 10:41, Jens Simon Strom wrote: > Hi Scilab experts, > How can I print a string matrix on the console without leading and > trailing exlamation marks (!)? > > ['a','b';'c','d'] should simply be returned as > a? b > c? d > > > Kind regards > Jens > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From j.s.strom at hslmg.de Thu Oct 5 11:48:00 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Thu, 05 Oct 2017 11:48:00 +0200 Subject: [Scilab-users] Print string matrix on console without exclamation marks In-Reply-To: <2ff3b448-a573-2032-c31f-7ea66e965483@durietz.se> References: <59D5F03F.4090407@hslmg.de> <2ff3b448-a573-2032-c31f-7ea66e965483@durietz.se> Message-ID: <59D5FFD0.10008@hslmg.de> Thanks Stefan, Simpler than I thought! Regards Jens ------------------------------------------------------------- Am 05.10.2017 10:55, schrieb Stefan Du Rietz: > Hello Jens, > > -->M = ['a','b';'c','d']; > -->mprintf("%s %s\n", M) > a b > c d > > Regards > Stefan > > > On 2017-10-05 10:41, Jens Simon Strom wrote: >> Hi Scilab experts, >> How can I print a string matrix on the console without leading and >> trailing exlamation marks (!)? >> >> ['a','b';'c','d'] should simply be returned as >> a b >> c d >> >> >> Kind regards >> Jens >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From Yves.Rambinintsoa at gmail.com Thu Oct 5 12:58:22 2017 From: Yves.Rambinintsoa at gmail.com (Yves Rambi) Date: Thu, 5 Oct 2017 03:58:22 -0700 (MST) Subject: [Scilab-users] Scilab/XCos - recommendable Book Message-ID: <1507201102582-0.post@n3.nabble.com> Can someone recommend a good and exhaustive ebook to buy for Scilab/XCos (introduction and further reading)? Thank you Regards -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From umut.durak at tu-clausthal.de Thu Oct 5 14:14:08 2017 From: umut.durak at tu-clausthal.de (Durak, Umut) Date: Thu, 5 Oct 2017 14:14:08 +0200 Subject: [Scilab-users] Scilab/XCos - recommendable Book In-Reply-To: <1507201102582-0.post@n3.nabble.com> References: <1507201102582-0.post@n3.nabble.com> Message-ID: <8121304d-7fc4-829f-70d7-accc52873dde@tu-clausthal.de> I would strongly suggest Modeling and Simulation in Scilab/Scicos with ScicosLab 4.4 (https://www.springer.com/fr/book/9781441955265). It is from 2010 but to my knowledge, the most comprehensive text available. On 05.10.2017 12:58, Yves Rambi wrote: > Can someone recommend a good and exhaustive ebook to buy for Scilab/XCos > (introduction and further reading)? > > > Thank you > > > Regards > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Dr.Umut Durak Adjunct Lecturer TU Clausthal Institute of Informatics Julius-Albert-Str. 4, Room 119 38678 Clausthal-Zellerfeld Phone: +49 5323 72-7129 Research Scientist DLR e.V. Institute of Flight Systems Lilienthalplatz 7 38108 Braunschweig Phone: +49 531 296-2907 From rouxph.22 at gmail.com Thu Oct 5 17:25:21 2017 From: rouxph.22 at gmail.com (philippe) Date: Thu, 5 Oct 2017 17:25:21 +0200 Subject: [Scilab-users] Scilab/XCos - recommendable Book In-Reply-To: <1507201102582-0.post@n3.nabble.com> References: <1507201102582-0.post@n3.nabble.com> Message-ID: Le 05/10/2017 ? 12:58, Yves Rambi a ?crit?: > Can someone recommend a good and exhaustive ebook to buy for Scilab/XCos > (introduction and further reading)? As a French speaker I read the book wrote by Yvon Degr? and Serge Steer and I think it is very goog! It is available in paper and in many electronic formats as pdf, html epub and you can also buy chapters independently: https://www.d-booker.fr/scilab-2-xcos/112-scilab-xcos.html unfortunately it hasn't been yet translated in english ... the first book of this collection has been translated and is available in epub : https://www.d-booker.fr/scilab-book1/325-scilab-fundamentals.html you can see a preview of some chapters in pdf : https://www.d-booker.fr/GALERIE/public/scilab-en/excerpts/_scilab-base-en-first-pages-ch21.pdf Philippe From sdr at durietz.se Thu Oct 5 18:15:50 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Thu, 5 Oct 2017 18:15:50 +0200 Subject: [Scilab-users] Scilab/XCos - recommendable Book In-Reply-To: References: <1507201102582-0.post@n3.nabble.com> Message-ID: <326ce117-33da-9e02-ef8c-96e1719b79dd@durietz.se> On 2017-10-05 17:25, philippe wrote: > Le 05/10/2017 ? 12:58, Yves Rambi a ?crit?: >> Can someone recommend a good and exhaustive ebook to buy for Scilab/XCos >> (introduction and further reading)? > > As a French speaker I read the book wrote by Yvon Degr? and Serge Steer > and I think it is very goog! It is available in paper and in many > electronic formats as pdf, html epub and you can also buy chapters > independently: > > https://www.d-booker.fr/scilab-2-xcos/112-scilab-xcos.html > > unfortunately it hasn't been yet translated in english ... the first > book of this collection has been translated and is available in epub : > > https://www.d-booker.fr/scilab-book1/325-scilab-fundamentals.html > > you can see a preview of some chapters in pdf : > > https://www.d-booker.fr/GALERIE/public/scilab-en/excerpts/_scilab-base-en-first-pages-ch21.pdf > > Philippe > I bought this in 2011 from Amazon: "Modeling and Simulation in Scilab/Scicos with ScicosLab 4.4" Stephen L Campbell, Jean-Philippe Chancelier, Ramine Nikoukhah; Second edition, Hardcover; $56.90 Today: You can find it on the Internet. http://www.scicos.org/book.html Chapter 7 http://www.scicos.org/book/ScilabScicosBook-Ch7.pdf Regards Stefan From Yves.Rambinintsoa at gmail.com Fri Oct 6 11:20:52 2017 From: Yves.Rambinintsoa at gmail.com (Yves Rambi) Date: Fri, 6 Oct 2017 02:20:52 -0700 (MST) Subject: [Scilab-users] Scilab/XCos - Analyze model I/O dependencies Message-ID: <1507281652644-0.post@n3.nabble.com> Hello, I have today a new topic which I couldn't find in the mailing list. I created now a new Scicos model and it is becoming increasingly complex. I'd like now to analyze the input/ouput dependency of any choosen block in the model. The result shall be only in the form: - Block 'Function_A": Y1 depends on X1, X3, X15 - Block 'Function_A": Y4 depends on X1, X5, X7 - Block 'Function_E": Y3 depends on X1, X3, X15, X22 etc.... Is there a toolbox to perform this analysis or should I write a backtracing script which analyzes the .xcos file? Thank you Regards -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From Yves.Rambinintsoa at gmail.com Fri Oct 6 11:24:53 2017 From: Yves.Rambinintsoa at gmail.com (Yves Rambi) Date: Fri, 6 Oct 2017 02:24:53 -0700 (MST) Subject: [Scilab-users] Scilab/XCos - recommendable Book In-Reply-To: <1507201102582-0.post@n3.nabble.com> References: <1507201102582-0.post@n3.nabble.com> Message-ID: <1507281893894-0.post@n3.nabble.com> Thanks for your help -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From huubvanniekerk at yahoo.com Fri Oct 6 18:22:59 2017 From: huubvanniekerk at yahoo.com (Huub Van Niekerk) Date: Fri, 6 Oct 2017 16:22:59 +0000 (UTC) Subject: [Scilab-users] Scilab 5.2.2 and 6.0 crash on Fedora 26 References: <579674653.2694194.1507306979446.ref@mail.yahoo.com> Message-ID: <579674653.2694194.1507306979446@mail.yahoo.com> Hi, I just upgraded my pc from Fedora 25 to 26 and find that 5.2.2 and 6 crash, although for different reasons.The crash for 5.2.2:?/opt/scilab-5.5.2/bin/scilab /usr/bin/chcon: failed to change context of '/opt/scilab-5.5.2/bin/scilab-bin' to ?unconfined_u:object_r:execmem_exec_t:s0?: Operation not permitted Error: Cannot chcon 'scilab-bin' /usr/bin/chcon: failed to change context of '/opt/scilab-5.5.2/bin/scilab-cli-bin' to ?unconfined_u:object_r:execmem_exec_t:s0?: Operation not permitted Error: Cannot chcon 'scilab-cli-bin' /opt/scilab-5.5.2/bin/scilab: line 928:? 3082 Segmentation fault????? (core dumped) "$SCILABBIN" "$@" I assume this is because of SELinux, but since it worked before, what has changed? The crash for 6.0:/opt/scilab-6.0.0/bin/scilab Cannot find this look and feel: [GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this platform /opt/scilab-6.0.0/bin/scilab: line 957:? 2847 Segmentation fault????? (core dumped) "$SCILABBIN" "$@" Prior to this crash for 6.0, I also had to experience that it crashed on (electronics) simulation in XCos on Fedora 25. But since it now crashs immediately, I can't test that. Thank you. Huub -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Sat Oct 7 13:03:15 2017 From: herozigle at gmail.com (Hermes) Date: Sat, 7 Oct 2017 04:03:15 -0700 (MST) Subject: [Scilab-users] evaluate matrix in a function Message-ID: <1507374195116-0.post@n3.nabble.com> how do I declare the functions to be able to evaluate a matrix variable(Multiple evaluation of a function). Where the first column corresponds to the first variable of the function. And so on.is only possible within a "for" cycle? how to declare the function to be able to use the operator "dot"r=[3 1;4 2;3 5;8 2];function val = H(z) x=z(1); y=z(2); val=(1.25*y-sqrt(abs(x)))^2+x^2-1; endfunction;function Sys=g(x) gx=x(1); gy=x(2); g1=2*gx-(gx*(1.25*gy-sqrt(abs(gx))))/abs(gx)^(3/2);g2=2.5*(1.25*gy-sqrt(abs(gx))); Sys(:,1)=g1; Sys(:,2)=g2;endfunctionV=g(r)';disp(V,"g");J = diffcode_jacobian(H,r);disp(J, "Jacobian");GraciasHermes -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Sat Oct 7 13:05:10 2017 From: herozigle at gmail.com (Hermes) Date: Sat, 7 Oct 2017 04:05:10 -0700 (MST) Subject: [Scilab-users] evaluate matrix in a function Message-ID: <1507374310459-0.post@n3.nabble.com> how do I declare the functions to be able to evaluate a matrix variable(Multiple evaluation of a function). Where the first column corresponds to the first variable of the function. And so on. is only possible within a "for" cycle? how to declare the function to be able to use the operator "dot" r=[3 1;4 2;3 5;8 2]; function val = H(z) x=z(1); y=z(2); val=(1.25*y-sqrt(abs(x)))^2+x^2-1; endfunction; function Sys=g(x) gx=x(1); gy=x(2); g1=2*gx-(gx*(1.25*gy-sqrt(abs(gx))))/abs(gx)^(3/2); g2=2.5*(1.25*gy-sqrt(abs(gx))); Sys(:,1)=g1; Sys(:,2)=g2; endfunction V=g(r)'; disp(V,"g"); J = diffcode_jacobian(H,r); disp(J, "Jacobian"); Gracias Hermes -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Sat Oct 7 14:34:29 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 7 Oct 2017 12:34:29 +0000 Subject: [Scilab-users] evaluate matrix in a function In-Reply-To: <1507374310459-0.post@n3.nabble.com> References: <1507374310459-0.post@n3.nabble.com> Message-ID: Your code has the solution (for the matrix function output). Do the same for input: r=[3 1;4 2;3 5;8 2]; function val=H(z) x=z(:,1); y=z(:,2); val=(1.25*y-sqrt(abs(x))).^2 + x.^2 - 1; endfunction; Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Hermes Sent: Saturday, October 07, 2017 1:05 PM To: users at lists.scilab.org Subject: [Scilab-users] evaluate matrix in a function how do I declare the functions to be able to evaluate a matrix variable(Multiple evaluation of a function). Where the first column corresponds to the first variable of the function. And so on. is only possible within a "for" cycle? how to declare the function to be able to use the operator "dot" r=[3 1;4 2;3 5;8 2]; function val = H(z) x=z(1); y=z(2); val=(1.25*y-sqrt(abs(x)))^2+x^2-1; endfunction; function Sys=g(x) gx=x(1); gy=x(2); g1=2*gx-(gx*(1.25*gy-sqrt(abs(gx))))/abs(gx)^(3/2); g2=2.5*(1.25*gy-sqrt(abs(gx))); Sys(:,1)=g1; Sys(:,2)=g2; endfunction V=g(r)'; disp(V,"g"); J = diffcode_jacobian(H,r); disp(J, "Jacobian"); Gracias Hermes -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Sat Oct 7 18:39:34 2017 From: herozigle at gmail.com (Hermes) Date: Sat, 7 Oct 2017 09:39:34 -0700 (MST) Subject: [Scilab-users] evaluate matrix in a function In-Reply-To: References: <1507374310459-0.post@n3.nabble.com> Message-ID: <1507394374730-0.post@n3.nabble.com> Hello The H function works. the other two evaluations did not solve the problem. function val = H(z) x=z(:,1); y=z(:,2); val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; // switched ^ to .^ to handle vectors endfunction; function Sys=g(x) gx=x(:,1); gy=x(:,2); g1=2*gx-(gx *(1.25*gy-sqrt(abs(gx))))/abs(gx).^(3/2); g2=2.5*(1.25*gy-sqrt(abs(gx))); Sys(:,1)=g1; Sys(:,2)=g2; endfunction r=[3 1;4 2;3 5;8 2] disp(H(r),"H"); H 8.232373 15.25 28.411865 63.107864 V=g(r'); disp(V,"g"); J = diffcode_jacobian(H,r); disp(J, "Jacobian"); at line 4 of function g ( E:\Heart Curve8.sce line 28 ) at line 36 of executed file E:\Heart Curve8.sce *Inconsistent row/column dimensions. * Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From herozigle at gmail.com Sat Oct 7 18:43:53 2017 From: herozigle at gmail.com (Hermes) Date: Sat, 7 Oct 2017 09:43:53 -0700 (MST) Subject: [Scilab-users] evaluate matrix in a function In-Reply-To: References: <1507374310459-0.post@n3.nabble.com> Message-ID: <1507394633385-0.post@n3.nabble.com> Hello The H function works. the other two evaluations I can not solve the problem. function val = H(z) x=z(:,1); y=z(:,2); val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; endfunction; function Sys=g(x) gx=x(:,1); gy=x(:,2); g1=2*gx-(gx *(1.25*gy-sqrt(abs(gx))))/abs(gx).^(3/2); g2=2.5*(1.25*gy-sqrt(abs(gx))); Sys(:,1)=g1; Sys(:,2)=g2; endfunction r=[3 1;4 2;3 5;8 2] disp(H(r),"H"); H 8.232373 15.25 28.411865 63.107864 V=g(r'); disp(V,"g"); J = diffcode_jacobian(H,r); disp(J, "Jacobian"); at line 4 of function g ( E:\Heart Curve8.sce line 28 ) at line 36 of executed file E:\Heart Curve8.sce *Inconsistent row/column dimensions. * Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Sat Oct 7 18:51:00 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 7 Oct 2017 16:51:00 +0000 Subject: [Scilab-users] evaluate matrix in a function In-Reply-To: <1507394633385-0.post@n3.nabble.com> References: <1507374310459-0.post@n3.nabble.com> <1507394633385-0.post@n3.nabble.com> Message-ID: Hi, It seems you are missing a few dots in g1, try: g1=2*gx-(gx .*(1.25*gy-sqrt(abs(gx))))./abs(gx).^(3/2); Also, I believe you should also remove the transposed input in V=g(r'), and make it V=g(r); Rafael and I believe your -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Hermes Sent: Saturday, October 07, 2017 6:44 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] evaluate matrix in a function Hello The H function works. the other two evaluations I can not solve the problem. function val = H(z) x=z(:,1); y=z(:,2); val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; endfunction; function Sys=g(x) gx=x(:,1); gy=x(:,2); g1=2*gx-(gx *(1.25*gy-sqrt(abs(gx))))/abs(gx).^(3/2); g2=2.5*(1.25*gy-sqrt(abs(gx))); Sys(:,1)=g1; Sys(:,2)=g2; endfunction r=[3 1;4 2;3 5;8 2] disp(H(r),"H"); H 8.232373 15.25 28.411865 63.107864 V=g(r'); disp(V,"g"); J = diffcode_jacobian(H,r); disp(J, "Jacobian"); at line 4 of function g ( E:\Heart Curve8.sce line 28 ) at line 36 of executed file E:\Heart Curve8.sce *Inconsistent row/column dimensions. * Gracias From herozigle at gmail.com Sat Oct 7 20:10:26 2017 From: herozigle at gmail.com (Hermes) Date: Sat, 7 Oct 2017 11:10:26 -0700 (MST) Subject: [Scilab-users] evaluate matrix in a function In-Reply-To: References: <1507374310459-0.post@n3.nabble.com> <1507394633385-0.post@n3.nabble.com> Message-ID: <1507399826479-0.post@n3.nabble.com> Hello The H and g functions work. But the diffcode_jacobian (H, r) evaluation does not accept the dot operator. Only redefining the H function (without dot operators) will achieve the results function val = HH(z) x=z(1); y=z(2); val=(1.25*y-sqrt(abs(x)))^2+x^2-1; // switched *.^* to *^* endfunction; t=[3. 1.] disp(diffcode_jacobian(HH,t)); -->6.2783122 -1.205127 J=[]; for k=1:size(r,"r") J(k,:)=diffcode_jacobian(HH,r(k,:)); end disp(J, "Jacobian"); -->Jacobian 6.2783122 -1.205127 7.75 1.25 3.3915608 11.294873 16.116117 -0.8210678 disp(and(J==g)) -->F Why? The results of J and g look the same !! g 6.2783122 -1.205127 7.75 1.25 3.3915608 11.294873 16.116117 -0.8210678 J 6.2783122 -1.205127 7.75 1.25 3.3915608 11.294873 16.116117 -0.8210678 Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Sat Oct 7 21:48:27 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 7 Oct 2017 19:48:27 +0000 Subject: [Scilab-users] evaluate matrix in a function In-Reply-To: <1507399826479-0.post@n3.nabble.com> References: <1507374310459-0.post@n3.nabble.com> <1507394633385-0.post@n3.nabble.com> <1507399826479-0.post@n3.nabble.com> Message-ID: diffcode_jacobian does not seem to accept multiple input points, but only one N-dimension point X: // Calling Sequence: // J = diffcode_jacobian(f,x) // x : a n-by-1 matrix of doubles, real, the point where to compute the derivatives You cannot compare g and J, because the former is a function and the latter has type constant. However you can compare J and V but the answer is false because of tiny numerical difference: J==V ans = T T T T F T T T J-V ans = 0. 0. 0. 0. - 4.441D-16 0. 0. 0. Rgds, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Hermes Sent: Saturday, October 07, 2017 8:10 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] evaluate matrix in a function Hello The H and g functions work. But the diffcode_jacobian (H, r) evaluation does not accept the dot operator. Only redefining the H function (without dot operators) will achieve the results function val = HH(z) x=z(1); y=z(2); val=(1.25*y-sqrt(abs(x)))^2+x^2-1; // switched *.^* to *^* endfunction; t=[3. 1.] disp(diffcode_jacobian(HH,t)); -->6.2783122 -1.205127 J=[]; for k=1:size(r,"r") J(k,:)=diffcode_jacobian(HH,r(k,:)); end disp(J, "Jacobian"); -->Jacobian 6.2783122 -1.205127 7.75 1.25 3.3915608 11.294873 16.116117 -0.8210678 disp(and(J==g)) -->F Why? The results of J and g look the same !! g 6.2783122 -1.205127 7.75 1.25 3.3915608 11.294873 16.116117 -0.8210678 J 6.2783122 -1.205127 7.75 1.25 3.3915608 11.294873 16.116117 -0.8210678 Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From rouxph.22 at gmail.com Tue Oct 10 08:56:11 2017 From: rouxph.22 at gmail.com (philippe) Date: Tue, 10 Oct 2017 08:56:11 +0200 Subject: [Scilab-users] evaluate matrix in a function In-Reply-To: <1507374310459-0.post@n3.nabble.com> References: <1507374310459-0.post@n3.nabble.com> Message-ID: Hi, Le 07/10/2017 ? 13:05, Hermes a ?crit?: > how do I declare the functions to be able to evaluate a matrix > variable(Multiple evaluation of a function). Where the first column > corresponds to the first variable of the function. And so on. > is only possible within a "for" cycle? how to declare the function to be > able to use the operator "dot" I'm not sure of what you are asking for. It looks like you want to evaluate a function f on the curve defined by 2 vectors x,y instead of evaluating it on the grid defined by x,y (which is done by feval). If this is what you are searching for you can use something like feval2 below : function z=feval2(x,y,f) // eval f on the curve t->(x(t),y(t)) // and on the grid defined by x,y deff('z=newf(k)','z=f(x(k),y(k))') // x,y are global variables for the "newf" function z=feval(1:length(x),newf) // "newf" is a local variable for "feval2" endfunction then try the example : -->deff('z=f(x,y)','z=x.^2-y.^2') // test function -->x=-3:3;y=x; -->z=feval(x,y,f)// grid evaluation z = 0. 5. 8. 9. 8. 5. 0. - 5. 0. 3. 4. 3. 0. - 5. - 8. - 3. 0. 1. 0. - 3. - 8. - 9. - 4. - 1. 0. - 1. - 4. - 9. - 8. - 3. 0. 1. 0. - 3. - 8. - 5. 0. 3. 4. 3. 0. - 5. 0. 5. 8. 9. 8. 5. 0. -->z=feval2(x,y,f) // curve evaluation z = 0. 0. 0. 0. 0. 0. 0. Best regards Philippe From jrafaelbguerra at hotmail.com Tue Oct 10 12:51:39 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 10 Oct 2017 10:51:39 +0000 Subject: [Scilab-users] evaluate matrix in a function In-Reply-To: References: <1507374310459-0.post@n3.nabble.com> Message-ID: Right, and if one follows the thread till the end, how does that apply to diffcode_jacobian ? -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of philippe Sent: Tuesday, October 10, 2017 8:56 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] evaluate matrix in a function Hi, Le 07/10/2017 ? 13:05, Hermes a ?crit?: > how do I declare the functions to be able to evaluate a matrix > variable(Multiple evaluation of a function). Where the first column > corresponds to the first variable of the function. And so on. > is only possible within a "for" cycle? how to declare the function to be > able to use the operator "dot" I'm not sure of what you are asking for. It looks like you want to evaluate a function f on the curve defined by 2 vectors x,y instead of evaluating it on the grid defined by x,y (which is done by feval). If this is what you are searching for you can use something like feval2 below : function z=feval2(x,y,f) // eval f on the curve t->(x(t),y(t)) // and on the grid defined by x,y deff('z=newf(k)','z=f(x(k),y(k))') // x,y are global variables for the "newf" function z=feval(1:length(x),newf) // "newf" is a local variable for "feval2" endfunction then try the example : -->deff('z=f(x,y)','z=x.^2-y.^2') // test function -->x=-3:3;y=x; -->z=feval(x,y,f)// grid evaluation z = 0. 5. 8. 9. 8. 5. 0. - 5. 0. 3. 4. 3. 0. - 5. - 8. - 3. 0. 1. 0. - 3. - 8. - 9. - 4. - 1. 0. - 1. - 4. - 9. - 8. - 3. 0. 1. 0. - 3. - 8. - 5. 0. 3. 4. 3. 0. - 5. 0. 5. 8. 9. 8. 5. 0. -->z=feval2(x,y,f) // curve evaluation z = 0. 0. 0. 0. 0. 0. 0. Best regards Philippe _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From W.Schulz at ove.at Wed Oct 11 08:53:37 2017 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Wed, 11 Oct 2017 06:53:37 +0000 Subject: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues In-Reply-To: <262f900f-1502-f9b2-d858-f62e32ef7148@free.fr> References: <1507018978341-0.post@n3.nabble.com> <1507101916864-0.post@n3.nabble.com> <262f900f-1502-f9b2-d858-f62e32ef7148@free.fr> Message-ID: <07A8AF089844A549B0F0CCC727AF31AA79E85DBA@OVEKBG.ove.at> Hello, is there any possibility to get a current nightly build somewhere? Best regards Wolfgang Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Samuel Gougeon Gesendet: Mittwoch, 4. Oktober 2017 18:33 An: Users mailing list for Scilab Betreff: Re: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues Le 04/10/2017 ? 12:58, Paul Bignier a ?crit : We're having trouble at the moment uploading the nightly builds, you may find some uploaded versions at http://downloadarea.scilab.org [cid:image001.jpg at 01D3426E.6CEFD890] We often forget how priviledged we are :) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 8638 bytes Desc: image001.jpg URL: From Christopher.George at workhorse.com Wed Oct 11 20:25:10 2017 From: Christopher.George at workhorse.com (Christopher George) Date: Wed, 11 Oct 2017 14:25:10 -0400 Subject: [Scilab-users] XCOS Model won't load Message-ID: There is an XCOS model I?ve been working on over the past few weeks that contains four superblocks representing the fluid properties to figure out the temperature changes across a car radiator. While I was working on it, the main block wouldn?t load when I clicked on it, so I thought I would just close the program and restart it to make sure it?s been working again. Unfortunately, now, when I open the file, nothing loads. It?s as if everything in the file was deleted, yet the 26KB file size at least shows me that something is still there. Has anyone else run into that issue and, if so, is there some sort of way to fix it or, in the very least, a workaround? *Christopher George* *Mechanical Engineer ? Workhorse Group* *100 Commerce Dr, Loveland, OH 45140* *Christopher.George at workhorse.com * *844-WE-R-WKHS Ext 748* *844-937-9547 Ext 748* -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Thu Oct 12 03:52:21 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 12 Oct 2017 03:52:21 +0200 Subject: [Scilab-users] Scilab/XCos - recommendable Book In-Reply-To: References: <1507201102582-0.post@n3.nabble.com> Message-ID: Hi Scilab >unfortunately it hasn't been yet translated in english In my opinion, the book(s) should be translated, so that I can buy and read it (i.e. - so that these books can reach a broader audience). Best regards, Claus On 05-10-2017 17:25, philippe wrote: > Le 05/10/2017 ? 12:58, Yves Rambi a ?crit?: >> Can someone recommend a good and exhaustive ebook to buy for Scilab/XCos >> (introduction and further reading)? > As a French speaker I read the book wrote by Yvon Degr? and Serge Steer > and I think it is very goog! It is available in paper and in many > electronic formats as pdf, html epub and you can also buy chapters > independently: > > https://www.d-booker.fr/scilab-2-xcos/112-scilab-xcos.html > > unfortunately it hasn't been yet translated in english ... the first > book of this collection has been translated and is available in epub : > > https://www.d-booker.fr/scilab-book1/325-scilab-fundamentals.html > > you can see a preview of some chapters in pdf : > > https://www.d-booker.fr/GALERIE/public/scilab-en/excerpts/_scilab-base-en-first-pages-ch21.pdf > > Philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From herozigle at gmail.com Fri Oct 13 10:11:33 2017 From: herozigle at gmail.com (Hermes) Date: Fri, 13 Oct 2017 01:11:33 -0700 (MST) Subject: [Scilab-users] evaluate matrix in a function In-Reply-To: References: <1507374310459-0.post@n3.nabble.com> Message-ID: <1507882293440-0.post@n3.nabble.com> Hi Philippe: Where this error? // The function to differentiate function val = HH(z) x=z(1); y=z(2); val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; endfunction; // The exact gradient function Sys=ge(x) gx=x(:,1); gy=x(:,2); g1=2*gx-(gx.*(1.25*gy-sqrt(abs(gx))))./abs(gx).^(3/2); g2=2.5*(1.25*gy-sqrt(abs(gx))); Sys(:,1)=g1; Sys(:,2)=g2; endfunction // Compute the approximate Jacobian t=[3,1]; //for function f, which does not allow multiple inputs [x1,1 x2,1 x3,1; ...; x1, n x2, n x3, n] t1=[3,1;3,1];//for function f, allow multiple inputs [x1,1 x2,1 x3,1; ...; x1, n x2, n x3, n] *// test function* function z=f(x) z=diffcode_jacobian(HH,x) endfunction disp(f(t)',ge(t1),HH(t)) function z=feval2(x,y,g) // eval f on the curve t->(x(t),y(t)) // and on the grid defined by x,y deff('z=newf(k)',['a=[x(k),y(k)]';'z=g(a)']) // x,y are global variables for the "newf" function z=feval(1:length(x),newf) // "newf" is a local variable for "feval2" endfunction // Compute the approximate Jacobian x=-3:3;y=x; z=feval2(x,y,f) // curve evaluation disp(z ," feval2"); *in builtin feval2 ( C: \Curve11.sce line 47 ) newf: Wrong size for output argument #1: A Scalar expected. ??l: An error occured in '?????' subroutine. * Gracias Hermes -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From herozigle at gmail.com Fri Oct 13 11:13:31 2017 From: herozigle at gmail.com (Hermes) Date: Fri, 13 Oct 2017 02:13:31 -0700 (MST) Subject: [Scilab-users] evaluate matrix in a function In-Reply-To: <1507374310459-0.post@n3.nabble.com> References: <1507374310459-0.post@n3.nabble.com> Message-ID: <1507886011916-0.post@n3.nabble.com> A possible solution, we compare "diffcode_jacobian" and "numderivative". in this case seem to calculate with the same accuracy function val = HH(z) x=z(1); y=z(2); val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; endfunction; function z=f(x) z(1,1:2)=diffcode_jacobian(HH,x) z(1,3:4)=numderivative(HH,x) endfunction xt = -1.4:0.01:1.4; function Z=g(X,Y,f) for i=1:size(X,"*") T=[X(i) Y(i)]; Z(i,:)=f(T); end endfunction //And for 280 values calculate fast F=g(xt,xt) -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From brunhartjakob at gmail.com Fri Oct 13 11:36:20 2017 From: brunhartjakob at gmail.com (brunjak) Date: Fri, 13 Oct 2017 02:36:20 -0700 (MST) Subject: [Scilab-users] ASCII and Serial Toolbox Message-ID: <1507887380934-0.post@n3.nabble.com> Hello, I'm using scilab 6.0.0 and the "Serial Toolbox". I could establishe a serial communication (RS485). I'm using the fuction "result = writeserial(h,buf)". The variable buf is a string. How can I send asci codes greater than 127? For example I want send a "?" which will be represente as 0xC0 on the RS485 bus. Thank you Jakob -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From Alexis.Cros at promes.cnrs.fr Fri Oct 13 15:02:56 2017 From: Alexis.Cros at promes.cnrs.fr (Alexis Cros) Date: Fri, 13 Oct 2017 15:02:56 +0200 Subject: [Scilab-users] Callback poorly reactive Message-ID: Good day, I made a? relatively complex HMI with Scilab which uses pushbuttons with callbacks from uicontrol 'library'. Particularly, one pushbutton is used to make visible or invisible a configuration window, which also contains sliders with callbacks. The button to make visible or invisible the windows is very poorly reactive (approx 30 quick click to work), except if I don't change any slider parameter in the configuration window. I have tested callback types 10 and 12 and the result is the same. Do someone has ideas to improve reactivity of pushbutton please? Have a good day Alexis From Alexis.Cros at promes.cnrs.fr Fri Oct 13 17:45:19 2017 From: Alexis.Cros at promes.cnrs.fr (Alexis Cros) Date: Fri, 13 Oct 2017 17:45:19 +0200 Subject: [Scilab-users] Callback poorly reactive In-Reply-To: References: Message-ID: Ok I join a simplified example on which we can witness my problem. It runs on Scilab 6.0.0. Nice week end Alexis Le 13/10/2017 ? 15:02, Alexis Cros a ?crit?: > Good day, > > I made a? relatively complex HMI with Scilab which uses pushbuttons > with callbacks from uicontrol 'library'. Particularly, one pushbutton > is used to make visible or invisible a configuration window, which > also contains sliders with callbacks. The button to make visible or > invisible the windows is very poorly reactive (approx 30 quick click > to work), except if I don't change any slider parameter in the > configuration window. > > I have tested callback types 10 and 12 and the result is the same. > > Do someone has ideas to improve reactivity of pushbutton please? > > Have a good day > > Alexis > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Alexis Cros PROMES - CNRS - UPR 8521 http://promes.cnrs.fr +33 (0) 4 68 30 77 43 -------------- next part -------------- GUI_TEXT_SIZE = 0.025 // Colors for GUI WHITE = [1,1,1] BLACK = [0,0,0] RED = [1,0,0] SKY_RED = [1, 0.5, 0.5] GREEN = [0,1,0] SKY_GREEN = [0.5,1,0.5] BLUE = [0,0,1] SKY_BLUE = [0.5,0.5,1] YELLOW = [1,1,0] SKY_YELLOW = [1,1,0.5] CYAN = [0,1,1] SKY_CYAN = [0.5,1,1] MAGENTA = [1,0,1] SKY_MAGENTA = [1,0.5,1] GREY = [0.7,0.7,0.7] GUI_COLOR = [ 0 0 0 ] gui_polarplot = figure( 'Position', [0 0 1500 800],.. 'BackgroundColor', WHITE,.. 'Figure_name', 'SR-5000N E|L Band Directional Visualization') toolbar(gui_polarplot, "off"); plot2d() quit_pb = uicontrol( 'Parent', gui_polarplot,.. 'Style', 'pushbutton',.. 'Units', 'normalized',.. 'Position', [0.92,0.01,0.06,0.03],.. 'String', 'Exit',.. 'BackgroundColor', GREY,.. 'FontUnits', 'normalized',.. 'FontSize', GUI_TEXT_SIZE/1.5,.. 'Max', 1,.. 'Min', 0,.. 'Callback_Type', 10,.. 'Callback','quit()') a = gca() //a.isoview = 'on' next_pb = uicontrol( 'Parent', gui_polarplot,.. 'Style', 'pushbutton',.. 'Units', 'normalized',.. 'Position', [0.84,0.01,0.06,0.03],.. 'String', 'OK',.. 'BackgroundColor', SKY_GREEN,.. 'FontUnits', 'normalized',.. 'FontSize', GUI_TEXT_SIZE/1.5,.. 'Max', 1,.. 'Min', 0,.. 'Callback_Type', 10,.. 'Callback','block_3 = 1') disp_edit_b_d_pb = uicontrol( 'Parent', gui_polarplot,.. 'Style', 'pushbutton',.. 'Units', 'normalized',.. 'Position', [0.76,0.01,0.06,0.03],.. 'String', 'Edit',.. 'BackgroundColor', YELLOW,.. 'FontUnits', 'normalized',.. 'FontSize', GUI_TEXT_SIZE/1.5,.. 'Max', 1,.. 'Min', 0,.. 'Callback_Type', 10,.. 'Callback','gui_edit_b_d.Visible = ''on''') gui_edit_b_d = figure( 'Position', [0 0 400 400],.. // Position x, y and size x, y ..//'BackgroundColor', (E_L_COLOR+SKY_GREEN)./1.5,.. 'BackgroundColor', WHITE,.. 'Figure_name', 'Band directional display parameters',.. 'Visible', 'off') edit_bd_title_text = uicontrol( 'Parent', gui_edit_b_d,.. 'Style', 'text',.. 'Units', 'normalized',.. 'Position', [0.28,0.9,0.5,0.1],.. 'ForegroundColor', [0.3,0.5,1],.. 'String', '~ Visualization parameters ~',.. 'BackgroundColor', WHITE,.. 'FontUnits', 'normalized',.. 'FontSize', GUI_TEXT_SIZE*3) // Should delete 'Computed_data' directory // AXES // AXES TICK SIZES tick_size_slider = uicontrol( 'Parent', gui_edit_b_d,.. 'Style', 'slider',.. 'Units', 'normalized',.. 'SliderStep', [0.1 1],.. 'Position', [0.4,0.75,0.5,0.1],.. 'BackgroundColor', WHITE,.. 'FontUnits', 'normalized',.. 'FontSize', GUI_TEXT_SIZE/1.5,.. 'Max', 9,.. 'Min', 1,.. 'Value', a.thickness,.. 'Callback_Type', 12,.. 'Callback', 'a.thickness = tick_size_slider.Value') edit_ok_pb = uicontrol( 'Parent', gui_edit_b_d,.. 'Style', 'pushbutton',.. 'Units', 'normalized',.. 'Position', [0.8,0.05,0.1,0.05],.. 'String', 'OK',.. 'BackgroundColor', SKY_GREEN,.. 'FontUnits', 'normalized',.. 'FontSize', GUI_TEXT_SIZE*1.5,.. 'Max', 1,.. 'Min', 0,.. 'Callback_Type', 10,.. 'Callback','gui_edit_b_d.visible = ''off''') // block_3 = 0 while (block_3 ~= 1) // Wainting for user clicks on 'OK' to go on execution // Nothing end scf() polarplot() From sgougeon at free.fr Fri Oct 13 22:30:44 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 13 Oct 2017 22:30:44 +0200 Subject: [Scilab-users] Callback poorly reactive In-Reply-To: References: Message-ID: Hello Alexis, Le 13/10/2017 ? 15:02, Alexis Cros a ?crit : > Good day, > > I made a relatively complex HMI with Scilab which uses pushbuttons > with callbacks from uicontrol 'library'. Particularly, one pushbutton > is used to make visible or invisible a configuration window, which > also contains sliders with callbacks. The button to make visible or > invisible the windows is very poorly reactive (approx 30 quick click > to work), except if I don't change any slider parameter in the > configuration window. In Scilab 6.0, the slider is bugged. Using it is OK at the beginning, but quickly after, Scilab gets frozen. http://bugzilla.scilab.org/15289 BR Samuel From Alexis.Cros at promes.cnrs.fr Mon Oct 16 09:47:41 2017 From: Alexis.Cros at promes.cnrs.fr (Alexis Cros) Date: Mon, 16 Oct 2017 09:47:41 +0200 Subject: [Scilab-users] Callback poorly reactive In-Reply-To: References: Message-ID: Hello, thanks for your repply Samuel. I tried with UIcontrol spinners instead of sliders and it seems worst! Are spinner bugged too? Regards, Alexis Le 13/10/2017 ? 22:30, Samuel Gougeon a ?crit?: > Hello Alexis, > > Le 13/10/2017 ? 15:02, Alexis Cros a ?crit : >> Good day, >> >> I made a? relatively complex HMI with Scilab which uses pushbuttons >> with callbacks from uicontrol 'library'. Particularly, one pushbutton >> is used to make visible or invisible a configuration window, which >> also contains sliders with callbacks. The button to make visible or >> invisible the windows is very poorly reactive (approx 30 quick click >> to work), except if I don't change any slider parameter in the >> configuration window. > > In Scilab 6.0, the slider is bugged. Using it is OK at the beginning, > but quickly after, Scilab gets frozen. > http://bugzilla.scilab.org/15289 > > BR > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Alexis Cros PROMES - CNRS - UPR 8521 http://promes.cnrs.fr +33 (0) 4 68 30 77 43 From antoine.monmayrant at laas.fr Wed Oct 18 13:22:35 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 18 Oct 2017 13:22:35 +0200 Subject: [Scilab-users] =?utf-8?q?Bug=3F=3A_plot_with_nan_values_=28Linux_?= =?utf-8?q?Ubuntu_17=2E04=29?= Message-ID: Hi everyone, I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots. This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0. I attached the expected plot ('no_bug.png', what I get with 16.04), the bugged one ('bug.png') and the minimum working example ('bug_plot_nan.sce') with the original dataset with nans ('dat_with_nans.txt'). Are you also affected by this bug? Which platform (OS) are you working on? Cheers, Antoine -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dat_with_nans.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bug_plot_nan.sce Type: application/x-wine-extension-sce Size: 124 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: no_bug.png Type: image/png Size: 14201 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bug.png Type: image/png Size: 13376 bytes Desc: not available URL: From antoine.monmayrant at laas.fr Wed Oct 18 13:26:14 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 18 Oct 2017 13:26:14 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyBCdWc/?= =?utf-8?q?=3A_plot_with_nan_values_=28Linux_Ubuntu_17=2E04=29?= In-Reply-To: Message-ID: <258d-59e73a80-3f-c193740@264006733> Update: 1) Here is a simpler minimal working example: /////////////////////////////////////////////// x=1:100; y=rand(x); th=0.1; rg=find(y a ?crit: > Hi everyone, > > I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots. > This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0. > I attached the expected plot ('no_bug.png', what I get with 16.04), the bugged one ('bug.png') and the minimum working example ('bug_plot_nan.sce') with the original dataset with nans ('dat_with_nans.txt'). > Are you also affected by this bug? Which platform (OS) are you working on? > > Cheers, > > Antoine From jrafaelbguerra at hotmail.com Wed Oct 18 13:35:17 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 18 Oct 2017 11:35:17 +0000 Subject: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? Bug?: plot with nan values (Linux Ubuntu 17.04) In-Reply-To: <258d-59e73a80-3f-c193740@264006733> References: <258d-59e73a80-3f-c193740@264006733> Message-ID: Hi Antoine, I observe the "No bug" behavior (i.e., gaps when plotting nans) in both Scilab 5.5.2 and Scilab 6.0.0 installations on Win7 64-bit PC. Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Antoine Monmayrant Sent: Wednesday, October 18, 2017 1:26 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? Bug?: plot with nan values (Linux Ubuntu 17.04) Update: 1) Here is a simpler minimal working example: /////////////////////////////////////////////// x=1:100; y=rand(x); th=0.1; rg=find(y a ?crit: > Hi everyone, > > I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots. > This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0. > I attached the expected plot ('no_bug.png', what I get with 16.04), the bugged one ('bug.png') and the minimum working example ('bug_plot_nan.sce') with the original dataset with nans ('dat_with_nans.txt'). > Are you also affected by this bug? Which platform (OS) are you working on? > > Cheers, > > Antoine _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From denis.crete at thalesgroup.com Wed Oct 18 14:23:08 2017 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Wed, 18 Oct 2017 14:23:08 +0200 Subject: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? Bug?: plot with nan values (Linux Ubuntu 17.04) In-Reply-To: References: <258d-59e73a80-3f-c193740@264006733> Message-ID: <8F1D40232A0E68409E3FC23A30C326620174D5A8AA65@THSONEA01CMS04P.one.grp> This seems to be the same problem I discussed with Christophe (although he observed a correct behaviour) : ---------------------------------------------------------------------------------- Objet: Scilab 6's plot2d displays %nan on the horizontal line in the mid-range of vertical axis Hello Denis, > De CRETE Denis > Envoy? : mercredi 17 mai 2017 14:20 > > If %nan values are in the Y vector, > plot2d behaves as if the following was performed before display: > Y (isnan(Y))=(YM + Ym)/2 I'm not sure I understand what you're pointing out. The following code works exactly as I expect: ---------- x = 1:5; y=x.^2; y(3)=%nan; plot(x, y) ---------- i.e. the point at x=3 is simply missing, with a blank between x=2 and x=4. -- Christophe Dang Ngoc Chan -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de Rafael Guerra Envoy??: mercredi 18 octobre 2017 13:35 ??: antoine.monmayrant at laas.fr; Users mailing list for Scilab Objet?: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? Bug?: plot with nan values (Linux Ubuntu 17.04) Hi Antoine, I observe the "No bug" behavior (i.e., gaps when plotting nans) in both Scilab 5.5.2 and Scilab 6.0.0 installations on Win7 64-bit PC. Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Antoine Monmayrant Sent: Wednesday, October 18, 2017 1:26 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? Bug?: plot with nan values (Linux Ubuntu 17.04) Update: 1) Here is a simpler minimal working example: /////////////////////////////////////////////// x=1:100; y=rand(x); th=0.1; rg=find(y a ?crit: > Hi everyone, > > I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots. > This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0. > I attached the expected plot ('no_bug.png', what I get with 16.04), the bugged one ('bug.png') and the minimum working example ('bug_plot_nan.sce') with the original dataset with nans ('dat_with_nans.txt'). > Are you also affected by this bug? Which platform (OS) are you working on? > > Cheers, > > Antoine _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From Patrice.MEGRET at umons.ac.be Wed Oct 18 16:39:55 2017 From: Patrice.MEGRET at umons.ac.be (Patrice MEGRET) Date: Wed, 18 Oct 2017 14:39:55 +0000 Subject: [Scilab-users] Bug?: plot with nan values (Linux Ubuntu 17.04) In-Reply-To: References: Message-ID: Dear Antoine, Correct behavior in Windows 10 and Scilab 6.0.0 Patrice -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de Antoine Monmayrant Envoy??: mercredi 18 octobre 2017 13:23 ??: users at lists.scilab.org Objet?: [Scilab-users] Bug?: plot with nan values (Linux Ubuntu 17.04) Hi everyone, I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots. This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0. I attached the expected plot ('no_bug.png', what I get with 16.04), the bugged one ('bug.png') and the minimum working example ('bug_plot_nan.sce') with the original dataset with nans ('dat_with_nans.txt'). Are you also affected by this bug? Which platform (OS) are you working on? Cheers, Antoine From amonmayr at laas.fr Wed Oct 18 16:46:35 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Wed, 18 Oct 2017 16:46:35 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyA/PSAp?= In-Reply-To: <8F1D40232A0E68409E3FC23A30C326620174D5A8AA65@THSONEA01CMS04P.one.grp> Message-ID: <336d-59e76980-87-192b4300@39160448> Yep, you're right, it looks the same. Did you fill a bug report? On what machine/OS did you observe this bug? Antoine Le Mercredi, Octobre 18, 2017 14:23 CEST, CRETE Denis a ?crit: > This seems to be the same problem I discussed with Christophe (although he observed a correct behaviour) : > ---------------------------------------------------------------------------------- > Objet: Scilab 6's plot2d displays %nan on the horizontal line in the mid-range of vertical axis > > Hello Denis, > > > De CRETE Denis > > Envoy? : mercredi 17 mai 2017 14:20 > > > > If %nan values are in the Y vector, > > plot2d behaves as if the following was performed before display: > > Y (isnan(Y))=(YM + Ym)/2 > > I'm not sure I understand what you're pointing out. > The following code works exactly as I expect: > ---------- > x = 1:5; > y=x.^2; > y(3)=%nan; > plot(x, y) > ---------- > i.e. the point at x=3 is simply missing, with a blank between x=2 and x=4. > -- > Christophe Dang Ngoc Chan > > > -----Message d'origine----- > De?: users [mailto:users-bounces at lists.scilab.org] De la part de Rafael Guerra > Envoy??: mercredi 18 octobre 2017 13:35 > ??: antoine.monmayrant at laas.fr; Users mailing list for Scilab > Objet?: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? Bug?: plot with nan values (Linux Ubuntu 17.04) > > Hi Antoine, > > I observe the "No bug" behavior (i.e., gaps when plotting nans) in both Scilab 5.5.2 and Scilab 6.0.0 installations on Win7 64-bit PC. > > Regards, > Rafael > > > -----Original Message----- > From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Antoine Monmayrant > Sent: Wednesday, October 18, 2017 1:26 PM > To: Users mailing list for Scilab > Subject: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? Bug?: plot with nan values (Linux Ubuntu 17.04) > > Update: > > 1) Here is a simpler minimal working example: > > /////////////////////////////////////////////// > x=1:100; > y=rand(x); > th=0.1; > rg=find(y ynan=y; > ynan(rg)=%nan; > > scf(); > plot(x,y,'k.-'); > plot(x,ynan,'r.-'); > /////////////////////////////////////////////// > > 2) This might be due to some graphic drivers, but I think I am up to date on that front. How can I check it's related to a graphic driver or not? > > Antoine > > > Le Mercredi, Octobre 18, 2017 13:22 CEST, "Antoine Monmayrant" a ?crit: > > > Hi everyone, > > > > I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots. > > This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0. > > I attached the expected plot ('no_bug.png', what I get with 16.04), the bugged one ('bug.png') and the minimum working example ('bug_plot_nan.sce') with the original dataset with nans ('dat_with_nans.txt'). > > Are you also affected by this bug? Which platform (OS) are you working on? > > > > Cheers, > > > > Antoine > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From denis.crete at thalesgroup.com Wed Oct 18 18:09:26 2017 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Wed, 18 Oct 2017 18:09:26 +0200 Subject: [Scilab-users] Bug?: plot with nan values (Linux Ubuntu 17.04) Message-ID: <8F1D40232A0E68409E3FC23A30C326620174D5A8B1A4@THSONEA01CMS04P.one.grp> Hello Antoine I used a Lenovo T420 with Ubuntu 16.04 (I need to check when I am back on this machine, and I'll try to find what is the graphic driver), and Scilab 6.0. With this machine, but under Windows and Scilab 5.5.2, this did not happen = it used to be correct, with open gap at the %Nan value. I can't try this machine and SciLab 6 under Windows, as Windows is not on this machine anymore. I also tried the following code: // Code X=1:5; Y=X.^2; Y(3)=%nan; plot2d(X',Y') // End of code - with an HP Z440 + Windows 7 Pro + SciLab 6.0 : both plot and plot2d are correct - with an HP Z420 + Windows 7 Pro + SciLab 5.5.2 : both plot and plot2d are correct I did not fill a bug report. I notice a different behaviour between "your bug" and "my bug": in your bug/no_bug PNGs, Nan points are plot in the center (both x-wise and y-wise) of the graph, whereas in my observation (sorry, I do not have the true result, I can produce it when I am back on the Linux machine) only the y coordinate is "fake" data in the mid-range of Y, but at the right value of X... HTH Denis -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de Antoine Monmayrant Envoy??: mercredi 18 octobre 2017 16:47 ??: Users mailing list for Scilab Objet?: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= ) Yep, you're right, it looks the same. Did you fill a bug report? On what machine/OS did you observe this bug? Antoine Le Mercredi, Octobre 18, 2017 14:23 CEST, CRETE Denis a ?crit: > This seems to be the same problem I discussed with Christophe (although he observed a correct behaviour) : > ---------------------------------------------------------------------- > ------------ > Objet: Scilab 6's plot2d displays %nan on the horizontal line in the > mid-range of vertical axis > > Hello Denis, > > > De CRETE Denis > > Envoy? : mercredi 17 mai 2017 14:20 > > > > If %nan values are in the Y vector, > > plot2d behaves as if the following was performed before display: > > Y (isnan(Y))=(YM + Ym)/2 > > I'm not sure I understand what you're pointing out. > The following code works exactly as I expect: > ---------- > x = 1:5; > y=x.^2; > y(3)=%nan; > plot(x, y) > ---------- > i.e. the point at x=3 is simply missing, with a blank between x=2 and x=4. > -- > Christophe Dang Ngoc Chan > > > -----Message d'origine----- > De?: users [mailto:users-bounces at lists.scilab.org] De la part de > Rafael Guerra Envoy??: mercredi 18 octobre 2017 13:35 ??: > antoine.monmayrant at laas.fr; Users mailing list for Scilab Objet?: Re: > [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? Bug?: plot with nan values > (Linux Ubuntu 17.04) > > Hi Antoine, > > I observe the "No bug" behavior (i.e., gaps when plotting nans) in both Scilab 5.5.2 and Scilab 6.0.0 installations on Win7 64-bit PC. > > Regards, > Rafael > > > -----Original Message----- > From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of > Antoine Monmayrant > Sent: Wednesday, October 18, 2017 1:26 PM > To: Users mailing list for Scilab > Subject: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? Bug?: plot with > nan values (Linux Ubuntu 17.04) > > Update: > > 1) Here is a simpler minimal working example: > > /////////////////////////////////////////////// > x=1:100; > y=rand(x); > th=0.1; > rg=find(y ynan=y; > ynan(rg)=%nan; > > scf(); > plot(x,y,'k.-'); > plot(x,ynan,'r.-'); > /////////////////////////////////////////////// > > 2) This might be due to some graphic drivers, but I think I am up to date on that front. How can I check it's related to a graphic driver or not? > > Antoine > > > Le Mercredi, Octobre 18, 2017 13:22 CEST, "Antoine Monmayrant" a ?crit: > > > Hi everyone, > > > > I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots. > > This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0. > > I attached the expected plot ('no_bug.png', what I get with 16.04), the bugged one ('bug.png') and the minimum working example ('bug_plot_nan.sce') with the original dataset with nans ('dat_with_nans.txt'). > > Are you also affected by this bug? Which platform (OS) are you working on? > > > > Cheers, > > > > Antoine > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From amonmayr at laas.fr Thu Oct 19 10:21:12 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Thu, 19 Oct 2017 10:21:12 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyBCdWc/?= =?utf-8?q?=3A_plot_with_nan_values_=28Linux_Ubuntu_17=2E04=29?= In-Reply-To: Message-ID: <591a-59e86080-3f-5ef7a000@127385434> Thank you all for your answers. It does look like a graphic bug that is only affecting some Linux machines. I refined my test script to compare the obtained plots when plotting on the screen and directly in a file ('driver'). It seems graphic direver related to me. I'll fill a bug report. Cheers, Antoine //////////////////////////////////////////////// x=1:100; y=rand(x); th=0.1; rg=find(y a ?crit: > Hi everyone, > > I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots. > This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0. > I attached the expected plot ('no_bug.png', what I get with 16.04), the bugged one ('bug.png') and the minimum working example ('bug_plot_nan.sce') with the original dataset with nans ('dat_with_nans.txt'). > Are you also affected by this bug? Which platform (OS) are you working on? > > Cheers, > > Antoine -------------- next part -------------- A non-text attachment was scrubbed... Name: bug_plot_nan.png Type: image/png Size: 15705 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nobug_plot_nan.png Type: image/png Size: 17874 bytes Desc: not available URL: From amonmayr at laas.fr Thu Oct 19 10:30:14 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Thu, 19 Oct 2017 10:30:14 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyA/PSAg?= =?utf-8?q?Bug=3F=3A_plot_with_nan_values_=28Linux_Ubuntu_17=2E04?= In-Reply-To: <591a-59e86080-3f-5ef7a000@127385434> Message-ID: <62a0-59e86280-55-669bbb80@41690801> It seems the bug report was 4 years ago: https://bugzilla.scilab.org/show_bug.cgi?id=13060 I added my test script and plots. Antoine Le Jeudi, Octobre 19, 2017 10:21 CEST, "Antoine Monmayrant" a ?crit: > Thank you all for your answers. > It does look like a graphic bug that is only affecting some Linux machines. > I refined my test script to compare the obtained plots when plotting on the screen and directly in a file ('driver'). > It seems graphic direver related to me. > I'll fill a bug report. > > Cheers, > > Antoine > > //////////////////////////////////////////////// > x=1:100; > y=rand(x); > th=0.1; > rg=find(y ynan=y; > ynan(rg)=%nan; > > h=scf(); > plot(x,y,'k.-'); > plot(x,ynan,'r.-'); > xtitle('BUG'); > > fpath=TMPDIR+'/nobug_plot_nan.png'; > previous_driver = driver('PNG'); > xinit(fpath); > > scf(); > plot(x,y,'k.-'); > plot(x,ynan,'r.-'); > xtitle('NO BUG'); > > xend(); > driver(previous_driver); > stat=unix("xdg-open "+fpath); > xs2png(h,TMPDIR+'/bug_plot_nan.png'); > ///////////////////////////////////////////////// > > > Le Mercredi, Octobre 18, 2017 13:22 CEST, "Antoine Monmayrant" a ?crit: > > > Hi everyone, > > > > I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots. > > This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0. > > I attached the expected plot ('no_bug.png', what I get with 16.04), the bugged one ('bug.png') and the minimum working example ('bug_plot_nan.sce') with the original dataset with nans ('dat_with_nans.txt'). > > Are you also affected by this bug? Which platform (OS) are you working on? > > > > Cheers, > > > > Antoine From denis.crete at thalesgroup.com Thu Oct 19 16:54:20 2017 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Thu, 19 Oct 2017 16:54:20 +0200 Subject: [Scilab-users] =?utf-8?b?Pz0gID89PT91dGYtOD9xPyBCdWc/OiBwbG90IHdp?= =?utf-8?q?th_nan_values_=28Linux_Ubuntu_17=2E04?= In-Reply-To: <62a0-59e86280-55-669bbb80@41690801> References: <591a-59e86080-3f-5ef7a000@127385434> <62a0-59e86280-55-669bbb80@41690801> Message-ID: <8F1D40232A0E68409E3FC23A30C326620174D5B2CC68@THSONEA01CMS04P.one.grp> Hello, Today, I checked again with the Lenovo T420 + Ubuntu 16.04 + SciLab 6 ... and I could NOT reproduce the bug (that I did observe with the same equipment and same code 5 months ago). Most probably, an (automatic) update of Ubuntu may have fixed the problem. But I don't know the name of the file tracking the changes in the update... If anyone knows, and can give me instructions, I would be happy to do it if it helps. Regards Denis -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de Antoine Monmayrant Envoy??: jeudi 19 octobre 2017 10:30 ??: Users mailing list for Scilab Objet?: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= Bug?: plot with nan values (Linux Ubuntu 17.04 It seems the bug report was 4 years ago: https://bugzilla.scilab.org/show_bug.cgi?id=13060 I added my test script and plots. Antoine Le Jeudi, Octobre 19, 2017 10:21 CEST, "Antoine Monmayrant" a ?crit: > Thank you all for your answers. > It does look like a graphic bug that is only affecting some Linux machines. > I refined my test script to compare the obtained plots when plotting on the screen and directly in a file ('driver'). > It seems graphic direver related to me. > I'll fill a bug report. > > Cheers, > > Antoine > > //////////////////////////////////////////////// > x=1:100; > y=rand(x); > th=0.1; > rg=find(y ynan=y; > ynan(rg)=%nan; > > h=scf(); > plot(x,y,'k.-'); > plot(x,ynan,'r.-'); > xtitle('BUG'); > > fpath=TMPDIR+'/nobug_plot_nan.png'; > previous_driver = driver('PNG'); > xinit(fpath); > > scf(); > plot(x,y,'k.-'); > plot(x,ynan,'r.-'); > xtitle('NO BUG'); > > xend(); > driver(previous_driver); > stat=unix("xdg-open "+fpath); > xs2png(h,TMPDIR+'/bug_plot_nan.png'); > ///////////////////////////////////////////////// > > > Le Mercredi, Octobre 18, 2017 13:22 CEST, "Antoine Monmayrant" a ?crit: > > > Hi everyone, > > > > I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots. > > This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0. > > I attached the expected plot ('no_bug.png', what I get with 16.04), the bugged one ('bug.png') and the minimum working example ('bug_plot_nan.sce') with the original dataset with nans ('dat_with_nans.txt'). > > Are you also affected by this bug? Which platform (OS) are you working on? > > > > Cheers, > > > > Antoine _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From Pablo_F_7 at hotmail.com Thu Oct 19 18:08:25 2017 From: Pablo_F_7 at hotmail.com (Pablo Fonovich) Date: Thu, 19 Oct 2017 16:08:25 +0000 Subject: [Scilab-users] ?= ?==?utf-8?q? Bug?: plot with nan values (Linux Ubuntu 17.04 In-Reply-To: <8F1D40232A0E68409E3FC23A30C326620174D5B2CC68@THSONEA01CMS04P.one.grp> References: <591a-59e86080-3f-5ef7a000@127385434> <62a0-59e86280-55-669bbb80@41690801>, <8F1D40232A0E68409E3FC23A30C326620174D5B2CC68@THSONEA01CMS04P.one.grp> Message-ID: Hi: In my Ubuntu 17.04 machine and Scilab 6, plot is working as expected. ________________________________ De: users en nombre de CRETE Denis Enviado: jueves, 19 de octubre de 2017 11:54 a.m. Para: Users mailing list for Scilab Asunto: Re: [Scilab-users] ?= ?==?utf-8?q? Bug?: plot with nan values (Linux Ubuntu 17.04 Hello, Today, I checked again with the Lenovo T420 + Ubuntu 16.04 + SciLab 6 ... and I could NOT reproduce the bug (that I did observe with the same equipment and same code 5 months ago). Most probably, an (automatic) update of Ubuntu may have fixed the problem. But I don't know the name of the file tracking the changes in the update... If anyone knows, and can give me instructions, I would be happy to do it if it helps. Regards Denis -----Message d'origine----- De : users [mailto:users-bounces at lists.scilab.org] De la part de Antoine Monmayrant Envoy? : jeudi 19 octobre 2017 10:30 ? : Users mailing list for Scilab Objet : Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= Bug?: plot with nan values (Linux Ubuntu 17.04 It seems the bug report was 4 years ago: https://bugzilla.scilab.org/show_bug.cgi?id=13060 I added my test script and plots. Antoine Le Jeudi, Octobre 19, 2017 10:21 CEST, "Antoine Monmayrant" a ?crit: > Thank you all for your answers. > It does look like a graphic bug that is only affecting some Linux machines. > I refined my test script to compare the obtained plots when plotting on the screen and directly in a file ('driver'). > It seems graphic direver related to me. > I'll fill a bug report. > > Cheers, > > Antoine > > //////////////////////////////////////////////// > x=1:100; > y=rand(x); > th=0.1; > rg=find(y ynan=y; > ynan(rg)=%nan; > > h=scf(); > plot(x,y,'k.-'); > plot(x,ynan,'r.-'); > xtitle('BUG'); > > fpath=TMPDIR+'/nobug_plot_nan.png'; > previous_driver = driver('PNG'); > xinit(fpath); > > scf(); > plot(x,y,'k.-'); > plot(x,ynan,'r.-'); > xtitle('NO BUG'); > > xend(); > driver(previous_driver); > stat=unix("xdg-open "+fpath); > xs2png(h,TMPDIR+'/bug_plot_nan.png'); > ///////////////////////////////////////////////// > > > Le Mercredi, Octobre 18, 2017 13:22 CEST, "Antoine Monmayrant" a ?crit: > > > Hi everyone, > > > > I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots. > > This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0. > > I attached the expected plot ('no_bug.png', what I get with 16.04), the bugged one ('bug.png') and the minimum working example ('bug_plot_nan.sce') with the original dataset with nans ('dat_with_nans.txt'). > > Are you also affected by this bug? Which platform (OS) are you working on? > > > > Cheers, > > > > Antoine _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Fri Oct 20 14:25:25 2017 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Fri, 20 Oct 2017 05:25:25 -0700 (MST) Subject: [Scilab-users] scilab 6 nighlty builds download link broken Message-ID: <1508502325030-0.post@n3.nabble.com> Hi all, the nighlty builds download links are broken, not possible to download. Thanks for solving the issue, David -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From skiba.g at gmail.com Mon Oct 23 20:59:01 2017 From: skiba.g at gmail.com (Grzegorz) Date: Mon, 23 Oct 2017 11:59:01 -0700 (MST) Subject: [Scilab-users] Atoms login In-Reply-To: <04dc9350-1369-755e-6fd4-cc7ca60fd3ea@free.fr> References: <04dc9350-1369-755e-6fd4-cc7ca60fd3ea@free.fr> Message-ID: <1508785141456-0.post@n3.nabble.com> Hello, just want to ask if the goodness of Atoms system will be available still for Scilab uses or after ESI Group acquisition it will be kind of commercial service? I suppose not only I have this question in mind since Atoms are not available (for more then month) for maintainers and new people which want to improve Scilab by contributing new Atoms modules. Regards Grzegorz -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From W.Schulz at ove.at Wed Oct 25 07:36:11 2017 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Wed, 25 Oct 2017 05:36:11 +0000 Subject: [Scilab-users] NIghtly builds Message-ID: <07A8AF089844A549B0F0CCC727AF31AA79ECCB56@OVEKBG.ove.at> Hello, I'm really missing a current nightly build. Is there another place where I could download them? Thanks for your help Wolfgang -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Fri Oct 27 23:16:20 2017 From: rouxph.22 at gmail.com (philippe) Date: Fri, 27 Oct 2017 23:16:20 +0200 Subject: [Scilab-users] xclick bug on Mac OS ? Message-ID: Hi to all, Today I saw a strange bug with xclick and scilab 6.0.0 on Mac OS : there is a shift between the position in the graphic window and coordinates recovered by xclick (see the screen-shot with version information : https://photos.app.goo.gl/wywgRFAH5wSdszGa2 ). I can't reproduce the bug cause I don't have a Mac, it was generated by a piece of scilab code like : clf() plot2d(0,0,rect=[0 0 3 3]) xgrid(1) x=[];y=[] ibutton=0 while ibutton<>5 [ibutton,xcoord,ycoord]=xclick() x($+1)=xcoord y($+1)=ycoord plot(x,y,'-o') end I don't find something similar in the bugzilla list : http://bugzilla.scilab.org/buglist.cgi?quicksearch=xclick&list_id=43893 I would appreciate if someone could confirm (or not) the bug on MacOS+scilab6 , and report on bugzilla if necessary. Best regards, Philippe From sgougeon at free.fr Sat Oct 28 12:22:29 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 28 Oct 2017 12:22:29 +0200 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: References: Message-ID: Hello Philippe, Sorry, but i don't catch clearly the circumstances of this bug. Are you the user that experimented this bug, or someone else did? If you are not the user, where did you find the primary information? If you are the user, why do you say that "you can't reproduce it because you don't have a Mac" while you experimented it on a Mac? Would you mean that the bug is a transient not fully reproducible one? Unfortunately, the screenshot does not show the bug. When providing the piece of "code like..", i am afraid that the "like" is risky. So, is it actually/this/ code that yielded the bug, or you don't know? Such a bug was already met to set a legend: http://bugzilla.scilab.org/13592 So , it could be the same for xclick, whether it it used in a figure /homed in a uicontrol frame/. In the piece of code that you provide, we don't know how the homing figure is generated. Version information may be useful, but less than a minimal self-sufficient copy/pastable piece of code that, in a fresh scilab session, yields the bug. Thanks Best regards Samuel Le 27/10/2017 ? 23:16, philippe a ?crit : > Hi to all, > > Today I saw a strange bug with xclick and scilab 6.0.0 on Mac OS : > there is a shift between the position in the graphic window and > coordinates recovered by xclick (see the screen-shot with version > information : https://photos.app.goo.gl/wywgRFAH5wSdszGa2 ). I can't > reproduce the bug cause I don't have a Mac, it was generated by a piece > of scilab code like : > > clf() > plot2d(0,0,rect=[0 0 3 3]) > xgrid(1) > x=[];y=[] > ibutton=0 > while ibutton<>5 > [ibutton,xcoord,ycoord]=xclick() > x($+1)=xcoord > y($+1)=ycoord > plot(x,y,'-o') > end > > I don't find something similar in the bugzilla list : > > http://bugzilla.scilab.org/buglist.cgi?quicksearch=xclick&list_id=43893 > > I would appreciate if someone could confirm (or not) the bug on > MacOS+scilab6 , and report on bugzilla if necessary. > > Best regards, > > Philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Oct 28 12:45:02 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 28 Oct 2017 12:45:02 +0200 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: References: Message-ID: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> Le 28/10/2017 ? 12:22, Samuel Gougeon a ?crit : > Hello Philippe, > > Sorry, but i don't catch clearly the circumstances of this bug. > Are you the user that experimented this bug, or someone else did? > If you are not the user, where did you find the primary information? > If you are the user, why do you say that "you can't reproduce it because > you don't have a Mac" while you experimented it on a Mac? Would you > mean that the bug is a transient not fully reproducible one? > > Unfortunately, the screenshot does not show the bug. > > When providing the piece of "code like..", i am afraid that the "like" > is risky. > So, is it actually/this/ code that yielded the bug, or you don't know? > > Such a bug was already met to set a legend: > http://bugzilla.scilab.org/13592 > So , it could be the same for xclick, whether it it used in a figure > /homed in a uicontrol frame/. > > In the piece of code that you provide, we don't know how the homing > figure is generated. Sorry: the clf() tells it (if it was /actually/ run): it was in a (almost) fresh figure, not in a frame. The clf page https://help.scilab.org/docs/6.0.0/en_US/clf.html misses telling that uicontrols are cleared as well, including frames (i guess). Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Sat Oct 28 13:42:26 2017 From: rouxph.22 at gmail.com (philippe) Date: Sat, 28 Oct 2017 13:42:26 +0200 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: References: Message-ID: Hello Samuel, Le 28/10/2017 ? 12:22, Samuel Gougeon a ?crit?: > Hello Philippe, > > Sorry, but i don't catch clearly the circumstances of this bug. > Are you the user that experimented this bug, or someone else did? > If you are not the user, where did you find the primary information? the user was one of my student during a course :-) > If you are the user, why do you say that "you can't reproduce it because > you don't have a Mac" while you experimented it on a Mac? Would you > mean that the bug is a transient not fully reproducible one? that's it : the bug appeared only with Mac OS X and scilab 6.0.0 > > Unfortunately, the screenshot does not show the bug. It can't, the user click in the graphics windows , xclick retrieves the position, and there is a plot of this position which is very different from the position of the mousse. > > When providing the piece of "code like..", i am afraid that the "like" > is risky. > So, is it actually/this/ code that yielded the bug, or you don't know? yes it is this part of the code (which does not appear in the screen shot because it is embedded in one of the function call. > > Such a bug was already met to set a legend: > http://bugzilla.scilab.org/13592 > So , it could be the same for xclick, whether it it used in a figure > /homed in a uicontrol frame/. yes it looks close to what happens with xclick and legend with optional argument "5" puts the legends at mousse position so both bugs should be related. > > Version information may be useful, but less than a minimal > self-sufficient copy/pastable > piece of code that, in a fresh scilab session, yields the bug. the code below should be the minimal example : clf; plot2d(0,0,rect=[0,0,1,1]);xgrid(1);// set graphic windows [ibutton,x,y]=xclick()// + click in graphic window plot(x,y,'xr') // ->the position differs from the mousse position Best regards, Philippe From rouxph.22 at gmail.com Sat Oct 28 13:48:14 2017 From: rouxph.22 at gmail.com (philippe) Date: Sat, 28 Oct 2017 13:48:14 +0200 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> References: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> Message-ID: Le 28/10/2017 ? 12:45, Samuel Gougeon a ?crit?: > [...] > Sorry: the clf() tells it (if it was /actually/ run): it was in a > (almost) fresh figure, not in a frame. yes , the figure is cleared at begining, but the graphic windows can be a new one (if no graphic window is already open) or an existing one (perhaps already docked in scilab main window). Those different configurations where tested by the student . > > The clf page https://help.scilab.org/docs/6.0.0/en_US/clf.html misses > telling that uicontrols are cleared as well, including frames (i guess). I don't understand the link between this bug and uicontrols . Philippe From sgougeon at free.fr Sat Oct 28 14:00:42 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 28 Oct 2017 14:00:42 +0200 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: References: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> Message-ID: <0456ef02-7548-387b-223b-6e28453db445@free.fr> Le 28/10/2017 ? 13:48, philippe a ?crit : >> The clf page https://help.scilab.org/docs/6.0.0/en_US/clf.html misses >> telling that uicontrols are cleared as well, including frames (i guess). > I don't understand the link between this bug and uicontrols . If you are /sure/ that the student did not define any uicontrol("style","frame") to plot in it, indeed, there is no link. uicontrol frames have their own system of coordinates, a bit like "a figure in a figure". This is what made the shift between the legend handle and the mouse, when setting the legend position interactively in a frame. -------------- next part -------------- An HTML attachment was scrubbed... URL: From derogis.philippe at gmail.com Sat Oct 28 14:26:12 2017 From: derogis.philippe at gmail.com (=?utf-8?Q?Philippe_D=C3=A9rogis?=) Date: Sat, 28 Oct 2017 14:26:12 +0200 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: References: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> Message-ID: <95B08B61-FD68-4B9B-A070-C30093A4083D@gmail.com> Hi Philippe and Samuel, I experiment exactly the problem described by Philippe on my Mac (MacBook Pro Retina 13 pouces running MacOS Sierra 10.12.6) with Scilab 6.0 I wrote to the mailing list on the 10 mai 2017 about that : ?? begin quote Hi, My name is Philippe, I work in the field of physics and signal processing, I use scilab a lot in my work and I want to thanks very much all the the people involve in the development of this great software. I updated my scilab to 6.0.0 two weeks ago on my power book (retina) running macOS 10.12.4. Since this time I experiment two problems with graphic figures. The first issue is that the thickness of the lines is really small and the text for the axis labels, curves label and title are almost unreadable (way smaller than in the preceding version). The second problem is about the zoom, when I try to zoom on a graphic figure using the rectangular selection with the mouse, I get an offset between the mouse pointer and the actual selection, making it impossible to correctly define de rectangular region. Is anybody else experimenting the same issues ? Does somebody have a fix or a workaround for that ? ? ? end quote So i?m glad to know that I?m not the only one who experiment this problem. In order to try to help I ran the following piece of code clf() plot2d(0,0,rect=[0 0 1 1]) xgrid(1) x=[];y=[] ibutton=0 while ibutton<>5 [ibutton,xcoord,ycoord]=xclick() x($+1)=xcoord y($+1)=ycoord plot(x,y,'-o') end (thank you Philippe) on my Mac and clic with the mouse on the point (1,0), (0.9,0.1), (0.8,0.2), (0.7,0.3), (0.6,0.4) and (0.5,0.5) which result to plot circles on points : x = 0.4169399 0.3666667 0.3163934 0.2661202 0.215847 0.1677596 0.1677596 y = 0.5811594 0.6318841 0.6782609 0.7289855 0.7768116 0.8304348 0.8304348 you can download the png of the figure here : https://we.tl/VXmrnlsI2V I take the opportunity to report again that this problem affect the interactive zooming in graphic windows and, I thing, is related to the fact that the graphics windows (with default settings) are almost unreadable on My MacBook Retina (very small window with thin lines and fonts). Those issues where new with version 6.0 I didn?t have those problems with the 5.5.2 version. I hope it helps. One more time thanks a lot to all the people working on the development of Scilab, it is a very powerful software that I use a lot. Philippe. > Le 28 oct. 2017 ? 13:48, philippe a ?crit : > > Le 28/10/2017 ? 12:45, Samuel Gougeon a ?crit : >> [...] >> Sorry: the clf() tells it (if it was /actually/ run): it was in a >> (almost) fresh figure, not in a frame. > > yes , the figure is cleared at begining, but the graphic windows can be > a new one (if no graphic window is already open) or an existing one > (perhaps already docked in scilab main window). Those different > configurations where tested by the student . > >> >> The clf page https://help.scilab.org/docs/6.0.0/en_US/clf.html misses >> telling that uicontrols are cleared as well, including frames (i guess). > > I don't understand the link between this bug and uicontrols . > > Philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Sat Oct 28 22:44:11 2017 From: rouxph.22 at gmail.com (philippe) Date: Sat, 28 Oct 2017 22:44:11 +0200 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: <95B08B61-FD68-4B9B-A070-C30093A4083D@gmail.com> References: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> <95B08B61-FD68-4B9B-A070-C30093A4083D@gmail.com> Message-ID: Le 28/10/2017 ? 14:26, Philippe D?rogis a ?crit?: > Hi Philippe and Samuel, > > ? I experiment exactly the problem described by Philippe on my Mac > (MacBook Pro Retina 13 pouces running MacOS Sierra 10.12.6) with Scilab 6.0 > I wrote to the mailing list on the 10 mai 2017 about that : thanks for your feedback, so it is actually a bug that affect only Mac OS with scilab 6.0.0 . It would be nice if you report the bug on bugzilla ( http://bugzilla.scilab.org/ ) you need to create an account to report bugs. If you don't want to create an account tell me, I will report the bug , but it would be better than it comes from a Mac OS user. Best regards, Philippe From rouxph.22 at gmail.com Sat Oct 28 22:53:09 2017 From: rouxph.22 at gmail.com (philippe) Date: Sat, 28 Oct 2017 22:53:09 +0200 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: <0456ef02-7548-387b-223b-6e28453db445@free.fr> References: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> <0456ef02-7548-387b-223b-6e28453db445@free.fr> Message-ID: Le 28/10/2017 ? 14:00, Samuel Gougeon a ?crit?: > > If you are /sure/ that the student did not define any > uicontrol("style","frame") to plot in it, > indeed, there is no link. by the infinite monkey theorem* it would be possible that a student create a uincontrol from scratch but the probability of this event is close to 0 ;-) but the bug has been confirmed by Philippe Derogis ... > > uicontrol frames have their own system of coordinates, a bit like "a > figure in a figure". > This is what made the shift between the legend handle and the mouse, > when setting the legend position interactively in a frame. well the problem I saw was very close to the one described for legend. Best regards, Philippe *https://en.wikipedia.org/wiki/Infinite_monkey_theorem From derogis.philippe at gmail.com Sun Oct 29 13:16:54 2017 From: derogis.philippe at gmail.com (=?utf-8?Q?Philippe_D=C3=A9rogis?=) Date: Sun, 29 Oct 2017 13:16:54 +0100 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: References: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> <95B08B61-FD68-4B9B-A070-C30093A4083D@gmail.com> Message-ID: <4C0997C2-65A6-4C14-A440-5054DE199176@gmail.com> Hi Samuel, Yes It should be nice if you could register the bug in Scilab bug tracking system. Sincerely, Philippe. > Le 28 oct. 2017 ? 22:44, philippe a ?crit : > > Le 28/10/2017 ? 14:26, Philippe D?rogis a ?crit : >> Hi Philippe and Samuel, >> >> I experiment exactly the problem described by Philippe on my Mac >> (MacBook Pro Retina 13 pouces running MacOS Sierra 10.12.6) with Scilab 6.0 >> I wrote to the mailing list on the 10 mai 2017 about that : > > thanks for your feedback, so it is actually a bug that affect only Mac > OS with scilab 6.0.0 . It would be nice if you report the bug on > bugzilla ( http://bugzilla.scilab.org/ ) you need to create an account > to report bugs. If you don't want to create an account tell me, I will > report the bug , but it would be better than it comes from a Mac OS user. > > > Best regards, > > Philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From rouxph.22 at gmail.com Sun Oct 29 16:00:27 2017 From: rouxph.22 at gmail.com (philippe) Date: Sun, 29 Oct 2017 16:00:27 +0100 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: <4C0997C2-65A6-4C14-A440-5054DE199176@gmail.com> References: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> <95B08B61-FD68-4B9B-A070-C30093A4083D@gmail.com> <4C0997C2-65A6-4C14-A440-5054DE199176@gmail.com> Message-ID: Le 29/10/2017 ? 13:16, Philippe D?rogis a ?crit?: > > > Yes It should be nice if you could register the bug in Scilab bug tracking system. done : http://bugzilla.scilab.org/show_bug.cgi?id=15316 Best regards, Philippe From brantosaurus at hotmail.com Sun Oct 29 23:36:15 2017 From: brantosaurus at hotmail.com (David Brant) Date: Sun, 29 Oct 2017 22:36:15 +0000 Subject: [Scilab-users] Google Static Maps using IPCV imread function - help Message-ID: Hi Is it possible to access and plot google static maps in scilab using the IMREAD function in IPCV? The scilab examples I have come across require the path and filename. This can be done in matlab but I can?t manage to convert the code to scilab. https://uk.mathworks.com/matlabcentral/fileexchange/27627-zoharby-plot-google-map I would just like to display something simple and build from there. Regards, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: plot_google_map.m Type: text/x-objcsrc Size: 164 bytes Desc: plot_google_map.m URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: script URL: From chinluh at tritytech.com Mon Oct 30 01:39:01 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Mon, 30 Oct 2017 08:39:01 +0800 Subject: [Scilab-users] Google Static Maps using IPCV imread function - help In-Reply-To: References: Message-ID: Hi Dave, it is possible, try this: url = "https://maps.googleapis.com/maps/api/staticmap?center=40.714%2c%20-73.998&zoom=12&size=400x400&key=your_API_key" fn = getURL(url); S imread(fn); imshow(S); Hope this helps. p/s: imread suppose to be able to read in the image direct from the web link, but due to a stupid mistake, it only works for http but not https for now, will fixed it. rgds, CL On 30/10/2017 6:36 AM, David Brant wrote: > > Hi > > Is it possible to access and plot google static maps in scilab using > the IMREAD function in IPCV? > > The scilab examples I have come across require the path and filename. > > This can be done in matlab but I can?t manage to convert the code to > scilab. > > https://uk.mathworks.com/matlabcentral/fileexchange/27627-zoharby-plot-google-map > > I would just like to display something simple and build from there. > > Regards, Dave > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabrice.auzanneau at cea.fr Mon Oct 30 10:21:37 2017 From: fabrice.auzanneau at cea.fr (Lesept) Date: Mon, 30 Oct 2017 02:21:37 -0700 (MST) Subject: [Scilab-users] Scilab 6 : unable to display variables Message-ID: <1509355297390-0.post@n3.nabble.com> I'm using Scilab 6 on Windows 7. When I execute Scilab, everything goes well, but after a certain delay, I am enable to display variables' values. E.g., if I type d=6 this creates the new variable 'd', I can see it in the 'navigateur de variables', but the console does not provide any answer to that command. Then if I type 'd', no answer again. To display the value I have to use 'disp(d)'. Is this a bug? When I used Scilab 5, I didn't have this problem. Also, Scilab is not linked to .sce or .sci files, I have to load these files manually in the editor. Thanks for your help F. Auzanneau -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Mon Oct 30 10:33:26 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 30 Oct 2017 10:33:26 +0100 Subject: [Scilab-users] Scilab 6 : unable to display variables In-Reply-To: <1509355297390-0.post@n3.nabble.com> References: <1509355297390-0.post@n3.nabble.com> Message-ID: <223f7f28-8e70-2177-f223-5c3b08d6ed28@free.fr> Hello Fabrice, Le 30/10/2017 ? 10:21, Lesept a ?crit : > I'm using Scilab 6 on Windows 7. > When I execute Scilab, everything goes well, but after a certain delay, I am > enable to display variables' values. E.g., if I type > d=6 > this creates the new variable 'd', I can see it in the 'navigateur de > variables', but the console does not provide any answer to that command. > Then if I type 'd', no answer again. To display the value I have to use > 'disp(d)'. > Is this a bug? > When I used Scilab 5, I didn't have this problem. Something in a script might have changed the mode(). To get back the display, you may try to input mode(2) in the console > Also, Scilab is not linked to .sce or .sci files, I have to load these files > manually in the editor. This is a matter with your OS. For my part, i do not link these extensions to Scilab, because otherwise a new Scilab session is opened for each double-clicked file, instead of sending them to the already opened session. HTH Samuel From sgougeon at free.fr Mon Oct 30 10:38:45 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 30 Oct 2017 10:38:45 +0100 Subject: [Scilab-users] Scilab 6 : unable to display variables In-Reply-To: <223f7f28-8e70-2177-f223-5c3b08d6ed28@free.fr> References: <1509355297390-0.post@n3.nabble.com> <223f7f28-8e70-2177-f223-5c3b08d6ed28@free.fr> Message-ID: <42634410-ee8d-6e43-ff09-4eade5964ea8@free.fr> Le 30/10/2017 ? 10:33, Samuel Gougeon a ?crit : > > Le 30/10/2017 ? 10:21, Lesept a ?crit : > >> Also, Scilab is not linked to .sce or .sci files, I have to load >> these files >> manually in the editor. > This is a matter with your OS. > For my part, i do not link these extensions to Scilab, because > otherwise a new Scilab session > is opened for each double-clicked file, instead of sending them to the > already opened session. By the way, it is easy to drag and drop a file directly where you want in the Scilab desktop: Dragging it in the console executes it. Dragging it in Scinotes edits it. IMO it is a more accurate way to process. From fabrice.auzanneau at cea.fr Mon Oct 30 11:22:21 2017 From: fabrice.auzanneau at cea.fr (Lesept) Date: Mon, 30 Oct 2017 03:22:21 -0700 (MST) Subject: [Scilab-users] Scilab 6 : unable to display variables In-Reply-To: <42634410-ee8d-6e43-ff09-4eade5964ea8@free.fr> References: <1509355297390-0.post@n3.nabble.com> <223f7f28-8e70-2177-f223-5c3b08d6ed28@free.fr> <42634410-ee8d-6e43-ff09-4eade5964ea8@free.fr> Message-ID: <1509358941958-0.post@n3.nabble.com> Thank you Samuel That's what I do (drag and drop). I'll add 'mode(2)' in the script that causes the error. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Mon Oct 30 12:39:46 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 30 Oct 2017 12:39:46 +0100 Subject: [Scilab-users] Scilab 6 : unable to display variables In-Reply-To: <223f7f28-8e70-2177-f223-5c3b08d6ed28@free.fr> References: <1509355297390-0.post@n3.nabble.com> <223f7f28-8e70-2177-f223-5c3b08d6ed28@free.fr> Message-ID: <950cfc6e-e477-04ce-d0d4-1db78e14b386@free.fr> Le 30/10/2017 ? 10:33, Samuel Gougeon a ?crit : > Hello Fabrice, > > Le 30/10/2017 ? 10:21, Lesept a ?crit : >> I'm using Scilab 6 on Windows 7. >> When I execute Scilab, everything goes well, but after a certain >> delay, I am >> enable to display variables' values. E.g., if I type >> d=6 >> this creates the new variable 'd', I can see it in the 'navigateur de >> variables', but the console does not provide any answer to that command. >> Then if I type 'd', no answer again. To display the value I have to use >> 'disp(d)'. >> Is this a bug? >> When I used Scilab 5, I didn't have this problem. > > Something in a script might have changed the mode(). To get back the > display, you may try to input > mode(2) > in the console Normally, after executing a script changing the mode() (with exec()), the mode() should not be changed in the calling environment. When doing extensive tests when rewriting the mode() page (attached), i noticed some "overflow" affecting the console when putting mode(..) in a callback. But today i did other tests (only with console menus, not with uimenus), and mode(.) in callback no longer affect the console mode. So, i no longer have clear idea about the mode() overflows that are sometimes observed, actually. There might be some "wild overflows", yielded only by some specific hardcoded instructions...? Hard to say. For callbacks, may be i did first tests with uimenu or uicontrol, and the behavior with addmenu is different?! I am a bit bored with all these tests in all ways :( I hope that for uicontrols, the callback behavior is the same for all uicontrol styles! In practical, i am afraid that if you put mode(2) at the end of your script and you run it with exec(), mode(2) will not fixed the issue. Does it? BR Samuel -------------- next part -------------- A non-text attachment was scrubbed... Name: mode.pdf Type: application/pdf Size: 45883 bytes Desc: not available URL: From rouxph.22 at gmail.com Tue Oct 31 10:58:22 2017 From: rouxph.22 at gmail.com (philippe) Date: Tue, 31 Oct 2017 10:58:22 +0100 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: References: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> <95B08B61-FD68-4B9B-A070-C30093A4083D@gmail.com> <4C0997C2-65A6-4C14-A440-5054DE199176@gmail.com> Message-ID: Le 29/10/2017 ? 16:00, philippe a ?crit?: > Le 29/10/2017 ? 13:16, Philippe D?rogis a ?crit?: >> >> >> Yes It should be nice if you could register the bug in Scilab bug tracking system. > > done : http://bugzilla.scilab.org/show_bug.cgi?id=15316 > good new the bug status has changed to "resolved fixed" ! Now you can see how it is important to report bugs in bugzilla, and not only on mailing list. Every one can do it, of course you have to give a minimal and complete example to reproduce the bug (it is not so easy for GUI problems). I've started doing this 10 years ago, most of the bugs I reported have been solved, some of them quickly, other required to wait for a scilab release. Even reporting duplicates of already existing bugs can help to improve scilab ... best regards, Philippe %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Paul BIGNIER changed bug 15316 ---------- Bug Summary ----------- shift between mouse position and xclick() coordinnates What Removed Added Status NEW RESOLVED CC paul.bignier at scilab-enterprises.com Resolution --- FIXED %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% From MatteoToma at Cozzani.com Mon Oct 30 15:45:35 2017 From: MatteoToma at Cozzani.com (Matteo Toma) Date: Mon, 30 Oct 2017 15:45:35 +0100 Subject: [Scilab-users] Increase memory Message-ID: Hello I'm working with very large matrices and I use the karmarkar function. When processing comes to the karmakar function. Scilab says: "Stack size has been exceeded!" I used the maximum stacksize value but the error remains. My running computer on Windows has 8GB of memory so that the computer is not the limiting factor. There is a way to increase the maximum stack size? Best regards Matteo Tom? Production Engineer matteotoma at cozzani.com DOTT.ING.MARIO COZZANI S.r.l. Viale XXV Aprile, 7 19021 Arcola (SP) - ITALY Tel. :+39 0187 955 81 Fax. :+39 0187 955 853 info at cozzani.com www.cozzani.com This email message is for the exclusive use of the intended recipient(s) and may contain confidential, privileged and non-disclosable information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email immediately and destroy any and all copies of the message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 64 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 43 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 14977 bytes Desc: not available URL: From sgougeon at free.fr Tue Oct 31 11:23:48 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 31 Oct 2017 11:23:48 +0100 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: References: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> <95B08B61-FD68-4B9B-A070-C30093A4083D@gmail.com> <4C0997C2-65A6-4C14-A440-5054DE199176@gmail.com> Message-ID: Hello Philippe, Le 31/10/2017 ? 10:58, philippe a ?crit : > Even reporting duplicates of already existing bugs > can help to improve scilab ... Sorry, but i strongly disagree with this last assertion. Please contribute to process bugs reported on bugzilla, and you will understand why. On the contrary, your piece of advices is the best way to sink reports. This is somewhat spamming bugzilla. By the way, this is just a basic rule in net tools like forums to search for anteriority before addressing an item. Bugzilla has a builtin vote system. This one is disabled. This setting has already been addressed. This is a choice from the dev team, not a default. But if anyone just want to stress on the fact that a bug is really handicaping for him/her, it is always possible to add a comment to an existing report, or just add "+1" in comment as a vote for fixing it. A more extensive rational against spamming bugzilla with duplicates is available here: http://bugzilla.scilab.org/show_bug.cgi?id=15031#c3 Regards Samuel From Paul.Bignier at esi-group.com Tue Oct 31 12:38:08 2017 From: Paul.Bignier at esi-group.com (Paul Bignier) Date: Tue, 31 Oct 2017 11:38:08 +0000 Subject: [Scilab-users] Increase memory In-Reply-To: References: Message-ID: Hello Matteo, Thank you for reporting this issue, could you please report it to our bugzilla with a minimal test-case as well as your config (Scilab version, your operating system, installed toolboxes, ...)? http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software Best regards, Paul Paul BIGNIER Development engineer ----------------------------------------------------------- ESI Group - Scilab 99 rue des Solets - 94513 Rungis, France Phone: +33.1.41.73.58.77 https://scilab.io https://esi-group.com ________________________________ From: users on behalf of Matteo Toma Sent: Monday, October 30, 2017 3:45 PM To: users at lists.scilab.org Subject: [Scilab-users] Increase memory Hello I'm working with very large matrices and I use the karmarkar function. When processing comes to the karmakar function. Scilab says: "Stack size has been exceeded!" I used the maximum stacksize value but the error remains. My running computer on Windows has 8GB of memory so that the computer is not the limiting factor. There is a way to increase the maximum stack size? Best regards Matteo Tom? Production Engineer matteotoma at cozzani.com [cid:_2_009B08B4009B067400511355C12581C9] DOTT.ING.MARIO COZZANI S.r.l. Viale XXV Aprile, 7 19021 Arcola (SP) - ITALY Tel. :+39 0187 955 81 Fax. :+39 0187 955 853 info at cozzani.com www.cozzani.com This email message is for the exclusive use of the intended recipient(s) and may contain confidential, privileged and non-disclosable information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email immediately and destroy any and all copies of the message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ATT00001.gif Type: image/gif Size: 64 bytes Desc: ATT00001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ATT00002.gif Type: image/gif Size: 43 bytes Desc: ATT00002.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ATT00003.jpg Type: image/jpeg Size: 14977 bytes Desc: ATT00003.jpg URL: From abhinav.dronamraju at gmail.com Tue Oct 31 12:43:14 2017 From: abhinav.dronamraju at gmail.com (Abhinav Dronamraju) Date: Tue, 31 Oct 2017 17:13:14 +0530 Subject: [Scilab-users] Create new XCOS Blocks Message-ID: Dear All, We are trying to create new blocks for the analysis of Power Systems. So, we'll need some new blocks such as Bus, Generator, Line Parameters etc., Is there anything we could refer to get started on it ? Please let us know, so that we can build something useful for many people. Regards, Abhinav Dronamraju -------------- next part -------------- An HTML attachment was scrubbed... URL: From Paul.Bignier at esi-group.com Tue Oct 31 12:52:10 2017 From: Paul.Bignier at esi-group.com (Paul Bignier) Date: Tue, 31 Oct 2017 11:52:10 +0000 Subject: [Scilab-users] Create new XCOS Blocks In-Reply-To: References: Message-ID: Hello Abhinav, Do you know about Coselica? As it's not working great on Scilab 6.0.0, either you could wait for the next Scilab version or I could send you a working nightly build if you sent me your operating system. Regards, Paul Paul BIGNIER Development engineer ----------------------------------------------------------- ESI Group - Scilab 99 rue des Solets - 94513 Rungis, France Phone: +33.1.41.73.58.77 https://scilab.io https://esi-group.com ________________________________ From: users on behalf of Abhinav Dronamraju Sent: Tuesday, October 31, 2017 12:43 PM To: users at lists.scilab.org; Cl?ment David Subject: [Scilab-users] Create new XCOS Blocks Dear All, We are trying to create new blocks for the analysis of Power Systems. So, we'll need some new blocks such as Bus, Generator, Line Parameters etc., Is there anything we could refer to get started on it ? Please let us know, so that we can build something useful for many people. Regards, Abhinav Dronamraju -------------- next part -------------- An HTML attachment was scrubbed... URL: From abhinav.dronamraju at gmail.com Tue Oct 31 13:34:52 2017 From: abhinav.dronamraju at gmail.com (Abhinav Dronamraju) Date: Tue, 31 Oct 2017 18:04:52 +0530 Subject: [Scilab-users] Create new XCOS Blocks In-Reply-To: References: Message-ID: Hello Paul, I've heard about coselica. But, how do you suggest that it'll be useful for creating new blocks ? We want to create blocks of our own since no toolboxes have what we want. Please help us if you can in anyway. Can you send me the link for both windows 10 and Ubuntu 16.04 versions. Regards, Abhinav Dronamraju On Oct 31, 2017 5:23 PM, "Paul Bignier" wrote: > > Hello Abhinav, > > > Do you know about Coselica > ? > > As it's not working great on Scilab 6.0.0, either you could wait for the > next Scilab version or I could send you a working nightly build if you sent > me your operating system. > > > Regards, > > Paul > > > Paul BIGNIER > Development engineer > ----------------------------------------------------------- > ESI Group - Scilab > 99 rue des Solets - 94513 Rungis, France > Phone: +33.1.41.73.58.77 > https://scilab.io > https://esi-group.com > > > > ------------------------------ > *From:* users on behalf of Abhinav > Dronamraju > *Sent:* Tuesday, October 31, 2017 12:43 PM > *To:* users at lists.scilab.org; Cl?ment David > *Subject:* [Scilab-users] Create new XCOS Blocks > > Dear All, > > We are trying to create new blocks for the analysis of Power Systems. So, > we'll need some new blocks such as Bus, Generator, Line Parameters etc., > > Is there anything we could refer to get started on it ? > Please let us know, so that we can build something useful for many people. > > Regards, > Abhinav Dronamraju > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Tue Oct 31 13:42:00 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Tue, 31 Oct 2017 13:42:00 +0100 Subject: [Scilab-users] Create new XCOS Blocks In-Reply-To: References: Message-ID: Hi Abhinav Did you search ("Google") something like: "xcos block creation" ? I get at least 5-10 helpful links. How much effort did you put into this already? - and please ask more specific questions to help us specifically help you overcome whatever problem you experience. Thanks. Best regards, Claus On 31-10-2017 13:34, Abhinav Dronamraju wrote: > Hello Paul, > > I've heard about coselica. But, how do you suggest that it'll be > useful for creating new blocks ? We want to create blocks of our own > since no toolboxes have what we want. Please help us if you can in anyway. > Can you send me the link for both windows 10 and Ubuntu 16.04 versions. > > Regards, > Abhinav Dronamraju > > On Oct 31, 2017 5:23 PM, "Paul Bignier" > wrote: > > > Hello Abhinav, > > > Do you know about Coselica > ? > > As it's not working great on Scilab 6.0.0, either you could wait > for the next Scilab version or I could send you a working nightly > build if you sent me your operating system. > > > Regards, > > Paul > > > Paul BIGNIER > Development engineer > ----------------------------------------------------------- > ESI Group - Scilab > 99 rue des Solets - 94513 Rungis, France > Phone: +33.1.41.73.58.77 > https://scilab.io > https://esi-group.com > > > ------------------------------------------------------------------------ > *From:* users > on behalf of Abhinav > Dronamraju > > *Sent:* Tuesday, October 31, 2017 12:43 PM > *To:* users at lists.scilab.org ; > Cl?ment David > *Subject:* [Scilab-users] Create new XCOS Blocks > Dear All, > > We are trying to create new blocks for the analysis of Power > Systems. So, we'll need some new blocks such as Bus, Generator, > Line Parameters etc., > > Is there anything we could refer to get started on it ? > Please let us know, so that we can build something useful for many > people. > > Regards, > Abhinav Dronamraju > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From abhinav.dronamraju at gmail.com Tue Oct 31 13:45:28 2017 From: abhinav.dronamraju at gmail.com (Abhinav Dronamraju) Date: Tue, 31 Oct 2017 18:15:28 +0530 Subject: [Scilab-users] Create new XCOS Blocks In-Reply-To: References: Message-ID: Hello Claus, Thanks for your reply. But you are so wrong if you think I didn't search in google before coming to this mailing list. So, if you can, please help or don't take the pain in replying at all. Regards, Abhinav Dronamraju On Oct 31, 2017 6:12 PM, "Claus Futtrup" wrote: > Hi Abhinav > > Did you search ("Google") something like: "xcos block creation" ? > > I get at least 5-10 helpful links. How much effort did you put into this > already? - and please ask more specific questions to help us specifically > help you overcome whatever problem you experience. Thanks. > > Best regards, > Claus > > On 31-10-2017 13:34, Abhinav Dronamraju wrote: > > Hello Paul, > > I've heard about coselica. But, how do you suggest that it'll be useful > for creating new blocks ? We want to create blocks of our own since no > toolboxes have what we want. Please help us if you can in anyway. > > Can you send me the link for both windows 10 and Ubuntu 16.04 versions. > > Regards, > Abhinav Dronamraju > > On Oct 31, 2017 5:23 PM, "Paul Bignier" > wrote: > >> >> Hello Abhinav, >> >> >> Do you know about Coselica >> ? >> >> As it's not working great on Scilab 6.0.0, either you could wait for the >> next Scilab version or I could send you a working nightly build if you sent >> me your operating system. >> >> >> Regards, >> >> Paul >> >> >> Paul BIGNIER >> Development engineer >> ----------------------------------------------------------- >> ESI Group - Scilab >> 99 rue des Solets - 94513 Rungis, France >> Phone: +33.1.41.73.58.77 >> https://scilab.io >> https://esi-group.com >> >> >> ------------------------------ >> *From:* users on behalf of Abhinav >> Dronamraju >> *Sent:* Tuesday, October 31, 2017 12:43 PM >> *To:* users at lists.scilab.org; Cl?ment David >> *Subject:* [Scilab-users] Create new XCOS Blocks >> >> Dear All, >> >> We are trying to create new blocks for the analysis of Power Systems. So, >> we'll need some new blocks such as Bus, Generator, Line Parameters etc., >> >> Is there anything we could refer to get started on it ? >> Please let us know, so that we can build something useful for many people. >> >> Regards, >> Abhinav Dronamraju >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From derogis.philippe at gmail.com Tue Oct 31 13:47:21 2017 From: derogis.philippe at gmail.com (=?utf-8?Q?Philippe_D=C3=A9rogis?=) Date: Tue, 31 Oct 2017 13:47:21 +0100 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: References: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> <95B08B61-FD68-4B9B-A070-C30093A4083D@gmail.com> <4C0997C2-65A6-4C14-A440-5054DE199176@gmail.com> Message-ID: <1EF87E48-FD9B-4EDA-BB8B-8D01BC663BA3@gmail.com> Happy to know that the bug is fixed, thanks you for that. I will check the Nighty Builds. Regards, Philippe. > Le 31 oct. 2017 ? 11:23, Samuel Gougeon a ?crit : > > Hello Philippe, > > Le 31/10/2017 ? 10:58, philippe a ?crit : >> Even reporting duplicates of already existing bugs >> can help to improve scilab ... > > Sorry, but i strongly disagree with this last assertion. > Please contribute to process bugs reported on bugzilla, and you will understand why. > On the contrary, your piece of advices is the best way to sink reports. > This is somewhat spamming bugzilla. > By the way, this is just a basic rule in net tools like forums to search for anteriority > before addressing an item. > > Bugzilla has a builtin vote system. This one is disabled. This setting has already been addressed. > This is a choice from the dev team, not a default. > But if anyone just want to stress on the fact that a bug is really handicaping for him/her, > it is always possible to add a comment to an existing report, or just add "+1" in comment > as a vote for fixing it. > > A more extensive rational against spamming bugzilla with duplicates is available here: > http://bugzilla.scilab.org/show_bug.cgi?id=15031#c3 > > Regards > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From rouxph.22 at gmail.com Tue Oct 31 13:53:12 2017 From: rouxph.22 at gmail.com (philippe) Date: Tue, 31 Oct 2017 13:53:12 +0100 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: References: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> <95B08B61-FD68-4B9B-A070-C30093A4083D@gmail.com> <4C0997C2-65A6-4C14-A440-5054DE199176@gmail.com> Message-ID: Le 31/10/2017 ? 11:23, Samuel Gougeon a ?crit?: > Hello Philippe, > > Le 31/10/2017 ? 10:58, philippe a ?crit : >> Even reporting duplicates of already existing bugs >> can help to improve scilab ... > > Sorry, but i strongly disagree with this last assertion. probably this last assertion was blundering :-( I want to encourage users reporting bugs but not to spam of course. Unfortunately for beginners it is hard to clearly identify if a bug is already reported or not (I made a lot of duplicates while starting reporting bugs) so we have to accept that new users make such errors if we want that more persons get involved. > [...] > But if anyone just want to stress on the fact that a bug is really > handicaping for him/her,it is always possible to add a comment to > an existing report, or just add "+1" in comment as a vote for fixing it. yes, I absolutely agree with this. > > A more extensive rational against spamming bugzilla with duplicates is > available here: > http://bugzilla.scilab.org/show_bug.cgi?id=15031#c3 I understand your point of view, I know you do a lot of work so seeing the amount of unresolved bugs can be discouraging . But from my user point of view the system doesn't work so bad : I see scilab is improving year after years. have a nice day! Philippe From cfuttrup at gmail.com Tue Oct 31 13:54:08 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Tue, 31 Oct 2017 13:54:08 +0100 Subject: [Scilab-users] Create new XCOS Blocks In-Reply-To: References: Message-ID: <969aa0e2-85d4-b709-7080-915b2c6c46f6@gmail.com> Hi Abhinav I don't mean to provoke, but without knowing where you stranded, it's not easy to help. We also don't know which version of Scilab you're on. Here's a link from my Google search - which should be useful for Scilab 6.0.0: https://help.scilab.org/docs/6.0.0/en_US/section_bd364c0bace36a9235956650016c8bde.html Best regards, Claus On 31-10-2017 13:45, Abhinav Dronamraju wrote: > Hello Claus, > > Thanks for your reply. But you are so wrong if you think I didn't > search in google before coming to this mailing list. > > So, if you can, please help or don't take the pain in replying at all. > > Regards, > Abhinav Dronamraju > > On Oct 31, 2017 6:12 PM, "Claus Futtrup" > wrote: > > Hi Abhinav > > Did you search ("Google") something like: "xcos block creation" ? > > I get at least 5-10 helpful links. How much effort did you put > into this already? - and please ask more specific questions to > help us specifically help you overcome whatever problem you > experience. Thanks. > > Best regards, > Claus > > On 31-10-2017 13:34, Abhinav Dronamraju wrote: >> Hello Paul, >> >> I've heard about coselica. But, how do you suggest that it'll be >> useful for creating new blocks ? We want to create blocks of our >> own since no toolboxes have what we want. Please help us if you >> can in anyway. >> Can you send me the link for both windows 10 and Ubuntu 16.04 >> versions. >> >> Regards, >> Abhinav Dronamraju >> >> On Oct 31, 2017 5:23 PM, "Paul Bignier" >> > >> wrote: >> >> >> Hello Abhinav, >> >> >> Do you know about Coselica >> ? >> >> As it's not working great on Scilab 6.0.0, either you could >> wait for the next Scilab version or I could send you a >> working nightly build if you sent me your operating system. >> >> >> Regards, >> >> Paul >> >> >> Paul BIGNIER >> Development engineer >> ----------------------------------------------------------- >> ESI Group - Scilab >> 99 rue des Solets - 94513 Rungis, France >> Phone: +33.1.41.73.58.77 >> https://scilab.io >> https://esi-group.com >> >> >> ------------------------------------------------------------------------ >> *From:* users > > on behalf of Abhinav >> Dronamraju > > >> *Sent:* Tuesday, October 31, 2017 12:43 PM >> *To:* users at lists.scilab.org ; >> Cl?ment David >> *Subject:* [Scilab-users] Create new XCOS Blocks >> Dear All, >> >> We are trying to create new blocks for the analysis of Power >> Systems. So, we'll need some new blocks such as Bus, >> Generator, Line Parameters etc., >> >> Is there anything we could refer to get started on it ? >> Please let us know, so that we can build something useful for >> many people. >> >> Regards, >> Abhinav Dronamraju >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Oct 31 14:33:39 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 31 Oct 2017 14:33:39 +0100 Subject: [Scilab-users] xclick bug on Mac OS ? In-Reply-To: References: <0d924596-36de-8807-442a-b5a36c19bfae@free.fr> <95B08B61-FD68-4B9B-A070-C30093A4083D@gmail.com> <4C0997C2-65A6-4C14-A440-5054DE199176@gmail.com> Message-ID: Le 31/10/2017 ? 13:53, philippe a ?crit : > Le 31/10/2017 ? 11:23, Samuel Gougeon a ?crit : >> Hello Philippe, >> >> Le 31/10/2017 ? 10:58, philippe a ?crit : >>> Even reporting duplicates of already existing bugs >>> can help to improve scilab ... >> Sorry, but i strongly disagree with this last assertion. > probably this last assertion was blundering :-( I want to encourage > users reporting bugs but not to spam of course. Unfortunately for > beginners it is hard to clearly identify if a bug is already reported > or not (I made a lot of duplicates while starting reporting bugs) so we > have to accept that new users make such errors if we want that more > persons get involved. The search engine of bugzilla is powerful and easy to use. It is normal to expect from any user to take care when targeting and describing things. Moreover, it is even easier and gets trivial to get the list of bugs already reported about an item from Scilab 5.5 and 6 with --> uman wb The point that slows down improving Scilab is NOT missing reports. It is missing contributions. The first elemental contribution is to take care when reporting bugs. When it is not easy to know, the first step is to post questions on the mailing list, to be sure that the issue is not in one's own code rather than in Scilab. Bugzilla is not a forum. An easy way to get involved is to answer to bugs, possibly in the day, rather than asking to the poster "Hey, could you post a minimal test case?".. 6 months after he/she posted. It would be actually very great to increase this kind of involvement! But still, Bugzilla is not a forum. When encouraging to post on bugzilla without really encouraging fixing bugs or answering to posters mainly increases frustrations of posters, or/and enforces the feeling that we can get something for free without doing anything else than vaguely complaining. This is just the opposite of involvement. About frustration, please see the relevant post from Ross, to which i answered in link. So yes, thanks to every user to get involved! Best regards Samuel