Skip to content

Unrecognized method, property, or field 'tostring' for class 'tree'. #9

@asma1994-bejaia

Description

@asma1994-bejaia

t = tree('root');
[ t node1 ] = t.addnode(1, 'Node 1'); %% attach to root
% node1 now contains the index of the first node.
[ t node2 ] = t.addnode(1, 'Node 2'); %% attach to root
[ t node11 ] = t.addnode(node1, 'Child of node 1'); %% attach to first node
disp(t.tostring)

hi !
I get this message "Unrecognized method, property, or field 'tostring' for class 'tree'." when caling the tostring method and many authers methods like "graft", even if I added the location of the file that contains the tree class and the assosiated methods to the path of th system.
I would be very gratiful if somone can help me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions