Re: [Scilab-users] convert vector to list

2021-02-18 Thread Claus Futtrup


He he

Sometimes the answer is so 'obvious' ... it's just that the user never 
heard about it before. Myself included.


/Claus

On 18-02-2021 19:37, Stéphane Mottelet wrote:


vec2list() ?

Le 18/02/2021 à 19:34, Federico Miyara a écrit :


Dear All,

Is there a Scilab function to convert a vector to a list?

If x is a vector, this code

L = list();
for n=1:length(x)
    L(n) = x(n);
end

seems to work, but it would be nice to have a primitive doing this 
more efficiently. I don't seem to be able to find it.


Regards,

Federico Miyara

 
	Libre de virus. www.avast.com 
 



<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

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

--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

___
users mailing list
users@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] convert vector to list

2021-02-18 Thread Stéphane Mottelet

vec2list() ?

Le 18/02/2021 à 19:34, Federico Miyara a écrit :


Dear All,

Is there a Scilab function to convert a vector to a list?

If x is a vector, this code

L = list();
for n=1:length(x)
    L(n) = x(n);
end

seems to work, but it would be nice to have a primitive doing this 
more efficiently. I don't seem to be able to find it.


Regards,

Federico Miyara

 
	Libre de virus. www.avast.com 
 



<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

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


--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

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


[Scilab-users] convert vector to list

2021-02-18 Thread Federico Miyara


Dear All,

Is there a Scilab function to convert a vector to a list?

If x is a vector, this code

L = list();
for n=1:length(x)
    L(n) = x(n);
end

seems to work, but it would be nice to have a primitive doing this more 
efficiently. I don't seem to be able to find it.


Regards,

Federico Miyara


--
El software de antivirus Avast ha analizado este correo electrónico en busca de 
virus.
https://www.avast.com/antivirus
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] End of stack!

2021-02-18 Thread Jean-Yves Baudais
Hi,

> for i=1:10 mprintf("%d \r",i); end
1 2 3 4 5 6 7 8 9 10 

It's not really what I expected. So I tested

> for i=1:10 mprintf("\r %i",i); end

and Scilab-6.1.0 crashes with a shell message

"terminate called after throwing an instance of 
'GiwsException::JniCallMethodException'
[...]
End of stack"

Is it a bug?

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


[Scilab-users] Scilab 5.5.2 in Debian 10 - segmentation fault

2021-02-18 Thread Andrei Lomov

Hi All,
In order to use Scilab’ parallel_run in Debian 10 (x86_64),
i download
https://www.scilab.org/download/5.5.2/scilab-5.5.2.bin.linux-x86_64.tar.gz
unpack it to
~/foo/scilab-5.5.2
then
cd ~/foo/scilab-5.5.2/bin
and run …
 
$./scilab
 
Segmentation fault
:((
 
? What am I doing wrong ...
 
--
WBR,
Andrei
 ___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab 5.5.2 in Debian 10 - segmentation fault

2021-02-18 Thread Antoine Monmayrant

Hello Andrei,

I think this is a dead end.
As far as I remember, parallel_run only works on Windows, on 1 core and 
is an ugly hack.

From https://help.scilab.org/doc/5.5.2/en_US/parallel_run.html :

"In this current version of Scilab, |parallel_run| uses only one core on 
Windows platforms."


Can you tell us a bit more about what you try to do?

Cheers,

Antoine

On 18/02/2021 10:59, Andrei Lomov wrote:

Hi All,
In order to use Scilab’ parallel_run in Debian 10 (x86_64),
i download
https://www.scilab.org/download/5.5.2/scilab-5.5.2.bin.linux-x86_64.tar.gz
unpack it to
~/foo/scilab-5.5.2
then
cd ~/foo/scilab-5.5.2/bin
and run …
$./scilab
Segmentation fault
:((
? What am I doing wrong ...
--
WBR,
Andrei

___
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 5.5.2 in Debian 10 - segmentation fault

2021-02-18 Thread Jean-Yves Baudais
Hi,

> From: "Andrei Lomov" <99and...@mail.ru>
> https://www.scilab.org/download/5.5.2/scilab-5.5.2.bin.linux-x86_64.tar.gz
> $./scilab
> Segmentation fault

I faced segfault problem with really basic matrix use in Scilab 5.3 and I 
guessed mismatch somewhere (Scilab, Java, OS?) in multicore system, but I was 
not able to investigate more. My solution was to use scilab 6.1... It works now 
with complex matrix use.

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