[Scilab-users] question on makecell
Federico Miyara
fmiyara at fceia.unr.edu.ar
Thu Dec 5 14:25:33 CET 2019
Dear all,
When using makecell such as in
--> u = makecell([2 2], cos, 'hello', 1+%s^2, [1 2; 3 4])
u =
[ 1 fptr ] [1x1 string ]
[1x1 polynomial] [2x2 constant]
we get a cell array where the unidimensional ordering of the cells goes
first along columns and then ows. However, when extracting components
unidimensionally, it behaves the other way around:
--> u(1:4)
ans =
[ 1 fptr ]
[1x1 polynomial]
[1x1 string ]
[2x2 constant ]
The same happens wen applying matrix:
--> matrix(u,4,1)
ans =
[ 1 fptr ]
[1x1 polynomial]
[1x1 string ]
[2x2 constant ]
--> matrix(u,1,4)
ans =
[1 fptr] [1x1 polynomial] [1x1 string] [2x2 constant]
Isn't this inconsistent?
Shouldn't makecell create the cell array going along rows and then columns?
Regards,
Federico Miyara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20191205/7d67ea59/attachment.htm>
More information about the users
mailing list