Hello,<br><br>I was wondering if there is a function in Scilab that allows to display lists in a compact way rather than a (sometime endless) listing. I did not see any link to such function in 'help list'. For those of you who are familiar in the R language, I am looking for something like the 'str' function, as exemplified below:<br>
<br>> mylist<-list(a=list(abc=1:10,xyz=letters[1:15]),elem=matrix(1:10,ncol=2))<br>> mylist<br>$a<br>$a$abc<br> [1] 1 2 3 4 5 6 7 8 9 10<br><br>$a$xyz<br> [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o"<br>
<br><br>$elem<br> [,1] [,2]<br>[1,] 1 6<br>[2,] 2 7<br>[3,] 3 8<br>[4,] 4 9<br>[5,] 5 10<br><br>> str(mylist)<br>List of 2<br> $ a :List of 2<br> ..$ abc: int [1:10] 1 2 3 4 5 6 7 8 9 10<br>
..$ xyz: chr [1:15] "a" "b" "c" "d" ...<br> $ elem: int [1:5, 1:2] 1 2 3 4 5 6 7 8 9 10<br><br><br>Thanks<br><br>Sebastien<br>