[Scilab-users] Variable browser for structures

Samuel Gougeon sgougeon at free.fr
Wed Oct 31 13:40:51 CET 2018


Hello,

Le 31/10/2018 à 11:48, FMR a écrit :
> Hi,
>
> I'm a new SciLab user and have a question concerning the Variable Browser. I
> know in Matlab it is possible to open a structure with double-click and
> visualize all variable of the structure (I think it is useful for a quick
> verification).
> But in SciLab, when a double-click in the structure, I have a warning
> message "Variables of type "st" can not be edited."
>
> Could you indicate me how to simply visualize and navigate in a structure
> (if possible) without write it in the console?

tree_show() does it. Example:

s.r = grand(2,3,"uin",-9,9);
s.p = [1+%z -%z^2; 2*%z^3 -1];
s.t = ["hi" "hello";"allo" "holà"];
s.b = rand(1,4)<0.5;
s.L=list("Scilab", %i, %f)
tree_show(s)

--> s.L=list("Scilab", %i, %f)
  s  =
   r: [2x3 constant]
   p: [2x2 polynomial]
   t: [2x2 string]
   b: [1x4 boolean]
   L: list



HTH
Samuel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20181031/683cb894/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kalnjamekdlbplpg.png
Type: image/png
Size: 26543 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20181031/683cb894/attachment.png>


More information about the users mailing list