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