For the sub-question, it is not true that userdata can only have string data.
It could be any datatype of Scilab (at least the common one, :))
the reason you could not set the numeric data likely due to you're trying to
mix string and number:
[spectrum_unit_x,
Hi,
from my understanding, easiest way to get the color you wanted is by specifying
it during the plot function.
--> plot(x,sin(x),'b')
--> plot(x,cos(x),'b')
will gives u 2 blue lines.
By default, scilab figure will following the sequence as stated in "help plot"
"A default
Hello,
For the first question: did you try
test_number= msscanf(-1,test_str,'%f');
or
test_number= strtod(test_str);
?
HTH
Denis
*
Hi all,
I have a 1 Milion entries array of STRING type (test_str array), I should
convert to number (test_numer array).
Hello,
> De : anna78
> Envoyé : lundi 21 octobre 2019 16:02
>
> test_number=evstr(test_str)
>
> It looks like working but it takes a not acceptable time...
>
> Do you have a more clever idea?
You might try strtod()
Generally, the evaluation or execution of strings should be avoided
because one
Hi all,
I have a 1 Milion entries array of STRING type (test_str array), I should
convert to number (test_numer array).
I do as follow:
test_number=evstr(test_str)
It looks like working but it takes a not acceptable time...
Do you have a more clever idea?
---
Sub-question: I have such a long
Hello Pierre,
> De : Perrichon
> Envoyé : lundi 21 octobre 2019 12:05
>
> Generally, when plotting, curves's color are taken in the range color
> [1 3 5 7 9 11 13 15 [...] Is there a general way to modify this vector
> as to get another one with blue as first curve.
You might consider redefining
Dear all,
Generally, when plotting, curves's color are taken in the range color [1 3 5
7 9 11 13 15], where 1 is the black color.
So, the first curve is black
Is there a general way to modify this vector as to get another one with blue
as first curve.
I don't search something like