From stephane.mottelet at utc.fr Fri Jun 5 14:48:52 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 5 Jun 2020 14:48:52 +0200 Subject: [Scilab-users] Pong contest Message-ID: Hello all, As you may have noticed, there is now a little game in the Gaphics/Animation section of the demonstrations. As the speed and responsiveness seems to be similar under all platforms, it would be funny to launch a little contest. In the next Scilab version it would be interesting to implement a high score online record, but until then, you can answer this message with the same kind of screenshot I joined, showing you score and just taken after the game end with and with the last dialog on the figure. Cheers, -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- A non-text attachment was scrubbed... Name: mottelet.png Type: image/png Size: 47619 bytes Desc: not available URL: From antoine.monmayrant at laas.fr Fri Jun 5 15:45:38 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 5 Jun 2020 15:45:38 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: On 05/06/2020 14:48, St?phane Mottelet wrote: > Hello all, > > As you may have noticed, there is now a little game in the > Gaphics/Animation section of the demonstrations. As the speed and > responsiveness seems to be similar under all platforms, it would be > funny to launch a little contest. In the next Scilab version it would > be interesting to implement a high score online record, but until > then, you can answer this message with the same kind of screenshot I > joined, showing you score and just taken after the game end with and > with the last dialog on the figure. > > Cheers, > > > _______________________________________________ > 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: ping.png Type: image/png Size: 24599 bytes Desc: not available URL: From stephane.mottelet at utc.fr Fri Jun 5 15:48:10 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 5 Jun 2020 15:48:10 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: <7339b6e6-7122-1e80-335d-207675e45f3d@utc.fr> Here is my best... Le 05/06/2020 ? 15:45, Antoine Monmayrant a ?crit?: > > > On 05/06/2020 14:48, St?phane Mottelet wrote: >> Hello all, >> >> As you may have noticed, there is now a little game in the >> Gaphics/Animation section of the demonstrations. As the speed and >> responsiveness seems to be similar under all platforms, it would be >> funny to launch a little contest. In the next Scilab version it would >> be interesting to implement a high score online record, but until >> then, you can answer this message with the same kind of screenshot I >> joined, showing you score and just taken after the game end with and >> with the last dialog on the figure. >> >> Cheers, >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mottelet05052020.png Type: image/png Size: 46210 bytes Desc: not available URL: From Jean-Yves.Baudais at insa-rennes.fr Fri Jun 5 16:26:47 2020 From: Jean-Yves.Baudais at insa-rennes.fr (Jean-Yves Baudais) Date: Fri, 5 Jun 2020 16:26:47 +0200 (CEST) Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: <555457016.1194894.1591367207061.JavaMail.zimbra@insa-rennes.fr> HI, Grrrrrr! I don't find any "animation" section in chapter "Graphics" on the help browser. Where is it? -- Jean-Yves Baudais ----- Original Message ----- > From: "Antoine Monmayrant" > To: users at lists.scilab.org > Sent: Friday, 5 June, 2020 15:45:38 > Subject: Re: [Scilab-users] Pong contest > On 05/06/2020 14:48, St?phane Mottelet wrote: > > > Hello all, > > As you may have noticed, there is now a little game in the Gaphics/Animation > section of the demonstrations. As the speed and responsiveness seems to be > similar under all platforms, it would be funny to launch a little contest. In > the next Scilab version it would be interesting to implement a high score > online record, but until then, you can answer this message with the same kind > of screenshot I joined, showing you score and just taken after the game end > with and with the last dialog on the figure. > > Cheers, > > > _______________________________________________ > users mailing list [ mailto:users at lists.scilab.org | users at lists.scilab.org ] [ > http://lists.scilab.org/mailman/listinfo/users | > http://lists.scilab.org/mailman/listinfo/users ] > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From stephane.mottelet at utc.fr Fri Jun 5 16:47:41 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 5 Jun 2020 16:47:41 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: <555457016.1194894.1591367207061.JavaMail.zimbra@insa-rennes.fr> References: <555457016.1194894.1591367207061.JavaMail.zimbra@insa-rennes.fr> Message-ID: <9711867f-8962-5ad3-ca20-9da0134db6fd@utc.fr> It's in the Demonstrations menu. Le 05/06/2020 ? 16:26, Jean-Yves Baudais a ?crit?: > HI, > Grrrrrr! I don't find any "animation" section in chapter "Graphics" on the help browser. Where is it? > > -- > Jean-Yves Baudais > > ----- Original Message ----- >> From: "Antoine Monmayrant" >> To: users at lists.scilab.org >> Sent: Friday, 5 June, 2020 15:45:38 >> Subject: Re: [Scilab-users] Pong contest >> On 05/06/2020 14:48, St?phane Mottelet wrote: >> >> >> Hello all, >> >> As you may have noticed, there is now a little game in the Gaphics/Animation >> section of the demonstrations. As the speed and responsiveness seems to be >> similar under all platforms, it would be funny to launch a little contest. In >> the next Scilab version it would be interesting to implement a high score >> online record, but until then, you can answer this message with the same kind >> of screenshot I joined, showing you score and just taken after the game end >> with and with the last dialog on the figure. >> >> Cheers, >> >> >> _______________________________________________ >> users mailing list [ mailto:users at lists.scilab.org | users at lists.scilab.org ] [ >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users | >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users ] >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From heinznabielek at me.com Fri Jun 5 16:55:31 2020 From: heinznabielek at me.com (Heinz Nabielek) Date: Fri, 5 Jun 2020 16:55:31 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: <15A8BA2E-A76C-416A-9A25-7AF5A81A755C@me.com> Heinz > On 05.06.2020, at 14:48, St?phane Mottelet wrote: > > Hello all, > > As you may have noticed, there is now a little game in the Gaphics/Animation section of the demonstrations. As the speed and responsiveness seems to be similar under all platforms, it would be funny to launch a little contest. In the next Scilab version it would be interesting to implement a high score online record, but until then, you can answer this message with the same kind of screenshot I joined, showing you score and just taken after the game end with and with the last dialog on the figure. > > Cheers, > > -- > St?phane Mottelet > Ing?nieur de recherche > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > D?partement G?nie des Proc?d?s Industriels > Sorbonne Universit?s - Universit? de Technologie de Compi?gne > CS 60319, 60203 Compi?gne cedex > Tel : +33(0)344234688 > http://www.utc.fr/~mottelet > > _______________________________________________ > 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: Image.png Type: image/png Size: 51830 bytes Desc: not available URL: From Jean-Yves.Baudais at insa-rennes.fr Fri Jun 5 17:50:06 2020 From: Jean-Yves.Baudais at insa-rennes.fr (Jean-Yves Baudais) Date: Fri, 5 Jun 2020 17:50:06 +0200 (CEST) Subject: [Scilab-users] Pong contest In-Reply-To: <9711867f-8962-5ad3-ca20-9da0134db6fd@utc.fr> References: <555457016.1194894.1591367207061.JavaMail.zimbra@insa-rennes.fr> <9711867f-8962-5ad3-ca20-9da0134db6fd@utc.fr> Message-ID: <526284621.1206013.1591372206280.JavaMail.zimbra@insa-rennes.fr> I got it! Thanks :-) -- Jean-Yves Baudais ----- Original Message ----- > From: "St?phane Mottelet" > To: "Users mailing list for Scilab" > Sent: Friday, 5 June, 2020 16:47:41 > Subject: Re: [Scilab-users] Pong contest > It's in the Demonstrations menu. > > Le 05/06/2020 ? 16:26, Jean-Yves Baudais a ?crit?: >> HI, >> Grrrrrr! I don't find any "animation" section in chapter "Graphics" on the help >> browser. Where is it? >> >> -- >> Jean-Yves Baudais >> >> ----- Original Message ----- >>> From: "Antoine Monmayrant" >>> To: users at lists.scilab.org >>> Sent: Friday, 5 June, 2020 15:45:38 >>> Subject: Re: [Scilab-users] Pong contest >>> On 05/06/2020 14:48, St?phane Mottelet wrote: >>> >>> >>> Hello all, >>> >>> As you may have noticed, there is now a little game in the Gaphics/Animation >>> section of the demonstrations. As the speed and responsiveness seems to be >>> similar under all platforms, it would be funny to launch a little contest. In >>> the next Scilab version it would be interesting to implement a high score >>> online record, but until then, you can answer this message with the same kind >>> of screenshot I joined, showing you score and just taken after the game end >>> with and with the last dialog on the figure. >>> >>> Cheers, >>> >>> >>> _______________________________________________ >>> users mailing list [ mailto:users at lists.scilab.org | users at lists.scilab.org ] [ >>> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >>> | >>> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >>> ] >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > -- > St?phane Mottelet > Ing?nieur de recherche > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > D?partement G?nie des Proc?d?s Industriels > Sorbonne Universit?s - Universit? de Technologie de Compi?gne > CS 60319, 60203 Compi?gne cedex > Tel : +33(0)344234688 > http://www.utc.fr/~mottelet > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From stephane.mottelet at utc.fr Fri Jun 5 17:59:26 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 5 Jun 2020 17:59:26 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: The game is really slower/easier under Linux, likely because of sleep() which is quite unreliable... Le 05/06/2020 ? 14:48, St?phane Mottelet a ?crit?: > Hello all, > > As you may have noticed, there is now a little game in the > Gaphics/Animation section of the demonstrations. As the speed and > responsiveness seems to be similar under all platforms, it would be > funny to launch a little contest. In the next Scilab version it would > be interesting to implement a high score online record, but until > then, you can answer this message with the same kind of screenshot I > joined, showing you score and just taken after the game end with and > with the last dialog on the figure. > > Cheers, > > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2020-06-05 at 5.57.40 PM.png Type: image/png Size: 65455 bytes Desc: not available URL: From jrafaelbguerra at hotmail.com Fri Jun 5 18:53:16 2020 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 5 Jun 2020 16:53:16 +0000 Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: It runs very fast on Win10 and the pong ball looks like a Flintstones ball? [cid:image003.jpg at 01D63B72.F1EBEED0] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 6694 bytes Desc: image003.jpg URL: From bernard.vail at free.fr Fri Jun 5 20:00:28 2020 From: bernard.vail at free.fr (Bernard Boyer) Date: Fri, 5 Jun 2020 20:00:28 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: Le 05/06/2020 ? 18:53, Rafael Guerra a ?crit?: > > It runs very fast on Win10 and the pong ball looks like a Flintstones > ball? > > ** > > > > > > > _______________________________________________ > 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: bdkihjbogangjkoj.png Type: image/png Size: 8137 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 6694 bytes Desc: not available URL: From stephane.mottelet at utc.fr Fri Jun 5 21:37:10 2020 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Fri, 5 Jun 2020 21:37:10 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: Platform ? > Le 5 juin 2020 ? 20:01, Bernard Boyer a ?crit : > > ? > > > Le 05/06/2020 ? 18:53, Rafael Guerra a ?crit : >> It runs very fast on Win10 and the pong ball looks like a Flintstones ball? >> >> >> >> >> >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bernard.vail at free.fr Sat Jun 6 10:47:36 2020 From: bernard.vail at free.fr (Bernard Boyer) Date: Sat, 6 Jun 2020 10:47:36 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: Le 05/06/2020 ? 20:00, Bernard Boyer a ?crit?: in this case it's on W10: each ball start smoothly then accelerate. Guess it's the same way on all platform? > > Le 05/06/2020 ? 18:53, Rafael Guerra a ?crit?: >> >> It runs very fast on Win10 and the pong ball looks like a Flintstones >> ball? >> >> ** >> >> >> >> >> >> >> _______________________________________________ >> 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: bdkihjbogangjkoj.png Type: image/png Size: 8137 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 6694 bytes Desc: not available URL: From stephane.mottelet at utc.fr Sat Jun 6 11:42:32 2020 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Sat, 6 Jun 2020 11:42:32 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: <836A2F0E-AB6B-4FAF-8DE8-5A9A4D42EA91@utc.fr> Yes. If you look at the code, the speed increases at each top border hit. But the starting speed seems to be in the order Windows < Linux < Mac OS, which explains the relative difference between high scores. S. > Le 6 juin 2020 ? 10:48, Bernard Boyer a ?crit : >> Le 05/06/2020 ? 20:00, Bernard Boyer a ?crit : >> in this case it's on W10: each ball start smoothly then accelerate. Guess it's the same way on all platform? >> >> >> Le 05/06/2020 ? 18:53, Rafael Guerra a ?crit : >>> It runs very fast on Win10 and the pong ball looks like a Flintstones ball? >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Sat Jun 6 18:08:12 2020 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 6 Jun 2020 18:08:12 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: <858ad01b-deff-719d-cca0-bff1e206b298@gmail.com> Hello all Here's my first attempt (Microsoft Windows 10). Attached. /Claus On 05-06-2020 14:48, St?phane Mottelet wrote: > Hello all, > > As you may have noticed, there is now a little game in the > Gaphics/Animation section of the demonstrations. As the speed and > responsiveness seems to be similar under all platforms, it would be > funny to launch a little contest. In the next Scilab version it would > be interesting to implement a high score online record, but until > then, you can answer this message with the same kind of screenshot I > joined, showing you score and just taken after the game end with and > with the last dialog on the figure. > > Cheers, > > > _______________________________________________ > 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: pong_ball3.jpg Type: image/jpeg Size: 25248 bytes Desc: not available URL: From p.muehlmann at gmail.com Sun Jun 7 09:33:54 2020 From: p.muehlmann at gmail.com (P M) Date: Sun, 7 Jun 2020 09:33:54 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: <858ad01b-deff-719d-cca0-bff1e206b298@gmail.com> References: <858ad01b-deff-719d-cca0-bff1e206b298@gmail.com> Message-ID: nice. However on my win7 64bit Laptop the speed suddenly changes from very slow to very fast and even back to slow....so kind of unpredictable... probably a feature :-) Greetings Virenfrei. www.avg.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> Am Sa., 6. Juni 2020 um 18:08 Uhr schrieb Claus Futtrup : > Hello all > > Here's my first attempt (Microsoft Windows 10). Attached. > > /Claus > > On 05-06-2020 14:48, St?phane Mottelet wrote: > > Hello all, > > As you may have noticed, there is now a little game in the > Gaphics/Animation section of the demonstrations. As the speed and > responsiveness seems to be similar under all platforms, it would be funny > to launch a little contest. In the next Scilab version it would be > interesting to implement a high score online record, but until then, you > can answer this message with the same kind of screenshot I joined, showing > you score and just taken after the game end with and with the last dialog > on the figure. > > Cheers, > > > _______________________________________________ > 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 stephane.mottelet at utc.fr Sun Jun 7 09:40:10 2020 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Sun, 7 Jun 2020 09:40:10 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: > Le 7 juin 2020 ? 09:34, P M a ?crit : > > ? > nice. > > However on my win7 64bit Laptop the speed suddenly changes from very slow to very fast and even back to slow....so kind of unpredictable... > > probably a feature :-) Yeah, a (known) feature of sleep(). For the next release I will try to find a better alternative ! > > Greetings > > Virenfrei. www.avg.com > >> Am Sa., 6. Juni 2020 um 18:08 Uhr schrieb Claus Futtrup : >> Hello all >> >> Here's my first attempt (Microsoft Windows 10). Attached. >> >> /Claus >> >> On 05-06-2020 14:48, St?phane Mottelet wrote: >>> Hello all, >>> >>> As you may have noticed, there is now a little game in the Gaphics/Animation section of the demonstrations. As the speed and responsiveness seems to be similar under all platforms, it would be funny to launch a little contest. In the next Scilab version it would be interesting to implement a high score online record, but until then, you can answer this message with the same kind of screenshot I joined, showing you score and just taken after the game end with and with the last dialog on the figure. >>> >>> Cheers, >>> >>> >>> >>> _______________________________________________ >>> 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 > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sun Jun 7 09:54:13 2020 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 7 Jun 2020 07:54:13 +0000 Subject: [Scilab-users] Pong contest In-Reply-To: <858ad01b-deff-719d-cca0-bff1e206b298@gmail.com> References: <858ad01b-deff-719d-cca0-bff1e206b298@gmail.com> Message-ID: Hello St?phane et al., Would it make sense in this ?Pong contest?, in addition to the OS used, to also provide some sort of benchmarking of machine CPU? Fyi, find below simple test by Gershenfeld (1999), it computes Pi=4*atan(1) by two methods: Scalar test: Pi(N)~Sum{i=1:N; 0.5/((i-0.75)*(i-0.25))} Array test: Pi(N)= Pi(N-1) + 0.5/((N-0.75)*(N-0.25)) // Based on benchmarking test in Gershenfeld Mathematical modeling book (1999) // There are 5 floating point operations per step, total 5 Mflop with N=1e6 N= 1e6; tic(); ps= 0; for i=1:N ps= ps + 0.5/((i-0.75)*(i-0.25)); end dt=toc(); printf('...SCALAR RESULT: Mflops= %4.3f ; Pi ~ %7.6f \n',5.0/dt,ps); tic(); pv(1)= 0.5/((1-0.75)*(1-0.25)); for i=2:N pv(i)= pv(i-1) + 0.5/((i-0.75)*(i-0.25)); end dt=toc(); printf('...ARRAY RESULT: Mflops= %4.3f ; Pi ~ %7.6f \n',5.0/dt,pv(N)); PS: ...SCALAR RESULT: Mflops= 3.489 ...ARRAY RESULT: Mflops= 1.367 Regards, Rafael On 05-06-2020 14:48, St?phane Mottelet wrote: Hello all, As you may have noticed, there is now a little game in the Gaphics/Animation section of the demonstrations. As the speed and responsiveness seems to be similar under all platforms, it would be funny to launch a little contest. In the next Scilab version it would be interesting to implement a high score online record, but until then, you can answer this message with the same kind of screenshot I joined, showing you score and just taken after the game end with and with the last dialog on the figure. Cheers, -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Sun Jun 7 10:02:30 2020 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Sun, 7 Jun 2020 10:02:30 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: References: Message-ID: Hi Rafael, Normally the use of some reliable/multi platform (sleep is not) synchronisation mechanism allows to have the same user experience regardless the actual hardware. Here we could aim at least 24 refreshs by second. But I am not sure that realtime() would be a better alternative. Maybe using an imported Java method would do it. S. > Le 7 juin 2020 ? 09:54, Rafael Guerra a ?crit : > > ? > Hello St?phane et al., > > Would it make sense in this ?Pong contest?, in addition to the OS used, to also provide some sort of benchmarking of machine CPU? > > Fyi, find below simple test by Gershenfeld (1999), it computes Pi=4*atan(1) by two methods: > Scalar test: Pi(N)~Sum{i=1:N; 0.5/((i-0.75)*(i-0.25))} > Array test: Pi(N)= Pi(N-1) + 0.5/((N-0.75)*(N-0.25)) > > // Based on benchmarking test in Gershenfeld Mathematical modeling book (1999) > // There are 5 floating point operations per step, total 5 Mflop with N=1e6 > N= 1e6; > tic(); > ps= 0; > for i=1:N > ps= ps + 0.5/((i-0.75)*(i-0.25)); > end > dt=toc(); > printf('...SCALAR RESULT: Mflops= %4.3f ; Pi ~ %7.6f \n',5.0/dt,ps); > > tic(); > pv(1)= 0.5/((1-0.75)*(1-0.25)); > for i=2:N > pv(i)= pv(i-1) + 0.5/((i-0.75)*(i-0.25)); > end > dt=toc(); > printf('...ARRAY RESULT: Mflops= %4.3f ; Pi ~ %7.6f \n',5.0/dt,pv(N)); > > > PS: > ...SCALAR RESULT: Mflops= 3.489 > ...ARRAY RESULT: Mflops= 1.367 > > Regards, > Rafael > > > On 05-06-2020 14:48, St?phane Mottelet wrote: > Hello all, > > As you may have noticed, there is now a little game in the Gaphics/Animation section of the demonstrations. As the speed and responsiveness seems to be similar under all platforms, it would be funny to launch a little contest. In the next Scilab version it would be interesting to implement a high score online record, but until then, you can answer this message with the same kind of screenshot I joined, showing you score and just taken after the game end with and with the last dialog on the figure. > > Cheers, > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Sun Jun 7 12:01:56 2020 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sun, 7 Jun 2020 12:01:56 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: References: <858ad01b-deff-719d-cca0-bff1e206b298@gmail.com> Message-ID: <8ebe3a8e-eb3f-a199-ba3c-c8dd414f41f4@gmail.com> Hi Rafael ...SCALAR RESULT:? Mflops= 2.737 ;? Pi ~ 3.141592 ...ARRAY RESULT:? Mflops= 1.284 ;? Pi ~ 3.141592 The machine is a two-year old Lenovo T480, Core i7 8th Gen. Built-in Intel Graphics (no external card) /Claus On 07-06-2020 09:54, Rafael Guerra wrote: > > Hello St?phane et al., > > Would it make sense in this ?Pong contest?, in addition to the OS > used, to also provide some sort of benchmarking of machine CPU? > > Fyi, find below simple test by Gershenfeld (1999), it computes > Pi=4*atan(1) by two methods: > > ????Scalar test:? Pi(N)~Sum{i=1:N; 0.5/((i-0.75)*(i-0.25))} > > ????Array test:?? Pi(N)= Pi(N-1) + 0.5/((N-0.75)*(N-0.25)) > > /// Based on benchmarking test in Gershenfeld Mathematical modeling > book (1999)/ > > /// There are 5 floating point operations per step, total 5 Mflop with > N=1e6/ > > N=1e6; > > tic(); > > ps=0; > > fori=1:N > > ps=ps + 0.5/((i-0.75)*(i-0.25)); > > end > > dt=toc(); > > printf('...SCALAR RESULT:? Mflops= %4.3f ;? Pi ~ %7.6f \n',5.0/dt,ps); > > tic(); > > pv(1)=0.5/((1-0.75)*(1-0.25)); > > fori=2:N > > pv(i)= pv(i-1) + 0.5/((i-0.75)*(i-0.25)); > > end > > dt=toc(); > > printf('...ARRAY RESULT:? Mflops= %4.3f ;? Pi ~ %7.6f \n',5.0/dt,pv(N)); > > PS: > > ...SCALAR RESULT:? Mflops= 3.489 > > ...ARRAY RESULT:? Mflops= 1.367 > > Regards, > > Rafael > > On 05-06-2020 14:48, St?phane Mottelet wrote: > > Hello all, > > As you may have noticed, there is now a little game in the > Gaphics/Animation section of the demonstrations. As the speed and > responsiveness seems to be similar under all platforms, it would > be funny to launch a little contest. In the next Scilab version it > would be interesting to implement a high score online record, but > until then, you can answer this message with the same kind of > screenshot I joined, showing you score and just taken after the > game end with and with the last dialog on the figure. > > Cheers, > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Sun Jun 7 12:28:19 2020 From: heinznabielek at me.com (Heinz Nabielek) Date: Sun, 7 Jun 2020 12:28:19 +0200 Subject: [Scilab-users] Pong contest In-Reply-To: <8ebe3a8e-eb3f-a199-ba3c-c8dd414f41f4@gmail.com> References: <858ad01b-deff-719d-cca0-bff1e206b298@gmail.com> <8ebe3a8e-eb3f-a199-ba3c-c8dd414f41f4@gmail.com> Message-ID: From an iMac macOS 10.15.5 (19F101): ...SCALAR RESULT: Mflops= 2.915 ; Pi ~ 3.141592 ...ARRAY RESULT: Mflops= 1.047 ; Pi ~ 3.141592 Model Identifier: iMac14,3 Processor Name: Quad-Core Intel Core i7 Processor Speed: 3.1 GHz Number of Processors: 1 Total Number of Cores: 4 Heinz ____________________ > On 07.06.2020, at 12:01, Claus Futtrup wrote: > > Hi Rafael > > ...SCALAR RESULT: Mflops= 2.737 ; Pi ~ 3.141592 > ...ARRAY RESULT: Mflops= 1.284 ; Pi ~ 3.141592 > > The machine is a two-year old Lenovo T480, Core i7 8th Gen. Built-in Intel Graphics (no external card) > > /Claus > > On 07-06-2020 09:54, Rafael Guerra wrote: >> Hello St?phane et al., >> >> Would it make sense in this ?Pong contest?, in addition to the OS used, to also provide some sort of benchmarking of machine CPU? >> >> Fyi, find below simple test by Gershenfeld (1999), it computes Pi=4*atan(1) by two methods: >> Scalar test: Pi(N)~Sum{i=1:N; 0.5/((i-0.75)*(i-0.25))} >> Array test: Pi(N)= Pi(N-1) + 0.5/((N-0.75)*(N-0.25)) >> >> // Based on benchmarking test in Gershenfeld Mathematical modeling book (1999) >> // There are 5 floating point operations per step, total 5 Mflop with N=1e6 >> N= 1e6; >> tic(); >> ps= 0; >> for i=1:N >> ps= ps + 0.5/((i-0.75)*(i-0.25)); >> end >> dt=toc(); >> printf('...SCALAR RESULT: Mflops= %4.3f ; Pi ~ %7.6f \n',5.0/dt,ps); >> >> tic(); >> pv(1)= 0.5/((1-0.75)*(1-0.25)); >> for i=2:N >> pv(i)= pv(i-1) + 0.5/((i-0.75)*(i-0.25)); >> end >> dt=toc(); >> printf('...ARRAY RESULT: Mflops= %4.3f ; Pi ~ %7.6f \n',5.0/dt,pv(N)); >> >> >> PS: >> ...SCALAR RESULT: Mflops= 3.489 >> ...ARRAY RESULT: Mflops= 1.367 >> >> Regards, >> Rafael >> >> >> On 05-06-2020 14:48, St?phane Mottelet wrote: >> Hello all, >> >> As you may have noticed, there is now a little game in the Gaphics/Animation section of the demonstrations. As the speed and responsiveness seems to be similar under all platforms, it would be funny to launch a little contest. In the next Scilab version it would be interesting to implement a high score online record, but until then, you can answer this message with the same kind of screenshot I joined, showing you score and just taken after the game end with and with the last dialog on the figure. >> >> Cheers, >> >> >> _______________________________________________ >> 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 stephane.mottelet at utc.fr Mon Jun 8 10:46:08 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 8 Jun 2020 10:46:08 +0200 Subject: [Scilab-users] Pong contest (new version) Message-ID: Hello all, Here is a new version of the game using realtime() to fix a framerate of 60fps on each platform. This value should be ok even on old computers. Please continue to post your scores ! S. -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab // Copyright (C) 2019 - St?phane Mottelet // // This file is hereby licensed under the terms of the GNU GPL v2.0, // For more information, see the COPYING file which you should have received // along with this program. // // A brickout game without bricks // Idea from Philipp Muehlmann // Code by St?phane Mottelet // function pong() jimport java.awt.MouseInfo; clf f = gcf(); f.resize = "off"; f.toolbar_visible=%f; plot(0,0,1,1) isoview //paddle wpx = 0.2; wph = 0.05; xrect(0, wph, wpx, wph) hp = gce() //ball xrect(0.5, 0.5, wph, wph) hb = gce() VMAX = 5e-3; vb = [VMAX VMAX]; k=2; score=0; messagebox(msprintf("Click OK to release ball %d",3-k),"","","OK","modal") dt = 1/60; realtimeinit(dt); realtime(0); kt=0; tic(); while %t M = MouseInfo.getPointerInfo(); X=double(M.getLocation().x)-gcf().figure_position(1); MOUSE_X = xchange(X,0,"i2f") if is_handle_valid(f) paddle_x = hp.data(1) + 30*dt*(MOUSE_X-wpx/2-hp.data(1)); paddle_x = min(max(0,paddle_x),1-wpx); ball = hb.data(1:2) + vb; else break; end if ball(1) > 1-wph || ball(1) < 0 vb(1) = -vb(1) end if ball(2) > 1 vb(2) = -vb(2) score = score+1; VMAX = VMAX*1.1; xtitle(msprintf("Score = %d, balls left = %d", score, k)) end if ball(2) < 2*wph if ball(2) < 0 k = k-1; if k < 0 break end hb.data(1:2) = [.5,.5]; VMAX=5e-3; vb=[VMAX VMAX]; messagebox(msprintf("Click OK to release ball %d",3-k),"","","OK","modal") realtimeinit(dt); realtime(0); kt=0; elseif ball(1) + wph > paddle_x && ball(1) < paddle_x+wpx d = (ball(1)+wph/2) - (paddle_x+wpx/2); vb= VMAX*[max(-1,min(1,d/(wpx/2-wph/2))),1]; end end if is_handle_valid(f) hp.data(1) = paddle_x; hb.data(1:2) = hb.data(1:2) + 100*dt*vb; end kt=kt+1; realtime(kt) end messagebox("GAME OVER !","","","OK","modal") end pong(); clear pong; From perrichon.pierre at wanadoo.fr Mon Jun 8 11:06:55 2020 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Mon, 8 Jun 2020 11:06:55 +0200 Subject: [Scilab-users] Help for . operator Message-ID: Hello I got instruction coming from Matlab, and strictly reported in Scilab, like for example : ee=k1*(2*g*(sjt.^2)).^(-1); // Calcul de la perte de charge singuli?re au niveau du vannage (en supposant que son coefficient multiplicateur est ?gal ? 1) It works, but I don?t understand le role of the ? point ? operator ?.? Without the ?.?, it gives the same result ee=k1*(2*g*(sjt^2))^(-1); // Calcul de la perte de charge singuli?re au niveau du vannage (en supposant que son coefficient multiplicateur est ?gal ? 1) Any explanation. Thank a lot for your response All variables are simple flotting point in a sci routine BR. Pierre -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Mon Jun 8 11:21:15 2020 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Mon, 8 Jun 2020 09:21:15 +0000 Subject: [Scilab-users] {EXT} Help for . operator In-Reply-To: References: Message-ID: Hello Pierre, > De : Perrichon > Envoy? : lundi 8 juin 2020 11:07 > > I don't understand le role of the ? point ? operator '.' The dot is used to have an element-wise operation. The difference is when you work with matrices, e.g. the product * will make a matrix product C = A*B -> C(i, j) = sum_k (A(i, k), B(k, j)) but .* will make the elementwise product C = A.*B -> C(i, j) = A(i, j)*B(i, j) See https://help.scilab.org/docs/6.1.0/en_US/dot.html regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General 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 stephane.mottelet at utc.fr Mon Jun 8 11:48:45 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 8 Jun 2020 11:48:45 +0200 Subject: [Scilab-users] {EXT} Help for . operator In-Reply-To: References: Message-ID: <085db855-4d4a-9526-52e5-fac040031b6d@utc.fr> Hello, The problem is the actual tolerance of Scilab which allows to omit the dot fot the power operator: --> [1 2 3]^2 ?ans? = ?? 1.?? 4.?? 9. although Matlab does not allow it: >> [1 2 3]^2 Error using? ^ Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To perform elementwise matrix powers, use '.^'. S. Le 08/06/2020 ? 11:21, Dang Ngoc Chan, Christophe a ?crit?: > Hello Pierre, > >> De : Perrichon >> Envoy? : lundi 8 juin 2020 11:07 >> >> I don't understand le role of the ? point ? operator '.' > The dot is used to have an element-wise operation. > > The difference is when you work with matrices, e.g. the product * will make a matrix product > > C = A*B -> C(i, j) = sum_k (A(i, k), B(k, j)) > > but .* will make the elementwise product > > C = A.*B -> C(i, j) = A(i, j)*B(i, j) > > See https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/help.scilab.org/docs/6.1.0/en_US/dot.html > > regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > > General > 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. > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From jrafaelbguerra at hotmail.com Mon Jun 8 13:30:26 2020 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 8 Jun 2020 11:30:26 +0000 Subject: [Scilab-users] Pong contest (new version) In-Reply-To: References: Message-ID: Pong2 score: [cid:image001.png at 01D63DA1.57252750] Regards, Rafael -----Original Message----- From: users On Behalf Of St?phane Mottelet Sent: Monday, June 8, 2020 11:46 AM To: Users mailing list for Scilab Subject: [Scilab-users] Pong contest (new version) Hello all, Here is a new version of the game using realtime() to fix a framerate of 60fps on each platform. This value should be ok even on old computers. Please continue to post your scores ! S. -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 8263 bytes Desc: image001.png URL: From stephane.mottelet at utc.fr Mon Jun 8 14:23:09 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 8 Jun 2020 14:23:09 +0200 Subject: [Scilab-users] Pong contest (new version) In-Reply-To: References: Message-ID: <1f55aa07-9965-4aa5-ca42-1ac8e6627a40@utc.fr> Le 08/06/2020 ? 10:46, St?phane Mottelet a ?crit?: > Hello all, > > Here is a new version of the game using realtime() to fix a framerate > of 60fps on each platform. This value should be ok even on old > computers. Please continue to post your scores ! > > S. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img.png Type: image/png Size: 48344 bytes Desc: not available URL: From p.muehlmann at gmail.com Mon Jun 8 22:38:50 2020 From: p.muehlmann at gmail.com (P M) Date: Mon, 8 Jun 2020 22:38:50 +0200 Subject: [Scilab-users] Pong contest (new version) In-Reply-To: <1f55aa07-9965-4aa5-ca42-1ac8e6627a40@utc.fr> References: <1f55aa07-9965-4aa5-ca42-1ac8e6627a40@utc.fr> Message-ID: Pong2 score @ Win10 [image: grafik.png] Regards, Philipp Am Mo., 8. Juni 2020 um 14:23 Uhr schrieb St?phane Mottelet < stephane.mottelet at utc.fr>: > > Le 08/06/2020 ? 10:46, St?phane Mottelet a ?crit : > > Hello all, > > Here is a new version of the game using realtime() to fix a framerate of > 60fps on each platform. This value should be ok even on old computers. > Please continue to post your scores ! > > S. > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttps://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > -- > St?phane Mottelet > Ing?nieur de recherche > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > D?partement G?nie des Proc?d?s Industriels > Sorbonne Universit?s - Universit? de Technologie de Compi?gne > CS 60319, 60203 Compi?gne cedex > Tel : +33(0)344234688http://www.utc.fr/~mottelet > > _______________________________________________ > 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: grafik.png Type: image/png Size: 11585 bytes Desc: not available URL: From perrichon.pierre at wanadoo.fr Tue Jun 9 09:48:55 2020 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Tue, 9 Jun 2020 09:48:55 +0200 Subject: [Scilab-users] {EXT} Help for . operator In-Reply-To: <085db855-4d4a-9526-52e5-fac040031b6d@utc.fr> References: <085db855-4d4a-9526-52e5-fac040031b6d@utc.fr> Message-ID: Hello, and so much thanks for your response. St?phane enlightened me If a and b are simple floating 1x1 then a^b is sufficient. a.^b does not need the "dot" operator Nice day Pierre Before printing, think about ENVIRONMENTAL responsabity -----Message d'origine----- De : users De la part de St?phane Mottelet Envoy? : lundi 8 juin 2020 11:49 ? : users at lists.scilab.org Objet : Re: [Scilab-users] {EXT} Help for . operator Hello, The problem is the actual tolerance of Scilab which allows to omit the dot fot the power operator: --> [1 2 3]^2 ans = 1. 4. 9. although Matlab does not allow it: >> [1 2 3]^2 Error using ^ Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To perform elementwise matrix powers, use '.^'. S. Le 08/06/2020 ? 11:21, Dang Ngoc Chan, Christophe a ?crit : > Hello Pierre, > >> De : Perrichon >> Envoy? : lundi 8 juin 2020 11:07 >> >> I don't understand le role of the ? point ? operator '.' > The dot is used to have an element-wise operation. > > The difference is when you work with matrices, e.g. the product * will > make a matrix product > > C = A*B -> C(i, j) = sum_k (A(i, k), B(k, j)) > > but .* will make the elementwise product > > C = A.*B -> C(i, j) = A(i, j)*B(i, j) > > See > https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/help. > scilab.org/docs/6.1.0/en_US/dot.html > > regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > > General > 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. > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists > .scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From matthieu.gazon at orange.fr Tue Jun 9 22:05:18 2020 From: matthieu.gazon at orange.fr (mat368) Date: Tue, 9 Jun 2020 13:05:18 -0700 (MST) Subject: [Scilab-users] Auto adjust level of a color image Message-ID: <1591733118583-0.post@n3.nabble.com> Hello I am looking for a function or a code to auto adjust level of color image ? I dont see that in th? ipcv package. Thanks for tour trop. Mat -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From p.muehlmann at gmail.com Wed Jun 10 09:40:20 2020 From: p.muehlmann at gmail.com (P M) Date: Wed, 10 Jun 2020 09:40:20 +0200 Subject: [Scilab-users] Auto adjust level of a color image In-Reply-To: <1591733118583-0.post@n3.nabble.com> References: <1591733118583-0.post@n3.nabble.com> Message-ID: Dear Mat, not sure if this helps, but here is a way, how to set brightness using a constant value. I guess for automatization one can figure out a way using mean pixel value. Best Regards, Philipp img = imread(fullpath(getIPCVpath() + "/images/" + 'baboon.png')); // image size = 512 x 512 // result of "imread" is of type 10 --> text object// (???)..guess: type = unsigned char, which is 8 bit//// However this limits the pixel values between 0 and 255// e.g.: 255 + 1 will be set to "0"//// for brightness control we must be able to exceed 255.// ..we also want to go into negative pixel values// so we need to change integer type...use int16// positive pixel values above 255 will be set to 255 afterwards// negative pixel values will be set to 0 afterwards nPx = 512*512; brighnessLv_1 = 128;brighnessLv_2 = -128; img_1 = int16(img); img_1 = img_1 + brighnessLv_1; img_2 = int16(img);img_2 = img_2 + brighnessLv_2; pos = find(img_1 > 255);img_1(pos) = 255;pos = find(img_1 < 0);img_1(pos) = 0; pos = find(img_2 > 255);img_2(pos) = 255;pos = find(img_2 < 0);img_2(pos) = 0; img_1 = uint8(img_1);img_2 = uint8(img_2); f = figure();f.figure_size = [1591,610];f.background = 8;subplot(1,3,1);imshow(img); subplot(1,3,2);imshow(img_1); subplot(1,3,3);imshow(img_2); Am Di., 9. Juni 2020 um 22:05 Uhr schrieb mat368 : > Hello > I am looking for a function or a code to auto adjust level of color image ? > I dont see that in th? ipcv package. > > Thanks for tour trop. > Mat > > > > -- > 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 chinluh.tan at bytecode-asia.com Wed Jun 10 10:16:25 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Wed, 10 Jun 2020 16:16:25 +0800 Subject: [Scilab-users] Auto adjust level of a color image In-Reply-To: References: <1591733118583-0.post@n3.nabble.com> Message-ID: <1729d4d41a4.1153efd29634399.2130818172580261349@bytecode-asia.com> Hi Mat,? First of all, thanks Philipp for the example.? Infact you might be able to get the similar result with Image Arithmetic function - imadd, which will perform the proper int clipping. I attached the file with added lines to compare the results which should be identical. On the other hand, to adjust the color level or RGB image, you could use "imadjust".? S2 = imadjust(S) will adjust the image automatically, or define your own source and destination histogram range.? you could also explore?imhistequal for histogram equalisation, however, bear in mind applying these in RGB will caused color distortion.? On of the way in Color Image processing if you were to adjust to RGB image intensity w/o affecting the color proportion for viewing effect : 1. convert RGB to LAB (rgb2hsv) 2. perform adjustment on the first layer (correspond to "v", in transformed image, the hsv layers are arrange in "v", "s","h") 3. fuse the layers 2 and 3 to the adjusted layer 1 4. convert LAB to RGB you should get a nicely adjusted color image. /// sample S = imread('darkroom.jpg'); S2 = rgb2hsv(S); S3 = imhistequal(S2(:,:,1)); S3(:,:,2:3) = S2(:,:,2:3) S4=hsv2rgb2(S3);? ? //hsv2rgb name has been taken by Scilab, so IPCV use hsv2rgb2 imshow(S4); // hope this helps. rgds, Chin Luh ---- On Wed, 10 Jun 2020 15:40:20 +0800 P M wrote ---- Dear Mat, not sure if this helps, but here is a way, how to set brightness using a constant value. I guess for automatization one can figure out a way using mean pixel value. Best Regards, Philipp img = imread(fullpath(getIPCVpath() + "/images/" + 'baboon.png')); // image size = 512 x 512 // result of "imread" is of type 10 --> text object // (???)..guess: type = unsigned char, which is 8 bit // // However this limits the pixel values between 0 and 255 // e.g.: 255 + 1 will be set to "0" // // for brightness control we must be able to exceed 255. // ..we also want to go into negative pixel values // so we need to change integer type...use int16 // positive pixel values above 255 will be set to 255 afterwards // negative pixel values will be set to 0 afterwards nPx = 512*512; brighnessLv_1 = 128; brighnessLv_2 = -128; img_1 = int16(img); img_1 = img_1 + brighnessLv_1; img_2 = int16(img); img_2 = img_2 + brighnessLv_2; pos = find(img_1 > 255); img_1(pos) = 255; pos = find(img_1 < 0); img_1(pos) = 0; pos = find(img_2 > 255); img_2(pos) = 255; pos = find(img_2 < 0); img_2(pos) = 0; img_1 = uint8(img_1); img_2 = uint8(img_2); f = figure(); f.figure_size = [1591,610]; f.background = 8; subplot(1,3,1); imshow(img); subplot(1,3,2); imshow(img_1); subplot(1,3,3); imshow(img_2); Am Di., 9. Juni 2020 um 22:05?Uhr schrieb mat368 : _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users Hello I am looking for a function or a code to auto adjust level of color image ? I dont see that in th? ipcv package. Thanks for tour trop. Mat -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list mailto: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: image_arithmetic.sce Type: application/octet-stream Size: 1359 bytes Desc: not available URL: From jsolomon at iai.co.il Wed Jun 10 10:51:13 2020 From: jsolomon at iai.co.il (Solomon Julia) Date: Wed, 10 Jun 2020 08:51:13 +0000 Subject: [Scilab-users] Please unsubscribe me from the mailing list. Thank you. Julia Message-ID: *********************************************************************************************** Please consider the environment before printing this email ! The information contained in this communication is proprietary to Israel Aerospace Industries Ltd. and/or third parties, may contain confidential or privileged information, and is intended only for the use of the intended addressee thereof. If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication is strictly prohibited. If you receive this communication in error, please notify the sender immediately and delete it from your computer. Thank you. Visit us at: www.iai.co.il -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Jun 10 13:22:58 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 10 Jun 2020 13:22:58 +0200 Subject: [Scilab-users] Please unsubscribe me from the mailing list. Thank you. Julia In-Reply-To: References: Message-ID: <6cf10a89-513c-3c62-c29d-9e42de3bc0f9@utc.fr> You can do it yourself, just select the link at the end of the emails: http://lists.scilab.org/mailman/listinfo/users S. Le 10/06/2020 ? 10:51, Solomon Julia a ?crit?: > > > *********************************************************************************************** > Please consider the environment before printing this email ! The > information contained in this communication is proprietary to Israel > Aerospace Industries Ltd. and/or third parties, may contain > confidential or privileged information, and is intended only for the > use of the intended addressee thereof. If you are not the intended > addressee, please be aware that any use, disclosure, distribution > and/or copying of this communication is strictly prohibited. If you > receive this communication in error, please notify the sender > immediately and delete it from your computer. Thank you. Visit us at: > www.iai.co.il > > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From harnico62_a at yahoo.com Tue Jun 9 20:52:23 2020 From: harnico62_a at yahoo.com (nic) Date: Tue, 9 Jun 2020 11:52:23 -0700 (MST) Subject: [Scilab-users] Cblock -Not working with other Xcos blocks Message-ID: <1591728743868-0.post@n3.nabble.com> Hi, I found that C_blocks in Xcos change their behavior when certain other Xcos blocks are added to the simulation. This simulation below has defined 3 c_blocks. It produces the outputs as expected. Note that I added a sine wave to each c_block , because I discovered C-blocks do not get called if the inputs do not change. However, when a simple transfer function is added to the simulation as in the next diagram. The behavior of the c-blocks change and it does not produces the same output. Is it OK to mix c-blocks and other Xcos blocks in a simulation ? What is the reason for this behavior and how can it be fixed. Any help will be appreciated. Regards -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From harnico62_a at yahoo.com Mon Jun 8 15:02:31 2020 From: harnico62_a at yahoo.com (piet pompies) Date: Mon, 8 Jun 2020 13:02:31 +0000 (UTC) Subject: [Scilab-users] Ensure C_BLOCK is called every cycle References: <169502996.932595.1591621351356.ref@mail.yahoo.com> Message-ID: <169502996.932595.1591621351356@mail.yahoo.com> Hi, I discovered that a C_Block does not get called with flag equal to 1 unless the input changes. I discovered that after logging the debug output. From an efficiencystandpoint it actually make sense to compute the output only when the input changes (purely functional perspective). However, there are some use cases where the C_Blockshould be called even if the input does not change. A solution to this is to add a second input and choose an input that will always change. In this example I used a sine wave input - this will ensure that the c_block (test1) is always called. This provides a solution, but is cumbersome, especially if there are multiple c_blocks. My question is: Is there some other way to ensure a c_block is called every cycle ?ThanksRegards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: accel1.png Type: image/png Size: 17260 bytes Desc: not available URL: From imazu.setsuo at nifs.ac.jp Tue Jun 9 05:26:57 2020 From: imazu.setsuo at nifs.ac.jp (imazu) Date: Tue, 9 Jun 2020 12:26:57 +0900 Subject: [Scilab-users] C compiler with Scilab 6.1.0. Message-ID: <2be63db6-474c-3ca2-55ea-5d68624e66f7@nifs.ac.jp> Hello. I want to run a C compiler with Scilab 6.1.0. The operating environment is MS-Windows 10 32bit version. I have installed Microsoft Visual Studio 2010 Express Edition. The setting status is as follows. --> configure_msvc() ans = T --> findmsvccompiler() ans = --> haveacompiler() ans = F With Scilab 6.0.2 on this PC, --> configure_msvc() ans = T --> findmsvccompiler() ans = msvc110express --> haveacompiler() ans = T In Scilab 6.0.2, the compilation worked fine. How can I enable C compilation with scilab 6.1.0? please tell me. Best regards, Setsuo Imazu From harnico62_a at yahoo.com Wed Jun 10 19:29:18 2020 From: harnico62_a at yahoo.com (piet pompies) Date: Wed, 10 Jun 2020 17:29:18 +0000 (UTC) Subject: [Scilab-users] *****SPAM***** Subscribe users@lists.scilab.org Message-ID: <2104367971.2388857.1591810158523@mail.yahoo.com> Spam detection software, running on the system "corvo.inria.fr", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: [...] Content analysis details: (7.7 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.5 BAYES_99 BODY: Bayes spam probability is 99 to 100% [score: 1.0000] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (harnico62_a[at]yahoo.com) -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record 0.4 MIME_HTML_MOSTLY BODY: Multipart message mostly text/html MIME 0.0 HTML_MESSAGE BODY: HTML included in message -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [98.137.65.205 listed in list.dnswl.org] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 0.0 TVD_SPACE_RATIO TVD_SPACE_RATIO 2.3 FORGED_MUA_MOZILLA Forged mail pretending to be from Mozilla 1.5 TO_IN_SUBJ To address is in Subject The original message was not completely plain text, and may be unsafe to open with some email clients; in particular, it may contain a virus, or confirm that your address can receive spam. If you wish to view it, it may be safer to save it to a file and open it with an editor. -------------- next part -------------- An embedded message was scrubbed... From: piet pompies Subject: Subscribe users at lists.scilab.org Date: Wed, 10 Jun 2020 17:29:18 +0000 (UTC) Size: 3801 URL: From harnico62_a at yahoo.com Thu Jun 11 15:46:59 2020 From: harnico62_a at yahoo.com (nic) Date: Thu, 11 Jun 2020 06:46:59 -0700 (MST) Subject: [Scilab-users] Cblock -Not working with other Xcos blocks Message-ID: <1591883219420-0.post@n3.nabble.com> Hi, I want to test some existing C code in a Xcos simulation as in this Xcos diagram The c_blocks produce the expected output without the first order continuous transfer function. Without the transfer function block, this is the output. And with the added transfer function the output of the last c_block changes to I added the signals , since the characteristics of the signal may have bearing on the problem. My question is: why does the c_block output change when the continuous element is added ? Does it change the solver ? And most important: can c_blocks be mixed with other Xcos elements ? Any help will be much appreciated Regards -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From tcklinux at ix.netcom.com Thu Jun 11 21:14:28 2020 From: tcklinux at ix.netcom.com (tckosvic) Date: Thu, 11 Jun 2020 12:14:28 -0700 (MST) Subject: [Scilab-users] scilab 6.1 installation problems Message-ID: <1591902868510-0.post@n3.nabble.com> Old time user but troubles with latest version 6.1.0 Scilab 6.1.0 precompiled binaries do not load and start execution. Message from terminal is: .............................................................................................................. scilab-bin: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file: No such file or directory ............................................................................................................... But: that file is there in /usr/lib Also, I downloaded older versions scilab 5.5.2 and scilab 6.0.2 which both load and run fine and do not complain about not finding libldap-2.4.so.2. Both of these at least start up and look to function. The computer OS is opensuse leap 15.1, mate desktop. Any idea what made the system requirements change? I tried to compiile from source and there were many other problems in addition to the libldap library problem. These are the subject of another thread. thanks for any insights. Tom Kosvic -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From chinluh.tan at bytecode-asia.com Fri Jun 12 13:46:44 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Fri, 12 Jun 2020 19:46:44 +0800 Subject: [Scilab-users] C compiler with Scilab 6.1.0. In-Reply-To: <2be63db6-474c-3ca2-55ea-5d68624e66f7@nifs.ac.jp> References: <2be63db6-474c-3ca2-55ea-5d68624e66f7@nifs.ac.jp> Message-ID: <172a85a867c.f62fc9cd155922.8217355118764975336@bytecode-asia.com> i notice there might be some issue on the compiler detection function in Scilab, a quick solution is to use VS 2017 community version. CL ---- On Tue, 09 Jun 2020 11:26:57 +0800 imazu wrote ---- Hello. I want to run a C compiler with Scilab 6.1.0. The operating environment is MS-Windows 10 32bit version. I have installed Microsoft Visual Studio 2010 Express Edition. The setting status is as follows. --> configure_msvc() ans = T --> findmsvccompiler() ans = --> haveacompiler() ans = F With Scilab 6.0.2 on this PC, --> configure_msvc() ans = T --> findmsvccompiler() ans = msvc110express --> haveacompiler() ans = T In Scilab 6.0.2, the compilation worked fine. How can I enable C compilation with scilab 6.1.0? please tell me. Best regards, Setsuo Imazu _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdb61858 at suoox.com Sat Jun 13 20:04:54 2020 From: jdb61858 at suoox.com (RolandB) Date: Sat, 13 Jun 2020 11:04:54 -0700 (MST) Subject: [Scilab-users] Plotting a New Xpoly Directly Inside a Compound Message-ID: <1592071494358-0.post@n3.nabble.com> Hi, If one plots several curves into a 2D axes using plot2d(), the curves will be resembled as polyline children within a compound, which is a child of the according axes. Adding further polylines one by one using xpoly() puts these polylines outside the compound on the same level as the compound is located, as children of the according axes. Is there a simple way to have the polyline generated directly within the existing compound? I know that I can glue several polylines into a compound, but I would have to unglue the compound first and then glue all polylines together back into one compound. Having many (!) curves makes this quite slow. Especially as glue() reverses the order of the polylines, so I would have to do a second unglue();glue(); in order to preserve the order they had before ungluing (BTW, is this a bug or is reversal of the order a desired feature?). On the other hand, what kind of advantage does the compound have at all, assuming I wouldn't need the possibility of making all of the curves in the compound visible or invisible by just modifying the visibility of the compound? Ok, I can address all curves by axes.children.children(1:$) without having to care about the legend, which would be together with the curves in axes.children(1:$) if all the polylines were not in a compound. But any additional advantage for using a compound? Regards, Roland -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From antoine.monmayrant at laas.fr Wed Jun 17 13:22:20 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 17 Jun 2020 13:22:20 +0200 Subject: [Scilab-users] scilab 6.1 crashes when trying to load big matfile (loadmatfile) Message-ID: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> Hello All, I cannot open large matfile in scilab (~3.4Gb). Scilab is always dying with an error message that is extremely instructive: "Killed". It's a bit cumbersome to share this big fie, so do you have any idea on how to investigate this issue and try to locate the root cause? As a side note, it might be a problem related to either the size of the variables or their nature: cells containing hypermatrices. The file itself is not corrupted (I managed to open it in matlab and to save each hypermatrix into individual files that got imported in scilab with no problem. Cheers, Antoine From stephane.mottelet at utc.fr Wed Jun 17 13:51:54 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 17 Jun 2020 13:51:54 +0200 Subject: [Scilab-users] scilab 6.1 crashes when trying to load big matfile (loadmatfile) In-Reply-To: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> References: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> Message-ID: <65540293-3b6d-c796-ddbb-36818c7000fa@utc.fr> Hello Antoine, Did you to save a single "hypermatrix in a cell" in matlab and then load in Scilab ? S. Le 17/06/2020 ? 13:22, Antoine Monmayrant a ?crit?: > Hello All, > > I cannot open large matfile in scilab (~3.4Gb). > Scilab is always dying with an error message that is extremely > instructive: "Killed". > > It's a bit cumbersome to share this big fie, so do you have any idea > on how to investigate this issue and try to locate the root cause? > > As a side note, it might be a problem related to either the size of > the variables or their nature: cells containing hypermatrices. > The file itself is not corrupted (I managed to open it in matlab and > to save each hypermatrix into individual files that got imported in > scilab with no problem. > > Cheers, > > Antoine > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From Clement.David at esi-group.com Wed Jun 17 14:18:05 2020 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Wed, 17 Jun 2020 12:18:05 +0000 Subject: [Scilab-users] scilab 6.1 crashes when trying to load big matfile (loadmatfile) In-Reply-To: <65540293-3b6d-c796-ddbb-36818c7000fa@utc.fr> References: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> <65540293-3b6d-c796-ddbb-36818c7000fa@utc.fr> Message-ID: Hello Antoine, There might be some extra copies at loading time that overflow the memory ; what's the amount of memory you have available ? And also, to investigate, could you please either share a script used to generate similar data or describe the used data structure ? Thanks, Cl?ment > -----Original Message----- > From: users On Behalf Of St?phane Mottelet > Sent: Wednesday, June 17, 2020 1:52 PM > To: users at lists.scilab.org > Subject: Re: [Scilab-users] scilab 6.1 crashes when trying to load big matfile > (loadmatfile) > > Hello Antoine, > > Did you to save a single "hypermatrix in a cell" in matlab and then load in Scilab ? > > S. > > Le 17/06/2020 ? 13:22, Antoine Monmayrant a ?crit?: > > Hello All, > > > > I cannot open large matfile in scilab (~3.4Gb). > > Scilab is always dying with an error message that is extremely > > instructive: "Killed". > > > > It's a bit cumbersome to share this big fie, so do you have any idea > > on how to investigate this issue and try to locate the root cause? > > > > As a side note, it might be a problem related to either the size of > > the variables or their nature: cells containing hypermatrices. > > The file itself is not corrupted (I managed to open it in matlab and > > to save each hypermatrix into individual files that got imported in > > scilab with no problem. > > > > Cheers, > > > > Antoine > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists > > .scilab.org/mailman/listinfo/users > > > > -- > St?phane Mottelet > Ing?nieur de recherche > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement > G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie > de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 > http://www.utc.fr/~mottelet > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From antoine.monmayrant at laas.fr Wed Jun 17 15:32:25 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 17 Jun 2020 15:32:25 +0200 Subject: [Scilab-users] scilab 6.1 crashes when trying to load big matfile (loadmatfile) In-Reply-To: <65540293-3b6d-c796-ddbb-36818c7000fa@utc.fr> References: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> <65540293-3b6d-c796-ddbb-36818c7000fa@utc.fr> Message-ID: <4aa62215-b946-95ce-de94-6535fe6ff305@laas.fr> On 17/06/2020 13:51, St?phane Mottelet wrote: > Hello Antoine, > > Did you to save a single "hypermatrix in a cell" in matlab and then > load in Scilab ? No, just the hypermatrix, not a cell containing only one hypermatrix. > > S. > > Le 17/06/2020 ? 13:22, Antoine Monmayrant a ?crit?: >> Hello All, >> >> I cannot open large matfile in scilab (~3.4Gb). >> Scilab is always dying with an error message that is extremely >> instructive: "Killed". >> >> It's a bit cumbersome to share this big fie, so do you have any idea >> on how to investigate this issue and try to locate the root cause? >> >> As a side note, it might be a problem related to either the size of >> the variables or their nature: cells containing hypermatrices. >> The file itself is not corrupted (I managed to open it in matlab and >> to save each hypermatrix into individual files that got imported in >> scilab with no problem. >> >> Cheers, >> >> Antoine >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >> > From Christophe.Dang at sidel.com Thu Jun 18 10:01:42 2020 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 18 Jun 2020 08:01:42 +0000 Subject: [Scilab-users] {EXT} scilab 6.1 crashes when trying to load big matfile (loadmatfile) In-Reply-To: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> References: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> Message-ID: Hello, > De la part de Antoine Monmayrant > Envoy? : mercredi 17 juin 2020 13:22 > > It's a bit cumbersome to share this big fie, so do you have any idea on how to > investigate this issue and try to locate the root cause? You might try to build a minimal and working (crashing) example, generating a big file in Scilab (a big ones() or rand() hypermatrix) and then opening this huge file, and then share the code (which would be rather small) with us. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General 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 stephane.mottelet at utc.fr Thu Jun 18 13:06:25 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 18 Jun 2020 13:06:25 +0200 Subject: [Scilab-users] scilab 6.1 crashes when trying to load big matfile (loadmatfile) In-Reply-To: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> References: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> Message-ID: <98d2fbe9-3047-c0e5-ecf4-43640a05e83d@utc.fr> Hello Antoine, I made a 4Gb file with Matlab: >> a=rand(645,645,645); >> b=rand(645,645,645); >> c={a,b}; >> save("c.mat","-7.3","c") and managed to load it successfully in Scilab: --> loadmatfile("c.mat"); --> c ?c? = ? [645x645x645 constant]? [645x645x645 constant] Maybe the structure I tried is too simple (just two hypermatrices in a cell) so please give us a representative failing example. S. Le 17/06/2020 ? 13:22, Antoine Monmayrant a ?crit?: > Hello All, > > I cannot open large matfile in scilab (~3.4Gb). > Scilab is always dying with an error message that is extremely > instructive: "Killed". > > It's a bit cumbersome to share this big fie, so do you have any idea > on how to investigate this issue and try to locate the root cause? > > As a side note, it might be a problem related to either the size of > the variables or their nature: cells containing hypermatrices. > The file itself is not corrupted (I managed to open it in matlab and > to save each hypermatrix into individual files that got imported in > scilab with no problem. > > Cheers, > > Antoine > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From stephane.mottelet at utc.fr Thu Jun 18 16:52:47 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 18 Jun 2020 16:52:47 +0200 Subject: [Scilab-users] [Scilab-Dev] Scilab 6.1 for OSX is out ! In-Reply-To: <5346a48b-59f6-5676-b52b-00efc63e7a37@utc.fr> References: <5346a48b-59f6-5676-b52b-00efc63e7a37@utc.fr> Message-ID: <7f23459b-fd57-61ab-70d3-190b3c59b056@utc.fr> Hello, The branch-6.1 OSX build has been updated yesterday evening. To have an idea of bug fixes and other improvements since the last build see the following list on CR: https://codereview.scilab.org/#/q/status:merged+since:2020-04-20 S. Le 21/04/2020 ? 19:21, St?phane Mottelet a ?crit?: > Hi all, > > Finally I managed to package a branch-6.1 version. "branch-6.1" means > that you will have the actual features of 6.1 version plus the bug > fixes and improvements provided by the team and contributors since its > release. The archive is available to dowload at the following url: > > https://www.utc.fr/~mottelet/scilab_for_macOS.html > > Tests have been made under HighSierra, Mojave, Catalina and everything > seems OK. Please use the ML to report eventual problems. > > Enjoy ! > -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From heinznabielek at me.com Thu Jun 18 18:58:22 2020 From: heinznabielek at me.com (Heinz Nabielek) Date: Thu, 18 Jun 2020 18:58:22 +0200 Subject: [Scilab-users] [Scilab-Dev] Scilab 6.1 for OSX is out ! In-Reply-To: <7f23459b-fd57-61ab-70d3-190b3c59b056@utc.fr> References: <5346a48b-59f6-5676-b52b-00efc63e7a37@utc.fr> <7f23459b-fd57-61ab-70d3-190b3c59b056@utc.fr> Message-ID: <4A65990A-85CC-4AA5-87FD-94553F59BAB5@me.com> Thanks a lot. Works perfect. Heinz > On 18.06.2020, at 16:52, St?phane Mottelet wrote: > > Hello, > > The branch-6.1 OSX build has been updated yesterday evening. To have an idea of bug fixes and other improvements since the last build see the following list on CR: > > https://codereview.scilab.org/#/q/status:merged+since:2020-04-20 > > S. > > Le 21/04/2020 ? 19:21, St?phane Mottelet a ?crit : >> Hi all, >> >> Finally I managed to package a branch-6.1 version. "branch-6.1" means that you will have the actual features of 6.1 version plus the bug fixes and improvements provided by the team and contributors since its release. The archive is available to dowload at the following url: >> >> https://www.utc.fr/~mottelet/scilab_for_macOS.html >> >> Tests have been made under HighSierra, Mojave, Catalina and everything seems OK. Please use the ML to report eventual problems. >> >> Enjoy ! >> > -- > St?phane Mottelet > Ing?nieur de recherche > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > D?partement G?nie des Proc?d?s Industriels > Sorbonne Universit?s - Universit? de Technologie de Compi?gne > CS 60319, 60203 Compi?gne cedex > Tel : +33(0)344234688 > http://www.utc.fr/~mottelet > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From stephane.mottelet at utc.fr Fri Jun 19 08:41:02 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 19 Jun 2020 08:41:02 +0200 Subject: [Scilab-users] scilab 6.1 crashes when trying to load big matfile (loadmatfile) In-Reply-To: <05fe07e6-e056-5e9c-d1b8-c5bcc11544fe@laas.fr> References: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> <98d2fbe9-3047-c0e5-ecf4-43640a05e83d@utc.fr> <05fe07e6-e056-5e9c-d1b8-c5bcc11544fe@laas.fr> Message-ID: <16c0164c-d6b2-57d9-8bf8-fa04b5cf158d@utc.fr> I tried to generate such kind of data file with the following Matlab script: c1=fillcell(); c2=fillcell(); c3=fillcell(); save("c.mat","-v7.3","c1","c2","c3") function c = fillcell() ??? c={}; ??? for j=1:11 ??????? c{j}=rand(711,711,33); ??? end end The c.mat file is 4.18GB and I managed to load it in Scilab. How much physical memory do you have on your machine ? S. Le 18/06/2020 ? 13:28, Antoine Monmayrant a ?crit?: > Hello, > > > I tried but failed to generate similar data. > What I had was a mat file containing mainly 3 cells. > Each Cell contains 11 hypermatrices that are 711x711x31 or 711x711x33. > I won't have access to the machine that can play with this data in the > coming days, so I am not sure I can help in the short term. > > Antoine > > On 18/06/2020 13:06, St?phane Mottelet wrote: >> Hello Antoine, >> >> I made a 4Gb file with Matlab: >> >> >> a=rand(645,645,645); >> >> b=rand(645,645,645); >> >> c={a,b}; >> >> save("c.mat","-7.3","c") >> >> and managed to load it successfully in Scilab: >> >> --> loadmatfile("c.mat"); >> >> --> c >> ?c? = >> >> ? [645x645x645 constant]? [645x645x645 constant] >> >> Maybe the structure I tried is too simple (just two hypermatrices in >> a cell) so please give us a representative failing example. >> >> S. >> >> Le 17/06/2020 ? 13:22, Antoine Monmayrant a ?crit?: >>> Hello All, >>> >>> I cannot open large matfile in scilab (~3.4Gb). >>> Scilab is always dying with an error message that is extremely >>> instructive: "Killed". >>> >>> It's a bit cumbersome to share this big fie, so do you have any idea >>> on how to investigate this issue and try to locate the root cause? >>> >>> As a side note, it might be a problem related to either the size of >>> the variables or their nature: cells containing hypermatrices. >>> The file itself is not corrupted (I managed to open it in matlab and >>> to save each hypermatrix into individual files that got imported in >>> scilab with no problem. >>> >>> Cheers, >>> >>> Antoine >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >>> >> -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From antoine.monmayrant at laas.fr Fri Jun 19 08:57:49 2020 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 19 Jun 2020 08:57:49 +0200 Subject: [Scilab-users] scilab 6.1 crashes when trying to load big matfile (loadmatfile) In-Reply-To: <98d2fbe9-3047-c0e5-ecf4-43640a05e83d@utc.fr> References: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> <98d2fbe9-3047-c0e5-ecf4-43640a05e83d@utc.fr> Message-ID: <41755ae0-69fe-ebb4-5db8-73dab276676c@laas.fr> Hello all, Here is a small script that systematically crashes scilab on my machine: //////////////////////////////// // on my machine with 8Gb or ram and usual workload, n=28 crashes scilab n=[24,26,28]; for i=n ??? disp('---- '+string(i)+' ----'); ??? execstr('a'+string(i)+'=[1:2^'+string(i)+'];') ??? disp('a'+string(i)+'=[1:2^'+string(i)+'];') execstr("savematfile(''a"+string(i)+".mat'',''a"+string(i)+"'');") disp("savematfile(''a"+string(i)+".mat'',''a"+string(i)+"'');") ??? execstr("loadmatfile(''a"+string(i)+".mat'');") ??? disp("loadmatfile(''a"+string(i)+".mat'');") ??? disp('---- OK ----'); end //////////////////////////////// You'll have to adapt the maximum value for n depending on your available ram. Antoine On 18/06/2020 13:06, St?phane Mottelet wrote: > Hello Antoine, > > I made a 4Gb file with Matlab: > > >> a=rand(645,645,645); > >> b=rand(645,645,645); > >> c={a,b}; > >> save("c.mat","-7.3","c") > > and managed to load it successfully in Scilab: > > --> loadmatfile("c.mat"); > > --> c > ?c? = > > ? [645x645x645 constant]? [645x645x645 constant] > > Maybe the structure I tried is too simple (just two hypermatrices in a > cell) so please give us a representative failing example. > > S. > > Le 17/06/2020 ? 13:22, Antoine Monmayrant a ?crit?: >> Hello All, >> >> I cannot open large matfile in scilab (~3.4Gb). >> Scilab is always dying with an error message that is extremely >> instructive: "Killed". >> >> It's a bit cumbersome to share this big fie, so do you have any idea >> on how to investigate this issue and try to locate the root cause? >> >> As a side note, it might be a problem related to either the size of >> the variables or their nature: cells containing hypermatrices. >> The file itself is not corrupted (I managed to open it in matlab and >> to save each hypermatrix into individual files that got imported in >> scilab with no problem. >> >> Cheers, >> >> Antoine >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >> > From stephane.mottelet at utc.fr Fri Jun 19 09:14:36 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 19 Jun 2020 09:14:36 +0200 Subject: [Scilab-users] scilab 6.1 crashes when trying to load big matfile (loadmatfile) In-Reply-To: <41755ae0-69fe-ebb4-5db8-73dab276676c@laas.fr> References: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> <98d2fbe9-3047-c0e5-ecf4-43640a05e83d@utc.fr> <41755ae0-69fe-ebb4-5db8-73dab276676c@laas.fr> Message-ID: it's the loadmatfile that crashes (here on Scilab-branch-6.1 under OSX, with 16Gb ram) ? "savematfile('a28.mat','a28');" scilab-cli-bin(3310,0x115f1f5c0) malloc: can't allocate region *** mach_vm_map(size=18446744071562067968) failed (error code=3) scilab-cli-bin(3310,0x115f1f5c0) malloc: *** set a breakpoint in malloc_error_break to debug Same crash with Scilab-branch-6.1 under Ubuntu 18.04, with 128Gb ram: ? "a28=[1:2^28];" ATTENTION : Option -v7 ajout?e. ? "savematfile('a28.mat','a28');" Segmentation fault (core dumped) S. Le 19/06/2020 ? 08:57, Antoine Monmayrant a ?crit?: > Hello all, > > > Here is a small script that systematically crashes scilab on my machine: > > > //////////////////////////////// > > // on my machine with 8Gb or ram and usual workload, n=28 crashes scilab > n=[24,26,28]; > > for i=n > > ??? disp('---- '+string(i)+' ----'); > ??? execstr('a'+string(i)+'=[1:2^'+string(i)+'];') > ??? disp('a'+string(i)+'=[1:2^'+string(i)+'];') > execstr("savematfile(''a"+string(i)+".mat'',''a"+string(i)+"'');") > disp("savematfile(''a"+string(i)+".mat'',''a"+string(i)+"'');") > ??? execstr("loadmatfile(''a"+string(i)+".mat'');") > ??? disp("loadmatfile(''a"+string(i)+".mat'');") > ??? disp('---- OK ----'); > > end > > //////////////////////////////// > > You'll have to adapt the maximum value for n depending on your > available ram. > > Antoine > > > On 18/06/2020 13:06, St?phane Mottelet wrote: >> Hello Antoine, >> >> I made a 4Gb file with Matlab: >> >> >> a=rand(645,645,645); >> >> b=rand(645,645,645); >> >> c={a,b}; >> >> save("c.mat","-7.3","c") >> >> and managed to load it successfully in Scilab: >> >> --> loadmatfile("c.mat"); >> >> --> c >> ?c? = >> >> ? [645x645x645 constant]? [645x645x645 constant] >> >> Maybe the structure I tried is too simple (just two hypermatrices in >> a cell) so please give us a representative failing example. >> >> S. >> >> Le 17/06/2020 ? 13:22, Antoine Monmayrant a ?crit?: >>> Hello All, >>> >>> I cannot open large matfile in scilab (~3.4Gb). >>> Scilab is always dying with an error message that is extremely >>> instructive: "Killed". >>> >>> It's a bit cumbersome to share this big fie, so do you have any idea >>> on how to investigate this issue and try to locate the root cause? >>> >>> As a side note, it might be a problem related to either the size of >>> the variables or their nature: cells containing hypermatrices. >>> The file itself is not corrupted (I managed to open it in matlab and >>> to save each hypermatrix into individual files that got imported in >>> scilab with no problem. >>> >>> Cheers, >>> >>> Antoine >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >>> >> > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From Christophe.Dang at sidel.com Fri Jun 19 09:57:05 2020 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 19 Jun 2020 07:57:05 +0000 Subject: [Scilab-users] {EXT} Re: scilab 6.1 crashes when trying to load big matfile (loadmatfile) In-Reply-To: <41755ae0-69fe-ebb4-5db8-73dab276676c@laas.fr> References: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> <98d2fbe9-3047-c0e5-ecf4-43640a05e83d@utc.fr> <41755ae0-69fe-ebb4-5db8-73dab276676c@laas.fr> Message-ID: Hello, > De : De la part de Antoine Monmayrant > Envoy? : vendredi 19 juin 2020 08:58 > > Here is a small script that systematically crashes scilab on my machine: It works fine for me, no crash. Windows 7, RAM 16 GB, 12.9 GB used at peak. [a, b] = getdebuginfo() a = "Memory in use: 39 %" "Total Physical Memory (Kbytes): 16673068" "Free Physical Memory (Kbytes): 10007928" "Total Paging File (Kbytes): 33344236" "Free Paging File (Kbytes): 24405280" "Total Virtual Memory (Kbytes): 8589934464" "Free Virtual Memory (Kbytes): 8586180260" "Free Extended Memory (Kbytes): 0" "Operating System: Windows Seven x64" "Intel(R) Xeon(R) CPU E5-1620 v3 @ 3.50GHz" "Number of processors: 8" "Number of Video cards: 1" "Video card #0: NVIDIA Quadro K2200" "Primary Video card driver version: 24.21.14.1163" "Screen size: 1920 x 1200 32 bits" "Number of Monitors: 2" "Path: [...] b = "Version: scilab-6.1.0" "Compilation date: Feb 25 2020" "Compilation time: 11:34:32" "Compiler Architecture: X64" "Compiled with Microsoft compiler (191627035)" "BLAS library optimized version: MKL" "XML version: 2.9.1" "Tcl/Tk: Enable" "TCL version: 8.5.9" "TK version: 8.5.9" "Path separator: ;" "Directory separator: \" "PCRE Version: 8.21" -- Christophe Dang Ngoc Chan Mechanical calculation engineer General 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 p.muehlmann at gmail.com Fri Jun 19 15:41:18 2020 From: p.muehlmann at gmail.com (P M) Date: Fri, 19 Jun 2020 15:41:18 +0200 Subject: [Scilab-users] Plotting a New Xpoly Directly Inside a Compound In-Reply-To: <1592071494358-0.post@n3.nabble.com> References: <1592071494358-0.post@n3.nabble.com> Message-ID: Hallo Robert, If you use xpoly() it means you know your data before you plot it? --> I mean: you do not click in the figure to get the coordinates.... --> Why not plot all data at once? E.g.: Can you not plot all polylines in one single plot2d command? If you can't, you may try following approach: Assumption: all data is of same length, e.g.: all lines are drawn by same number of points 1.) you may access the data that composes the plot by searching for: *.children.data * =: I do not recall from memory how deep you have to search.... e.g.: plot2d(); a = gca(); a.children.children.data....or .....a.children.children.children.data 2.: Save the *.children.data separately in a X-matrix and Y-matrix 3.: Add the data that you would plot with xpoly() to these matrices. 4.: xdel() 5.: replot everything with plot2d(X-matrix, Y-matrix) This should give you all lines at the same plot-hirachy. I did not check, but I would guess that also the line order would not change. It should be possible to create a function out of this and loop though it each time a xpoly() is added to the plot. Again, it is not clear why you just do not fuse all data together into one matrix and use plot2d() to plot all data at once. Best Regards, Philipp Am Sa., 13. Juni 2020 um 20:05 Uhr schrieb RolandB : > Hi, > > If one plots several curves into a 2D axes using plot2d(), the curves will > be resembled as polyline children within a compound, which is a child of > the > according axes. > Adding further polylines one by one using xpoly() puts these polylines > outside the compound on the same level as the compound is located, as > children of the according axes. > > Is there a simple way to have the polyline generated directly within the > existing compound? > I know that I can glue several polylines into a compound, but I would have > to unglue the compound first and then glue all polylines together back into > one compound. > Having many (!) curves makes this quite slow. Especially as glue() reverses > the order of the polylines, so I would have to do a second unglue();glue(); > in order to preserve the order they had before ungluing (BTW, is this a bug > or is reversal of the order a desired feature?). > > On the other hand, what kind of advantage does the compound have at all, > assuming I wouldn't need the possibility of making all of the curves in the > compound visible or invisible by just modifying the visibility of the > compound? > Ok, I can address all curves by axes.children.children(1:$) without having > to care about the legend, which would be together with the curves in > axes.children(1:$) if all the polylines were not in a compound. > > But any additional advantage for using a compound? > > Regards, > Roland > > > > > -- > 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 Fri Jun 19 15:59:39 2020 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 19 Jun 2020 13:59:39 +0000 Subject: [Scilab-users] scilab 6.1 crashes when trying to load big matfile (loadmatfile) In-Reply-To: References: <61e76909-4440-f437-15e4-b94f04cf7c83@laas.fr> <98d2fbe9-3047-c0e5-ecf4-43640a05e83d@utc.fr> <41755ae0-69fe-ebb4-5db8-73dab276676c@laas.fr> Message-ID: Script runs fine on Win10, Scilab 6.1, 64 GB RAM. But btw, the file a28.mat seems to have only 342MB. -----Original Message----- From: users On Behalf Of St?phane Mottelet Sent: Friday, June 19, 2020 10:15 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] scilab 6.1 crashes when trying to load big matfile (loadmatfile) it's the loadmatfile that crashes (here on Scilab-branch-6.1 under OSX, with 16Gb ram) ? "savematfile('a28.mat','a28');" scilab-cli-bin(3310,0x115f1f5c0) malloc: can't allocate region *** mach_vm_map(size=18446744071562067968) failed (error code=3) scilab-cli-bin(3310,0x115f1f5c0) malloc: *** set a breakpoint in malloc_error_break to debug Same crash with Scilab-branch-6.1 under Ubuntu 18.04, with 128Gb ram: ? "a28=[1:2^28];" ATTENTION : Option -v7 ajout?e. ? "savematfile('a28.mat','a28');" Segmentation fault (core dumped) S. Le 19/06/2020 ? 08:57, Antoine Monmayrant a ?crit?: > Hello all, > > > Here is a small script that systematically crashes scilab on my machine: > > > //////////////////////////////// > > // on my machine with 8Gb or ram and usual workload, n=28 crashes scilab > n=[24,26,28]; > > for i=n > > ??? disp('---- '+string(i)+' ----'); > ??? execstr('a'+string(i)+'=[1:2^'+string(i)+'];') > ??? disp('a'+string(i)+'=[1:2^'+string(i)+'];') > execstr("savematfile(''a"+string(i)+".mat'',''a"+string(i)+"'');") > disp("savematfile(''a"+string(i)+".mat'',''a"+string(i)+"'');") > ??? execstr("loadmatfile(''a"+string(i)+".mat'');") > ??? disp("loadmatfile(''a"+string(i)+".mat'');") > ??? disp('---- OK ----'); > > end > From amonmayr at laas.fr Sat Jun 20 02:40:38 2020 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Sat, 20 Jun 2020 02:40:38 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBQbG90dGluZyBhIE5ldyBY?= =?utf-8?q?poly_Directly_Inside_a_Compound?= In-Reply-To: Message-ID: <50f1-5eed5b00-11-20232340@227014163> > Again, it is not clear why you just do not fuse all data together into one > matrix and use plot2d() to plot all data at once. >From my own experience, this might be the case when you want to track the progression of a lengthy calculation: you periodically add the new data on top of the previous results. This is also the case when you work with experimental data that arrives slowly, by successive batches: you receiver a batch of let's say ~10 curves every couple of minutes for example. Antoine From amonmayr at laas.fr Sat Jun 20 02:36:47 2020 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Sat, 20 Jun 2020 02:36:47 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBzY2lsYWIgNi4xIGNyYXNo?= =?utf-8?q?es_when_trying_to_load_big_matfile_=28loadmatfile=29?= In-Reply-To: Message-ID: <3d0b-5eed5a00-b-22a34d80@182668201> Le Vendredi, Juin 19, 2020 15:59 CEST, Rafael Guerra a ?crit: > Script runs fine on Win10, Scilab 6.1, 64 GB RAM. > But btw, the file a28.mat seems to have only 342MB. I suspect that it does work fine with 64GB of ram: that's how I managed to work around my initial problem. This script should be adapted to your available ram: you should try to increase n. But in your case, I think you have enough ram to reach scilab maximum variable size (is it something like 2^31-1 maximum elements?) before triggering this bug. Ideally, this should be tested on a ram-limited hardware (~8GB). The issue is that there might be some malloc() somewhere that fails, while the code tries to use the memory without checking whether the malloc() was successful or not. If you have gazillion's of GB of available ram, you never face this problem. Antoine > > > -----Original Message----- > From: users On Behalf Of St?phane Mottelet > Sent: Friday, June 19, 2020 10:15 AM > To: users at lists.scilab.org > Subject: Re: [Scilab-users] scilab 6.1 crashes when trying to load big matfile (loadmatfile) > > it's the loadmatfile that crashes (here on Scilab-branch-6.1 under OSX, > with 16Gb ram) > > ? "savematfile('a28.mat','a28');" > scilab-cli-bin(3310,0x115f1f5c0) malloc: can't allocate region > *** mach_vm_map(size=18446744071562067968) failed (error code=3) > scilab-cli-bin(3310,0x115f1f5c0) malloc: *** set a breakpoint in > malloc_error_break to debug > > Same crash with Scilab-branch-6.1 under Ubuntu 18.04, with 128Gb ram: > > ? "a28=[1:2^28];" > ATTENTION : Option -v7 ajout?e. > > ? "savematfile('a28.mat','a28');" > Segmentation fault (core dumped) > > S. > > Le 19/06/2020 ? 08:57, Antoine Monmayrant a ?crit?: > > Hello all, > > > > > > Here is a small script that systematically crashes scilab on my machine: > > > > > > //////////////////////////////// > > > > // on my machine with 8Gb or ram and usual workload, n=28 crashes scilab > > n=[24,26,28]; > > > > for i=n > > > > ??? disp('---- '+string(i)+' ----'); > > ??? execstr('a'+string(i)+'=[1:2^'+string(i)+'];') > > ??? disp('a'+string(i)+'=[1:2^'+string(i)+'];') > > execstr("savematfile(''a"+string(i)+".mat'',''a"+string(i)+"'');") > > disp("savematfile(''a"+string(i)+".mat'',''a"+string(i)+"'');") > > ??? execstr("loadmatfile(''a"+string(i)+".mat'');") > > ??? disp("loadmatfile(''a"+string(i)+".mat'');") > > ??? disp('---- OK ----'); > > > > end > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From stephane.mottelet at utc.fr Sat Jun 20 08:01:52 2020 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Sat, 20 Jun 2020 08:01:52 +0200 Subject: [Scilab-users] ?==?utf-8?q? scilab 6.1 crashes when trying to load big matfile (loadmatfile) In-Reply-To: <3d0b-5eed5a00-b-22a34d80@182668201> References: <3d0b-5eed5a00-b-22a34d80@182668201> Message-ID: <55DFBEA2-C14C-44EB-A7B3-6BC4AA88276B@utc.fr> > Le 20 juin 2020 ? 03:00, Antoine Monmayrant a ?crit : > > ?Le Vendredi, Juin 19, 2020 15:59 CEST, Rafael Guerra a ?crit: > >> Script runs fine on Win10, Scilab 6.1, 64 GB RAM. >> But btw, the file a28.mat seems to have only 342MB. > > I suspect that it does work fine with 64GB of ram: Not so sure. It crashes on a 128GB machine. S. > that's how I managed to work around my initial problem. > This script should be adapted to your available ram: you should try to increase n. > But in your case, I think you have enough ram to reach scilab maximum variable size (is it something like 2^31-1 maximum elements?) before triggering this bug. > Ideally, this should be tested on a ram-limited hardware (~8GB). > The issue is that there might be some malloc() somewhere that fails, while the code tries to use the memory without checking whether the malloc() was successful or not. > If you have gazillion's of GB of available ram, you never face this problem. > > Antoine > >> >> >> -----Original Message----- >> From: users On Behalf Of St?phane Mottelet >> Sent: Friday, June 19, 2020 10:15 AM >> To: users at lists.scilab.org >> Subject: Re: [Scilab-users] scilab 6.1 crashes when trying to load big matfile (loadmatfile) >> >> it's the loadmatfile that crashes (here on Scilab-branch-6.1 under OSX, >> with 16Gb ram) >> >> "savematfile('a28.mat','a28');" >> scilab-cli-bin(3310,0x115f1f5c0) malloc: can't allocate region >> *** mach_vm_map(size=18446744071562067968) failed (error code=3) >> scilab-cli-bin(3310,0x115f1f5c0) malloc: *** set a breakpoint in >> malloc_error_break to debug >> >> Same crash with Scilab-branch-6.1 under Ubuntu 18.04, with 128Gb ram: >> >> "a28=[1:2^28];" >> ATTENTION : Option -v7 ajout?e. >> >> "savematfile('a28.mat','a28');" >> Segmentation fault (core dumped) >> >> S. >> >>> Le 19/06/2020 ? 08:57, Antoine Monmayrant a ?crit : >>> Hello all, >>> >>> >>> Here is a small script that systematically crashes scilab on my machine: >>> >>> >>> //////////////////////////////// >>> >>> // on my machine with 8Gb or ram and usual workload, n=28 crashes scilab >>> n=[24,26,28]; >>> >>> for i=n >>> >>> disp('---- '+string(i)+' ----'); >>> execstr('a'+string(i)+'=[1:2^'+string(i)+'];') >>> disp('a'+string(i)+'=[1:2^'+string(i)+'];') >>> execstr("savematfile(''a"+string(i)+".mat'',''a"+string(i)+"'');") >>> disp("savematfile(''a"+string(i)+".mat'',''a"+string(i)+"'');") >>> execstr("loadmatfile(''a"+string(i)+".mat'');") >>> disp("loadmatfile(''a"+string(i)+".mat'');") >>> disp('---- OK ----'); >>> >>> end >>> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >> > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users From p.muehlmann at gmail.com Wed Jun 24 10:22:39 2020 From: p.muehlmann at gmail.com (P M) Date: Wed, 24 Jun 2020 10:22:39 +0200 Subject: [Scilab-users] imrotate Message-ID: Dear Experts, using imrotate() from IPCV-toolbox: imout = imrotate(im1,deg,crp) crp : Returns only central portion output image which is the same size as source if set to 1 My input image is 512x512 pixel. The output image shall be of the same size. For this I try crop = 1 and also crop = 0 However the output image is always of different size, depending on the rotation value. Do I misunderstand something? Here my code: for i = 1:nrOrigImg img = imread(fpath_img(i)); mask = imread(fpath_mask(i)); // get a random rotation value rotVal = grand(1, 1, "unf", -5, 5); // rotate the input image cropVal = 0; img = imrotate(img,rotVal,cropVal); imshow(img); // rotate the mask image mask = imrotate(mask,rotVal,cropVal); imshow(mask); // add suffix : _rot fNameOut = baseNameImg(i) + "_rot" + extImg(i); imwrite(img, subDir1 + "\" + fNameOut); fNameOut = baseNameMask(i) + "_rot" + extMask(i); imwrite(mask, subDir2 + "\" + fNameOut); end Best Regards, Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Wed Jun 24 10:34:59 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Wed, 24 Jun 2020 16:34:59 +0800 Subject: [Scilab-users] imrotate In-Reply-To: References: Message-ID: <172e57747db.e0123f3c334348.6885930708912641876@bytecode-asia.com> Hi, the 3rd argument was actually for an older version of imrotate which the function is in pure Scilab script, however, it has not been used when we move to opencv implementation.? please make a report here :?https://github.com/tanchinluh/IPCV?so that we could put it into our future release.? Thanks. Regards, Chin Luh ---- On Wed, 24 Jun 2020 16:22:39 +0800 P M wrote ---- Dear Experts, using imrotate() from IPCV-toolbox: imout = imrotate(im1,deg,crp) crp : Returns only central portion output image which is the same size as source if set to 1 My input image is 512x512 pixel. The output image shall be of the same size. For this I try crop = 1 and also crop = 0 However the output image is always of different size, depending on the rotation value. Do I misunderstand something? Here my code: for i = 1:nrOrigImg img = imread(fpath_img(i)); mask = imread(fpath_mask(i)); // get a random rotation value rotVal = grand(1, 1, "unf", -5, 5); // rotate the input image cropVal = 0; img = imrotate(img,rotVal,cropVal); imshow(img); // rotate the mask image mask = imrotate(mask,rotVal,cropVal); imshow(mask); // add suffix : _rot fNameOut = baseNameImg(i) + "_rot" + extImg(i); imwrite(img, subDir1 + "\" + fNameOut); fNameOut = baseNameMask(i) + "_rot" + extMask(i); imwrite(mask, subDir2 + "\" + fNameOut); end Best Regards, Philipp _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Wed Jun 24 16:27:30 2020 From: p.muehlmann at gmail.com (P M) Date: Wed, 24 Jun 2020 16:27:30 +0200 Subject: [Scilab-users] data augmentation with scilab for neural networks Message-ID: Dear Scilabers, probably not the correct forum to ask this question, but i do not know better. Dealing with neural networks and image segmentation I write some Scilab code for data augmentation. This is to increase my training data set. ( = more images) Data augmentation (for now) is done by: - image rotation - image horizontal shifting Now a basic question: - Does one apply the data augmentation only for the input images and keep the label images? Or - does one also rotate/shear the label images? A "label image" in this context is a binary image (black/white). white --> corresponds to pixels in the input image, which are of interest black --> corresponds to pixels in the input image, which are of no interest. Any help is appreciated. Thanks, Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Thu Jun 25 02:57:28 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Thu, 25 Jun 2020 08:57:28 +0800 Subject: [Scilab-users] data augmentation with scilab for neural networks In-Reply-To: References: Message-ID: <172e8fac628.d3f3770a466348.805649621268930640@bytecode-asia.com> Hi Philipp, >From your description the "labelled" image sound like the mask image which indicate the ROI of the original image for training the NN. Is this is the case, I think the labelled image must be going through the same transform with the original image as well. However, you might want to consider the type of network that you're going to apply, for example, CNN with image classification such as Alexnet, Googlenet, the target is just the "class label" indicating the object label, regardless what type of transformation/augmentation you went through. (bird is still a bird no matter how u rotate it) :) On the other hand, the network for image detection such as YOLO, SSD will need the image with labelled (such as the bounding boxes) which the labelled vector must be adjusted accordingly. Just my 2 cents. rgds, Chin Luh ---- On Wed, 24 Jun 2020 22:27:30 +0800 P M wrote ---- Dear Scilabers, probably not the correct forum to ask this question, but i do not know better. Dealing with neural networks and image segmentation I write some Scilab code for data augmentation. This is to increase my training data set.? ( = more images) Data augmentation (for now) is done by: - image rotation - image horizontal shifting Now a basic question:??? - Does one apply the data augmentation only for the input images and keep the label images? Or - does one also rotate/shear the label images? A "label image" in this context is a binary image (black/white). white --> corresponds to pixels in the input image, which are of interest black --> corresponds to pixels in the input image, which are of no interest. Any help is appreciated. Thanks, Philipp _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Sat Jun 27 09:32:28 2020 From: arctica1963 at gmail.com (arctica1963) Date: Sat, 27 Jun 2020 00:32:28 -0700 (MST) Subject: [Scilab-users] Random colours for plot markers Message-ID: <1593243148134-0.post@n3.nabble.com> Hello, I would like to generate random colours for the markers in a polar plot (for example), but not sure what is needed. adding: f.color_map = rand(jetcolormap(64)); will give random colours for each new plot, but what I would like to try is to randomise the colours of the markers. In the following script, the polar plot generates point markers but all red, is it possible to plot with random colours? clear clf() // Enter the upper range x = input("Enter the upper range : "); angle=180/%pi; p=primes(x); rad=p; theta=p*angle; f = gcf(); f.figure_size=[1024,1024]; a=gca(); a.tight_limits=["on", "on"] a.mark_mode="on" a.mark_style=0 a.mark_size_unit="point" a.mark_size=3 a.mark_foreground = 21 // <- sets the current marker colour from figure properties // plot the prime number in polar coordinates polarplot(theta,rad,style=0) Thanks for any pointers Lester -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Sat Jun 27 11:31:33 2020 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 27 Jun 2020 09:31:33 +0000 Subject: [Scilab-users] Random colours for plot markers In-Reply-To: <1593243148134-0.post@n3.nabble.com> References: <1593243148134-0.post@n3.nabble.com> Message-ID: Hi, Maybe you could complement polarplot with scatter, as in rush example below: clear clf() x = 300; angle= %pi; p=primes(x); rad= p; theta= -angle + 5*p*angle/x; n = length(p); f = gcf(); f.figure_size=[1024,1024]; mcolors = int(n*rand(p)); polarplot(theta,rad) scatter(rad.*cos(theta),rad.*sin(theta),20,mcolors,"fill") Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Sat Jun 27 14:10:28 2020 From: arctica1963 at gmail.com (arctica1963) Date: Sat, 27 Jun 2020 05:10:28 -0700 (MST) Subject: [Scilab-users] Random colours for plot markers In-Reply-To: References: <1593243148134-0.post@n3.nabble.com> Message-ID: <1593259828983-0.post@n3.nabble.com> Thanks Rafael, That is a good solution. Would be nice if that was available directly in Polarplot Lester -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Sat Jun 27 18:29:03 2020 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 27 Jun 2020 18:29:03 +0200 Subject: [Scilab-users] Random colours for plot markers In-Reply-To: <1593259828983-0.post@n3.nabble.com> References: <1593243148134-0.post@n3.nabble.com> <1593259828983-0.post@n3.nabble.com> Message-ID: Le 27/06/2020 ? 14:10, arctica1963 a ?crit?: > Thanks Rafael, > > That is a good solution. Would be nice if that was available directly in Polarplot There is no actual interest having all properties combinations available at calling time. It's possible and easy to post-process the polarplot display to get what you require. Example: clf reset t = linspace(0, 2*%pi, 30); polarplot(t, -1 + sin(t)); c = gca().children.children; // the curve set(c, "mark_mode","on","mark_style",3,"mark_size",4); c.mark_foreground = grand(1,size(c.data,1),"uin",1,size(gcf().color_map,1)); Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hmclbmaoolffifpl.png Type: image/png Size: 17594 bytes Desc: not available URL: From arctica1963 at gmail.com Sun Jun 28 08:28:16 2020 From: arctica1963 at gmail.com (arctica1963) Date: Sat, 27 Jun 2020 23:28:16 -0700 (MST) Subject: [Scilab-users] Random colours for plot markers In-Reply-To: References: <1593243148134-0.post@n3.nabble.com> <1593259828983-0.post@n3.nabble.com> Message-ID: <1593325696116-0.post@n3.nabble.com> Thanks Samuel. Always good to learn different methods. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Sun Jun 28 11:02:00 2020 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 28 Jun 2020 11:02:00 +0200 Subject: [Scilab-users] Random colours for plot markers In-Reply-To: <1593325696116-0.post@n3.nabble.com> References: <1593243148134-0.post@n3.nabble.com> <1593259828983-0.post@n3.nabble.com> <1593325696116-0.post@n3.nabble.com> Message-ID: <4b9052fe-efb6-c0c0-e96f-aac850e57a9f@free.fr> Le 28/06/2020 ? 08:28, arctica1963 a ?crit?: > Thanks Samuel. Always good to learn different methods. The fact that .mark_foreground and similarly .mark_background and .mark_size values can be a vector to customize the marks individually was introduced in Scilab 6.0.0 but is still not documented in the polyline_properties page of 6.1.0. The page is updated for the next 6.1.1 release. From tien.dang at setacinq.vn Mon Jun 29 10:58:12 2020 From: tien.dang at setacinq.vn (tien.dang) Date: Mon, 29 Jun 2020 01:58:12 -0700 (MST) Subject: [Scilab-users] Error when use integral block Message-ID: <1593421092599-0.post@n3.nabble.com> When I try to test integral block in Scilab and Matlab Simulink. I use with integral number is 5 and initial state is 2. The results from Scilab is 51.95 and from Matlab Simulink is 52. The error is 0.05, Why Scilab have that error and how to fix it. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From zisper at gmail.com Tue Jun 30 13:03:26 2020 From: zisper at gmail.com (Chris O'Shannassy) Date: Tue, 30 Jun 2020 21:03:26 +1000 Subject: [Scilab-users] Difference in output from mtlb_dir function between 6.0.2 and 6.1.1 In-Reply-To: References: Message-ID: <98ace136-6d67-4089-b3b6-ff2adaef5d2a@Spark> Hi; I just installed SciLab 6.1 on my Mac, and unfortunately I?ve tripped over running doing my first task.??I have a few small scripts which work fine under 6.0.2, using the mtlb_dir command to get a file list to process.??It seems like the output of the mtlb_dir command under 6.1 is different from that of 6.0.2 - which is causing my subsequent commands to fail.??I can rework the scripts so they don?t rely on mtlb_dir, but I thought I should flag it as an issue. Sample output under 6.0.2: --> mtlb_dir ?ans = 831x1 struct array with fields: ?dims ?name ?date ?bytes ?isdir --> ver ?ans = ?column 1 !Scilab Version: ! ! ! !Operating System: ! ! ! !Java version: ! ! ! !Java runtime information: ! ! ! !Java Virtual Machine information: ! ! ! !Vendor specification: ! ?column 2 !6.0.2.0 ! ! ! !Mac OS X 10.15.5 ! ! ! !1.8.0_51 ! ! ! !Java(TM) SE Runtime Environment (build 1.8.0_51-b16) ! ! ! !Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode) ! ! ! !Oracle Corporation ! And under 6.1: mtlb_dir *** Much Output I?ve Removed *** ans(6)(828) ?F ?ans(6)(829) ?F ?ans(6)(830) ?F ?ans(6)(831) ?F --> ver ?ans = ?"Scilab Version: " "6.1.1.0" ?"Operating System: " "Mac OS X 10.15.5" ?"Java version: " "1.8.0_51" ?"Java runtime information: " "Java(TM) SE Runtime Environment (build 1.8.0_51-b16)" ?"Java Virtual Machine information: " "Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)" ?"Vendor specification: " "Oracle Corporation" -------------- next part -------------- An HTML attachment was scrubbed... URL: