Re: [Scilab-users] Scilab 5.5.0 beta1 does not start under OSX 10.8

2013-10-04 Thread Stéphane Mottelet

Same behaviour :

macmottelet-gi-0:Applications mottelet$ 
scilab-master-1380893237.app/Contents/MacOS/bin/scilab
dyld: Library not loaded: 
@executable_path/../lib/thirdparty/10.6/libiconv.2.dylib
  Referenced from: 
/Applications/scilab-master-1380893237.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib
  Reason: Incompatible library version: libxml2.2.dylib requires 
version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
scilab-master-1380893237.app/Contents/MacOS/bin/scilab: line 730: 14253 
Trace/BPT trap: 5   /usr/libexec/java_home --request  /dev/null

dyld: Library not loaded: /sw/lib/libiconv.2.dylib
  Referenced from: 
/Applications/scilab-master-1380893237.app/Contents/MacOS/bin/scilab-bin
  Reason: Incompatible library version: scilab-bin requires version 
8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
scilab-master-1380893237.app/Contents/MacOS/bin/scilab: line 911: 14256 
Trace/BPT trap: 5   $SCILABBIN $@


S.

Le 04/10/13 17:46, Bruno JOFRET a écrit :

Hi,

Can you try this nightly [1] please ?

[1] 
http://downloadarea.scilab.org/download/2013-10-04/scilab-master-1380893237-x86_64.dmg


On 10/02/2013 06:07 PM, Stéphane Mottelet wrote:

Hello all,

The 5.5 beta seems to be broken :

# open /Applications/scilab-5.5.0-beta-1.app/
LSOpenURLsWithRole() failed with error -10810 for the file 
/Applications/scilab-5.5.0-beta-1.app.


Trying to lauch the binary gives :

# /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab
dyld: Library not loaded: /sw/lib/libiconv.2.dylib
  Referenced from: 
/Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib
  Reason: Incompatible library version: libxml2.2.dylib requires 
version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
/Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab: line 
730: 11666 Trace/BPT trap: 5   /usr/libexec/java_home --request  
/dev/null

dyld: Library not loaded: /sw/lib/libiconv.2.dylib
  Referenced from: 
/Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib
  Reason: Incompatible library version: libxml2.2.dylib requires 
version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
/Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab: line 
911: 11669 Trace/BPT trap: 5   $SCILABBIN $@


S.
___
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] [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04

2013-09-16 Thread Stéphane Mottelet


Le 16 sept. 2013 à 20:50, Antoine Monmayrant antoine.monmayr...@laas.fr a 
écrit :

 Le 16/09/13 17:57, Calixte a écrit :
 On 16/09/2013 15:18, Antoine Monmayrant wrote: 
 On 09/16/2013 02:05 PM, quantpa...@numericable.fr wrote: 
 j'ai executé 
 x=[0:0.1:2*%pi];plot(x,sin(x)); 
 sur 5.4.1 cela se graphe sans problem pour moi sur ubuntu 13.04 
 installé avec scilab-5.4.1.bin.linux-x86-64.tar.gz 
 pascal 
 
 
  Message d'origine  
 De : Stéphane Parisstephane.pa...@univ-lorraine.fr 
 À :users...@lists.scilab.org 
 Objet : [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 
 Date : 16/09/2013 12:29:49 CEST   
 
 Bonjour, 
 J'ai installé ubuntu 13.04 et depuis les graphiques sont blancs ? Peut-on 
 remédier à ce pb ?
 Hmm, comme souvent, il s'agit surement d'un soucis de pilote graphique. 
 Est-ce que l'opengl marche correctement depuis le passage à la 13.04? 
 (pour vérifier: glxgears) 
 J'ai eu quelques surprises de ce côté là en passant de 10.04 à 12.04LTS.
 Bonjour, 
 
 Pr information, quand la carte graphique est une nvidia il vaut mieux 
 utiliser le driver proprietaire plutot que le driver nouveau...
 Oui, et quand la carte est une ati, il vaut mieux aller l'enterrer dans le 
 jardin ou bien trouver un gentil ordi sous Windows avec une carte Nvidia pour 
 faire un échange standard...

Tout a fait, c'est ce que j'ai fait sur mon MacPro !

S.


 SAntoine
 
 Calixte 
 
 Antoine 
 Par avance merci de votre aide, 
 Stéfane 
 
 
 ___ 
 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] how to get list of object that are present in scilab script file

2013-09-03 Thread Stéphane Mottelet

Le 03/09/13 17:27, Serge Steer a écrit :

Le 03/09/2013 12:20, hilife5 a écrit :

I want to know is there exist any way to get the list of objects like
variable names, matrices, plots that are present in scilab script file.
for script file, no but it is possible for functions using the 
macrovar function

Serge Steer


Thanks



--
View this message in context: 
http://mailinglists.scilab.org/how-to-get-list-of-object-that-are-present-in-scilab-script-file-tp4027336.html
Sent from the Scilab users - Mailing Lists Archives mailing list 
archive at Nabble.com.

___
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
All the variables created by foo.sce at the workspace level can be 
obtained like this :


clear
names=who('local');
exec('foo.sce',-1);
names=setdiff(names,who('local'));

This trick is a basis for a more clever method (e.g. by using typeof a 
posteriori).


S.


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


Re: [Scilab-users] how to get list of object that are present in scilab script file

2013-09-03 Thread Stéphane Mottelet

Le 03/09/13 17:27, Serge Steer a écrit :

Le 03/09/2013 12:20, hilife5 a écrit :

I want to know is there exist any way to get the list of objects like
variable names, matrices, plots that are present in scilab script file.
for script file, no but it is possible for functions using the 
macrovar function

Serge Steer


Thanks



--
View this message in context: 
http://mailinglists.scilab.org/how-to-get-list-of-object-that-are-present-in-scilab-script-file-tp4027336.html
Sent from the Scilab users - Mailing Lists Archives mailing list 
archive at Nabble.com.

___
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
Maybe a brute force method could work  : all the variables created by a 
script 'foo.sce' at the workspace level can be obtained like this :


clear
names=who('local');
exec('foo.sce',-1);
names=setdiff(who('local'),'names');

This trick is a basis for a more clever method (e.g. by using typeof a 
posteriori).


You could also on the fly encapsulate the script in a function and use 
macrovar.


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


Re: [Scilab-users] 4D gridding and interpolation of scattered data points

2013-06-03 Thread Stéphane Mottelet

Hello,

try splin3d or linear_interpn.

S.

Le 03/06/13 16:21, Ariel a écrit :


 Do you mean that he V values you have are not placed on a 3d grid,
 but on randomly scattered (x, y, z) points?

Exactly.I have randomly scattered (x,y,z) points with corresponding 
value V and I want to map those points onto a regular grid with the 
interpolated (or averaged) value V.


Kind regards

Ariël de Graaf



== DISCLAIMER 
===


NOTE: The information transmitted in this email is for the person or 
entity to which it is addressed:


it may contain information that is confidential and/or legally 
privileged.


If you are not the intended recipient, please do not read, use, 
retransmit or disseminate this information.


Although this email and any attachments are believed to be free of any 
virus, it is the responsibility


of the recipient to ensure that they are virus free. No responsibility 
is accepted by the KROHNE Company


for any loss or damage arising from receipt of this message.

Furthermore, unless explicitly stated, this email is in no way a 
legally binding agreement.


The views represented in this email do not necessarily represent those 
of the corporation.




View this message in context: RE: 4D gridding and interpolation of 
scattered data points 
http://mailinglists.scilab.org/4D-gridding-and-interpolation-of-scattered-data-points-tp4026762p4026766.html
Sent from the Scilab users - Mailing Lists Archives mailing list 
archive 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html 
at Nabble.com.



___
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] Name of function's input arguments

2013-05-29 Thread Stéphane Mottelet

You can do it with the macrovar primitive.

S.

Le 29/05/13 22:56, Adrien Vogt-Schilb a écrit :

you cannot.

But you can provide the function directly with the name of your 
variable, and transform te name of the variable into the variable by 
evaluating it...


function  f(nameofvar1,nameofvar2)

var1 = evstr(nameofvar1)
var2 = evstr(nameofvar2)
disp(nameofvar1 +  + + nameofvar2 + is +string(var1 +var2))

endfunction

a=5;
b=7;

f(a,b)

On 29/05/2013 22:49, pierre vuillemin wrote:

Hello,

I would like to know if there exists a way to get the name of 
function's inputs arguments, i.e., if I have the following function


function y = f(a,b)
..
endfunction

and that I call it like y = f(var1,var2), is it possible to know, 
inside my function f, that the first input argument a is called 
var1 and that the second one is called var2 ?


Pierre


___
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] Subplot question

2013-05-16 Thread Stéphane Mottelet

Hello,

Le 13/05/13 16:38, Adrien Vogt-Schilb a écrit :

Hi

It is possible, just use

subplot(321)
subplot(322)
subplot(323)
subplot(324)

and then

subplot(313)
then you get margins that are not homogeneous (this is ugly), as you can 
see it in the attached file scilab_subplot.png (although plotlib' 
subplot is ok :-D).


S.


On 13/05/2013 16:30, SCHULZ Wolfgang wrote:

Hello,
I want plot data and divided the plot region with the subplot command 
in 6 regions (subplot(3,2,X)) but I would like to use the first 2 
regions (subplot(3,2,1) and subplot(3,2,2)) for 1 plot. In total I 
would then have then 5 plots. Is this possible? If yes could someone 
give me some hints how to do it?

Thanks for your help.
Wolfgang
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users





attachment: plotlib_subplot.pngattachment: scilab_suplot.png___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Subplot question

2013-05-13 Thread Stéphane Mottelet

Le 13/05/13 16:38, Adrien Vogt-Schilb a écrit :

Hi

It is possible, just use

subplot(321)
subplot(322)
subplot(323)
subplot(324)

and then

subplot(313)

On 13/05/2013 16:30, SCHULZ Wolfgang wrote:

Hello,
I want plot data and divided the plot region with the subplot command
in 6 regions (subplot(3,2,X)) but I would like to use the first 2
regions (subplot(3,2,1) and subplot(3,2,2)) for 1 plot. In total I
would then have then 5 plots. Is this possible? If yes could someone
give me some hints how to do it?
Thanks for your help.
Wolfgang
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users




Hello,

It works out of the box with the plotlib (see attached screenshot)

S.

attachment: sub.png___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Data Extraction Issue in Scilab

2013-03-14 Thread Stéphane Mottelet

  
  

  Hello,
  
  this small script solves your problem :
  
  fd=mopen('engine.in','r');
s=mgetl(fd);
mclose(fd);
data1=[];
for i=1:size(s,1)
w=strsplit(s(i),'/\s+/');
for j=1:size(w,1)
data1(i,j)=w(j);
end
end

[r,c]=find(data=='bore');
bore=eval(data(r(1),c(1)-1));


  Hope this helps,
  
  S.
  
  Le 14/03/13 05:16, Munian, Devaraj a crit:


  
  
  
  
  
Dear Scilab Support,
We here in RNTBCI are testing Scilab to compare it against
  Matlab. We are doing a pilot project to convert our script in
  Matlab to Scilab for validating purpose.
If we are able to get the same result in Scilab compared with
  Matlab, we will be converting all our Matlab applications into
  Scilab applications.
During our pilot project which is a most simplest project we
  are not able to proceed further because of issues mentioned in
  the ppt.
I have also attached the data files and Matlab files for your
  reference.
It will be really grateful if the issue is addressed at the
  earliest.
Regards

Devaraj|Assistant
Manager| Tools and Methods |
RENAULT NISSAN TECHNOLOGY  BUSINESS CENTRE INDIA
  PRIVATE LIMITED
Ascendas IT Park, Mahindra World City SEZ | Plot #
TP2/1, Natham Sub Post Office |
3rd Floor | Chengelpattu | Kancheepuram District
| Tamilnadu 603002 | India |
Tel # | + 9144-67416303 |
eMail | devaraj.mun...@rntbci.com
|


TOGETHER EVERYBODY ACHIEVES MORE

  
  
  
  
  ***
CONFIDENTIALITY NOTICE

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information.

If you receive this message in error, please immediately delete
it and all copies of it from your system, destroy any hard
copies of it and notify us by email to email.secur...@rntbci.com
with a copy of this message. You must not, directly or
indirectly, use, disclose, distribute, print or copy any part of
this message if you are not the intended recipient. RNTBCI and
any of its subsidiaries each reserves the right to monitor all
e-mail communications through its networks.

RNTBCI is neither liable for the proper, complete transmission
of the information contained in this communication nor any delay
in its receipt. This email was scanned for the presence of
computer viruses. In the unfortunate event of infection RNTBCI
does not accept any liability.

Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender
is authorised to state them.
***
  
  
  
  ___
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] Data Extraction Issue in Scilab

2013-03-14 Thread Stéphane Mottelet

  
  
Sorry for the small typing errors
  ("data" instead of "data1") :
  
  fd=mopen('engine.in','r');
s=mgetl(fd);
mclose(fd);
data1=[];
for i=1:size(s,1)
w=strsplit(s(i),'/\s+/');
for j=1:size(w,1)
data1(i,j)=w(j);
end
end

[r,c]=find(data1=='bore');
bore=eval(data1(r(1),c(1)-1));

S.

  
  
  
  
  Le 14/03/13 05:16, Munian, Devaraj a crit:


  
  
  
  
  
Dear Scilab Support,
We here in RNTBCI are testing Scilab to compare it against
  Matlab. We are doing a pilot project to convert our script in
  Matlab to Scilab for validating purpose.
If we are able to get the same result in Scilab compared with
  Matlab, we will be converting all our Matlab applications into
  Scilab applications.
During our pilot project which is a most simplest project we
  are not able to proceed further because of issues mentioned in
  the ppt.
I have also attached the data files and Matlab files for your
  reference.
It will be really grateful if the issue is addressed at the
  earliest.
Regards

Devaraj|Assistant

Manager| Tools and Methods |
RENAULT NISSAN TECHNOLOGY  BUSINESS CENTRE INDIA
  PRIVATE LIMITED
Ascendas IT Park, Mahindra World City SEZ | Plot #
TP2/1, Natham Sub Post Office |
3rd Floor | Chengelpattu | Kancheepuram District
| Tamilnadu 603002 | India |
Tel # | + 9144-67416303 |
eMail | devaraj.mun...@rntbci.com
|


TOGETHER EVERYBODY ACHIEVES MORE

  
  
  
  
  ***
CONFIDENTIALITY NOTICE

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information.

If you receive this message in error, please immediately delete
it and all copies of it from your system, destroy any hard
copies of it and notify us by email to email.secur...@rntbci.com
with a copy of this message. You must not, directly or
indirectly, use, disclose, distribute, print or copy any part of
this message if you are not the intended recipient. RNTBCI and
any of its subsidiaries each reserves the right to monitor all
e-mail communications through its networks.

RNTBCI is neither liable for the proper, complete transmission
of the information contained in this communication nor any delay
in its receipt. This email was scanned for the presence of
computer viruses. In the unfortunate event of infection RNTBCI
does not accept any liability.

Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender
is authorised to state them.
***
  
  
  
  ___
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] declaration of uint8 matrix

2013-03-13 Thread Stéphane Mottelet

Le 13/03/13 18:57, sgoug...@free.fr a écrit :

Hello Stéphane,


De: Stéphane Mottelet stephane.motte...@utc.fr
Is it possible to declare a uint8 matrix without first declaring it as a
double ? ../..


Yes, you can do:

--ui = resize_matrix(uint8(0),5,3)
  ui  =
  
   0  0  0

   0  0  0
   0  0  0
   0  0  0
   0  0  0
  
--typeof(ui)

  ans  =
  uint8

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

Thanks, that's very clever ! Maybe would it be a good idea to extend the 
syntax of uint8 (and others) like


ui=uint8(5,3) ?

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


Re: [Scilab-users] parallel_run under OSX

2013-03-08 Thread Stéphane Mottelet

Le 06/03/13 18:27, Sylvestre Ledru a écrit :

Le 06/03/2013 15:43, Stéphane Mottelet a écrit :

Le 06/03/13 15:30, Stéphane Mottelet a écrit :

Hello,

is parallel_run supposed to work under MacOS X (tested here with
Scilab 5.4.0) ?


There seems to be ideas about a fix for Darwin :

http://gcc.gnu.org/ml/gcc/2008-02/msg00368.html

I think it is the same bug as :
http://bugzilla.scilab.org/show_bug.cgi?id=12133
and it was not specific to Mac OS X.
I was a missing explicit link against the OpenMP lib.
Since the module parallel is loaded on the fly, the dynamic load of
the library was failing and the error message not explicit enough.

I will add a check in the continuous integration system to make sure it
never
happens again.

Sylvestre
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
I have tried parallel_run with the 5.4.0 under Linux and the dynamic 
library cannot be loaded. Is there a platform where parallel_run works 
in the 5.4.0 ?


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


[Scilab-users] parallel_run under OSX

2013-03-06 Thread Stéphane Mottelet

Hello,

is parallel_run supposed to work under MacOS X (tested here with Scilab 
5.4.0) ?


--function a=g(arg1)
--  a=arg1*arg1
--endfunction

--

--res=parallel_run(1:10, g);
A previous error has been detected while loading libsciparallel.dylib:
  !--error 999
Impossible de charger la bibliothèque libsciparallel.dylib : 
dlopen(/Applications/scilab-5.4.0.app/Contents/MacOS/share/scilab/modules/parallel/.libs/libsciparallel.dylib, 
10): Symbol not found: _omp_get_num_procs
  Referenced from: 
/Applications/scilab-5.4.0.app/Contents/MacOS/share/scilab/../../lib/scilab//libsciparallel.dylib

  Expected in: flat namespace
 in 
/Applications/scilab-5.4.0.app/Contents/MacOS/share/scilab/../../lib/scilab//libsciparallel.dylib


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


Re: [Scilab-users] parallel_run under OSX

2013-03-06 Thread Stéphane Mottelet

Le 06/03/13 15:30, Stéphane Mottelet a écrit :

Hello,

is parallel_run supposed to work under MacOS X (tested here with 
Scilab 5.4.0) ?


--function a=g(arg1)
--  a=arg1*arg1
--endfunction

--

--res=parallel_run(1:10, g);
A previous error has been detected while loading libsciparallel.dylib:
  !--error 999
Impossible de charger la bibliothèque libsciparallel.dylib : 
dlopen(/Applications/scilab-5.4.0.app/Contents/MacOS/share/scilab/modules/parallel/.libs/libsciparallel.dylib, 
10): Symbol not found: _omp_get_num_procs
  Referenced from: 
/Applications/scilab-5.4.0.app/Contents/MacOS/share/scilab/../../lib/scilab//libsciparallel.dylib

  Expected in: flat namespace
 in 
/Applications/scilab-5.4.0.app/Contents/MacOS/share/scilab/../../lib/scilab//libsciparallel.dylib


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

There seems to be ideas about a fix for Darwin :

http://gcc.gnu.org/ml/gcc/2008-02/msg00368.html

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


Re: [Scilab-users] parallel_run under OSX

2013-03-06 Thread Stéphane Mottelet

Le 06/03/13 15:30, Stéphane Mottelet a écrit :

Hello,

is parallel_run supposed to work under MacOS X (tested here with
Scilab 5.4.0) ?

--function a=g(arg1)
--  a=arg1*arg1
--endfunction

--

--res=parallel_run(1:10, g);
A previous error has been detected while loading libsciparallel.dylib:
  !--error 999
Impossible de charger la bibliothèque libsciparallel.dylib :
dlopen(/Applications/scilab-5.4.0.app/Contents/MacOS/share/scilab/modules/parallel/.libs/libsciparallel.dylib,
10): Symbol not found: _omp_get_num_procs
  Referenced from:
/Applications/scilab-5.4.0.app/Contents/MacOS/share/scilab/../../lib/scilab//libsciparallel.dylib
  Expected in: flat namespace
 in
/Applications/scilab-5.4.0.app/Contents/MacOS/share/scilab/../../lib/scilab//libsciparallel.dylib

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

There seems to be ideas about a fix for Darwin :

http://gcc.gnu.org/ml/gcc/2008-02/msg00368.html

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


Re: [Scilab-users] Surface smoothing in Scilab, immune to outliers

2013-03-04 Thread Stéphane Mottelet

Hello,

Replacing the squared L2 norm by the L1 norm in the linear regression 
gives a good robustness to outliers (cf. Donoho and al. papers). The 
problem is then non differentiable but you can implement it by 
iteratively reweighting the classical L2 method (IRLS method), or by 
writing an equivalent linear program.


S.


Le 04/03/13 13:23, Dang, Christophe a écrit :

Hello,

De la part de Rafael Guerra
Envoyé : lundi 4 mars 2013 04:37


Does somebody know if there are Scilab functions
[...] that smooths
experimental data z=f(x,y) and is immune to strong outliers.

imho, the problem with smoothing and outliers is that
the definition of a outlier depends on the field.

How can Scilab know what a strong outlier is?

I personally would try Fourier filtering:
a strong outlier means a steep slope
and therefore correspond to a high frequency.

Thus fft2, set high frequencies to 0
(with possibly a smooth transition),
then inverse fft2 -- ifft2 does not exist, I never used 2-dimension
Fourier transform so I don't know if the inverse is easy to perform...



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


Re: [Scilab-users] Surface smoothing in Scilab, immune to outliers

2013-03-04 Thread Stéphane Mottelet

Hello,

I have written a little script making the comparison between L1 and L2 
norm. For the L1 case, I have used leastsq and cheated by returning the 
square root of the abs of the residue and the 'nd' option.


function  r=resid(coef,x,y,z)
r=sqrt(abs(z-(coef(1)+coef(2)*x+coef(3)*y)));
r=r(:);
endfunction

n=10;
[x,y]=meshgrid(linspace(-1,1,n));
z=1+x+y+rand(x,'normal')/10;
z(n,n)=20;  // outlier

// L2 case

A=[x(:)^0  x(:)  y(:)];
coefl2=A\z(:);
disp(coefl2);

// L1 case

[l1norm,coefl1]=leastsq(list(resid,x,y,z),coefl2,'nd');
disp(coefl1);


Things are not supposed to work so well because 'nd' is only meaning 
that the function to minimize in non-differentiable at the optimum (and 
only there). However, it seems to work well (true value is [1,1,1]') :


L2 case :

1.165072
1.4380897
1.398408

L1 case :

0.9954939
1.0441875
0.9939874

S.

Le 04/03/13 18:51, Rafael Guerra a écrit :

Thanks Stéphane for the useful L1-references and for the insight on
iterative L2 methods and to the others for their repplies.

PS:
Strong outliers or spikes have infinite bandwidth and therefore bandpass
filtering/convolution does not seem, a priori, to be the most effective
method to remove them.

Regards,
Rafael

-Original Message-
From: users-boun...@lists.scilab.org [mailto:users-boun...@lists.scilab.org]
On Behalf Of Stéphane Mottelet
Sent: Monday, March 04, 2013 10:14 AM
To: users@lists.scilab.org
Subject: Re: [Scilab-users] Surface smoothing in Scilab, immune to outliers

Hello,

Replacing the squared L2 norm by the L1 norm in the linear regression gives
a good robustness to outliers (cf. Donoho and al. papers). The problem is
then non differentiable but you can implement it by iteratively reweighting
the classical L2 method (IRLS method), or by writing an equivalent linear
program.

S.


Le 04/03/13 13:23, Dang, Christophe a écrit :

Hello,

De la part de Rafael Guerra
Envoyé : lundi 4 mars 2013 04:37


Does somebody know if there are Scilab functions [...] that smooths
experimental data z=f(x,y) and is immune to strong outliers.

imho, the problem with smoothing and outliers is that the definition
of a outlier depends on the field.

How can Scilab know what a strong outlier is?

I personally would try Fourier filtering:
a strong outlier means a steep slope
and therefore correspond to a high frequency.

Thus fft2, set high frequencies to 0
(with possibly a smooth transition),
then inverse fft2 -- ifft2 does not exist, I never used 2-dimension
Fourier transform so I don't know if the inverse is easy to perform...


___
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] Scilab is not a pipe

2013-02-27 Thread Stéphane Mottelet

Le 26/02/13 17:45, Adrien Vogt-Schilb a écrit :

hi

is there any reasons why I can't type from a console:

scilab myfile.sce

and expect scilab to execute myfile.sce and redirect output to the 
standard output?


I can almost to that with
scilab-cli -f
and
scilab-cli -e

but i still have to exit manually at the end, or construct an alias ofr
scilab-cli -e exec('#1');quit
or something


Hello,

I hope you solved your problem, but it is a pity that nobody noticed 
your evocation of Magritte's famous painting :-)


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


Re: [Scilab-users] Problem with ATOMS

2013-01-28 Thread Stéphane Mottelet

Hello,

this problem is fixed in the current developpement version of the 
plotlib, a new version will be released this week.


S.

Le 28/01/13 08:52, Vincent COUVERT a écrit :

Hello,

It seems that this error is due to plotlib since the error message 
indicates that the error occurred at line 46 of uicontrol and this 
line does not exists in Sciab uicontrol function (which is a C function).


Can you report this issue to the author 
(http://atoms.scilab.org/toolboxes/plotlib)?


Regards.


Le 27/01/13 22:54, René Grognard a écrit :

In my professional work I had access and used MATLAB for many years.
Now retired I have to switch to some free/less expensive equivalent
software and I just downloaded Scilab that seems to offer more
toolboxes.

However ATOMS does not seem to work.

My PC is a HP ProBook 4730s running Windows 7. (Cygwin 1.7 is
installed and coud be used to run WScilex.exe.)

When I started Scilab-5.4.0 all appeared to be well:

Startup execution:
   loading initial environment
  --atomsSetConfig('Verbose','True')
  ans  =
 1.
--atomsGetConfig()
  ans  =
downloadTool: curl
Verbose: True

The  window Main categories - ATOMS was functional and allowed me to
install say the Plotting library particularly promising to a MATLAB
ex-user --- I get the message:

Installation done! Please restart Scilab to take changes into account.

OK restarting:

Startup execution:
   loading initial environment

Start plotlib toolbox 0.43
Load macros
Load help

   !--error 999
'background' property does not exist for this handle.
at line  46 of function uicontrol called by :
at line 207 of function atomsGui called by :
ms) then atomsGui(); else disp(gettext(
while executing a callback

The error message itself seems garbled!

The next one seems clearer:

--atomsGui()
  !--error 999
'background' property does not exist for this handle.
at line  46 of function uicontrol called by :
at line 207 of function atomsGui called by :
atomsGui()

The window Main categories - ATOMS  which appears is now empty and
indeed as dead as a dodo.

I checked that I have full control over the SCIHOME folder and its 
contents.


I regularly update the free JAVA which I believe is used by Scilab.

What did I do wrong/missed in installing Scilab-5.4.0?

Any help/info will be appreciated.

Regards,

René.
___
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] u .^ k ?

2012-12-19 Thread Stéphane Mottelet

Le 19/12/12 11:17, Lamy Alain a écrit :

Hi,

Does anyone know how to perform efficiently an operation like :
u .^k

with:
u = [u1, u2, ..., un]  // ui : real numbers
and:
k = [k1; k2; kp]  // ki : positive integers


The result being :

[ u1^k1, u2^k1, ..., un^k1;
   u1^k2, u2^k2, ..., un^k2;
...
   u1^kp, u2^kp, ..., un^kp ]


I know  how to do it with cumprod (for instance), but it does not seem to be
efficient enough.








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


maybe u(ones(1,p),:).^k(:,ones(1,n)) ?

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


Re: [Scilab-users] How to plot 3d implicit surface

2012-11-23 Thread Stéphane Mottelet

Le 23/11/12 09:14, Orbeman a écrit :

Hello,

I would like to plot a 3d implicit surface defines with an equation like
f(x, y, z)=0. There's no parametric transformation and is not possible to
express for example z=g(x, y).

Does anyone have an idea ?

Thank a lot.



--
View this message in context: 
http://mailinglists.scilab.org/How-to-plot-3d-implicit-surface-tp4025307.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

What is your equation ?

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


Re: [Scilab-users] root calculation

2012-11-05 Thread Stéphane Mottelet

Le 05/11/12 14:53, Adrien Vogt-Schilb a écrit :

On 05/11/2012 14:45, Paul Carrico wrote:

All,

Thanks for the feedback ...
... a basic plot shows the curve is monotonic (see attachment) ; I should plot 
a 3D curve in order to study the influence of the exponents for example to 
verify there's one and only one root ...

... I've to code a fast function to solve this kind of equation ... hundred 
thousand (and maybe million) of similar equation to solve :-~


hi

beware not to use one single fsolve to solve a set of independent 
equations;


somethign like

function [a b] = f(x,y)
a=x^3 -1
b= y^(0.6456) +4y^.45 - .566
endfunction

fsolve([0 0],f)


this is a bad idea, because fsolve will systematically calculate db/dx 
and da/dy, this would take much longer and much more memory than just 
fsolving x^3 -1, and then y^(0.6456) +4y^.45 - .566
of course this is much worse when you have N outputs and N inputs to 
your function, in this case fsolve calculates N^2 derivatives at each 
step...


fsolve is clearly missing a jacobian pattern option...

S.




That's one of the reasons why I asked about the possible parallelization

Regards

Paul



-Message d'origine-
De :users-boun...@lists.scilab.org  [mailto:users-boun...@lists.scilab.org] De 
la part demichael.bau...@contrib.scilab.org
Envoyé : lundi 5 novembre 2012 13:59
À : International users mailing list for Scilab.
Objet : Re: [Scilab-users] root calculation

Hi,

This is a nonlinear equation, for which we are searching a zero.

The fsolve function is designed for this purpose:

http://help.scilab.org/fsolve

Notice that there might not be a solution. This is why the algorithm is an 
optimization problem, where the square norm of f(x) is minimized.
This method also works for a system of nonlinear equations, so that this is 
(much) more general than dichotomy, secant, Brent, etc... which are 
one-variable solvers.

No 1-variable method is available at the Scilab level, to my knowledge.
But the Brent method is used internally in the computation of the inverse Cumulated 
Distribution Function (quantile) by the DCDFLIB library (e.g. 
X=cdfnor(X,Mean,Std,P,Q)). Notice that Matlab has the fzero function :

http://www.mathworks.fr/fr/help/matlab/ref/fzero.html

which uses Brent's method.
But this method is not available directy in Scilab. This is a good design 
choice in my opinion, since fsolve is much more general. But I guess that fzero 
may be faster and more robust, in some cases.

Best regards,

Michaël

Le 2012-11-05 13:13, Paul Carrico a écrit :

Dear all,

This a stupid question, but how can I solve directly in, Scilab an
equation such as :

0.403*X^(-0.121) + 60.5*X^(-0.73) - 0.1839 = 0

?

Is-it necessary to code a function ? from memory : dichotomy method,
secant method, Brent one etc. ...

Regards

Paul
___
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


<    2   3   4   5   6   7