Re: [Scilab-users] Graphic problem with ubuntu 22.04

2023-06-26 Thread philippe

Le 26/06/2023 à 15:26, Jean-Yves Baudais a écrit :


Well known problem, cf. https://gitlab.com/scilab/scilab/-/issues/16544


Thank you!  I knew this was already known .



solution with `export MESA_GL_VERSION_OVERRIDE=3.0`


launching scilab from the terminal with :

MESA_GL_VERSION_OVERRIDE=3.0 scilab

solve the problem.


Philippe



___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



[Scilab-users] Graphic problem with ubuntu 22.04

2023-06-26 Thread philippe

Hi every one,

I’ve just upgraded ubuntu to 22.04 LTS version (Linux 5.15.0-75-generic)
and tested scilab installation : GUI start correctly and basics commands
are ok but I’ve no graphic output for both scilab 6.1.1 and 2023.1.0.
The graphic window opens but nothing is displayed and docking buttons
aren’t available.

I suppose there is a problem with the graphic driver, does anyone have
some clue about this ?
Best regards
Philippe

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] scilab 6.1 and ubuntu 20.04 no graphics ?

2021-07-07 Thread philippe
the problem affect in the same way the lastest version 6.1.0 and 6.0.2
I've on my latop  (both installed from official .tar.gz archive)
Philippe

Le 07/07/2021 à 15:03, philippe a écrit :
> Le 07/07/2021 à 14:37, Stéphane Mottelet a écrit :
>> Hi,
>>
>> Please launch Scilab from the command line and give the (java) errors.
> 
> I've started scilab from command line (no errors in console)
> then launched the command "plot()" in the scilab console and get the
> erros reported at the end of this message.
> 
>> However, AFAIK the ubuntu package is not supposed to work, please use
>> the official .tar.gz archive from www.scilab.org
> 
> of course that's what I've done before sending my message.
> 
> Thanks for your reply
> Philippe
> 
> *errors after "plot()" command*
> Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException:
> Caught GLException: Not a GL2 implementation on thread AWT-EventQueue-0
>   at javax.media.opengl.GLException.newGLException(GLException.java:75)
>   at 
> jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
>   at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
>   at
> javax.media.opengl.awt.GLJPanel$OffscreenBackend.doPaintComponent(GLJPanel.java:2024)
>   at javax.media.opengl.awt.GLJPanel.paintComponent(GLJPanel.java:569)
>   at javax.swing.JComponent.paint(JComponent.java:1056)
>   at javax.swing.JComponent.paintChildren(JComponent.java:889)
>   at javax.swing.JComponent.paint(JComponent.java:1065)
>   at javax.swing.JComponent.paintChildren(JComponent.java:889)
>   at javax.swing.JComponent.paint(JComponent.java:1065)
>   at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
>   at javax.swing.JComponent.paintChildren(JComponent.java:889)
>   at javax.swing.JComponent.paint(JComponent.java:1065)
>   at javax.swing.JViewport.paint(JViewport.java:728)
>   at javax.swing.JComponent.paintChildren(JComponent.java:889)
>   at javax.swing.JComponent.paint(JComponent.java:1065)
>   at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
>   at
> javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
>   at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
>   at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
>   at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
>   at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
>   at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
>   at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
>   at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
>   at 
> javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
>   at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
>   at
> javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
>   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
>   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
>   at java.awt.EventQueue.access$500(EventQueue.java:97)
>   at java.awt.EventQueue$3.run(EventQueue.java:709)
>   at java.awt.EventQueue$3.run(EventQueue.java:703)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
>   at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
>   at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
>   at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
>   at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
>   at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> Caused by: javax.media.opengl.GLException: Not a GL2 implementation
>   at jogamp.opengl.gl4.GL4bcImpl.getGL2(GL4bcImpl.java:37071)
>   at
> org.scilab.forge.scirenderer.implementation.jogl.JoGLCanvas.getGl(Unknown 
> Source)
>   at
> org.scilab.forge.scirenderer.implementation.jogl.JoGLCanvas.display(Unknown
> Source)
>   at

Re: [Scilab-users] scilab 6.1 and ubuntu 20.04 no graphics ?

2021-07-07 Thread philippe
Le 07/07/2021 à 14:37, Stéphane Mottelet a écrit :
> Hi,
> 
> Please launch Scilab from the command line and give the (java) errors.

I've started scilab from command line (no errors in console)
then launched the command "plot()" in the scilab console and get the
erros reported at the end of this message.

> However, AFAIK the ubuntu package is not supposed to work, please use
> the official .tar.gz archive from www.scilab.org

of course that's what I've done before sending my message.

Thanks for your reply
Philippe

*errors after "plot()" command*
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException:
Caught GLException: Not a GL2 implementation on thread AWT-EventQueue-0
at javax.media.opengl.GLException.newGLException(GLException.java:75)
at 
jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
at
javax.media.opengl.awt.GLJPanel$OffscreenBackend.doPaintComponent(GLJPanel.java:2024)
at javax.media.opengl.awt.GLJPanel.paintComponent(GLJPanel.java:569)
at javax.swing.JComponent.paint(JComponent.java:1056)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JViewport.paint(JViewport.java:728)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
at
javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
at 
javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
at
javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: javax.media.opengl.GLException: Not a GL2 implementation
at jogamp.opengl.gl4.GL4bcImpl.getGL2(GL4bcImpl.java:37071)
at
org.scilab.forge.scirenderer.implementation.jogl.JoGLCanvas.getGl(Unknown 
Source)
at
org.scilab.forge.scirenderer.implementation.jogl.JoGLCanvas.display(Unknown
Source)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:690)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:672)
at javax.media.opengl.awt.GLJPanel$Updater.display(GLJPanel.java:1408)
at javax.media.opengl.awt.GLJPanel$9.run(GLJPanel.java:1483)
at 
jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
... 42 more
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException:
Caught GLException: Not a GL2 implementation on thread AWT-EventQueue-0
 

[Scilab-users] scilab 6.1 and ubuntu 20.04 no graphics ?

2021-07-07 Thread philippe
Hi to all,

I've just upgraded from ubuntu 18.04 to 20.04, then I started scilab
without problems but I can't obtain any graphics :

=> plot() or surf() open a withe graphic window with no display (but
gcf() is okay )
=> graphic window is never dockable (but dockable="on" in gcf() )

I've reinstalled the last scilab version but I get the same problem. I
can't find informations about such a bug , have you any idea about this ?
Best regards,
Philippe


Version information
"Version de Scilab : 6.1.0.1582621796"

"Système d'exploitation : Linux 5.4.0-77-generic"

"Version Java : 1.8.0_151"

"Informations sur l'environnement d'exécution Java : Java(TM) SE Runtime
Environment (build 1.8.0_151-b12)"
"Informations sur la machine virtuelle Java : Java HotSpot(TM) 64-Bit
Server VM (build 25.151-b12, mixed mode)"
"Spécifications du fabricant : Oracle Corporation"

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] density in a graph

2020-01-27 Thread Jean-Philippe Grivet

P M, Claus, Antoine, Christophe; Federico:

Thank you  all fior your multifaceted and interesting suggestions. A 
special mention to Christophe: the pages on the SVG format are extremely 
clear; in my opinion, they deserve a wide audience and should be 
translated in English.


I now understand that I should have described my ultimate goal, even 
though it is somewhat complicated.. My aim is to emulate image 
reconstruction in X-ray tomography. In the simplest reconstruction 
algorithm,  back projection, one must darken the image plane 
proportional to the value  of  a "projection" of the object, for each 
projection direction (at least 128 in all). These "darkenings"  must add 
everywhere in the image plane. A sketch of this process is shown in the 
attached figure.


I have found two other possible approaches. In thee book by Michel 
Goossens et al (the Latex graphics companion) there appears (pp 257-258) 
a Latex program that emulates transparency. To use this , I would have 
to read into pstricks the coordinates of the various rectangles, which 
seems possible. Moreover, I have read that PDF supports transparency, 
though I have no idea how this fact could be exploited in Scilab.


I have quie a lot of home work to do! Thank you again for your help.

JP Grivet



scanner.pdf
Description: Adobe PDF document
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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

2020-01-24 Thread Jean-Philippe Grivet

Le 23/01/2020 à 21:27, P M a écrit :

something like this...only in gray?
test.png

Am Do., 23. Jan. 2020 um 19:08 Uhr schrieb Antoine Monmayrant 
mailto:amonm...@laas.fr>>:


Hello Jean-Philippe,

I think I understand what you want to do, but there is no easy way
to get this in scilab.
The main issue is that scilab does not support transparency.
Otherwise, you could just plot your lines in black with 1/32 alpha
(or 255/32 alpha if 0 means transparent and 255 solid color).
For this kind of plot, I usually plot everything in scilab with a
dummy color (let's say blue), export in svg, edit the svg to
replace the dummy color by the transparent one.

Antoine


Le Jeudi, Janvier 23, 2020 16:35 CET, Jean-Philippe Grivet
mailto:jean-philippe.gri...@wanadoo.fr>> a écrit:

> Dear all,
>
> I am drawing a graph in a gray scale (say from 1 to 32), using
lines of
> different density. I would like that, in the region of
intersection of
> two lines, the shade of gray be the sum of the densities of each
line.
> How can I manage that ?
>
> Thanks in advance for any hint
>
> JP Grivet
>
>
> ___
> users mailing list
> users@lists.scilab.org <mailto:users@lists.scilab.org>
> http://lists.scilab.org/mailman/listinfo/users
>

___
users mailing list
users@lists.scilab.org <mailto:users@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


You understood perfectly, although my goal is simpler: instead of a 
blend of colors I look for a sum of densities.


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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

2020-01-24 Thread Jean-Philippe Grivet

Le 23/01/2020 à 19:07, Antoine Monmayrant a écrit :

Hello Jean-Philippe,

I think I understand what you want to do, but there is no easy way to get this 
in scilab.
The main issue is that scilab does not support transparency.
Otherwise, you could just plot your lines in black with 1/32 alpha (or 255/32 
alpha if 0 means transparent and 255 solid color).
For this kind of plot, I usually plot everything in scilab with a dummy color 
(let's say blue), export in svg, edit the svg to replace the dummy color by the 
transparent one.

Antoine
  
  
Le Jeudi, Janvier 23, 2020 16:35 CET, Jean-Philippe Grivet  a écrit:
  

Dear all,

I am drawing a graph in a gray scale (say from 1 to 32), using lines of
different density. I would like that, in the region of intersection of
two lines, the shade of gray be the sum of the densities of each line.
How can I manage that ?

Thanks in advance for any hint

JP Grivet


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


___
users mailing list
users@lists.scilab.org


Thank you Antoine; I am not famo=iliar with the SVG format, but I will 
investigate.


JP Grivet

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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

2020-01-23 Thread Jean-Philippe Grivet

Le 23/01/2020 à 17:24, Dang Ngoc Chan, Christophe a écrit :

Hello,


De : Jean-Philippe Grivet
Envoyé : jeudi 23 janvier 2020 16:36

I am drawing a graph in a gray scale (say from 1 to 32), using lines of 
different
density. I would like that, in the region of intersection of two lines, the 
shade
of gray be the sum of the densities of each line.
How can I manage that ?

I'm affraid I can't figure out what you're trying to do.

Maybe a small drawing or a small sample of data?

Do you have lines with a linear density and try to draw a surface density or?

--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Sorry that I haven't been clear enough. Suppose that I want to draw a 
figure X made up of two strips. Strip 1 (SW_NE) has gray level 3; strip 
2 (NW-SE) is drawn at gray level 7. The region of overlap of these 
strips (roughly a parallelogram) should display a density of 7 (darker 
than either strip). Is that possible within Scilab ?


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] density in a graph

2020-01-23 Thread Jean-Philippe Grivet

Dear all,

I am drawing a graph in a gray scale (say from 1 to 32), using lines of 
different density. I would like that, in the region of intersection of 
two lines, the shade of gray be the sum of the densities of each line. 
How can I manage that ?


Thanks in advance for any hint

JP Grivet


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] strange behaviof of function isreal

2019-11-13 Thread Jean-Philippe Grivet

Hello,
I have stumbled upon the following strange behavior of function "isreal" 
(Scilab 6.02, win7):


--> z = [1,2,3*%i]
 z  =
   1.   2.   3.i
--> isreal(z(1))
 ans  =
  F
What did I miss ? Rhank you for your help.

J.-P. Grivet

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] problem when loading Coselica help in scilab-6.0.02

2019-10-03 Thread philippe

Hi,

there is a problem loading the man pages for Coselica with scilab-6.0.2 
(see the error message below) and it's not possible to load man pages 
from other toolboxes after loading coselica. A workaround is to deselect 
coselica auto-loading from Atoms, after restart I can load help of other 
toolboxes.


Best regards,
Philippe.

Could not load file: 
/usr/share/scilab-6.0.2/share/scilab/contrib/coselica/0.6.6/jar/scilab_en_US_help.jar. 
Please check its contents, must be a Java Help file.

Error message: Could not parse
Got an IOException (JAR entry scilab_en_US_help/jhelpset.hs not found in 
/usr/share/scilab-6.0.2/share/scilab/contrib/coselica/0.6.6/jar/scilab_en_US_help.jar)

Parsing failed for null

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Spam in Scilab Forge

2019-08-10 Thread philippe

Le 03/08/2019 à 20:17, Nikolay Strelkov a écrit :

Dear Scilab Forge admins!

It seems that the Scilab Forge site suffers from spam attacks.
Recently I have received 28 e-mails from the Scilab Forge site.
The e-mails were sent from bufferblock issue tracker - 
http://forge.scilab.org/index.php/p/bufferblock/issues/1483/ .

There are other trackers with spam activity.


this is note the only one , ticket interface of other "abandoned" 
projects are used by spamers :


* http://forge.scilab.org/index.php/p/metanet/issues/
* http://forge.scilab.org/index.php/p/scimax/issues/949/



Please consider to check security status of Scilab Forge.
It seems to be vulnerable for illegal new user registrations and maybe 
something similar.


the maintainer of each project should suppress those messages from 
issues (?) but they probably  stopped working on these projects ...


Best regards,
Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] test_run failed: Slave Scilab exited with error code 127

2019-08-06 Thread philippe

Le 06/08/2019 à 15:38, Samuel Gougeon a écrit :

Le 06/08/2019 à 15:03, philippe a écrit :


the line 811 should be replaced with something like :

SCI_path=strsplit(SCI,'/');SCI_BIN = strcat(SCI_path(1:$-2),'/');

but this modification freeze scilab when launching test_run although 
running "/usr/share/scilab-6.0.2/bin/scilab -nwni  -nb -quit --timeout 
15m  -f /tmp/SCI_TMP_32597_VRKa5r/Sand.tst"  from a terminal is ok ...?


Have you checked that this is *actually* the run command, with the same 
disp spy instruction?


yes I copied the command from scilab terminal (frozen)  and ran it in 
another terminal (bash).



If yes, then there may be 2 another bug after the first one.
>


Thanks a lot Samuel for the help, do you want me to add a bug report ?



Yes please. It will need your contribution to test and valid the solution.
It will be hard (and heavy) to get a specific scilab installation to 
test the patch.


bug 16168 :

http://bugzilla.scilab.org/show_bug.cgi?id=16168

best regards
Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] test_run failed: Slave Scilab exited with error code 127

2019-08-06 Thread philippe

Le 06/08/2019 à 15:44, Samuel Gougeon a écrit :




So, shouldn't the command line be
/usr/share/scilab-6.0.2/share/scilab/bin/scilab
intead of
/usr/share/scilab-6.0.2/bin/scilab
that you mention earlier?

Could you confirm please?




for ubuntu 18.04 current scilab version is 6.0.1  so I've donwloaded 
scilab-6.0.2.bin.linux-x86_64.tar.gz from scilab website and


gunzip  scilab-6.0.2.bin.linux-x86_64.tar.gz
tar -xvf scilab-6.0.2.bin.linux-x86_64.tar
mv scilab-6.0.2/ /usr/share/

the structure of /usr/share/scilab/ and /usr/share/scilab-6.0.2/  is 
different


$ls /usr/share/scilab/ /usr/share/scilab-6.0.2/
/usr/share/scilab/:
ACKNOWLEDGEMENTS  contrib  COPYING-BSD  etc  modules  tools  Version.incl

/usr/share/scilab-6.0.2/:
ACKNOWLEDGEMENTS  bin  CHANGES.md  COPYING  include  lib  README.md 
share  thirdparty


scilab-6.0.2 launch command is located in bin/

$ls /usr/share/scilab-6.0.2/bin/
modelicac  modelicat  scilab  scilab-adv-cli  scilab-bin  scilab-cli 
scilab-cli-bin  scinotes  xcos  XML2Modelica


Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] test_run failed: Slave Scilab exited with error code 127

2019-08-06 Thread philippe

Le 02/08/2019 à 16:27, Samuel Gougeon a écrit :


In test_run.sci
edit test_run
you may insert
disp(test_cmd)
in absolute line 891, just before launching the slave session with

returnStatus  =  host(test_cmd);

And see what it is.


I've just done this an get :


-> test_run("ast",[],"no_check_ref")
   TMPDIR = /tmp/SCI_TMP_32597_VRKa5r

 Module  001/001 - [ast] :

 001/154 - [ast] Sand.
 (   /usr/-6.0.2//bin/scilab -nwni  -nb -quit --timeout 15m  -f 
/tmp/SCI_TMP_32597_VRKa5r/Sand.tst > /tmp/SCI_TMP_32

 597_VRKa5r/Sand.res ) 2> /tmp/SCI_TMP_32597_VRKa5r/Sand.er


the command line "/usr/-6.0.2//bin/scilab"  should be instead :
/usr/share/scilab-6.0.2/bin/scilab

the problem seems to come from line 811

if (getos() <> "Windows") & ~isfile(SCI+"/bin/scilab") then
SCI_BIN = strsubst(SCI,"share/scilab","");//<---line 811
else
SCI_BIN = SCI;
end

there is two occurrences of "share/scilab" in the path so the 
substitution is not valid :



--> SCI
 SCI  =

 /usr/share/scilab-6.0.2/share/scilab

the line 811 should be replaced with something like :

SCI_path=strsplit(SCI,'/');SCI_BIN = strcat(SCI_path(1:$-2),'/');

but this modification freeze scilab when launching test_run although 
running "/usr/share/scilab-6.0.2/bin/scilab -nwni  -nb -quit --timeout 
15m  -f /tmp/SCI_TMP_32597_VRKa5r/Sand.tst"  from a terminal is ok ...?


Thanks a lot Samuel for the help, do you want me to add a bug report ?

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] test_run failed: Slave Scilab exited with error code 127

2019-08-02 Thread philippe

Le 01/08/2019 à 23:28, Samuel Gougeon a écrit :

Le 01/08/2019 à 22:49, Samuel Gougeon a écrit :

Le 01/08/2019 à 22:16, philippe a écrit :

...

no all tests fail (excepts those who are skipped automatically) :



This could come from an autoloaded ATOMS module, if any.


this happened on a "fresh install" so with no ATOMS module loaded.

You may try canceling the autoloading of all your installed modules, 
and then rerun test_run.


I used AtomsQuit()  and rerun test_run  but that has no effect.




Reported as bug 16161 
<http://bugzilla.scilab.org/show_bug.cgi?id=16161>. Thanks for this 
opportunity to improve test_run().



Thanks samuel!

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] test_run failed: Slave Scilab exited with error code 127

2019-08-02 Thread philippe

Le 01/08/2019 à 22:29, Samuel Gougeon a écrit :


Sorry for you. I can't reproduce on Win7.
You may search to which issue the exit code 127 (coming from the shell 
of your OS) corresponds.


on linux error code 127 should stand for  "command not found"



In addition,  do the tests pass when you exec() them (for instance from 
Scinotes) ?


yes I can execute *.tst files without errors

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] test_run failed: Slave Scilab exited with error code 127

2019-08-01 Thread philippe

Le 01/08/2019 à 18:19, Samuel Gougeon a écrit :


Yes, it's a bad start, but it's just for the api_scilab module 
(unfortunately it's the first tested one :/)

Just try with the next one:
test_run("ast",[],"no_check_ref")



no all tests fail (excepts those who are skipped automatically) :


--> test_run("ast",[],"no_check_ref")
   TMPDIR = /tmp/SCI_TMP_20383_fZszyE

 Module  001/001 - [ast] :

   001/154 - [ast] Sand.failed: 
Slave Scilab exited with error code 127
   002/154 - [ast] Sor..failed: 
Slave Scilab exited with error code 127
   003/154 - [ast] addition.failed: 
Slave Scilab exited with error code 127
   004/154 - [ast] addition_output_type.failed: 
Slave Scilab exited with error code 127
   005/154 - [ast] analysis1failed: 
Slave Scilab exited with error code 127
   006/154 - [ast] 
analysis2skipped: not yet fixed






--
   Summary

   tests150 - 100 %
   passed 0 -   0 %
   failed   150 - 100 %
   skipped4
   length 6.18 sec

--
   Details



   TEST : [ast] Sand
   failed: Slave Scilab exited with error code 127


   TEST : [ast] Sor
   failed: Slave Scilab exited with error code 127


   TEST : [ast] addition
   failed: Slave Scilab exited with error code 127


   TEST : [ast] addition_output_type
   failed: Slave Scilab exited with error code 127


   TEST : [ast] analysis1
   failed: Slave Scilab exited with error code 127




fresh install of scilab-6.0.2  on ubuntu 18.04 :


Version de Scilab : 6.0.1.1550134035 <=supposed to be scilab-6.0.2!
Système d'exploitation : Linux 4.15.0-1045-oem
Version Java : 1.8.0_151
Informations sur l'environnement d'exécution Java : Java(TM) SE Runtime 
Environment (build 1.8.0_151-b12)
Informations sur la machine virtuelle Java : Java HotSpot(TM) 64-Bit 
Server VM (build 25.151-b12, mixed mode)

Spécifications du fabricant : Oracle Corporation

but fortunately uman looks to work now ;-)

Best regards
Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] test_run failed: Slave Scilab exited with error code 127

2019-08-01 Thread philippe

Hi,

I've just move to a new laptop and I try to rebuild toolboxes I've 
created for scilab-6.0.2, every thing looks fine except that all unit 
tests fail ! I realize that in fact ALL SCILAB unit tests fail  with the 
same error message :



--> test_run([],[],'no_check_ref')
   TMPDIR = /tmp/SCI_TMP_7851_f13kzL

 Module  001/074 - [action_binding] :


 Module  002/074 - [api_scilab] :

   001/053 - [api_scilab] booleanExamplefailed: 
Slave Scilab exited with error code 127
   002/053 - [api_scilab] booleanSparseExample..failed: 
Slave Scilab exited with error code 127
   003/053 - [api_scilab] boolean_writing_api...failed: 
Slave Scilab exited with error code 127
   004/053 - [api_scilab] calloverloadfunction_api..failed: 
Slave Scilab exited with error code 127
   005/053 - [api_scilab] check_matrix_dimensionfailed: 
Slave Scilab exited with error code 127
   006/053 - [api_scilab] common_function...failed: 
Slave Scilab exited with error code 127
   007/053 - [api_scilab] common_list_api...failed: 
Slave Scilab exited with error code 127



Can someone tell me What is wrong here ?

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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

2019-06-07 Thread Jean-Philippe Grivet

Hello Philipp,

Thank you for your program, it looks like it would do exactly what I 
wanted. However (as I should have stressed before) I work under win7. In 
this environment, the only image processing toolbox is IPCV in which 
several functions are lacking, namely


    scicv_Init(); matplot(); Mat_cols_get(); Mat_rows_get()

Further, in my case, img appears as a matrix of booleans (?).

I will try to download SIVP and determine the role of these functions.

Thank you,again

Jean-Philippe


---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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

2019-06-05 Thread Jean-Philippe Grivet

Hello,

I am mainly interested in obtaining the ratio (number of white 
pixels)/(number of black pixels), so that units are not of primary interest.


Le 03/06/2019 à 15:21, Stéphane Mottelet a écrit :

Le 03/06/2019 à 14:56, Jean-Philippe Grivet a écrit :

My thanks to all respondants.

The figure is in internal Scilab firmat made up of polylines., the 
border is a polygon.
you did not say if you want to compute a surface in current units or 
really compute a surface in pixels



Le 03/06/2019 à 12:47, Dang Ngoc Chan, Christophe a écrit :

Hello,


De : Jean-Philippe Grivet
Envoyé : lundi 3 juin 2019 12:08

Using Scilab (6.02/Win7), I have drawn a picure made up of thick 
lines and

arcs, within a region with irregular borders.

What is the data structure of your picture?
A matrix of dots?
A Scilab figure containing polylines?

--
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@lists.scilab.org
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users 



---
L'absence de virus dans ce courrier électronique a été vérifiée par 
le logiciel antivirus Avast.
https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.avast.com/antivirus 



___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users 






---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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

2019-06-03 Thread Jean-Philippe Grivet

My thanks to all respondants.

The figure is in internal Scilab firmat made up of polylines., the 
border is a polygon.



Le 03/06/2019 à 12:47, Dang Ngoc Chan, Christophe a écrit :

Hello,


De : Jean-Philippe Grivet
Envoyé : lundi 3 juin 2019 12:08

Using Scilab (6.02/Win7), I have drawn a picure made up of thick lines and
arcs, within a region with irregular borders.

What is the data structure of your picture?
A matrix of dots?
A Scilab figure containing polylines?

--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] How to count pixels

2019-06-03 Thread Jean-Philippe Grivet

Hello everybody,

Using Scilab (6.02/Win7), I have drawn a picure made up of thick lines 
and arcs, within a region with irregular borders. The backround is 
white, all lines are black. Now I would like to count the number of 
black and white pixels. Any idea on how I could do that ?


Thank you for your help

JP Grivet



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] toolbox help page : no "calling sequence generated

2019-05-07 Thread philippe
Le 06/05/2019 à 03:49, Samuel Gougeon a écrit :
> 
> Yes it's "Syntax" ; it is documented:
> https://help.scilab.org/docs/6.0.2/en_US/help_from_sci.html ; and for me
> it works for your sample function.

thanks Samuel, it works fine now (I don't what happened at first try).

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] toolbox help page : no "calling sequence generated

2019-05-05 Thread philippe
Hi,

I made a toolbox for my personal macros, all macros are pure scilab
function, the man pages are described as comments at the beginning of
each macro (see below) and are proceeded with help_from_sci. The toolbox
was designed with scilab5, running the builder.sce in scilab6 looks ok
but the "Calling Sequence" part isn't proceeded? I suppose the tag has
changed but I can't find it in the documentation  (it may be "Syntax"
but doesn't work?!?)

any clue for this problem ?

Philippe

%%  structure of macros in my toolbox %%

function [str]=contribute_MyMath(varargin)
// MyMath
//
// Calling Sequence
//   [str]=contribute_MyMath([x[,y]])
//
// Parameters
//  x,y: scilab variables
//  str: string
//
// Description
// a "function skeleton" to contribute to MyMath toolbox :
//
// Examples
// contribute_MyMath()  // basic usage
// contribute_MyMath('example') // how to use optional parameters
// contribute_MyMath(1,2)
//
// See also
//  MyMath
//
    // Authors
//  Philippe Roux
//

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Help on LaTeX rendering for xstring

2019-04-17 Thread philippe
Hi,

Le 08/04/2019 à 22:08, Federico Miyara a écrit :
> 
> Dear all,
> 
> Is there some way to customize the font size when using xstring?
> 
> For instance
> 
> xstring(0, 0, "$\large p_{1}(t)$")

xstring generate graphic entities of type "Text" which have a
"font_size" property (can vary from 1 to 6) so the easiest way is to get
the handle of this entity and modify the font size :

xstring(0, 0, "$p_{1}(t)$")
E=gce();E.font_size=5

Cheers,
Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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

2019-04-16 Thread philippe
Le 16/04/2019 à 16:49, Samuel Gougeon a écrit :
> 
> 
> Have you tried fec()? 

It looks promising to replace surf in my problem, but is there an easy
way to convert meshgrid output to a triangulation?



> As with plot3d() (seen from gca().rotation_angles(1)=0), 
> isn't colors interpolation the same as smoothing?

I think yes , at least as final rendering.


Cheers
Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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

2019-04-16 Thread philippe
Le 16/04/2019 à 16:16, Dang Ngoc Chan, Christophe a écrit :
>
> Just a quick idea:
> have you considered using interp2d() 

at first look yes but interp2d() use the output of spline2d(x,y,z) where
x and y should be vectors which is a "regular grid"  After a
Joukowski transform the regular grid is transformed like this :

https://photos.app.goo.gl/1rqWtyhYUCaofrme6


> or linear_interpn() to get values on a regular grid?

looks like I search for the reverse function !

tanks for your reply,
Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] LaTeX strings in scilab plot : \includegraphics & paperwidth

2019-04-16 Thread philippe
Le 04/04/2019 à 13:10, Antoine Monmayrant a écrit :
> 
> 
> I suppose the "\the" construct is not supported by jlatexmath...

no it's not supported, LaTeX rendering is generated so that the result
correspond to a certain font_size, this property  can be set somewhere
in scilab handle hierarchy .

> Any idea?

you can change the font_size of all strings appearing in the current
axes by adding "a.font_size=..." at the end of your example.

scf();
plot(1:10,1:10)
a=gca()
xt=a.x_ticks
nxt=xt;
nxt.labels(5)="$\the\paperwidth$";
a.x_ticks=nxt;
a.font_size=5;// bigger!

Cheers,
Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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

2019-04-16 Thread philippe
hi to all,

I realized that scilab function "Sgrayplot" (and other 2D plotting
functions like "champ") only accept "regular grids" that is
Sgrayplot(X,Y,Z) requires

size(Z)=length(X)xlength(Y)

while "surf" also accept non-regular ones with

size(Z)=size(X)=size(Y)

this pose substantial problems in some plots, compared to matlab/octave
behaviors, and it would be a nice feature that Sgrayplot and others
accept non-regular grid in the same way as "surf".

My problem started when I needed to plot a vector field "above"  a gray
plot, the usual way to do this is straight and simple :

dt=0.1;t=-1:dt:1;
[X,Y]=meshgrid(t,t);
Z=X.^2-Y.^2;// potential field
Vx=X;Vy=Y;//vector field
clf;
Sgrayplot(t,t,Z')
champ(t,t,Vx',Vy')// simple ... except the ' on Z,Vx,Vy :-)

but I need to do this for Z,Vx,Vy corresponding to a non-regular grid
(It comes from a Joukowski transform for those who want to know) so I
can't use anymore Sgrayplot/champ  and I try to replace them with
surf/xarrows

dt=0.1;t=-1:dt:1;
[X,Y]=meshgrid(t,t);//  <== in real life X,Y are non-regular
Z=X.^2-Y.^2;// potential field
Vx=X;Vy=Y;//vector field
clf;
// let's try to simulate Sgrayplot
surf(X,Y,Z);E=gce();E.thickness=0;E.color_flag=3;
A=gca();A.rotation_angles=[0,90];
// horrible hack to replace "champ"
xarrows([X(:)';X(:)'+dt*Vx(:)'],[Y(:)';Y(:)'+dt*Vy(:)'],[Z(:)';dt+Z(:)'],1)

If you compare both plot the second method isn't satisfying, because
vectors can be hidden by the surface (and code is complex!).

Can someone provide a work-arround to improve the result since changing
the specification of Sgrayplot/champ can't be done quickly.

sincerely yours,
Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] scilab crash after bad line descriptor in plot

2019-02-23 Thread philippe
Hi,

scilab freezes when I execute the plot command :

plot(x,y,'---k')

with the obviously wrong  third argument(line descriptor). After killing
scilab process I get this message in the console :



scilab-bin: malloc.c:4023: _int_malloc: Assertion `(unsigned long)
(size) >= (unsigned long) (nb)' failed.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x7f205e4debd1, pid=30870, tid=0x7f200f1f5700
#
# JRE version: OpenJDK Runtime Environment (8.0_191-b12) (build
1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
# Java VM: OpenJDK 64-Bit Server VM (25.191-b12 mixed mode linux-amd64
compressed oops)
# Problematic frame:
# V  [libjvm.so+0x693bd1]
#
# Failed to write core dump. Core dumps have been disabled. To enable
core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/roux/Documents/ENSSAT/cours/signal/interro/DS/hs_err_pid30870.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#


It looks bad that a simple typo error crash scilab like this! Should I
make a bug report ?This happened with scilab 6.0.1  and ubuntu 18.04 :

Version de Scilab : 6.0.1.1518683525
Système d'exploitation : Linux 4.15.0-45-generic
Version Java : 1.8.0_191
Informations sur l'environnement d'exécution Java : OpenJDK Runtime
Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
Informations sur la machine virtuelle Java : OpenJDK 64-Bit Server VM
(build 25.191-b12, mixed mode)
Spécifications du fabricant : Oracle Corporation

sincerely yours,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to Install SCILAB 5.5.2 on Ubuntu 18.04

2018-10-25 Thread philippe
Hi,

Le 18/10/2018 à 13:23, Samuel Enibe a écrit :
> I have installed SCILAB 6.0.1 on Ubuntu 18.04 but it is experiencing so
> many problems. One of these is the inability to Install modules from ATOMS. 

Each time there is a major upgrade the first versions scilab-*.0.* have
always been bugged and waited toolboxes upgrade for a long time. It's
probably normal for a major upgrade and we have to wait for scilab-6.1.0
release to get something more stable.

> 
> To circumvent this problem, I downloaded the binary version of 5.5.2 and
> installed it using the instructions on SCILAB wiki. Unfortunately, the
> installation does not work at all. 

On the contrary to other major upgrades that's the first time I face the
impossibility to downgrade to older version of scilab. It's a big
problem for me too.
> 
> Is there another way of doing the installation of 5.5.2?

the only way I found is to install the windows binaries on linux with wine :

wine scilab-5.5.2_x64.exe

and then launch scilab with the command line :

wine ~/.wine/drive_c/Program Files/scilab-5.5.2/bin/WScilex.exe

It looks to work until you don't need to increase stacksize.

Best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] bug in scilab histplot normalization

2018-10-24 Thread philippe
Hi to all

the histograms from histplot looks to have a bad normalization  in
scilab 6.0.1 (ubuntu 18.04) , see :

http://bugzilla.scilab.org/show_bug.cgi?id=15832

the images in the help page for histplot show the problem even on scilab
website :

https://help.scilab.org/docs/6.0.1/fr_FR/histplot.html

just run the example #3 to confirm :

lambda = 2;
X = grand(10,1,"exp", 1/lambda);
Xmax = max(X);
clf()
histplot(40, X, style=2)
x = linspace(0,max(Xmax),100)';
plot2d(x,lambda*exp(-lambda*x),strf="000",style=5)
legend(["exponential random sample histogram" "exact density curve"]);


best regards,
Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] metanet for scilab 6.0.1 ?

2018-09-27 Thread philippe
Le 26/09/2018 à 17:11, Arvid Rosén a écrit :
> Hi,
> 
> Yeah, I know the pain. We had to do exactly that when metanet was
> dropped from being part of scilab. Actually, it wasn’t quite as bad as I
> first thought, but NARVAL changed a couple of times initially, which was
> annoying. However, the functionality (that we use) is exactly the same
> as metanat. 

there was another solution : using scicoslab to run old metanet code! Up
to 2014 it worked for me . Please don't kill me !

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] metanet for scilab 6.0.1 ?

2018-09-26 Thread philippe
Hi,

Le 24/09/2018 à 11:20, Arvid Rosén a écrit :
> Hi,
> 
> I use the NARVAL package in scilab 6. I think it is basically the same as the 
> old metanet stuff. It is not supported directly though, and I believe I had 
> to do some hacking to get it working.
> 
> 

Yes I remember a presentation of NARVAL, but I would like to refactorize
a lot of old scilab code created with  metanet for scilab4. This is
possible with few work with a new version of metanet, but not with NARVAL.

Best regards,

Philippe.

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] metanet for scilab 6.0.1 ?

2018-09-21 Thread philippe
Le 21/09/2018 à 14:31, Stéphane Mottelet a écrit :
> 
> After looking at the final lines of the log, I have the feeling that the
> low-level gateway still uses the stack. This could explains why it does
> not compile with Scilab 6.0.1.

yes that's what I get, all fortran files in :

metanet-master/sci_gateway/fortran/

have the line :  include 'stack.h'

but the toolbox call sci_malloc.h  in many other files, which the new
api for scilab6 (introduced since scilab 5.3?).

So do you think that removing  the line "include 'stack.h' " from all
*.f files while solve the problem ?

Best regards

Philippe




___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] metanet for scilab 6.0.1 ?

2018-09-21 Thread philippe
Hi,

is there any metanet user here ? I would like to install metanet in
scilab 6.0.1, I tried to compile master branch from scilab-forge but it
fails , see :

http://forge.scilab.org/index.php/p/metanet/issues/1772/#preview

metanet has been bugged from a long time but problems where solved
recently in scilab 5.5.*  so it's a shame to see it again bugged :-\

Best regards,

Philippe


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread philippe
Le 19/09/2018 à 09:03, amonm...@laas.fr a écrit :
> Le 18/09/2018 à 20:53, Stéphane Mottelet a écrit :
>> and for int/int ?
> For me, this should be int, to be consistent with most of the languages
> I use.
> So 3.0/4.0=0.75 but 3/4=0.
> But maybe getting a rational would make more sense?

I agree, I would expect the quotient  of Euclidian division in this case.

Best Regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-18 Thread philippe
Le 17/09/2018 à 19:03, Stéphane Mottelet a écrit :
> 
> Do I have to conclude that the implementation is currently so incoherent
> that *nobody* uses integer types in Scilab (other than Scilab code
> itself) ?

it's a new feature, I would have like to use it  before ... I've build
my own solution and now I just need time replace it with int64.

For mixed int/double expression I expect to get the best floating point
approximation as a result.


Best regards,

Philippe


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Division of uint8 matrix by a double matrix => segfault in scilab-branch-6.0 ?

2018-09-10 Thread philippe
Le 10/09/2018 à 14:35, antoine.monmayr...@laas.fr a
écrit :
> a=uint8(rand(2,2)*255);
> b=rand(2,2);
> //let's be sure not to divide by 0
> while or(b==0)
>     b=rand(2,2);
> end
> //adios amigo: Segmentation fault (core dumped)
> a./b


I confirm scilab crash while executing this code in scilab-6.0.1  and
ubuntu 18.04, in the console I have message about  floating point
exception and divide-by-zero*.

Best regards

Philippe

* from console :

Une erreur fatale a été détectée par Scilab.
Veuillez vérifier les fonctions définies par l'utilisateur (ou celles
des modules externes), elles devraient apparaître dans le suivi de la pile.
Ou sinon, vous pouvez reporter un bug sur http://bugzilla.scilab.org/ avec :
  * un simple code qui reproduit le problème
  * le résultat de [a, b] = getdebuginfo()
  * l'information suivante :
[jenny-a-03:10145] Signal: Exception en point flottant (8)
[jenny-a-03:10145] Signal code: Integer divide-by-zero (1)
[jenny-a-03:10145] Failing at address: 0x7f7f744a0293

Pile d'appel :
   1: 0x8f260b 
(/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
   2: 0x8e5318 < >
(/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
   3: 0x12890  < >
(/lib/x86_64-linux-gnu/libpthread.so.0)
   4: 0x357293 , types::Double, types::Int >(types::Int*, types::Double*)> (/usr/lib/scilab/libsciast.so.6)
   5: 0x3349f6  (/usr/lib/scilab/libsciast.so.6)
   6: 0x191dfb
::visitprivate(ast::OpExp const&)>
(/usr/lib/scilab/libsciast.so.6)
   7: 0x1be9ff
::visitprivate(ast::SeqExp const&)>
(/usr/lib/scilab/libsciast.so.6)
   8: 0x1a17c2 
(/usr/lib/scilab/libscilab-cli.so.6)
   9: 0x19a52a 
(/usr/lib/scilab/libscilab-cli.so.6)
  10: 0x19ac  (/usr/bin/scilab-bin)
  11: 0x21b97  <__libc_start_main>
(/lib/x86_64-linux-gnu/libc.so.6)
  12: 0x24ca   < >  (/usr/bin/scilab-bin)
Fin de la pile



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] arduino toolbox: now available for Scilab 6.0

2018-09-10 Thread philippe
Le 08/09/2018 à 19:53, Samuel Gougeon a écrit :
> 
> The portage to Linux (already available) shall be soon included in the
> toolbox.
> http://forge.scilab.org/index.php/p/arduino/issues/1556/

good news Samuel !

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab 6.0.1 crashes with printf command

2018-09-03 Thread philippe
Le 03/09/2018 à 22:30, Rafael Guerra a écrit :
> Dear Scilabers,
> 
> Any clues on why the following command totally crashes Scilab 6.0.1 on Win7:
> --> printf("A = B ./(C+%%eps)   (to avoid division by 0)\n");


first note that printf is obsolete in scilab-6.0.0 and will be removed
in scilab-6.1.0. But I confirm this the same behavior  with mprintf and
scilab-6.0.1 in ubuntu 18.04.1. Additional console message below if this
can help.

Best regards,

Philippe

Une erreur fatale a été détectée par Scilab.
Veuillez vérifier les fonctions définies par l'utilisateur (ou celles
des modules externes), elles devraient apparaître dans le suivi de la pile.
Ou sinon, vous pouvez reporter un bug sur http://bugzilla.scilab.org/ avec :
  * un simple code qui reproduit le problème
  * le résultat de [a, b] = getdebuginfo()
  * l'information suivante :
[jenny-a-03:05851] Signal: Erreur de segmentation (11)
[jenny-a-03:05851] Signal code:  (128)
[jenny-a-03:05851] Failing at address: (nil)

Pile d'appel :
   1: 0x8f260b 
(/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
   2: 0x8e5318 < >
(/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
   3: 0x12890  < >
(/lib/x86_64-linux-gnu/libpthread.so.0)
   4: 0x387b9c , std::allocator > const&, wchar_t const*,
std::vector
>&, int*, int*)> (/usr/lib/scilab/libscilab-cli.so.6)
   5: 0x37c2cb  >&, int,
std::vector
>&)> (/usr/lib/scilab/libscilab-cli.so.6)
   6: 0x48be3a
 >&,
std::unordered_map, std::allocator >,
types::InternalType*, std::hash
(/usr/lib/scilab/libsciast.so.6)
   7: 0x1c23fd
::visitprivate(ast::CallExp const&)>
(/usr/lib/scilab/libsciast.so.6)
   8: 0x1be9ff
::visitprivate(ast::SeqExp const&)>
(/usr/lib/scilab/libsciast.so.6)
   9: 0x1a17c2 
(/usr/lib/scilab/libscilab-cli.so.6)
  10: 0x19a52a 
(/usr/lib/scilab/libscilab-cli.so.6)
  11: 0x19ac  (/usr/bin/scilab-bin)
  12: 0x21b97  <__libc_start_main>
(/lib/x86_64-linux-gnu/libc.so.6)
  13: 0x24ca   < >  (/usr/bin/scilab-bin)
Fin de la pile


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] diary lost in try/catch statement .

2018-09-03 Thread philippe
Le 03/09/2018 à 12:38, amonm...@laas.fr a écrit :
> Hello,
> 
> As a workaround, if you replace
>     1!=0  // syntax error
> with
>     str="1!=0";
>     evstr(str);
> it seems to work as you expected.

Yes the bug disappear with execstr ? In fact my example wasn't clear
enough, here is a better one showing my problem. I have a script nammed
bugged.sce

disp('let''s make an error')
ieee(0);1/0  // syntax error

//and I want to test it with and auxiliary script :

unix("rm file.txt")// linux only
diary(0)
try diary('file.txt','new');
exec('bugged.sce',3);
diary('file.txt','close');
catch
disp('added to diary')
[str,n,line,func]=lasterror();
printf(" error %d line %d in %s\n error message :\n
%s\n",n,line,func,str)
end
diary('file.txt','close');

//then I get the expected file.txt


--> disp('let''s make an error')

 let's make an error

--> ieee(0);1/0;// syntax error

 added to diary
 error 999 line 0 in exec
 error message :
 Division par zéro...

//now replace bugged.sce with

disp('let''s make an error')
1!=0  // syntax error

//then I get a wrong file file.txt


 added to diary
 error 999 line 4 in
 error message :
 1!=0;// syntax error

because the diary before the error is lost ! The problem occurs only
with "syntax error" :

'l'apostrophe'
1=2
1!=0


not with old errors like :

ieee(0);1/0
rand(2,2)*rand(3,3);
> 
> Anyway, I think the try/catch structure can catch errors occurring at
> runtime (like division by zero, etc ...), but not syntax errors.
> You are supposed to write syntactically correct Scilab!

my goal is to retrieve errors automatically from scripts with bugs (for
example for automatic testing of scripts I didn't wrote myself ) using
lasterror()  in the catch statement.

Best Regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] diary lost in try/catch statement .

2018-09-03 Thread philippe
Hi,

In scilab-5 I used to save console output of script file execution in a
text file with "diary", this seems to fail in scilab-6, for new errors
types recently added (Syntax error, Unexpected token ).  Perhaps I
misunderstood something in try/catch statement , let's consider the file
bug_syntax_error.sce containing :

diary(0)
diary('file.txt','new');
try disp('let''s make an error')
1!=0  // syntax error
catch
disp('added to diary')
end
diary('file.txt','close')


execute this script with CTRL+SHIFT+E  or "exec" will not create file.txt


--> exec('bug_syntax_error.sce', -1)
à la ligne 4 du fichier exécuté bug_syntax_error.sce

1!=0  // syntax error
 ^^
Erreur : Unexpected token '!'

--> mgetl file.txt

mgetl : Impossible d'ouvrir le fichier file.txt.

execute this script from scinotes with CTRL+E will give :


--> diary(0)

--> diary('file.txt','new');

--> try disp('let''s make an error')
  > 1!=0  // syntax error
  > catch
  > disp('added to diary')
  > end
1!=0  // syntax error
 ^^
Erreur : Unexpected token '!'

--> diary('file.txt','close')

--> mgetl file.txt
 ans  =

!  !
!  !
!--> try disp('let''s make an error')  !
!  !
!  > 1!=0  // syntax error !
!  !
!  > catch !
!  !
!  > disp('added to diary')!
!  !
!  > end   !
!  !
!1!=0  // syntax error !
!  !
! ^^   !
!  !
!Erreur : Unexpected token '!' !
!  !
!  !
!  !
!--> diary('file.txt','close') !


I also remark that those new errors (like bad comparisons 1=2  or bad
string delimiters mixing ' and " ) have no localization. This doesn't
happend with "old" errors (which have localization), replacing "1!=0"
with "ieee(0),1/0" I get :

--> exec('bug_syntax_error.sce', -1)

 let's make an error

 added to diary

--> mgetl file.txt
 ans  =

!  !
!  !
! let's make an error  !
!  !
!  !
!  !
! added to diary   !


Best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] slash (/) help page confusing ?

2018-08-30 Thread philippe
Le 30/08/2018 à 10:34, Stéphane Mottelet a écrit :
> in Matlab, dimensions are correctly checked:
> 
>>> 1/[1 2 3]
> Error using  /
> Matrix dimensions must agree.
> 
> Bug created @ http://bugzilla.scilab.org/show_bug.cgi?id=15746

this looks more coherent !

For a column vector A the behavior of 1/A 1./A is now coherent.

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] slash (/) help page confusing ?

2018-08-30 Thread philippe
Le 30/08/2018 à 09:42, Stéphane Mottelet a écrit :
> Le 30/08/2018 à 09:32, philippe a écrit :
>>  
>> [...]
>> but in the help page it is written that "X=A/B is the solution of X*B=A"
> 
> 
> For square A, B, invertible B, "A/B" means "A*inv(B)", hence
> B*(A/B)=B*A*inv(B) cannot be equal to A (matrix product is not commutative)

I know this but for non-square matrices scilab use the opposite
convention, IMHO it's confusing, and the case of a scalar in the help
page doesn't mention this change. the help page should be updated.

Best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] slash (/) help page confusing ?

2018-08-30 Thread philippe
Hi

before scilab6 there was some ambiguity between 1/B=1./B=(1.)/B  since
1. = 1 for floating point real numbers. We can see that this problem is
solved now :


--> B=1:3
 B  =

   1.   2.   3.


--> 1./B
 ans  =

   1.   0.5   0.333


--> 1/B
 ans  =

   0.0714286
   0.1428571
   0.2142857

but in the help page it is written that "X=A/B is the solution of X*B=A"
this false for  A=1  and B=1:3  as you can see :


--> B*(1/B)  // =1 
 ans  =

   1.


--> (1/B)*B  //  should be 1 ?
 ans  =

   0.0714286   0.1428571   0.2142857
   0.1428571   0.2857143   0.4285714
   0.2142857   0.4285714   0.6428571

but this is true for general matrix

--> A=[1 2 ; 3 4]
 A  =

   1.   2.
   3.   4.


--> B=[4 5 ; 6 7]
 B  =

   4.   5.
   6.   7.


--> B*(A/B) // sould be A ?
 ans  =

   17.5  -8.5
   25.5  -12.5


--> (A/B)*B // =A
 ans  =

   1.   2.
   3.   4.


this looks confusing ?

Best regards,
Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] save and *.sod broken in scilab6 ?

2018-08-27 Thread philippe
Le 27/08/2018 à 15:47, antoine monmayrant a écrit :
> 
> 
> 
> and here is the error message in the terminal:
> 
> HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread
> 139709281875840:
>   #000: ../../../src/H5G.c line 553 in H5Gget_info(): invalid argument
>     major: Invalid arguments to routine
>     minor: Bad value


I've the same messages about hdf5 problems.
> 
> It seems to me that something is broken with hdf5 for 6.0.1 under 18.04.
> Philippe, could you report a bug?

it's done : http://bugzilla.scilab.org/show_bug.cgi?id=15738

Best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] save and *.sod broken in scilab6 ?

2018-08-27 Thread philippe
Le 27/08/2018 à 12:24, Samuel Gougeon a écrit :
> Hello Philippe,
> 
> No problem for me.
> You may have used listvarinfile() at a moment during your trials or work.

no Samuel, the file val.sod doesn't exists in the directory, save don't
create the file due to the error.

Perhaps the bug could depend on operating system ?

Best regards,
Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] save and *.sod broken in scilab6 ?

2018-08-27 Thread philippe
Hi,

Running the example of man page for "save" to create an *.sod file
yields an error in scilab-6.0.1 and ubuntu 18.04 (see below) .
It looks like there is no report for this bug on bugzilla ?

Best regards,
Philippe.

-> a=eye(2,2);b=ones(a);

--> save("val.sod", "a", "b");

save : Impossible d'exporter la variable 'a' dans le fichier 'val.sod'.

--> clear a

--> clear b

--> load("val.sod", "a", "b");

load : Impossible d'ouvrir le fichier 'val.sod'.



Version de Scilab : 6.0.1.1518683525
Système d'exploitation : Linux 4.15.0-33-generic
Version Java : 1.8.0_181
Informations sur l'environnement d'exécution Java : OpenJDK Runtime
Environment (build 1.8.0_181-8u181-b13-0ubuntu0.18.04.1-b13)
Informations sur la machine virtuelle Java : OpenJDK 64-Bit Server VM
(build 25.181-b13, mixed mode)
Spécifications du fabricant : Oracle Corporation

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to overload "double" function ?

2018-08-23 Thread philippe
Le 22/08/2018 à 18:36, Samuel Gougeon a écrit :
> 
> So, OK, now i understand it.
> IMO, the 5.5.2 code factorization was welcome. I did not go to the code
> of 6.0.
> Anyway, you may report the issue.

done :  http://bugzilla.scilab.org/show_bug.cgi?id=15722

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to overload "double" function ?

2018-08-22 Thread philippe
Hi Samuel,

Le 22/08/2018 à 11:12, Samuel Gougeon a écrit :
> 
> The overloading mechanism is not systematic. It is implemented (or not)
> function per function.
> It is currently proposed for some of them, but not all of them.
> If you need it for double(), you shall post a wish on Bugzilla.

Thanks Samuel! In fact, I've already overloaded iconvert but I did not
remembered it! Since the error message refers to "double" it is not easy
to remember the correct way for overloading.
> 
> PS: for instance, iconvert(p,0) makes the same as double(), and is
> overloadable:

 That's the problem : it was true in scilab-5  but iconvert seems no
longer overload double in scilab-6. See below :


--> function y=%p_iconvert(x,itype)
  > y="OK"
  >  endfunction

-->  X=poly(0,"x")
 X  =


   x


-->  double(X)

double : Types erronés des arguments d'entrée : entiers, booléens ou
réels attendus.

-->  iconvert(X,0)
 ans  =

 OK


Sincerely yours,
Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] int(x) bug for x>2^62

2018-08-22 Thread philippe
Hi,

I find a strange behavior in "int" with scilab-6.0.1 today :

--> 2^63
 ans  =

   9.2233720368548D+18

--> int(2^63) //  negative result !!!
 ans  =

  -9.2233720368548D+18


--> int(2^62)
 ans  =

   4.6116860184274D+18

--> 2^62
 ans  =

   4.6116860184274D+18



the problem doesn't appear with floor/ceil/round. I search on bugzilla
but found nothing related to int.

Best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] How to overload "double" function ?

2018-08-21 Thread philippe
Hi,

I want to overload some usual scilab functions, I made it for abs and
sign but strangely it doesn't work for double ! Let's take an example ,
I want to extend sign and double for polynomials  :

--> X=poly(0,"x"); // a polynomial

--> sign(X)
dans la fonction nativesign

Fonction non définie pour les types fournis.
  vérifier les arguments ou définir la fonction %p_sign pour la surcharge.

--> double(X)

double : Types erronés des arguments d'entrée : entiers, booléens ou
réels attendus.


so I define overloading for the two functions and "p" type :

 function y=%p_sign(x)
 y="OK"
 endfunction

 function y=%p_double(x)
y="OK"
 endfunction

Now I can call sign on a polynomial, but this doesn't work for double

--> sign(X)
 ans  =

 OK


--> double(X)

double : Types erronés des arguments d'entrée : entiers, booléens ou
réels attendus.

How can I do this for double ? If not why this doesn't work ? Both sign
and double are "fptr" type , I thought that scilab-6 doesn't make
difference between function and fptr any more .

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] bug in degree and polynomials comparison ?

2018-08-20 Thread philippe
Le 20/08/2018 à 17:50, Samuel Gougeon a écrit :
> Hello Philippe,
> 
> This is fixed in Scilab 6.0.2-. Please see mainly
> http://bugzilla.scilab.org/14701
> http://bugzilla.scilab.org/14708

thanks Samuel, I missed those reports on bugzilla

Best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] bug in degree and polynomials comparison ?

2018-08-20 Thread philippe
Hi,

while upgrading one of my toolboxes I discovered a strange error in
polynomial comparisons. The error appeared during automatic unit tests,
a " assert_checkequal(P1,P2)" was expected to be True and was in fact
False. After some investigations It looks like there is an error in
degree so that   P1==P2 can be False  while  P1-P2==0.

Can someone confirm the bug in scilab-6.0.1  before I fill in a report
on bugzilla. Run the following commands :

X=poly(0,'x')
A=(X-1)^3
B=(X+1)^2
R=20 +12*X
Q=(A-R*X^3)/B;
Q=Q.num

A,(B*Q+R*X^3) // equal
A-(B*Q+R*X^3)  //=0
A==(B*Q+R*X^3)  // %F 
coeff((B*Q+R*X^3))
coeff(A)
degree((B*Q+R*X^3)) // =4 !!
degree(A)  // = 3

and compare with the expected result thereafter

Sincerly yours,

Philippe

--> A,B,Q,R
 A  =

2   3
  -1 +3x -3x  +x

 B  =

   2
   1 +2x +x

 Q  =

 2
  -1 +5x -12x

 R  =


   20 +12x


--> A,(B*Q+R*X^3)
 A  =

2   3
  -1 +3x -3x  +x

 ans  =

2   3
  -1 +3x -3x  +x


--> A-(B*Q+R*X^3)
 ans  =


   0


--> A==(B*Q+R*X^3)
 ans  =

  F


--> coeff((B*Q+R*X^3))
 ans  =

  -1.   3.  -3.   1.   0.


--> coeff(A)
 ans  =

  -1.   3.  -3.   1.


--> degree((B*Q+R*X^3))
 ans  =

   4.


--> degree(A)
 ans  =

   3.

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] SciLab 6.0.1 and Symbolic Toolbox

2018-06-27 Thread philippe
Hi,

Le 26/06/2018 à 09:54, kamienna.gora a écrit :
> Dear All,
> 
> I have got a simple question - how to install Symbolic Toolbox for SciLab
> 6.0.1?
> According to tutorial: "https://scilab.in/scilab-symbolic-toolbox;, point 5,
> I got: "liboverload.so: undefined symbol: pvApiCtx".

let's check some requirement before

1/this toolbox is ONLY for linux, if you are using windows/macOs it will
not work
2/ you have to install the overload toolbox before
http://forge.scilab.org/index.php/p/overload/
 have you done this before ?
3/ I've used a lot this toolbox to communicate with maxima but I failed
to reinstall it 2 years ago and I don't know why ...

philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Coding for a 3D Klein Bottle

2018-06-27 Thread philippe
you can find other example of the Klein "Bottle" made with scilab :

http://rouxph.blogspot.com/2016/06/la-bouteille-de-klein.html

Philippe


Le 10/06/2018 à 17:18, Lester Anderson a écrit :
> Thanks Samual! This is all good learning practice. Cheers, Lester
> 
> 
> On 12:19, Sun, 10 Jun 2018 Samuel Gougeon,
>  <mailto:sgoug...@free.fr>> wrote:
> 
> Hello Lester,
> 
> The code was just missing many dots (* => .*, ^ = .^), to make
> operators working in an elementwise way (see attachement).
> Fixing that makes the expected picture:
> 
> This could make a nice demo, in the /Graphics => More surfaces/ 
> section.
> 
> Regards
> Samuel
> 
> 
> Le 10/06/2018 à 12:51, Lester Anderson a écrit :
>> Hello all,
>>
>> I have been testing the latest version of Scilab (6.0.1) and have
>> been looking at data visualisation of non-orientatable surfaces
>> (e.g. Moebius, Klein Bottle etc.).
>>
>> The Moebius strip was not hard to figure out, but I am having
>> issues with the Klein Bottle.I have attched the code as is so far,
>> uses the parametric equations from
>> https://en.wikipedia.org/wiki/Klein_bottle, for the 3D immersion
>> of the bottle.
>>
>> As a test, I used the old software Derive 6 to run the equations
>> and it plots the bottle as correct. If anyone has pointers on this
>> code that would be helpful.
>>
>> Still learning Scilab!
>>
>> Thanks
>> Lester
>>
>>
>> ___
>> users mailing list
>> users@lists.scilab.org
>> <mailto:users@lists.scilab.org>
>> http://lists.scilab.org/mailman/listinfo/users
> 
> 
> ___
> users mailing list
> users@lists.scilab.org
> <mailto:users@lists.scilab.org>
> http://lists.scilab.org/mailman/listinfo/users
> 
> 
> 
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
> 


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] orthogonal polynomials

2018-06-09 Thread Jean-Philippe Grivet
Thank you Samuel. However, there are some remaining bugs !When I launch 
Scilab, I ger the following d=series of messages:


Start Linalg
Start Makematrix
Start Specfun
Start Helptbx
Start Distfun
Start Stixbox
Start Apifun
    Load macros
    Load help
    Type "help apifun_overview" for quick start.
Start Ortpol
    Load macros
    Load help
    Load demos
    Type "help ortpol_overview" for quick start.
    Type "demo_gui()" and search for "Ortpol" for Demonstrations.

So far so good. I type help ortôl_overview and I am redirected to the 
last help^page I l consulted ("disp" in the present case). Back to the 
console, I write demo_gui() and chose ortpoly in the popup menu. Scilab 
replies


à la ligne   -11 du fichier exécuté 
C:\Users\grivet\AppData\Local\SCILAB~1.1\contrib\Ortpol\0315DD~1.1\demos\Ortpol.dem.gateway.sce
à la ligne    41 de la fonction demo_gui_update ( 
C:\Users\grivet\AppData\Local\scilab-6.0.1\modules\demo_tools\macros\demo_gui_update.sci 
ligne 58 )
get_absolute_file_path : Le fichier ortpol.dem.gateway.sce n'est pas 
ouvert dans Scilab.


Further question: What should I do to uninstall these modules ?

JP Grivet



Le 09/06/2018 à 12:11, Samuel Gougeon a écrit :

Hello,

Le 06/06/2018 à 16:46, Jean-Philippe Grivet a écrit :

Hello,

I wish to use orthogonal polynmials within Scilab. Axxording to 
"ttps://atoms.scilab.org/toolboxes/Ortpol",  I do


 atomsInstall('Ortpol')

and I get the answer

atomsInstallList: The package "Ortpol" is not registered.
Please check on the ATOMS repository that it is available for Scilab 
6.0 on Windows.

If it is, run atomsSystemUpdate() before trying atomsInstall(..) again.


As the message suggests it, you have checked on the ATOMS repository that
Ortpol was not available for Scilab 6.0 on Windows.



Where did I go wrong ? Is there a workaround ? Thank you in advance 
for your help.


Ortpol is now ported to Scilab 6.0 (+ some examples fixed). You may do:

atomsSystemUpdate()
atomsInstall Ortpol
exit
// Start a new session
atomsLoad Ortpol


Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] orthogonal polynomials

2018-06-06 Thread Jean-Philippe Grivet

Hello,

I wish to use orthogonal polynmials within Scilab. Axxording to 
"ttps://atoms.scilab.org/toolboxes/Ortpol",  I do


 atomsInstall('Ortpol')

and I get the answer

atomsInstallList: The package "Ortpol" is not registered.
Please check on the ATOMS repository that it is available for Scilab 6.0 
on Windows.

If it is, run atomsSystemUpdate() before trying atomsInstall(..) again.

Where did I go wrong ? Is there a workaround ? Thank you in advance for 
your help.


Jean-Philippe Grivet



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Is cond([]) 0 or 1 ? (bug 15579)

2018-05-27 Thread philippe
Le 27/05/2018 à 19:51, Samuel Gougeon a écrit :
> [...]
> 
> Please let us know more about your proposal for 1 instead of 0.

I can't say it now, the best value also depends on the compatibility of
this value with others assigned to matrix functions with argument [].  I
would like to check it before, but with the example you mention 0 looks
a better choice.

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Is cond([]) 0 or 1 ? (bug 15579)

2018-05-24 Thread philippe
Le 21/05/2018 à 15:46, Samuel Gougeon a écrit :
> 
> There are at least two way to do it :
> 
>   * either keep *cond([])* to *1* and set all *cond([], p)* to 1 instead
> of 0
>   * or set *cond([])* to *0*.
> 
> I don't see any clear reason enforcing a choice rather than the other.
> Do you?

from a mathematical point of view  the Condition number of a matrix A is
defined by

cond(A)=||A|| . ||A^(-1)||
its interest is that when solving A*x=y rounding errors on y (eps) are
amplified to be cond(A)*eps. The optimal value of cond(A) is 1 (for
identity matrix) so for me it looks natural that cond([])=1 .

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] pixel level programming

2018-04-18 Thread Jean-Philippe Grivet

Thank you ¨M: I'll try that.

JP Grivet


Le 17/04/2018 à 17:52, P M a écrit :

Hi Grivet,

weather...yes it is

how...if you know:

- the pixel coordinate of the pixel you want to manipulate and
- how to work with colormap ...

you should be able to manipulate a single pixel

For a start I suggest you understand how Matplot() works.
This is used in IPD to draw the image, when the ShowImage() command is 
used.


simple Example:

img = ones(100,100) * 256;    // white image with sioze of 100 x 
100 px

ShowImage(img, "white image");
img(50,50) = 0; // set a single pixel to zero 
(= black)

ShowImage(img, "white image with one single black pixel");

Hth,
Philipp




2018-04-16 12:53 GMT+02:00 Jean-Philippe Grivet 
<jean-philippe.gri...@wanadoo.fr 
<mailto:jean-philippe.gri...@wanadoo.fr>>:


Hello,

I would like to know whether and how it is possible to program
individual pixels within a Scilab figure ? I have in mind a simple
application: a disk moves inside a bounded region and changes the
colour of every pixel it sweeps over.  Thanks for your hints.

JP Grivet



---
L'absence de virus dans ce courrier électronique a été vérifiée
par le logiciel antivirus Avast.
https://www.avast.com/antivirus <https://www.avast.com/antivirus>

___
users mailing list
users@lists.scilab.org <mailto:users@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users
<http://lists.scilab.org/mailman/listinfo/users>




--
In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.

There we have the salad.

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] pixel level programming

2018-04-16 Thread Jean-Philippe Grivet

Hello,

I would like to know whether and how it is possible to program 
individual pixels within a Scilab figure ? I have in mind a simple 
application: a disk moves inside a bounded region and changes the colour 
of every pixel it sweeps over.  Thanks for your hints.


JP Grivet



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] macOs High Sierra

2018-02-07 Thread Philippe Dérogis
Hi Ricardo,

  I tried your fix, then scilab was able to show up a window saying to install 
an old java package. I installed it and TADA… it worked. Thank to all of you 
guys for your help.

Philippe DEROGIS


> Le 6 févr. 2018 à 17:48, Ricardo Fabbri <rfab...@gmail.com> a écrit :
> 
> Phillippe,
> 
> I am not sure if you have seen this work around listed in another thread:
> 
> Scilab 6.0.0 (the standar distribution, not the nightly build) worked
> for me with Mac OS high sierra 10.13.3 by
> removing these files:
> 
> /Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib
> /Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/libz.*
> 
> That may work for you while you wait for an updated Mac OS build to be
> contributed.
> 
> --
> Ricardo Fabbri
> Professor of Computer Engineering
> IPRJ/UERJ Nova Friburgo Graduate Program – CAPES 6
> rfabbri.github.io
> 
> 
> On Tue, Feb 6, 2018 at 2:34 PM, Clément David
> <clement.da...@esi-group.com> wrote:
>> Hello Antoine, hello all,
>> 
>> The www.scilab.org website have not been updated yet but the nightly builds 
>> might be removed in
>> favor of the Continuous Integration builds [1]. The MacOs build [2] is a bit 
>> unreliable but might
>> provide your the latest binaries.
>> 
>> [1]: https://build.scilab.org/view/Scilab%20binaries/
>> [2]: https://build.scilab.org/view/Scilab%20binaries/job/scilab-6.0-macosx/
>> 
>> Thanks,
>> 
>> --
>> Clément
>> 
>> Le lundi 05 février 2018 à 13:02 +0100, amonm...@laas.fr a écrit :
>>> Le 05/02/2018 à 12:44, Philippe Dérogis a écrit :
>>>>Hi,
>>>> 
>>>>  I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 
>>>> doesn’t start anymore. I
>>>> tried to download the nighty build here : 
>>>> http://www.scilab.org/en/development/nightly_builds/br
>>>> anch60 and I get the 404 error : The requested URL 
>>>> /download/2017-08-02/scilab-branch-6.0-
>>>> 1500821730-x86_64.dmg was not found on this server.
>>>> I would like to know if there is a fix to this situation.
>>> Hello,
>>> 
>>> It's the same with the master branch: 
>>> http://downloadarea.scilab.org/download/2017-08-02/scilab-ma
>>> ster-1501146348-x86_64.dmg gives a 404. That's the same for the windows 
>>> link: http://downloadarea.
>>> scilab.org/download/2017-07-28/scilab-master-1501146348_x64.exe
>>> 
>>> Antoine
>>>> Any help would be greatly appreciated.
>>>> 
>>>> Thanks to all developers and contributors.
>>>> 
>>>> Philippe DEROGIS.
>>>> 
>>>> 
>>>> 
>>>> ___
>>>> users mailing list
>>>> users@lists.scilab.org
>>>> http://lists.scilab.org/mailman/listinfo/users
>>> 
>>> ___
>>> users mailing list
>>> users@lists.scilab.org
>>> http://lists.scilab.org/mailman/listinfo/users
>> ___
>> users mailing list
>> users@lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] macOs High Sierra

2018-02-06 Thread Philippe Dérogis
Hi Clément,

I totally understand your point and I am sure that all the employees are doing 
their best in order to have things working at their best. The thing that make 
me sade is that this great project initially from INRIA (I thing) do not 
succeed to become a profitable enterprise even it have the same potential as 
Matlab. I know that this have nothing to do with you guys but with the 
management of the company.

Thank you, for the clues for trying to run the application, I will try to mess 
around with that… one more time I’m note a software engineer but simply a guy 
that need a scientific computation software.

Philippe.   

> Le 6 févr. 2018 à 17:28, Clément David <clement.da...@esi-group.com> a écrit :
> 
> Hello Philippe,
> 
> Not really a technical point, but about your comment on :
> 
>> I am very disappointed that the owner (scilab enterprises) of a great 
>> application like scilab did
>> not succeeded to maintain a working version of the application. 
> 
> As you may probably know, free software is a hard business and most of the 
> Scilab team employees are
> currently providing support and services around the software for customers. 
> The Windows and Linux
> builds (from the CI on build.scilab.org) are used daily by the team and are 
> improving from commits
> to commits and, thanks to the contributors, we also validate the MacOS X 
> version from time to time.
> 
> As you noted, your issue appeared after upgrading macOs; please take a look 
> at the existing macOs
> Sierra issues and write comment there. If you can contribute, do not hesitate 
> to build Scilab
> from source and help us getting a good quality MacOs support.
> 
> Thanks,
> 
> --
> Clément
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] macOs High Sierra

2018-02-05 Thread Philippe Dérogis
Thank you Stephane,

I will try this tomorrow.

Philippe.


> Le 5 févr. 2018 à 16:31, Stéphane Mottelet <stephane.motte...@utc.fr> a écrit 
> :
> 
> A last (but not least) detail, copy the classpath.xml from scilab-6.0.0 app 
> to scilab-6.0.1 app :
> 
> cp scilab-6.0.0.app/Contents/MacOS/share/scilab/etc/classpath.xml 
> scilab-6.0.1.app/Contents/MacOS/share/scilab/etc
> 
> S.
> 
> Le 05/02/2018 à 16:25, Stéphane Mottelet a écrit :
>> Hello,
>> 
>> If you already have scilab-6.0.0 :
>> 
>> -duplicate the scilab-6.0.0 app and rename it scilab.6.0.1
>> -right-click and "Show package content"
>> -navigate to Contents/MacOS folder
>> -drag and drop the files of the scilab-branch-6.0-macosx/ folder into the 
>> abovementioned folder (scilab-6.0.1.app/Contents/MacOS (say yes when 
>> prompted for overwriting files)
>> 
>> It worked for me.
>> 
>> S.
>> 
>> Le 05/02/2018 à 15:55, Philippe Dérogis a écrit :
>>> Hi Samuel,
>>> 
>>>Thank you for your response, I dowloaded scilab-branch-6.0-macosx.tar 
>>> but I didn't find any .dmg in it. It tried to run the stuff in the bin 
>>> directory but it did not make anything interesting. Is there something that 
>>> i missed ?
>>> 
>>> Thank you
>>> 
>>> Philippe.
>>> 
>>> 
>>>> Le 5 févr. 2018 à 13:13, sgoug...@free.fr a écrit :
>>>> 
>>>> Hello,
>>>> 
>>>> You may try there: https://build.scilab.org/job/scilab-6.0-macosx/
>>>> 
>>>> Regards
>>>> Samuel Gougeon
>>>> 
>>>> - Mail original -
>>>> De: "Philippe Dérogis"
>>>> À: "Users mailing list for Scilab" <users@lists.scilab.org>
>>>> Envoyé: Lundi 5 Février 2018 12:44:06
>>>> Objet: [Scilab-users] macOs High Sierra
>>>> 
>>>> Hi,
>>>> 
>>>> I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 
>>>> doesn’t start anymore. I tried to download the nighty build here : 
>>>> http://www.scilab.org/en/development/nightly_builds/branch60 and I get the 
>>>> 404 error : The requested URL 
>>>> /download/2017-08-02/scilab-branch-6.0-1500821730-x86_64.dmg was not found 
>>>> on this server.
>>>> I would like to know if there is a fix to this situation.
>>>> 
>>>> Any help would be greatly appreciated.
>>>> 
>>>> Thanks to all developers and contributors.
>>>> 
>>>> Philippe DEROGIS.
>>>> 
>>>> ___
>>>> users mailing list
>>>> users@lists.scilab.org
>>>> http://lists.scilab.org/mailman/listinfo/users
>>> ___
>>> users mailing list
>>> users@lists.scilab.org
>>> http://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@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] macOs High Sierra

2018-02-05 Thread Philippe Dérogis
Hi Samuel,

  Thank you for your response, I dowloaded scilab-branch-6.0-macosx.tar but I 
didn't find any .dmg in it. It tried to run the stuff in the bin directory but 
it did not make anything interesting. Is there something that i missed ? 

Thank you

Philippe.


> Le 5 févr. 2018 à 13:13, sgoug...@free.fr a écrit :
> 
> Hello,
> 
> You may try there: https://build.scilab.org/job/scilab-6.0-macosx/
> 
> Regards
> Samuel Gougeon
> 
> ----- Mail original -
> De: "Philippe Dérogis" 
> À: "Users mailing list for Scilab" <users@lists.scilab.org>
> Envoyé: Lundi 5 Février 2018 12:44:06
> Objet: [Scilab-users] macOs High Sierra
> 
> Hi, 
> 
> I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 doesn’t 
> start anymore. I tried to download the nighty build here : 
> http://www.scilab.org/en/development/nightly_builds/branch60 and I get the 
> 404 error : The requested URL 
> /download/2017-08-02/scilab-branch-6.0-1500821730-x86_64.dmg was not found on 
> this server. 
> I would like to know if there is a fix to this situation. 
> 
> Any help would be greatly appreciated. 
> 
> Thanks to all developers and contributors. 
> 
> Philippe DEROGIS. 
> 
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] macOs High Sierra

2018-02-05 Thread Philippe Dérogis
Hi,

  I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 doesn’t 
start anymore. I tried to download the nighty build here : 
http://www.scilab.org/en/development/nightly_builds/branch60 
<http://www.scilab.org/en/development/nightly_builds/branch60> and I get the 
404 error : The requested URL 
/download/2017-08-02/scilab-branch-6.0-1500821730-x86_64.dmg was not found on 
this server. 
I would like to know if there is a fix to this situation. 

Any help would be greatly appreciated.

Thanks to all developers and contributors.

Philippe DEROGIS.
 ___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Stacked 2D plot in 3D

2018-02-05 Thread Jean-Philippe Grivet

Hi Claus,
I tried to post an example of a stacked 2D plot but my post was held up 
due to a too large graphic
file (postscript). I have now converted this plot to png format. Here it 
is. Ypu may still be interested
in using the xpoly function, despite seeing Samuel's beautiful examples 
with param3d.

Cheers
Jean-Philippe

Le 03/02/2018 à 21:27, Samuel Gougeon a écrit :

Le 03/02/2018 à 20:11, Claus Futtrup a écrit :

Hi Samuel

Thank you. This thing with the direction of the lines is difficult to 
"discover" by accident. :-)


... And thanks for the good help for param3d(1). I hope Scilab will 
adopt it.


When parts of curves are behind each others, there is a mess due to 
the perspective.

Here is a way to avoid this (i will also add it in the page):

[Xo,  Yo]  =  ndgrid(-10:0.5:10);
R  =  sqrt(Xo.*Xo  +  Yo.*Yo)  +  %eps;
Zo  =  sin(R)./R;

clf

// Simple plot with messed curves in the perspective
subplot(1,  3,  1)
param3d1(Xo,  Yo,  Zo,  150,  85,  flag=[2,4])

// With a curtain and filled curved (to avoid messed areas)
subplot(1,3,2)
nc  =  size(Xo,"c");
zmin  =  min(Zo);

X  =  [Xo(1,:)  ;  Xo  ;  Xo($,:)];
Y  =  [Yo(1,:)  ;  Yo  ;  Yo($,:)];
Z  =  [zmin*ones(1,nc)  ;  Zo  ;  zmin*ones(1,nc)];

param3d1(X,  Y,  Z,  150,  85,  flag=[2,4])
e  =  gce();
e.children.fill_mode  =  "on";

// Try to mask the curtain with %nan
// =>unsuccessful due to the bug http://bugzilla.scilab.org/11803
subplot(1,3,3)
X  =  [Xo([1  1],:)  ;  Xo  ;  Xo([$  $],:)];
Y  =  [Yo([1  1],:)  ;  Yo  ;  Yo([$  $],:)];
Z  =  [[zmin  ;  %nan]*ones(1,nc)  ;  Zo  ;  [%nan  ;  zmin]*ones(1,nc)];

param3d1(X,  Y,  Z,  150,  85,  flag=[2,4])
e  =  gce();
e.children.fill_mode  =  "on";

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] GUI programming

2018-01-31 Thread philippe
Hi

Le 24/01/2018 à 19:49, Claus Futtrup a écrit :
> Hi Scilabers
> 
> Is there a comprehensive manual or book (in English, or alt German)
> about programming GUI in Scilab? (or a comprehensive web-page)

programming GUI in scilab relies on a good comprehension of graphics
handles. The 4th chapter of my book is dedicated to graphics and contain
few pages about GUI conception (part 23.4  pages 338 to 353)  :

https://www.d-booker.fr/scilab-book1/325-scilab-fundamentals.html

You can find a simple example (with call-back inside)  detailed :

https://www.youtube.com/watch?v=zRXr22VZNJM

It's sufficient to understand the basis of GUI.
> I think that what I need is not just examples. I need explanations, and
> preferably something coherent that I can combine and work with, into
> something that works.

That was the aim of my book : giving simple examples with detailed
explanations, well ordered so that you can learn scilab with more
efficiency than jumping from one help page to another.

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Stacked 2D plot in 3D

2018-01-31 Thread Jean-Philippe Grivet

Hi Claus, Rafeal and Samuel,

Here is another method for stacked plots, which was suggested to me 
years ago by Serge Steer.

I used it succssfully for about 12 individual curves.

Cheers,
JP Grivet



Le 28/01/2018 20:19, Claus Futtrup a écrit :

Hi Rafael and Samuel

Thank you both for great suggestions - and as I thought - I was on the 
wrong path. Indeed I looked at plot3d3 and didn't catch that this one 
is suitable for what I wish to do. I see clearly with the example by 
Samuel that it is quite a smart way. I initially made the mistake to 
feed vectors (frequencies + angles), and it complained (and it 
revealed, it seems, that plot3d3 is based on param3d1). I see it needs 
matrices. The example by Rafael made that clear to me. Thanks Rafael 
for a very good example to work with.


Best regards,
Claus

On Sun, Jan 28, 2018 at 5:24 PM, Rafael Guerra 
> wrote:


Hi Samuel,

Absolutely, the two param3d functions should be merged.

The vectorised assignment example should also be included in the
helpfile.

Regards,
Rafael

-Original Message-
From: users [mailto:users-boun...@lists.scilab.org
] On Behalf Of Samuel Gougeon
Sent: Sunday, January 28, 2018 5:17 PM
To: Users mailing list for Scilab >
Subject: Re: [Scilab-users] Stacked 2D plot in 3D

Hello Rafael,

About param3d() and param3d1():
In 3 days, it will be the 10th birthday of this report:
http://bugzilla.scilab.org/6155 
Shall we make a present to other users? :) By the way, beyond
their pages, don't you think the functions themselves should be
merged?

Le 28/01/2018 à 16:39, Rafael Guerra a écrit :
> .../...
> for i=1:nf;
>  e.children(i).foreground = color('dark blue');
>  e.children(i).thickness = 2;
> end

Or more simply:

e.children.foreground = color('dark blue'); e.children.thickness = 2;

This kind of vectorized assignment (almost always) works.

Cheers
Samuel

___
users mailing list
users@lists.scilab.org 
http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org 
http://lists.scilab.org/mailman/listinfo/users





___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users




---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus
x=linspace(-10,10,500);
clf;ax=gca();
ax.axes_visible='on';
xmin=-10;
xmax=+10;
ymin=-1;
ymax=2
ax.data_bounds=[xmin,ymin;xmax ymax];
yshift=0.2;
drawlater
for xshift=5:-0.4:-5
  xfpoly([xmin x xmax],[ymin yshift+sinc(x+xshift) ymin],1)
  e=gce();e.background=-2;
  yshift=yshift-0.02;
end
drawnow()
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Polarplot help

2018-01-20 Thread philippe
Hi,

Le 20/01/2018 à 11:08, Claus Futtrup a écrit :
> 
> 
> How can I rotate the labels of the polarplot so that zero is up the
> y-axis instead of out the x-axis? Alternatively, how can I disable the
> labels?

look at the Axis handle, the labels of a polar plot are additional
children  of "Text" . Try this example :


clf
t = 0:0.01:2*%pi;
polarplot(t, -1 + sin(t));
A=gca()  // get the axis handle
A.children//  look at all its children
//The labels are those of "Text" type
id=find(A.children.type="Text" )// get their id
//then modify the properties of the handles
A.children(id).visible="off" // no labels
A.children(id).visible="on" // all labels
A.children(id).text="mylabel" // change labels
for k=id
A.children(k).text=string(k);
end


Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Radon transform

2017-11-15 Thread Jean-Philippe Grivet

Hello,

Does an implementation of the Radon transform exist in Scilab, similar 
to the Matlab

"radon" function ? Would anybody be willing to share a homemade version ?

Thank you for your input
JP Grivet


---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP

2017-11-08 Thread philippe
Le 08/11/2017 à 14:29, David Brant a écrit :
> Thanks for getting back Philippe.
> 
> Only so.4 appeared. Checking with Nemo I have:
> 
> libtiff.so.4
> libtiff.so.5
> libtiff.so.5.2.4
> 
> All have identical size and time stamps.
> Nemo reports 'link to unknown' for so.4 and so.5, and 'unknown' for so.5.2.4

it looks that you don't have libtiff.so.4 on your system try download it
from internet (http://www.filewatcher.com/m/libtiff.so.4.16-0.html not
the best souce probably ...) and put it in the directory

/usr/lib/x86_64-linux-gnu/

Best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to read in date & time ?

2017-11-07 Thread philippe
Le 07/11/2017 à 15:38, Richard llom a écrit :
>
> 
> However what I'm missing is a way to convert the date & time column to a
> date format in scilab. There doesn't seem to be function for this in scilab.
> Is there a recommended way of doing so?

use datenum and datevec , example :

yourline=["01.01.2017"; "06:00";"419,942"]
// D=day, M=month,Y=year
DMY=tokens(yourline(1),".")
execstr(strsplit("DMY","")+"="+DMY)
DT=datenum(y,m,d)
[Ye,Mo,Da,ho,mi,se]=datevec(DT)
// h=hhours, m=minutes, s=secondes
hm=tokens(yourline(2),":")
execstr(strsplit("hM","")+"="+hM)
s=27
DT=datenum(y,m,d,h,M,s)
[Ye,Mo,Da,ho,mi,se]=datevec(DT)


best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP

2017-11-07 Thread philippe
Hi,

Le 04/11/2017 à 17:38, David Brant a écrit :
> Hi,
> 
> I have a problem loading the SIVP toolbox 0.5.3.2 from the ATOMS module 
> manager under Linux Mint 18.1.
> 
> I get error: The shared archive was not loaded: libtiff.so.4: cannot open 
> shared object file: No such file or directory (see attachment).
> I read somewhere it has also been known on Ubuntu distro and was something to 
> do with a labeling issue with *.so.* files.
> 
> Is there a workaround? If you could tell me what to type i'll have a go.

first try to locate the lib on your system :

sudo find /usr/lib/ -name "libtiff.so.4*"

/usr/lib/x86_64-linux-gnu/libtiff.so.4.3.6
/usr/lib/x86_64-linux-gnu/libtiff.so.4

if the "libtiff.so.4" doesn't appear  add a symbolic link to the
existing one in the same directory :

cd /usr/lib/x86_64-linux-gnu/
sudo ln -s libtiff.so.4.3.6 libtiff.so.4

Best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-31 Thread philippe
Le 31/10/2017 à 11:23, Samuel Gougeon a écrit :
> Hello Philippe,
> 
> Le 31/10/2017 à 10:58, philippe a écrit :
>> Even reporting duplicates of already existing bugs
>> can help to improve scilab ...
> 
> Sorry, but i strongly disagree with this last assertion.

probably this last assertion was blundering :-( I want to encourage
users reporting bugs but not to spam of course. Unfortunately for
beginners it is hard  to clearly identify if a bug is already reported
or not (I made a lot of duplicates while starting reporting bugs) so we
have to accept that new users  make such errors if we want that more
persons get involved.


> [...]
> But if anyone just want to stress on the fact that a bug is really
> handicaping for him/her,it is always possible to add a comment to 
> an existing report, or just add "+1" in comment as a vote for fixing it.

yes, I absolutely agree with this.

> 
> A more extensive rational against spamming bugzilla with duplicates is
> available here:
> http://bugzilla.scilab.org/show_bug.cgi?id=15031#c3

I understand your point of view, I know you do a lot of work so seeing
the amount of unresolved bugs can be discouraging . But from my user
point of view the system doesn't work so bad : I see scilab is improving
year after years.

have a nice day!

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-31 Thread Philippe Dérogis
Happy to know that the bug is fixed, thanks you for that. I will check 
the Nighty Builds.

Regards,

Philippe.


> Le 31 oct. 2017 à 11:23, Samuel Gougeon <sgoug...@free.fr> a écrit :
> 
> Hello Philippe,
> 
> Le 31/10/2017 à 10:58, philippe a écrit :
>> Even reporting duplicates of already existing bugs
>> can help to improve scilab ...
> 
> Sorry, but i strongly disagree with this last assertion.
> Please contribute to process bugs reported on bugzilla, and you will 
> understand why.
> On the contrary, your piece of advices is the best way to sink reports.
> This is somewhat spamming bugzilla.
> By the way, this is just a basic rule in net tools like forums to search for 
> anteriority
> before addressing an item.
> 
> Bugzilla has a builtin vote system. This one is disabled. This setting has 
> already been addressed.
> This is a choice from the dev team, not a default.
> But if anyone just want to stress on the fact that a bug is really 
> handicaping for him/her,
> it is always possible to add a comment to an existing report, or just add 
> "+1" in comment
> as a vote for fixing it.
> 
> A more extensive rational against spamming bugzilla with duplicates is 
> available here:
> http://bugzilla.scilab.org/show_bug.cgi?id=15031#c3
> 
> Regards
> Samuel
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-31 Thread philippe
Le 29/10/2017 à 16:00, philippe a écrit :
> Le 29/10/2017 à 13:16, Philippe Dérogis a écrit :
>>
>>
>>   Yes It should be nice if you could register the bug in Scilab bug tracking 
>> system. 
> 
> done : http://bugzilla.scilab.org/show_bug.cgi?id=15316
> 


good new the bug status has changed to "resolved fixed" ! Now you can
see how it is important to report bugs in bugzilla, and not only on
mailing list. Every one can do it, of course you have to give a minimal
and complete example to reproduce the bug (it is not so easy for GUI
problems). I've started doing this 10 years ago, most of the bugs I
reported have been solved, some of them quickly, other required to wait
for a scilab release. Even reporting duplicates of already existing bugs
can help to improve scilab ...

best regards,

Philippe

%%%

 Paul BIGNIER changed bug 15316

-- Bug Summary ---
shift between mouse position and xclick() coordinnates


What  Removed   Added
StatusNEW   RESOLVED
CC  paul.bign...@scilab-enterprises.com
Resolution  --- FIXED



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-29 Thread philippe
Le 29/10/2017 à 13:16, Philippe Dérogis a écrit :
>
> 
>   Yes It should be nice if you could register the bug in Scilab bug tracking 
> system. 

done : http://bugzilla.scilab.org/show_bug.cgi?id=15316

Best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-29 Thread Philippe Dérogis
Hi Samuel,

  Yes It should be nice if you could register the bug in Scilab bug tracking 
system. 

Sincerely,

Philippe.

> Le 28 oct. 2017 à 22:44, philippe <rouxph...@gmail.com> a écrit :
> 
> Le 28/10/2017 à 14:26, Philippe Dérogis a écrit :
>> Hi Philippe and Samuel,
>> 
>>   I experiment exactly the problem described by Philippe on my Mac
>> (MacBook Pro Retina 13 pouces running MacOS Sierra 10.12.6) with Scilab 6.0
>> I wrote to the mailing list on the 10 mai 2017 about that :
> 
> thanks for your feedback, so it is actually a bug that affect only Mac
> OS with scilab 6.0.0 . It would be nice if you report the bug on
> bugzilla ( http://bugzilla.scilab.org/ ) you need to create an account
> to report bugs. If you don't want to create an account tell me, I will
> report the bug , but it would be better than it comes from a Mac OS user.
> 
> 
> Best regards,
> 
> Philippe
> 
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-28 Thread philippe
Le 28/10/2017 à 14:00, Samuel Gougeon a écrit :
> 
> If you are /sure/ that the student did not define any
> uicontrol("style","frame") to plot in it,
> indeed, there is no link.

by the infinite monkey theorem* it would be possible that a student
create a uincontrol from scratch but the probability of this event is
close to 0 ;-) but the bug has been confirmed  by Philippe Derogis ...
> 
> uicontrol frames have their own system of coordinates, a bit like "a
> figure in a figure".
> This is what made the shift between the legend handle and the mouse,
> when setting  the legend position interactively in a frame.

well the problem I saw was very close to the one described for legend.

Best regards,

Philippe


*https://en.wikipedia.org/wiki/Infinite_monkey_theorem

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-28 Thread philippe
Le 28/10/2017 à 14:26, Philippe Dérogis a écrit :
> Hi Philippe and Samuel,
> 
>   I experiment exactly the problem described by Philippe on my Mac
> (MacBook Pro Retina 13 pouces running MacOS Sierra 10.12.6) with Scilab 6.0
> I wrote to the mailing list on the 10 mai 2017 about that :

thanks for your feedback, so it is actually a bug that affect only Mac
OS with scilab 6.0.0 . It would be nice if you report the bug on
bugzilla ( http://bugzilla.scilab.org/ ) you need to create an account
to report bugs. If you don't want to create an account tell me, I will
report the bug , but it would be better than it comes from a Mac OS user.


Best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-28 Thread Philippe Dérogis
Hi Philippe and Samuel,

  I experiment exactly the problem described by Philippe on my Mac (MacBook Pro 
Retina 13 pouces running MacOS Sierra 10.12.6) with Scilab 6.0
I wrote to the mailing list on the 10 mai 2017 about that :

—— begin quote
Hi,

My name is Philippe, I work in the field of physics and signal processing, I 
use scilab a lot in my work and I want to thanks very much all the the people 
involve in the development of this great software. 

 I updated my scilab to 6.0.0 two weeks ago on my power book (retina) running 
macOS 10.12.4. Since this time I experiment two problems with graphic figures. 
The first issue is that the thickness of the lines is really small and the text 
for the axis labels, curves label and title are almost unreadable (way smaller 
than in the preceding version). The second problem is about the zoom, when I 
try to zoom on a graphic figure using the rectangular selection with the mouse, 
I get an offset between the mouse pointer and the actual selection, making it 
impossible to correctly define de rectangular region. 

Is anybody else experimenting the same issues ? Does somebody have a fix or a 
workaround for that ?
— — end quote

So i’m glad to know that I’m not the only one who experiment this problem. In 
order to try to help I ran the following piece of code

clf()
   plot2d(0,0,rect=[0 0 1 1])
   xgrid(1)
   x=[];y=[]
   ibutton=0
   while ibutton<>5
   [ibutton,xcoord,ycoord]=xclick()
   x($+1)=xcoord
   y($+1)=ycoord
   plot(x,y,'-o')
   end
(thank you Philippe) on my Mac and clic with the mouse on the point (1,0), 
(0.9,0.1), (0.8,0.2), (0.7,0.3), (0.6,0.4) and (0.5,0.5) which result to plot 
circles on points :
x  = 

   0.4169399
   0.367
   0.3163934
   0.2661202
   0.215847
   0.1677596
   0.1677596
 y  = 

   0.5811594
   0.6318841
   0.6782609
   0.7289855
   0.7768116
   0.8304348
   0.8304348

you can download the png of the figure here : https://we.tl/VXmrnlsI2V 
<https://we.tl/VXmrnlsI2V>


I take the opportunity to report again that this problem affect the interactive 
zooming in graphic windows and, I thing, is related to the fact that the 
graphics windows (with default settings) are almost unreadable on My MacBook 
Retina (very small window with thin lines and fonts). Those issues where new 
with version 6.0 I didn’t have those problems with the 5.5.2 version.

I hope it helps.

One more time thanks a lot to all the people working on the development of 
Scilab, it is a very powerful software that I use a lot.

Philippe.

  

> Le 28 oct. 2017 à 13:48, philippe <rouxph...@gmail.com> a écrit :
> 
> Le 28/10/2017 à 12:45, Samuel Gougeon a écrit :
>> [...]
>> Sorry: the clf() tells it (if it was /actually/ run): it was in a
>> (almost) fresh figure, not in a frame.
> 
> yes , the figure is cleared at begining,  but the graphic windows can be
> a new one (if no graphic window is already open) or an existing one
> (perhaps already docked in scilab main window). Those different
> configurations where tested by the student .
> 
>> 
>> The clf page https://help.scilab.org/docs/6.0.0/en_US/clf.html misses
>> telling that uicontrols are cleared as well, including frames (i guess).
> 
> I don't understand the link between this bug and uicontrols .
> 
> Philippe
> 
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-28 Thread philippe
Le 28/10/2017 à 12:45, Samuel Gougeon a écrit :
> [...]
> Sorry: the clf() tells it (if it was /actually/ run): it was in a
> (almost) fresh figure, not in a frame.

yes , the figure is cleared at begining,  but the graphic windows can be
a new one (if no graphic window is already open) or an existing one
(perhaps already docked in scilab main window). Those different
configurations where tested by the student .

> 
> The clf page https://help.scilab.org/docs/6.0.0/en_US/clf.html misses
> telling that uicontrols are cleared as well, including frames (i guess).

I don't understand the link between this bug and uicontrols .

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] xclick bug on Mac OS ?

2017-10-28 Thread philippe
Hello Samuel,


Le 28/10/2017 à 12:22, Samuel Gougeon a écrit :
> Hello Philippe,
> 
> Sorry, but i don't catch clearly the circumstances of this bug.
> Are you the user that experimented this bug, or someone else did?
> If you are not the user, where did you find the primary information?

the user was one of my student during a course :-)


> If you are the user, why do you say that "you can't reproduce it because
> you don't have a Mac" while you experimented it on a Mac? Would you
> mean that the bug is a transient not fully reproducible one?

that's it : the bug appeared only with Mac OS X  and scilab 6.0.0


> 
> Unfortunately, the screenshot does not show the bug.

It can't, the user click in the graphics windows , xclick retrieves the
position, and there is a plot of this position which is very different
from the position of the mousse.

> 
> When providing the piece of "code like..", i am afraid that the "like"
> is risky.
> So, is it actually/this/ code that yielded the bug, or you don't know?

yes it is this part of the code (which does not appear in the screen
shot because it is embedded in one of the function call.

> 
> Such a bug was already met to set a legend:
> http://bugzilla.scilab.org/13592 <http://bugzilla.scilab.org/13592>
> So , it could be the same for xclick, whether it it used in a figure
> /homed in a uicontrol frame/.

yes it looks close to what happens with xclick  and legend with optional
argument "5" puts the legends at mousse position so both bugs should be
related.
> 
> Version information may be useful, but less than a minimal
> self-sufficient copy/pastable
> piece of code that, in a fresh scilab session, yields the bug.

the code below should be the minimal example :


clf; plot2d(0,0,rect=[0,0,1,1]);xgrid(1);// set graphic windows
[ibutton,x,y]=xclick()// +  click in graphic window
plot(x,y,'xr') // ->the position differs from the mousse position


Best regards,

Philippe


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] xclick bug on Mac OS ?

2017-10-27 Thread philippe
Hi  to all,

Today I saw a strange bug with xclick and scilab 6.0.0 on Mac OS :
there is a shift between the position in the graphic window and
coordinates  recovered by xclick (see the screen-shot with version
information : https://photos.app.goo.gl/wywgRFAH5wSdszGa2 ). I can't
reproduce the bug cause I don't have a Mac, it was generated by a piece
of scilab code like :

clf()
plot2d(0,0,rect=[0 0 3 3])
xgrid(1)
x=[];y=[]
ibutton=0
while ibutton<>5
[ibutton,xcoord,ycoord]=xclick()
x($+1)=xcoord
y($+1)=ycoord
plot(x,y,'-o')
end

I don't find something similar in the bugzilla list :

http://bugzilla.scilab.org/buglist.cgi?quicksearch=xclick_id=43893

I would appreciate if someone could confirm (or not) the bug  on
MacOS+scilab6 , and report on bugzilla if necessary.

Best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] evaluate matrix in a function

2017-10-10 Thread philippe
Hi,

Le 07/10/2017 à 13:05, Hermes a écrit :
> how do I declare the functions to be able to evaluate a matrix
> variable(Multiple evaluation of a function). Where the first column
> corresponds to the first variable of the function. And so on.
> is only possible within a "for" cycle? how to declare the function to be
> able to use the operator "dot"


I'm not sure of what you are asking for. It looks like you want to
evaluate a function f on the curve defined by 2 vectors x,y  instead of
evaluating it on the grid defined by x,y (which is done by feval). If
this is  what you are searching for  you can use something like feval2
below :


function z=feval2(x,y,f)
//  eval f on the curve t->(x(t),y(t))
// and on the grid defined by x,y
deff('z=newf(k)','z=f(x(k),y(k))')
// x,y are global variables for the "newf" function
z=feval(1:length(x),newf)
// "newf" is a local variable for "feval2"
endfunction

then try the example  :


-->deff('z=f(x,y)','z=x.^2-y.^2') // test function

-->x=-3:3;y=x;

-->z=feval(x,y,f)// grid evaluation
 z  =

0.5.8.9.8.5.0.
  - 5.0.3.4.3.0.  - 5.
  - 8.  - 3.0.1.0.  - 3.  - 8.
  - 9.  - 4.  - 1.0.  - 1.  - 4.  - 9.
  - 8.  - 3.0.1.0.  - 3.  - 8.
  - 5.0.3.4.3.0.  - 5.
0.5.8.9.8.5.0.

-->z=feval2(x,y,f) // curve evaluation
 z  =

0.0.0.0.0.0.0.

Best regards

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab/XCos - recommendable Book

2017-10-05 Thread philippe
Le 05/10/2017 à 12:58, Yves Rambi a écrit :
> Can someone recommend a good and exhaustive ebook to buy for Scilab/XCos
> (introduction and further reading)?

As a French speaker I read the book wrote by Yvon Degré and Serge Steer
and I think it is very goog! It is available in paper and in many
electronic formats as pdf, html epub and you can also buy chapters
independently:

https://www.d-booker.fr/scilab-2-xcos/112-scilab-xcos.html

unfortunately it hasn't been yet translated in english ... the first
book of this collection has been translated and is available in epub  :

https://www.d-booker.fr/scilab-book1/325-scilab-fundamentals.html

you can see a preview of some chapters in pdf :

https://www.d-booker.fr/GALERIE/public/scilab-en/excerpts/_scilab-base-en-first-pages-ch21.pdf

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] help_from_sci() with %overload.sci <= Re: unit tests and help generation for overloaded unary/binary operators

2017-10-04 Thread philippe

Le 03/10/2017 à 13:54, Samuel Gougeon a écrit :
>
>
> With this fix, you will no longer need to post-process your filenames
> and files contents
> to make the doc builder running right. It normalizes filenames and
> xml:id in the same way
> as native Scilab files are, by replacing "%" with "percent".

Good job Samuel ;-)

Philippe.

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] overloading size for tlist

2017-07-23 Thread philippe
Le 23/07/2017 à 14:09, Samuel Gougeon a écrit :
> Hello Philippe,
> 
> In Scilab 5, size() is overloadable only for mlist(), not for tlist().
> In Scilab 6, it is overloadable for foth.
> So, to be compatible with both Scilab 5 and 6, you shall define your
> object as a mlist instead of tlist.

thank's Samuel, I was suspecting that the problem was coming from tlist.
I changed "mytype" to mlist instead of tlist and all works fine.

So now I don't understand what are tlist made for ? I was thinking that
mlist  was dedicated to "matrix of tlist"  but  we can use mlist  for
both matrix/non-matrix , it should be clarified ...

By,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] overloading size for tlist

2017-07-23 Thread philippe
Hi to all,

I've created a new type "mytype", represented by tlist, and another type
"matrixmytype", for matrix of "mytype" object, represented by mlist .
I've created the function %matrixmytype_size to overload the function
"size" for "matrixmytype" objects (it works fine) . For compatibility
reason I would like that size(x), where typeof(x)=='mytype', retrieve
the value [1,1], but actually size(x) return the size of the tlist for x
 an "mytype" .

 Let's take a minimal example :

//*
function x=mytype()
x=tlist(['mytype' 'tab' 'pol' 'str'],..
grand(2,3,'uin',1,3), ..  //x.tab
poly(0,'x'), ..   //x.pol
'scilab') //x.str
endfunction

function [p,n]=%mytype_size(x)
[p,n]=size(x.tab)
endfunction
//**

then in scilab console :


//***
-->x=mytype()
 x  =


   x(1)

!mytype  tab  pol  str  !

   x(2)

1.3.1.
2.1.2.

   x(3)

x

   x(4)

 scilab


-->[p,n]=%mytype_size(x)  // this is the expected result for size(x)
 n  =

3.
 p  =

2.

-->[p,n]=size(x)
  !--error 39
Nombre erroné d'arguments d'entrée.


-->size(x)
 ans  =

4.

//


My goal is only to ensure overloading compatibility between mytype and
matrixmytype  like for "double"  size(x) returns [1,1] if x is a scalar
and not a matrix.

Thank's for reading !

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Having issues loading .TXT file

2017-07-07 Thread philippe
Hi,

Le 07/07/2017 à 17:55, cnee1 a écrit :
> I have a large matrix from a .txt file.  
> 
> In Matlab the command is:
> 
> fname='MRS101916sr007_r70';
> ext='.txt';
> data=load([fname,ext]);
> 
> snum='MRS101916sr0117';
> 
> 
> What would it be in Scilab? 

use "mgetl" as below :

 fname='MRS101916sr007_r70';
 ext='.txt';
 data=mgetl(fname+ext);

data will be a vector of strings (nx1 matrix)  where each line of fname
is a string of dat).

The "load" function loads scilab  variables saved in a binary file with
.sod extension.  try "help load" in the scilab console to get more
informations.


> 
> My matrix will be a large n x 6 matrix.   n = data points that may exceed
> 400,000... 

if you want to read a matrix from a text file  you should use
"fscanfMat"  see "help fscanfMat" and "help scanf_conversion" in scilab
console for more information .

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] overload column/row extraction

2017-06-28 Thread philippe
Le 28/06/2017 à 10:45, Samuel Gougeon a écrit :
> Hello Philippe,
> Could you please provide a full executable example, and the final error
> message?  It would help testing and possibly debugging.

Sorry Samuel I finally found the solution by myself ;-) My problem comes
from insertion more than extraction. I can now manage  all matrix of
"bigint". It remains to code some functions for overloading unary/binary
operators +-,*,/,<>,==  for compatibility between double/bigint/mbigint
  after that I could  publish it !

best regards,

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab error

2017-06-22 Thread philippe
Le 22/06/2017 à 09:24, Shamika Mohanan a écrit :
> 
> I updated Ubuntu yesterday and since then I'm unable to start Scilab. I
> get the error 'Segmentation fault (core dumped)'.
> 
> The same error occurs on Scilab 5.5.2 and Scilab 6.0 for scilab and
> scilab-adv-cli mode. Only scilab-cli seems to be working. As we require
> graphics features of Scilab, is there any solution to this problem?

has said in the other thread "scilab -> Segmentation fault"  restart
ubuntu with previous kernel (before yesterday update, kernel 4.4.0-79
for me .

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] scilab -> Segmentation fault

2017-06-22 Thread philippe

Le 22/06/2017 à 01:46, Nikolay Strelkov a écrit :
>[...]
> 
> Dear Phillipe, please try to send apport report with
> $ apport-cli /var/crash/_usr_bin_scilab-bin.1000.crash
> to launchpad.  I can't send it.

done
> 
> What should *we* do?
> 

I've searched on bugzilla, the  problem seems to be associated with some
change in the 4.8.0-56 kernel so restarting ubuntu with previous kernel
4.8.0-54 may solve it until the next release . See Roger Manson comment
at the bottom of the page :

http://bugzilla.scilab.org/show_bug.cgi?id=15141

they are two order recent bugs reports  in bugzilla about "seg fault"
problem  :

http://bugzilla.scilab.org/show_bug.cgi?id=15192
http://bugzilla.scilab.org/show_bug.cgi?id=15194

Thank you Nikolay,

Philippe


> 


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] scilab -> Segmentation fault

2017-06-21 Thread philippe
Hi,

since today, I can't run scilab on ubuntu :

OS: Ubuntu 16.04 xenial
Kernel: x86_64 Linux 4.4.0-81-generic
CPU: Intel Core i3-4000M CPU @ 2.4GHz
RAM: 1681MB / 7896MB


Launching scilab from the terminal I et a "seg fault" error message:

roux@jenny-a-03:~$ scilab
Segmentation fault (core dumped)


Although scilab-cli seems to work  :

roux@jenny-a-03:~$ scilab-cli
Scilab 5.5.2 (Apr  6 2016, 20:24:15)


-->rand(2,2)
 ans  =

0.21132490.0002211
0.75604390.3303271

--> exit


the problem affect all scilab version installed

roux@jenny-a-03:/usr/share/scilab-6.0.0/bin$ ./scilab
Segmentation fault (core dumped)


The problem persist after restarting ubuntu . What can I do ?

Philippe

roux@jenny-a-03:/usr/share/scilab-6.0.0/bin$ ./scilab-cli
Scilab 6.0.0 (Feb 14 2017, 12:49:55)








___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Rép : Problems with figures in Scilab 6.0.0

2017-05-11 Thread Philippe Dérogis
Hi Samuel,

  Find in here  https://we.tl/QIICI7f19C <https://we.tl/QIICI7f19C> a capture 
of the figure window with scilab 6.0. I tried to reinstall scilab 5.5 in order 
to provide you with the capture of the same figure generated with scilab 5.5 
but it doesn’t worked. I remember that at some point I had to do a strange 
things such as overwriting some system libraries in order to have scilab 
working (I founded the fix on the internet) but I didn’t remember what. So 
unfortunately the capture of the 6.0 figure is the only thing that I can give 
you.

Thanks for your help.

Philippe.


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


  1   2   >