Hello,
This limitation is alreay pointed out here :
http://bugzilla.scilab.org/show_bug.cgi?id=15756
S.
Le 15/01/2019 à 03:36, Federico Miyara a écrit :
Dear all,
This statement
a = {[%f, %t], {2; poly([3, 2],'v')}}
defines a cell array whose first element is a boolean row vector and
whose second element in turn is another cell array.
Invoking a{1}(1) correctly returns the boolean value F.
But a{2}{1} does not return 2, as expected but an error:
Error: syntax error, unexpected {, expecting end of file
However
b = a{2}
b{1}
returns the correct value 2.
Why, if a{2} is a cell array, its entries cannot be extracted with the
curly brackets {}?
Moreover a{2}(1) and a{2}(2) should be the constant 2. and the polynomial
2
6 -5v +v
respectively, but they are reported as cell arrays, since
iscell(a{2}(1)) and iscell(a{2}(2)) are both True
Why is a cell array responsive to () at all and why it returns a sub
ell array?
Thank you in advance.
Regards,
Federico Miyara
---
El software de antivirus Avast ha analizado este correo electrónico en
busca de virus.
https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.avast.com/antivirus
_______________________________________________
users mailing list
[email protected]
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
[email protected]
http://lists.scilab.org/mailman/listinfo/users